From 73bb838b38015b28968d776a51f48ce3d1868dc2 Mon Sep 17 00:00:00 2001 From: Cameron Thompson <50184035+iamromulan@users.noreply.github.com> Date: Sat, 26 Jul 2025 19:31:33 -0400 Subject: [PATCH] Revert "Merge pull request #176 from clndwhr/feature/quecmanager-2.2.4-beta" This reverts commit 2662079349e4ae6699724a55e43d34a7bdff8cc6, reversing changes made to a8730bf9e9905a094acccd8eb8a5a36496a483ac. --- .../sdxpinn-quecmanager-beta/CONTROL/control | 2 +- .../root/www/404.html | 2 +- .../root/www/404/index.html | 2 +- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 .../37qqgHQHJq3PEiY10zXw4/_buildManifest.js | 1 + .../37qqgHQHJq3PEiY10zXw4/_ssgManifest.js | 1 + .../3ICJyTfxR9XYtAS-kpANh/_buildManifest.js | 1 + .../3ICJyTfxR9XYtAS-kpANh/_ssgManifest.js | 1 + .../8KEGh7PNDWPjxgfaZ18av/_buildManifest.js | 1 + .../8KEGh7PNDWPjxgfaZ18av/_ssgManifest.js | 1 + .../9vo0aXb0uub-Az8MCUlzi/_buildManifest.js | 1 + .../9vo0aXb0uub-Az8MCUlzi/_ssgManifest.js | 1 + .../CLEsEyocYsreIdPoy58DO/_buildManifest.js | 1 + .../CLEsEyocYsreIdPoy58DO/_ssgManifest.js | 1 + .../DogtQgS5nJUaCphfRGIBM/_buildManifest.js | 1 + .../DogtQgS5nJUaCphfRGIBM/_ssgManifest.js | 1 + .../J58vdXeOQEeiysj3vCOsG/_buildManifest.js | 1 + .../J58vdXeOQEeiysj3vCOsG/_ssgManifest.js | 1 + .../QxgjYoAMhByZwLHIeWqva/_buildManifest.js | 1 + .../QxgjYoAMhByZwLHIeWqva/_ssgManifest.js | 1 + .../SPL3CXvZbEOitxEPpx1-D/_buildManifest.js | 1 + .../SPL3CXvZbEOitxEPpx1-D/_ssgManifest.js | 1 + .../Un-ym4UMWvWnxj7ICGng5/_buildManifest.js | 1 + .../Un-ym4UMWvWnxj7ICGng5/_ssgManifest.js | 1 + .../XSWpQuq3OZ_Frpsbri7WD/_buildManifest.js | 1 + .../XSWpQuq3OZ_Frpsbri7WD/_ssgManifest.js | 1 + .../aQYSX0Otqpuch2NG2x3cp/_buildManifest.js | 1 + .../aQYSX0Otqpuch2NG2x3cp/_ssgManifest.js | 1 + ...ca807a.js => 0d696766-f8433f3082fb824f.js} | 2 +- .../chunks/0e5ce63c-2ce3ef687d86baae.js | 1 - .../static/chunks/1028-d49624a1d63e734e.js | 1 - .../static/chunks/1048-02abb75f177dd0fa.js | 1 - .../static/chunks/1074-a3cc46aa8592f7b2.js | 1 + .../static/chunks/1074-d79f1d7c29de56fa.js | 1 + .../static/chunks/1203-e2b7ef24adadbbd0.js | 1 + .../static/chunks/1203-eba766727ba305cb.js | 1 + .../static/chunks/1209-e502eb4151bc1e9a.js | 1 + .../static/chunks/1365-cc796f60bf34651a.js | 1 - .../static/chunks/1517-40bccec68e3ec406.js | 2 - .../static/chunks/1554-2ea0a7d1aa4bef3e.js | 1 - .../static/chunks/1630-e6b1d1dfaecf3c1f.js | 1 + .../static/chunks/1630-ef39e3282b1968a7.js | 1 + .../static/chunks/2019-b7704dcdb000b7ea.js | 1 - .../static/chunks/2049-6657120fa99a42e1.js | 1 - .../static/chunks/2394-bec269701e2d0c16.js | 1 + .../static/chunks/241-3bdc85b73bf85c52.js | 1 + .../static/chunks/241-87951836d46a7543.js | 1 + ...20af42bc47.js => 2487-1232e926f8daa8b5.js} | 2 +- .../static/chunks/2494-1b55b4db233d7e31.js | 1 + .../static/chunks/2494-8e5cba9549592786.js | 1 + .../static/chunks/2682-7f9e5e2a8bb2f859.js | 1 + .../static/chunks/3048-9766c902a7fac6d2.js | 1 + .../static/chunks/3048-a6b509fac24a1f29.js | 1 + .../static/chunks/3095-9b41897dca47b121.js | 1 + .../static/chunks/3188-db9106725bf61f37.js | 1 - .../static/chunks/3453-1e7922659f5b386a.js | 1 + .../static/chunks/3453-59569df86cb1327e.js | 1 + .../static/chunks/3453-5a90e5e264d15a53.js | 1 + .../static/chunks/3494-8f1a6a2a7daec1ca.js | 1 + .../static/chunks/3494-d763154adf622bee.js | 1 + .../static/chunks/3572-2b8db37d34ea53e3.js | 1 - .../static/chunks/3662-239bb8b0fc7d6649.js | 1 + .../static/chunks/3740-cc1b7d8d60f56d79.js | 1 - .../static/chunks/3746-654c7d406af2e140.js | 1 + .../static/chunks/3838-5ba37d257cf1cf08.js | 1 - .../static/chunks/3914-7ed615bd3fa6fffd.js | 1 - .../static/chunks/3944-ffb1c1d96801233d.js | 1 - .../static/chunks/3993.84dc2c07c5289739.js | 1 + .../static/chunks/4094-7a548ce559af5ece.js | 1 - .../static/chunks/4346-63dd0cdf0b379621.js | 1 - .../static/chunks/4458-2bc9e37a444e4472.js | 1 + .../static/chunks/4458-cf753779a05ab41e.js | 1 + .../static/chunks/4736-a2a6c92b170301c7.js | 1 + .../static/chunks/4767-59497800ebace65f.js | 1 + .../static/chunks/4767-88886265e4e59e78.js | 1 + ...33644a.js => 47820753-41ce4d8e11c7c32d.js} | 2 +- .../static/chunks/4840.58ad85f7ae0b4d74.js | 1 + .../static/chunks/5203.7c54c202406d4620.js | 1 - .../static/chunks/5509-b63c60a753b70e7c.js | 1 - .../static/chunks/564-bce78b0f1af68d0a.js | 1 + .../static/chunks/5668-55d6f43ee8c71ac2.js | 1 + .../static/chunks/5755-a5bfdac2a1c07373.js | 1 + .../static/chunks/5755-b330e14a84ee51bb.js | 1 + .../static/chunks/5766-fa21e9c5f53d641e.js | 1 + .../static/chunks/6035-140d5b1217a77982.js | 2 + .../static/chunks/6035-940015763a1a8b5a.js | 2 + .../static/chunks/6218.2a359a0f55d6ba39.js | 1 - .../static/chunks/6281-72961a4c8126fa1a.js | 1 - .../static/chunks/6357-9bebe3918fcef1e5.js | 1 + .../static/chunks/6592-64b46edd0220361b.js | 1 + .../static/chunks/6765-04896569da698cf7.js | 1 + .../static/chunks/6765-07b8009bcdc5965b.js | 1 + .../static/chunks/6810-8c083ebb04e3d5c9.js | 1 + .../static/chunks/7123-5ee642dc1491326b.js | 1 - .../static/chunks/7133-702ff49dc7ecf6c2.js | 1 + .../static/chunks/7133-b33ba7c188c9e71d.js | 1 + .../static/chunks/7401-f818b07f5ea91edc.js | 1 - .../static/chunks/7414-d6480d4dfb8a2ef8.js | 1 + .../static/chunks/7510-b5c5a53e21a04c67.js | 1 + .../static/chunks/7536-99552f97cdce7493.js | 1 + .../static/chunks/7563-33b7de2a93dcbe27.js | 1 + .../static/chunks/7780-d44d1f6d676771d4.js | 1 + .../static/chunks/7780-f325b2d7864a75f9.js | 1 + .../chunks/7b0cf0b7-aa73cc75e53c5793.js | 1 + .../chunks/7b0cf0b7-d2ef6403b3e42593.js | 1 + .../static/chunks/8112-8c3d22fe142f8630.js | 1 + .../static/chunks/8520-8a39faa16961c17c.js | 1 + .../static/chunks/8885-1b9ab3cbb10cf437.js | 1 + .../static/chunks/8885-ae45735eaa57e8dd.js | 1 + .../static/chunks/9464-54895f8e78c474f0.js | 1 + .../static/chunks/9464-f5c3c85ad60907ac.js | 1 + .../static/chunks/9477-215fa25b7251af44.js | 1 + .../static/chunks/9477-4478381adb29cdff.js | 1 + .../static/chunks/9488-bb625e27d04568c8.js | 1 + .../static/chunks/9496-be6846c9c8851cc7.js | 1 + .../static/chunks/9563-6d9d0f6708af335e.js | 1 + .../static/chunks/9679-2e6404ffd44175ca.js | 1 + .../static/chunks/9679-e42f7aaecc29c6da.js | 1 + .../static/chunks/9710-a27eac95e49499fd.js | 1 - .../static/chunks/9824-36f7c2c056010bce.js | 1 + .../static/chunks/9824-6ab65b6c93ad02a4.js | 1 + .../static/chunks/9895-60e84ac7e5963a2e.js | 1 - .../static/chunks/9951-3ddc36507bfb3179.js | 1 + .../static/chunks/9966-4a9e57c71c6b1551.js | 1 + .../static/chunks/9966-e8dd4767eabb529c.js | 1 + .../static/chunks/9975-17560cd1b51ce160.js | 1 - ...298fb67efc.js => page-1ecc3e30807e12eb.js} | 2 +- .../app/_not-found/page-bbc06305e37a1ebd.js | 1 + .../dashboard/about/page-2fbc5ec61a31e012.js | 1 + .../dashboard/about/page-3389922e77238235.js | 1 - .../dashboard/about/page-5431674c006b4771.js | 1 + .../dashboard/about/page-9a36e9af0364bb3a.js | 1 + .../at-terminal/page-0961218bcd404d9f.js | 1 - .../at-terminal/page-0e4bfed198cb0889.js | 1 + .../at-terminal/page-651f550d2009e155.js | 1 + .../at-terminal/page-89240f3e7f4062a3.js | 1 + .../at-terminal/page-983e4f09917b607b.js | 1 + .../at-terminal/page-d24d85a1e5795f99.js | 1 + .../at-terminal/page-ded11e84e70593c1.js | 1 + .../at-terminal/page-fff95c1e4f54ea79.js | 1 + .../connectivity/page-3255ce6e1a5e59f1.js | 1 + .../connectivity/page-3e4d65d2e857a322.js | 1 + .../connectivity/page-5c3c7375e5a7c972.js | 1 - .../connectivity/page-9a83ab81cc3a1235.js | 1 + .../connectivity/page-cc4cc206684861f6.js | 1 + .../connectivity/page-f494320c9da1be00.js | 1 + .../layout-18f2f11ad6e5add3.js | 1 - .../layout-1f0d7c2c8452d57c.js | 1 + .../layout-e0d745ff6aef0894.js | 1 + .../mtu/page-5e0e4fc07a70c0c6.js | 1 + .../mtu/page-68c4182f81b42ce6.js | 1 - .../mtu/page-d29a62373689eade.js | 1 + .../page-3937d6f0d6a988f7.js | 1 + .../page-984d67ec298132a9.js | 1 + .../page-b8b0ebf6236e4c8d.js | 1 - .../page-c2009dd8dd08fa16.js | 1 + .../ttl-settings/page-2fa21ee6005dc743.js | 1 + .../ttl-settings/page-69b6ab273a4e5892.js | 1 - .../ttl-settings/page-ab307137ee0a2790.js | 1 + .../band-locking/page-27ca2f403da698ba.js | 1 + .../band-locking/page-2c5cd6ec32a5aed7.js | 1 - .../band-locking/page-4ac8549e8d2ef493.js | 1 + .../band-locking/page-756ab588a4b45ef7.js | 1 + .../basic-settings/page-1ccd86184fde8732.js | 1 + .../basic-settings/page-319c2ca06be1536a.js | 1 + .../basic-settings/page-8d2e397d59545406.js | 1 - .../basic-settings/page-d418fac46daf507e.js | 1 + .../basic-settings/page-f1027469cd65bc27.js | 1 + .../basic-settings/page-f4528f04c682eb68.js | 1 + .../basic-settings/page-f8c128893a9f6cd1.js | 1 + .../basic-settings/page-fb669639af2bc9ef.js | 1 + .../cell-locking/page-177937aa4101948c.js | 1 + .../cell-locking/page-b0b1901c61524def.js | 1 + .../cell-locking/page-b4fce1314caa0d3f.js | 1 + .../cell-locking/page-c29bc828653b6a24.js | 1 - .../cell-locking/page-c36099a3656d9687.js | 1 + .../cell-locking/page-cbf807f40a5be9c8.js | 1 + .../imei-mangling/page-5a5627d4caa9c7b7.js | 1 + .../imei-mangling/page-5ee4a3e3cfdef0c5.js | 1 + .../imei-mangling/page-812b4a781a9c8d64.js | 1 - .../cell-settings/layout-812d37cd9b7702e3.js | 1 - .../cell-settings/layout-81a19da0f530d3d8.js | 1 + .../cell-settings/layout-f26afaa8b880d2b0.js | 1 + .../cell-settings/page-0de39fdeb0f89b69.js | 1 + .../cell-settings/page-13fdbb8126fb40d4.js | 1 + .../cell-settings/page-5551dfccbdafa5d6.js | 1 + .../cell-settings/page-a868a91a4ba4734d.js | 1 - .../sms/page-0282bacf2bd5c5a0.js | 1 + .../sms/page-1b94e70f7fd6434f.js | 1 + .../sms/page-1c7aa5f5d7a1ffef.js | 1 + .../sms/page-4d83fdaecde7cace.js | 1 - .../sms/page-653c20c7989a9d8c.js | 1 + .../sms/page-851b9d4ba8e76ef1.js | 1 + .../sms/page-c91b3ada25c7de30.js | 1 + .../cell-scanner/page-0e75ee27c0191fef.js | 1 + .../cell-scanner/page-2c4956be7a457748.js | 1 + .../cell-scanner/page-39748f3b35deaf13.js | 1 + .../cell-scanner/page-a05961e226ae9f47.js | 1 - .../cell-scanner/page-b41913a6d3cf3d54.js | 1 + .../cell-scanner/page-d1a137fe638995d6.js | 1 + .../cell-scanner/page-fc41be1e6a56e9e7.js | 1 + .../freq-calculator/page-267d35951f7f764c.js | 1 + .../freq-calculator/page-76fc91defa16e132.js | 1 + .../freq-calculator/page-b1970f3a251dc10f.js | 1 - .../freq-calculator/page-f544f8ea6da96f62.js | 1 + .../keep-alive/page-5758af6e2129c2c3.js | 1 + .../keep-alive/page-612392d5cbe5676d.js | 1 - .../keep-alive/page-dba158bf59af2a41.js | 1 + .../experimental/layout-08630c8d28f03f51.js | 1 + .../experimental/layout-52a07b448b671e38.js | 1 - .../experimental/layout-6508e2a223029fa4.js | 1 + .../experimental/page-8c87b3bd05239a53.js | 1 + .../experimental/page-a92b6b304ef59e93.js | 1 - .../experimental/page-d9c08fdd6716e62a.js | 1 + .../quecprofiles/page-262b250c7e780fdd.js | 1 + .../quecprofiles/page-297321f02a1d8550.js | 1 - .../quecprofiles/page-3fe35599356ee15c.js | 1 + .../quecprofiles/page-4a6c191a1f38b382.js | 1 + .../quecprofiles/page-56d0dff104c9b5a6.js | 1 + .../quecprofiles/page-70f54a2449254011.js | 1 + .../quecprofiles/page-77aa5d022b2bc981.js | 1 + .../quecprofiles/page-ee8aa6e77dc40009.js | 1 + .../quecwatch/page-0e589df1091f659d.js | 1 + .../quecwatch/page-2778658dc79ef969.js | 1 + .../quecwatch/page-73c728da722206c7.js | 1 + .../quecwatch/page-c8fec59c49351f2d.js | 1 - .../dashboard/home/page-16c8acbb6ca6b376.js | 1 + .../dashboard/home/page-213968b49adc5e63.js | 1 + .../dashboard/home/page-3544159e39f4ea7a.js | 1 + .../dashboard/home/page-4ff1af92bcccebab.js | 1 + .../dashboard/home/page-74ed933afbf15b37.js | 1 + .../dashboard/home/page-7c194f64db41f470.js | 1 + .../dashboard/home/page-968670dca7ea8ab7.js | 1 - .../dashboard/home/page-9e3b8cb15508df2a.js | 1 + .../dashboard/home/page-b9ee668896a1fb0f.js | 1 + .../dashboard/home/page-baeed177eb178aed.js | 1 + .../dashboard/home/page-d0648dbb90fe7bbf.js | 1 + .../dashboard/home/page-d1d40639e260b0ae.js | 1 + .../dashboard/home/page-d78788ef7de0d11e.js | 1 + .../dashboard/home/page-d9c5d63a9e27e2d1.js | 1 + .../dashboard/home/page-e0ed331f028a20c3.js | 1 + .../dashboard/home/page-e9eb1f57dcf45496.js | 1 + .../dashboard/home/page-f48758256f09c888.js | 1 + .../app/dashboard/layout-02fe1192f54f04cf.js | 1 + .../app/dashboard/layout-4803670355901ee0.js | 1 + .../app/dashboard/layout-5311362b3a63fe81.js | 1 + .../app/dashboard/layout-7c989927b7a29d5d.js | 1 + .../app/dashboard/layout-8d0cc3852d1f490b.js | 1 - .../app/dashboard/layout-df7a292d088bc002.js | 1 + .../games/tetris/page-e289ae715e0fba88.js | 1 + .../settings/layout-2429ae4d71080a23.js | 1 + .../settings/layout-cc9df1509c43fede.js | 1 + .../settings/layout-e237bc8b568ccf8e.js | 1 - .../settings/page-a43cb1dfea2687ae.js | 1 + .../settings/page-affb4fb4f2f57790.js | 1 + .../settings/page-f4993a729574dbc7.js | 1 - .../security/page-37b3ba8d799a9134.js | 1 + .../security/page-722575cb0e664dd2.js | 1 + .../security/page-c478de4827161dac.js | 1 + .../security/page-ee2b13d3a197a5cf.js | 1 - ...ba6bca0c.js => layout-a9c4b7ff6cae263b.js} | 2 +- .../chunks/app/layout-d2d09d351eda8964.js | 1 + .../chunks/app/login/page-8c9ad50fe1258639.js | 1 + .../chunks/app/login/page-aba8e30780334055.js | 1 + .../chunks/app/login/page-d0e3b3ab931e2b84.js | 1 + .../chunks/app/login/page-eedf1e77aa500881.js | 1 - .../chunks/app/page-10e0ca37ba458321.js | 1 + .../chunks/app/page-7b1bd07ea9799734.js | 1 + .../chunks/app/page-b8f75665cdb925c0.js | 1 - .../chunks/app/page-c30a75b57da5e6f9.js | 1 + ...2e268fa4c4.js => page-0d50a23651b89c67.js} | 2 +- .../games/tetris/page-9fb276f2e182b14f.js | 1 + ...ed896c.js => b1b46485-5c61721f784038c7.js} | 2 +- ...f489fc.js => b26ba64e-64bde820b76ccdd1.js} | 2 +- .../chunks/b26ba64e-84bd87b07e65a7eb.js | 1 + ...11d0e.js => framework-bc20e1d6c220e9f0.js} | 2 +- .../static/chunks/main-040e2a0a6a39067a.js | 1 + .../static/chunks/main-afbf0345c59af025.js | 1 - .../chunks/main-app-6158bebee258e4c6.js | 1 - .../chunks/main-app-efcadbb0ab02e7db.js | 1 + .../chunks/pages/_app-4768ec4baedb3106.js | 1 + .../chunks/pages/_app-bfa3536d2730ca09.js | 1 - .../chunks/pages/_error-cb90f27adf2fb914.js | 1 - .../chunks/pages/_error-f347b70a71a8047b.js | 1 + ...1ade319.js => webpack-25974a52f21a47fa.js} | 2 +- .../www/_next/static/css/16045df73d62562f.css | 3 + .../www/_next/static/css/2adbd6ec1a3f6224.css | 3 + .../www/_next/static/css/36ec25274907c1e6.css | 3 + .../www/_next/static/css/842751e375a96633.css | 3 - .../www/_next/static/css/892e517d745330fe.css | 3 + .../www/_next/static/css/ad2fb857a6697fa7.css | 3 + .../www/_next/static/css/c435edae13d59b7f.css | 3 + .../www/_next/static/css/cc1199d1641b7c0d.css | 3 + .../www/_next/static/css/f350552ef57e81db.css | 3 + .../foihjw1GfMc3_Q4UifuMf/_buildManifest.js | 1 + .../foihjw1GfMc3_Q4UifuMf/_ssgManifest.js | 1 + .../frO0ttafWiV6D7wDli3QE/_buildManifest.js | 1 + .../frO0ttafWiV6D7wDli3QE/_ssgManifest.js | 1 + .../mbguaWesdL7rDrYOklhNk/_buildManifest.js | 1 + .../mbguaWesdL7rDrYOklhNk/_ssgManifest.js | 1 + .../nSSY82E15mY7-fVwPtOqk/_buildManifest.js | 1 + .../nSSY82E15mY7-fVwPtOqk/_ssgManifest.js | 1 + .../pWQhJlQuhV__YIe6iMkuR/_buildManifest.js | 1 + .../pWQhJlQuhV__YIe6iMkuR/_ssgManifest.js | 1 + .../xeZlQ8jLyR2FPwewgDcLc/_buildManifest.js | 1 + .../xeZlQ8jLyR2FPwewgDcLc/_ssgManifest.js | 1 + .../quecmanager/at_cmd/at_queue_client.sh | 34 +------ .../root/www/cgi-bin/quecmanager/auth.sh | 33 +------ .../experimental/cell_scanner/clear_scan.sh | 99 ------------------- .../root/www/cgi-bin/quecmanager/logout.sh | 15 --- .../root/www/dashboard/about/index.html | 2 +- .../root/www/dashboard/about/index.txt | 30 +++--- .../advanced-settings/at-terminal/index.html | 2 +- .../advanced-settings/at-terminal/index.txt | 32 +++--- .../advanced-settings/connectivity/index.html | 2 +- .../advanced-settings/connectivity/index.txt | 32 +++--- .../dashboard/advanced-settings/index.html | 2 +- .../www/dashboard/advanced-settings/index.txt | 30 +++--- .../advanced-settings/mtu/index.html | 2 +- .../dashboard/advanced-settings/mtu/index.txt | 32 +++--- .../advanced-settings/ttl-settings/index.html | 2 +- .../advanced-settings/ttl-settings/index.txt | 32 +++--- .../cell-settings/band-locking/index.html | 2 +- .../cell-settings/band-locking/index.txt | 32 +++--- .../cell-settings/basic-settings/index.html | 2 +- .../cell-settings/basic-settings/index.txt | 32 +++--- .../cell-settings/cell-locking/index.html | 2 +- .../cell-settings/cell-locking/index.txt | 32 +++--- .../cell-settings/imei-mangling/index.html | 2 +- .../cell-settings/imei-mangling/index.txt | 32 +++--- .../www/dashboard/cell-settings/index.html | 2 +- .../www/dashboard/cell-settings/index.txt | 30 +++--- .../dashboard/cell-settings/sms/index.html | 2 +- .../www/dashboard/cell-settings/sms/index.txt | 32 +++--- .../experimental/cell-scanner/index.html | 2 +- .../experimental/cell-scanner/index.txt | 32 +++--- .../experimental/freq-calculator/index.html | 2 +- .../experimental/freq-calculator/index.txt | 32 +++--- .../www/dashboard/experimental/index.html | 2 +- .../root/www/dashboard/experimental/index.txt | 30 +++--- .../experimental/keep-alive/index.html | 2 +- .../experimental/keep-alive/index.txt | 32 +++--- .../experimental/quecprofiles/index.html | 2 +- .../experimental/quecprofiles/index.txt | 32 +++--- .../experimental/quecwatch/index.html | 2 +- .../experimental/quecwatch/index.txt | 32 +++--- .../root/www/dashboard/home/index.html | 2 +- .../root/www/dashboard/home/index.txt | 30 +++--- .../settings/games/tetris/index.html | 2 +- .../dashboard/settings/games/tetris/index.txt | 39 ++++---- .../root/www/dashboard/settings/index.html | 2 +- .../root/www/dashboard/settings/index.txt | 30 +++--- .../dashboard/settings/security/index.html | 2 +- .../www/dashboard/settings/security/index.txt | 32 +++--- .../root/www/index.html | 1 - .../root/www/index.txt | 24 ++--- .../root/www/login.html | 1 + .../root/www/login/index.html | 2 +- .../root/www/login/index.txt | 26 ++--- .../games/tetris/index.html | 2 +- .../games/tetris/index.txt | 26 ++--- 362 files changed, 688 insertions(+), 659 deletions(-) rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/{yuHNjFIc5H-qyPn3szdc- => 28DYBuOMA5NUDDqpqBIcr}/_buildManifest.js (95%) rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/{yuHNjFIc5H-qyPn3szdc- => 28DYBuOMA5NUDDqpqBIcr}/_ssgManifest.js (100%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/37qqgHQHJq3PEiY10zXw4/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/37qqgHQHJq3PEiY10zXw4/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/3ICJyTfxR9XYtAS-kpANh/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/3ICJyTfxR9XYtAS-kpANh/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/8KEGh7PNDWPjxgfaZ18av/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/8KEGh7PNDWPjxgfaZ18av/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/9vo0aXb0uub-Az8MCUlzi/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/9vo0aXb0uub-Az8MCUlzi/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/CLEsEyocYsreIdPoy58DO/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/CLEsEyocYsreIdPoy58DO/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/DogtQgS5nJUaCphfRGIBM/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/DogtQgS5nJUaCphfRGIBM/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/J58vdXeOQEeiysj3vCOsG/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/J58vdXeOQEeiysj3vCOsG/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QxgjYoAMhByZwLHIeWqva/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QxgjYoAMhByZwLHIeWqva/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/SPL3CXvZbEOitxEPpx1-D/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/SPL3CXvZbEOitxEPpx1-D/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/Un-ym4UMWvWnxj7ICGng5/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/Un-ym4UMWvWnxj7ICGng5/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/XSWpQuq3OZ_Frpsbri7WD/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/XSWpQuq3OZ_Frpsbri7WD/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/aQYSX0Otqpuch2NG2x3cp/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/aQYSX0Otqpuch2NG2x3cp/_ssgManifest.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/{f4898fe8-d8671d2103ca807a.js => 0d696766-f8433f3082fb824f.js} (99%) delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0e5ce63c-2ce3ef687d86baae.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1028-d49624a1d63e734e.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1048-02abb75f177dd0fa.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1074-a3cc46aa8592f7b2.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1074-d79f1d7c29de56fa.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1203-e2b7ef24adadbbd0.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1203-eba766727ba305cb.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1209-e502eb4151bc1e9a.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1365-cc796f60bf34651a.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1517-40bccec68e3ec406.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1554-2ea0a7d1aa4bef3e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1630-e6b1d1dfaecf3c1f.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1630-ef39e3282b1968a7.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2019-b7704dcdb000b7ea.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2049-6657120fa99a42e1.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2394-bec269701e2d0c16.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/241-3bdc85b73bf85c52.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/241-87951836d46a7543.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/{6586-9aecbb20af42bc47.js => 2487-1232e926f8daa8b5.js} (72%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2494-1b55b4db233d7e31.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2494-8e5cba9549592786.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2682-7f9e5e2a8bb2f859.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3048-9766c902a7fac6d2.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3048-a6b509fac24a1f29.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3095-9b41897dca47b121.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3188-db9106725bf61f37.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-1e7922659f5b386a.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-59569df86cb1327e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-5a90e5e264d15a53.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3494-8f1a6a2a7daec1ca.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3494-d763154adf622bee.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3572-2b8db37d34ea53e3.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3662-239bb8b0fc7d6649.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3740-cc1b7d8d60f56d79.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3746-654c7d406af2e140.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3838-5ba37d257cf1cf08.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3914-7ed615bd3fa6fffd.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3944-ffb1c1d96801233d.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3993.84dc2c07c5289739.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4094-7a548ce559af5ece.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4346-63dd0cdf0b379621.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4458-2bc9e37a444e4472.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4458-cf753779a05ab41e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4736-a2a6c92b170301c7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4767-59497800ebace65f.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4767-88886265e4e59e78.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/{0e762574-49b5b66e2a33644a.js => 47820753-41ce4d8e11c7c32d.js} (91%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4840.58ad85f7ae0b4d74.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5203.7c54c202406d4620.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5509-b63c60a753b70e7c.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/564-bce78b0f1af68d0a.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5668-55d6f43ee8c71ac2.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5755-a5bfdac2a1c07373.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5755-b330e14a84ee51bb.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5766-fa21e9c5f53d641e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6035-140d5b1217a77982.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6035-940015763a1a8b5a.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6218.2a359a0f55d6ba39.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6281-72961a4c8126fa1a.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6357-9bebe3918fcef1e5.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6592-64b46edd0220361b.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6765-04896569da698cf7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6765-07b8009bcdc5965b.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6810-8c083ebb04e3d5c9.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7123-5ee642dc1491326b.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7133-702ff49dc7ecf6c2.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7133-b33ba7c188c9e71d.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7401-f818b07f5ea91edc.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7414-d6480d4dfb8a2ef8.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7510-b5c5a53e21a04c67.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7536-99552f97cdce7493.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7563-33b7de2a93dcbe27.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7780-d44d1f6d676771d4.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7780-f325b2d7864a75f9.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7b0cf0b7-aa73cc75e53c5793.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7b0cf0b7-d2ef6403b3e42593.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8112-8c3d22fe142f8630.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8520-8a39faa16961c17c.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8885-1b9ab3cbb10cf437.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8885-ae45735eaa57e8dd.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9464-54895f8e78c474f0.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9464-f5c3c85ad60907ac.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9477-215fa25b7251af44.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9477-4478381adb29cdff.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9488-bb625e27d04568c8.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9496-be6846c9c8851cc7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9563-6d9d0f6708af335e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9679-2e6404ffd44175ca.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9679-e42f7aaecc29c6da.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9710-a27eac95e49499fd.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9824-36f7c2c056010bce.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9824-6ab65b6c93ad02a4.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9895-60e84ac7e5963a2e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9951-3ddc36507bfb3179.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9966-4a9e57c71c6b1551.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9966-e8dd4767eabb529c.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9975-17560cd1b51ce160.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/{page-616c95298fb67efc.js => page-1ecc3e30807e12eb.js} (82%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-bbc06305e37a1ebd.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-2fbc5ec61a31e012.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-3389922e77238235.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-5431674c006b4771.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-9a36e9af0364bb3a.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-0961218bcd404d9f.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-0e4bfed198cb0889.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-651f550d2009e155.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-89240f3e7f4062a3.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-983e4f09917b607b.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-d24d85a1e5795f99.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-ded11e84e70593c1.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-fff95c1e4f54ea79.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-3255ce6e1a5e59f1.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-3e4d65d2e857a322.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-5c3c7375e5a7c972.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-9a83ab81cc3a1235.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-cc4cc206684861f6.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-f494320c9da1be00.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-e0d745ff6aef0894.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-5e0e4fc07a70c0c6.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-68c4182f81b42ce6.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-d29a62373689eade.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-3937d6f0d6a988f7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-984d67ec298132a9.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-b8b0ebf6236e4c8d.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-c2009dd8dd08fa16.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-2fa21ee6005dc743.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-69b6ab273a4e5892.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-ab307137ee0a2790.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-27ca2f403da698ba.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-2c5cd6ec32a5aed7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-4ac8549e8d2ef493.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-756ab588a4b45ef7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-1ccd86184fde8732.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-319c2ca06be1536a.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-8d2e397d59545406.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-d418fac46daf507e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f1027469cd65bc27.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f4528f04c682eb68.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f8c128893a9f6cd1.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-fb669639af2bc9ef.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-177937aa4101948c.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-b0b1901c61524def.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-b4fce1314caa0d3f.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-c29bc828653b6a24.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-c36099a3656d9687.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-cbf807f40a5be9c8.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-5a5627d4caa9c7b7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-5ee4a3e3cfdef0c5.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-812b4a781a9c8d64.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-81a19da0f530d3d8.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-0de39fdeb0f89b69.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-13fdbb8126fb40d4.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-5551dfccbdafa5d6.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-a868a91a4ba4734d.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-0282bacf2bd5c5a0.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-1b94e70f7fd6434f.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-1c7aa5f5d7a1ffef.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-4d83fdaecde7cace.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-653c20c7989a9d8c.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-851b9d4ba8e76ef1.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-c91b3ada25c7de30.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-0e75ee27c0191fef.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-2c4956be7a457748.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-39748f3b35deaf13.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-a05961e226ae9f47.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-b41913a6d3cf3d54.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-d1a137fe638995d6.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-fc41be1e6a56e9e7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-267d35951f7f764c.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-76fc91defa16e132.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-b1970f3a251dc10f.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-f544f8ea6da96f62.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-5758af6e2129c2c3.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-612392d5cbe5676d.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-dba158bf59af2a41.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-6508e2a223029fa4.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-8c87b3bd05239a53.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-a92b6b304ef59e93.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-d9c08fdd6716e62a.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-262b250c7e780fdd.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-297321f02a1d8550.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-3fe35599356ee15c.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-4a6c191a1f38b382.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-56d0dff104c9b5a6.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-70f54a2449254011.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-77aa5d022b2bc981.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-ee8aa6e77dc40009.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-0e589df1091f659d.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-2778658dc79ef969.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-73c728da722206c7.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-c8fec59c49351f2d.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-16c8acbb6ca6b376.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-213968b49adc5e63.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-3544159e39f4ea7a.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-4ff1af92bcccebab.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-74ed933afbf15b37.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-7c194f64db41f470.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-968670dca7ea8ab7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-9e3b8cb15508df2a.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-b9ee668896a1fb0f.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-baeed177eb178aed.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d0648dbb90fe7bbf.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d1d40639e260b0ae.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d78788ef7de0d11e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d9c5d63a9e27e2d1.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-e0ed331f028a20c3.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-e9eb1f57dcf45496.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-f48758256f09c888.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-02fe1192f54f04cf.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-4803670355901ee0.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-5311362b3a63fe81.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-7c989927b7a29d5d.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-df7a292d088bc002.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/games/tetris/page-e289ae715e0fba88.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-2429ae4d71080a23.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-cc9df1509c43fede.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-e237bc8b568ccf8e.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-a43cb1dfea2687ae.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-affb4fb4f2f57790.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-f4993a729574dbc7.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-37b3ba8d799a9134.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-722575cb0e664dd2.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-c478de4827161dac.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-ee2b13d3a197a5cf.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/{layout-c8966be7ba6bca0c.js => layout-a9c4b7ff6cae263b.js} (52%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-d2d09d351eda8964.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-8c9ad50fe1258639.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-aba8e30780334055.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-d0e3b3ab931e2b84.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-eedf1e77aa500881.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-10e0ca37ba458321.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-7b1bd07ea9799734.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-b8f75665cdb925c0.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-c30a75b57da5e6f9.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/{page-09d2072e268fa4c4.js => page-0d50a23651b89c67.js} (94%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-9fb276f2e182b14f.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/{3d47b92a-446f204e6fed896c.js => b1b46485-5c61721f784038c7.js} (86%) rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/{4bd1b696-d9f97cd790f489fc.js => b26ba64e-64bde820b76ccdd1.js} (99%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/b26ba64e-84bd87b07e65a7eb.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/{framework-c8065bab8b311d0e.js => framework-bc20e1d6c220e9f0.js} (88%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-040e2a0a6a39067a.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-afbf0345c59af025.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-app-6158bebee258e4c6.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-app-efcadbb0ab02e7db.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_app-4768ec4baedb3106.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_app-bfa3536d2730ca09.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_error-cb90f27adf2fb914.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_error-f347b70a71a8047b.js rename ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/{webpack-40da663fe1ade319.js => webpack-25974a52f21a47fa.js} (94%) create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/16045df73d62562f.css create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/2adbd6ec1a3f6224.css create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/36ec25274907c1e6.css delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/842751e375a96633.css create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/892e517d745330fe.css create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/ad2fb857a6697fa7.css create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/c435edae13d59b7f.css create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/cc1199d1641b7c0d.css create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/f350552ef57e81db.css create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/foihjw1GfMc3_Q4UifuMf/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/foihjw1GfMc3_Q4UifuMf/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/frO0ttafWiV6D7wDli3QE/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/frO0ttafWiV6D7wDli3QE/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/mbguaWesdL7rDrYOklhNk/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/mbguaWesdL7rDrYOklhNk/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/nSSY82E15mY7-fVwPtOqk/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/nSSY82E15mY7-fVwPtOqk/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/pWQhJlQuhV__YIe6iMkuR/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/pWQhJlQuhV__YIe6iMkuR/_ssgManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/xeZlQ8jLyR2FPwewgDcLc/_buildManifest.js create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/xeZlQ8jLyR2FPwewgDcLc/_ssgManifest.js delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/experimental/cell_scanner/clear_scan.sh delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/logout.sh delete mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/index.html create mode 100644 ipk-source/sdxpinn-quecmanager-beta/root/www/login.html diff --git a/ipk-source/sdxpinn-quecmanager-beta/CONTROL/control b/ipk-source/sdxpinn-quecmanager-beta/CONTROL/control index 2c9608b..ef64158 100755 --- a/ipk-source/sdxpinn-quecmanager-beta/CONTROL/control +++ b/ipk-source/sdxpinn-quecmanager-beta/CONTROL/control @@ -1,5 +1,5 @@ Package: sdxpinn-quecmanager-beta -Version: 2.2.4 +Version: 2.2.3 Architecture: aarch64_cortex-a53 Maintainer: Russel Yasol dr-dolomite@github.com Cameron Thompson iamromulan@github.com Source: github.com/iamromulan diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/404.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/404.html index 5dd737a..cbd3ac2 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/404.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/404.html @@ -1 +1 @@ -404: This page could not be found.QuecManager

404

This page could not be found.

    \ No newline at end of file +404: This page could not be found.QuecManager

    404

    This page could not be found.

      \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/404/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/404/index.html index 5dd737a..cbd3ac2 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/404/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/404/index.html @@ -1 +1 @@ -404: This page could not be found.QuecManager

      404

      This page could not be found.

        \ No newline at end of file +404: This page could not be found.QuecManager

        404

        This page could not be found.

          \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/yuHNjFIc5H-qyPn3szdc-/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/28DYBuOMA5NUDDqpqBIcr/_buildManifest.js similarity index 95% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/yuHNjFIc5H-qyPn3szdc-/_buildManifest.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/28DYBuOMA5NUDDqpqBIcr/_buildManifest.js index e2c9d20..64643be 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/yuHNjFIc5H-qyPn3szdc-/_buildManifest.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/28DYBuOMA5NUDDqpqBIcr/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-cb90f27adf2fb914.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/yuHNjFIc5H-qyPn3szdc-/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/28DYBuOMA5NUDDqpqBIcr/_ssgManifest.js similarity index 100% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/yuHNjFIc5H-qyPn3szdc-/_ssgManifest.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/28DYBuOMA5NUDDqpqBIcr/_ssgManifest.js diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/37qqgHQHJq3PEiY10zXw4/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/37qqgHQHJq3PEiY10zXw4/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/37qqgHQHJq3PEiY10zXw4/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/37qqgHQHJq3PEiY10zXw4/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/37qqgHQHJq3PEiY10zXw4/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/37qqgHQHJq3PEiY10zXw4/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/3ICJyTfxR9XYtAS-kpANh/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/3ICJyTfxR9XYtAS-kpANh/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/3ICJyTfxR9XYtAS-kpANh/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/3ICJyTfxR9XYtAS-kpANh/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/3ICJyTfxR9XYtAS-kpANh/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/3ICJyTfxR9XYtAS-kpANh/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/8KEGh7PNDWPjxgfaZ18av/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/8KEGh7PNDWPjxgfaZ18av/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/8KEGh7PNDWPjxgfaZ18av/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/8KEGh7PNDWPjxgfaZ18av/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/8KEGh7PNDWPjxgfaZ18av/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/8KEGh7PNDWPjxgfaZ18av/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/9vo0aXb0uub-Az8MCUlzi/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/9vo0aXb0uub-Az8MCUlzi/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/9vo0aXb0uub-Az8MCUlzi/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/9vo0aXb0uub-Az8MCUlzi/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/9vo0aXb0uub-Az8MCUlzi/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/9vo0aXb0uub-Az8MCUlzi/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/CLEsEyocYsreIdPoy58DO/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/CLEsEyocYsreIdPoy58DO/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/CLEsEyocYsreIdPoy58DO/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/CLEsEyocYsreIdPoy58DO/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/CLEsEyocYsreIdPoy58DO/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/CLEsEyocYsreIdPoy58DO/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/DogtQgS5nJUaCphfRGIBM/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/DogtQgS5nJUaCphfRGIBM/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/DogtQgS5nJUaCphfRGIBM/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/DogtQgS5nJUaCphfRGIBM/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/DogtQgS5nJUaCphfRGIBM/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/DogtQgS5nJUaCphfRGIBM/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/J58vdXeOQEeiysj3vCOsG/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/J58vdXeOQEeiysj3vCOsG/_buildManifest.js new file mode 100644 index 0000000..23e62ef --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/J58vdXeOQEeiysj3vCOsG/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:22,errorRate:1e-4,numBits:422,numHashes:14,bitArray:[0,0,0,e,1,1,e,e,1,r,r,r,e,e,e,e,r,r,r,r,e,e,r,r,e,e,e,r,e,r,r,r,r,e,e,r,e,r,e,r,e,e,e,e,e,e,r,e,e,r,r,e,r,e,r,r,r,e,r,r,r,r,e,r,r,r,e,r,r,r,r,r,e,r,e,e,e,e,e,e,e,e,e,r,e,r,e,e,r,r,r,r,r,r,r,r,r,r,e,e,e,r,r,e,e,r,r,r,r,r,e,e,e,e,r,e,r,e,r,e,e,e,r,r,e,r,r,e,e,e,e,r,e,r,r,e,e,e,e,e,r,e,r,r,r,e,r,e,e,e,e,r,r,e,e,e,r,e,e,r,r,r,r,r,e,r,r,e,e,e,e,r,r,r,r,r,r,r,e,e,e,r,r,r,e,r,e,e,r,r,r,r,r,r,r,r,e,e,r,e,r,r,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,r,e,r,e,r,r,e,e,r,e,r,e,e,e,e,r,r,r,r,e,e,r,e,e,e,e,r,r,e,e,e,r,e,e,e,r,r,r,r,r,r,r,r,r,e,r,e,r,r,e,e,e,e,r,r,r,r,e,r,r,e,e,r,e,r,e,e,r,r,e,e,e,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,e,e,e,r,e,e,r,e,e,r,e,r,e,e,r,e,e,e,r,e,e,r,r,r,e,e,e,r,r,r,e,r,e,e,r,r,e,e,r,r,r,e,e,e,e,e,r,e,r,e,e,r,r,r,r,r,e,r,e,e,e,e,r,e,e,e,e,r,e,r,r,e,r,r,r,r,r,e,r,r,e,r,r,e,r,r,r,r,r,e,r,r,r,r,e,r,e,e,r,e,e,r,e,r,r,r,e,e,r,e,e,e,e,r,e,e,r,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/J58vdXeOQEeiysj3vCOsG/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/J58vdXeOQEeiysj3vCOsG/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/J58vdXeOQEeiysj3vCOsG/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QxgjYoAMhByZwLHIeWqva/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QxgjYoAMhByZwLHIeWqva/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QxgjYoAMhByZwLHIeWqva/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QxgjYoAMhByZwLHIeWqva/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QxgjYoAMhByZwLHIeWqva/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QxgjYoAMhByZwLHIeWqva/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/SPL3CXvZbEOitxEPpx1-D/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/SPL3CXvZbEOitxEPpx1-D/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/SPL3CXvZbEOitxEPpx1-D/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/SPL3CXvZbEOitxEPpx1-D/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/SPL3CXvZbEOitxEPpx1-D/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/SPL3CXvZbEOitxEPpx1-D/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/Un-ym4UMWvWnxj7ICGng5/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/Un-ym4UMWvWnxj7ICGng5/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/Un-ym4UMWvWnxj7ICGng5/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/Un-ym4UMWvWnxj7ICGng5/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/Un-ym4UMWvWnxj7ICGng5/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/Un-ym4UMWvWnxj7ICGng5/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/XSWpQuq3OZ_Frpsbri7WD/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/XSWpQuq3OZ_Frpsbri7WD/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/XSWpQuq3OZ_Frpsbri7WD/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/XSWpQuq3OZ_Frpsbri7WD/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/XSWpQuq3OZ_Frpsbri7WD/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/XSWpQuq3OZ_Frpsbri7WD/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/aQYSX0Otqpuch2NG2x3cp/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/aQYSX0Otqpuch2NG2x3cp/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/aQYSX0Otqpuch2NG2x3cp/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/aQYSX0Otqpuch2NG2x3cp/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/aQYSX0Otqpuch2NG2x3cp/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/aQYSX0Otqpuch2NG2x3cp/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/f4898fe8-d8671d2103ca807a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0d696766-f8433f3082fb824f.js similarity index 99% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/f4898fe8-d8671d2103ca807a.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0d696766-f8433f3082fb824f.js index e701033..b05c0fa 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/f4898fe8-d8671d2103ca807a.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0d696766-f8433f3082fb824f.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8465],{60061:(e,t,l)=>{l.d(t,{Ay:()=>ap});var a=l(12115),c=["title"],r=["title"],h=["title"],n=["title"],m=["title"],i=["title"],v=["title"],E=["title"],z=["title"],f=["title"],p=["title"],w=["title"],s=["title"],d=["title"],M=["title"],F=["title"],H=["title"],o=["title"],g=["title"],u=["title"],x=["title"],D=["title"],B=["title"],L=["title"],V=["title"],A=["title"],y=["title"],C=["title"],k=["title"],S=["title"],W=["title"],b=["title"],G=["title"],T=["title"],N=["title"],O=["title"],R=["title"],I=["title"],P=["title"],K=["title"],U=["title"],Z=["title"],Y=["title"],J=["title"],j=["title"],Q=["title"],_=["title"],X=["title"],q=["title"],$=["title"],ee=["title"],et=["title"],el=["title"],ea=["title"],ec=["title"],er=["title"],eh=["title"],en=["title"],em=["title"],ei=["title"],ev=["title"],eE=["title"],ez=["title"],ef=["title"],ep=["title"],ew=["title"],es=["title"],ed=["title"],eM=["title"],eF=["title"],eH=["title"],eo=["title"],eg=["title"],eu=["title"],ex=["title"],eD=["title"],eB=["title"],eL=["title"],eV=["title"],eA=["title"],ey=["title"],eC=["title"],ek=["title"],eS=["title"],eW=["title"],eb=["title"],eG=["title"],eT=["title"],eN=["title"],eO=["title"],eR=["title"],eI=["title"],eP=["title"],eK=["title"],eU=["title"],eZ=["title"],eY=["title"],eJ=["title"],ej=["title"],eQ=["title"],e_=["title"],eX=["title"],eq=["title"],e$=["title"],e1=["title"],e2=["title"],e3=["title"],e0=["title"],e4=["title"],e5=["title"],e6=["title"],e7=["title"],e8=["title"],e9=["title"],te=["title"],tt=["title"],tl=["title"],ta=["title"],tc=["title"],tr=["title"],th=["title"],tn=["title"],tm=["title"],ti=["title"],tv=["title"],tE=["title"],tz=["title"],tf=["title"],tp=["title"],tw=["title"],ts=["title"],td=["title"],tM=["title"],tF=["title"],tH=["title"],to=["title"],tg=["title"],tu=["title"],tx=["title"],tD=["title"],tB=["title"],tL=["title"],tV=["title"],tA=["title"],ty=["title"],tC=["title"],tk=["title"],tS=["title"],tW=["title"],tb=["title"],tG=["title"],tT=["title"],tN=["title"],tO=["title"],tR=["title"],tI=["title"],tP=["title"],tK=["title"],tU=["title"],tZ=["title"],tY=["title"],tJ=["title"],tj=["title"],tQ=["title"],t_=["title"],tX=["title"],tq=["title"],t$=["title"],t1=["title"],t2=["title"],t3=["title"],t0=["title"],t4=["title"],t5=["title"],t6=["title"],t7=["title"],t8=["title"],t9=["title"],le=["title"],lt=["title"],ll=["title"],la=["title"],lc=["title"],lr=["title"],lh=["title"],ln=["title"],lm=["title"],li=["title"],lv=["title"],lE=["title"],lz=["title"],lf=["title"],lp=["title"],lw=["title"],ls=["title"],ld=["title"],lM=["title"],lF=["title"],lH=["title"],lo=["title"],lg=["title"],lu=["title"],lx=["title"],lD=["title"],lB=["title"],lL=["title"],lV=["title"],lA=["title"],ly=["title"],lC=["title"],lk=["title"],lS=["title"],lW=["title"],lb=["title"],lG=["title"],lT=["title"],lN=["title"],lO=["title"],lR=["title"],lI=["title"],lP=["title"],lK=["title"],lU=["title"],lZ=["title"],lY=["title"],lJ=["title"],lj=["title"],lQ=["title"],l_=["title"],lX=["title"],lq=["title"],l$=["title"],l1=["title"],l2=["title"],l3=["title"],l0=["title"],l4=["title"],l5=["title"],l6=["title"],l7=["title"],l8=["title"],l9=["title"],ae=["title"],at=["title"],al=["title"],aa=["title"],ac=["title"],ar=["title"],ah=["title"],an=["title"],am=["title"],ai=["title"],av=["title"],aE=["title"];function az(){return(az=Object.assign||function(e){for(var t=1;t=0||(c[l]=e[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(c[l]=e[l])}return c}let ap={AC:function(e){var t=e.title,l=af(e,c);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M440.1 181.1c-.1 39.2-6.4 81.4-57.4 101.5-51.1-20.1-57.3-62.3-57.4-101.5h114.8z"}),a.createElement("path",{fill:"#29DBFF",d:"M439.6 197.7c-2.8 34.9-12.4 67.4-57 85-44.4-17.6-54.5-51.2-56.9-84.9"}),a.createElement("path",{fill:"#FFF",d:"M437.8 214.1c-3.2 24.3-16.7 53.5-55.1 68.6-38.4-15.1-50.5-42.5-55.1-68.4"}),a.createElement("path",{fill:"#29DBFF",d:"M434.2 230.3c-5.7 17.7-19.3 39.4-51.3 52.8-32-12.6-45.2-33.8-51.4-53"}),a.createElement("path",{fill:"#FFF",d:"M426.7 246.9c-6.5 11.3-17.7 25.4-44 35.9-27.5-11.5-37.4-25.3-44-36.1"}),a.createElement("path",{fill:"#29DBFF",d:"M412.4 265.1c-8.1 7.2-12 11.2-29.6 17.9-20.1-7.9-22.6-11.6-29.2-17.5"}),a.createElement("path",{fill:"#5CC85C",d:"M383.3 231.6c-.2-.2-27.9 35.7-27.9 35.7-1.8-1.3-10-9.5-13.3-15l41.3-50.1 40.2 49.7c-3.9 6.5-11.4 13.6-13.2 15M382.6 85.3l-26.5 45h53z"}),a.createElement("ellipse",{transform:"rotate(-82.3 291.431 225.686)",fill:"#F7A226",cx:291.4,cy:225.7,rx:48.7,ry:15.7}),a.createElement("ellipse",{transform:"rotate(-68.099 303.087 164.67)",fill:"#DDC7AB",cx:303.1,cy:164.7,rx:11.7,ry:7.2}),a.createElement("ellipse",{transform:"rotate(-81.738 291.697 271.697)",fill:"#DDC7AB",cx:291.7,cy:271.7,rx:11.4,ry:3.3}),a.createElement("ellipse",{transform:"matrix(.9986 -.05353 .05353 .9986 -13.992 16.424)",fill:"#DDC7AB",cx:299.6,cy:269.4,rx:3.3,ry:11}),a.createElement("ellipse",{transform:"rotate(-21.518 314.54 201.06)",fill:"#DDC7AB",cx:314.5,cy:201.1,rx:4.1,ry:13.7}),a.createElement("ellipse",{transform:"rotate(-21.518 317.511 178.077)",fill:"#DDC7AB",cx:317.5,cy:178.1,rx:13.7,ry:4.1}),a.createElement("ellipse",{transform:"rotate(-7.7 473.781 225.857)",fill:"#F7A226",cx:473.6,cy:225.9,rx:15.7,ry:48.7}),a.createElement("ellipse",{transform:"rotate(-21.901 462.057 164.866)",fill:"#DDC7AB",cx:462,cy:164.9,rx:7.2,ry:11.7}),a.createElement("ellipse",{transform:"rotate(-8.27 473.27 271.908)",fill:"#DDC7AB",cx:473.4,cy:271.9,rx:3.3,ry:11.4}),a.createElement("ellipse",{transform:"matrix(.05353 -.9986 .9986 .05353 171.34 719.998)",fill:"#DDC7AB",cx:465.5,cy:269.6,rx:11,ry:3.3}),a.createElement("ellipse",{transform:"rotate(-68.482 450.552 201.247)",fill:"#DDC7AB",cx:450.6,cy:201.2,rx:13.7,ry:4.1}),a.createElement("ellipse",{transform:"rotate(-68.482 447.58 178.265)",fill:"#DDC7AB",cx:447.6,cy:178.3,rx:4.1,ry:13.7}),a.createElement("path",{fill:"#B0C6CC",d:"M373.3 130.3 356.1 155l17.8 26.1H396l4.7-25.4-5.4-25.4z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{fill:"#D80027",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}))},AD:function(e){var t=e.title,l=af(e,r);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342zM198.9 113.6H256v64.8h-57.1z"}),a.createElement("path",{d:"M267.6 113.6v64.7m16.6-64.7v64.7m16.6-64.7v64.7",stroke:"#D80027",strokeWidth:7}),a.createElement("path",{d:"M247.4 178.4v64.7m-13.3-64.7v64.7m-13.3-64.6v53.9m-13.7-53.9v47.1",stroke:"#D80027",strokeWidth:5}),a.createElement("path",{fill:"#FFDA44",d:"m199.9 146 27.6-32.4 28.5 32.3-28.1 32.4z"}),a.createElement("path",{fill:"#BC8B00",d:"M182.2 95.9v92.2c0 34.3 27.3 54.2 48.6 64.5-.8 1.4 25.1 8.3 25.1 8.3s25.9-6.9 25.1-8.3c21.4-10.3 48.6-30.1 48.6-64.5V95.9H182.2zm129.9 92.2c0 16.9-10 29.4-32.8 43.9-8.6 5.5-17.5 9-23.3 11-5.8-2-14.7-5.5-23.3-11-22.8-14.5-32.8-28-32.8-43.9v-74.5h112.2v74.5z"}),a.createElement("path",{fill:"#D80027",d:"M264.4 188.9h29.5v8.6h-29.5zm0 17.6h29.5v8.6h-29.5z"}))},AE:function(e){var t=e.title,l=af(e,h);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#009e49",d:"M0 0h513v114H0z"}),a.createElement("path",{d:"M0 228h513v114H0z"}),a.createElement("path",{fill:"#ce1126",d:"M0 0h171v342H0z"}))},AF:function(e){var t=e.title,l=af(e,n);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#DB3E00",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#479900",d:"M331 0h182v342H331z"}),a.createElement("path",{d:"M0 0h181.8v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 126.7c-19.4 0-35.2 15.8-35.2 35.2v52.8h70.4v-52.8c0-19.5-15.8-35.2-35.2-35.2z"}),a.createElement("path",{fill:"#FFF",d:"M256 84.3c-47.7 0-86.4 38.7-86.4 86.4S208.3 257 256 257s86.4-38.7 86.4-86.4-38.7-86.3-86.4-86.3zm0 157.7c-39.4 0-71.4-32-71.4-71.4 0-39.4 32-71.4 71.4-71.4 39.4 0 71.4 32 71.4 71.4 0 39.5-32 71.4-71.4 71.4z"}))},AG:function(e){var t=e.title,l=af(e,m);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0072c6",d:"M88.8 136.5c-2.2 12.9-3.4 26.2-3.4 39.8 0 13.6 1.2 27 3.4 39.8L256 228.3l167.2-12.1c2.2-12.9 3.4-26.2 3.4-39.8s-1.2-27-3.4-39.8"}),a.createElement("path",{fill:"#FFF",d:"M423.2 219H88.8c15.8 69.8 84.7 122.3 167.2 122.3S407.4 288.8 423.2 219z"}),a.createElement("path",{fill:"#FFDA44",d:"M365.9 136.5H146.1l44.9-21.1-23.9-43.5 48.8 9.4L222 32l34 36.2L290 32l6.1 49.3 48.8-9.4-23.9 43.5z"}),a.createElement("g",{fill:"#ce1126"},a.createElement("path",{d:"M256.5 342 0 0v342z"}),a.createElement("path",{d:"M513 342V0L256 342z"})))},AI:function(e){var t=e.title,l=af(e,i);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#00318b",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M454.8 265.38c7.94-10.93 13.24-24.27 13.24-40.42V104.89a59.754 59.754 0 0 1-36.02 12.01c-19.64 0-37.07-9.43-48.03-24.01-10.95 14.58-28.39 24.01-48.03 24.01-13.52 0-25.99-4.47-36.02-12v120.06c0 16.16 5.3 29.5 13.24 40.42H454.8z"}),a.createElement("path",{fill:"#8DCCFF",d:"M310.23 260.98C332.65 296.96 384 309 384 309s51.35-12.04 73.77-48.02H310.23z"}),a.createElement("path",{fill:"#D87B00",d:"M396.66 172.21c.32 1.42 8.72 10.17 17.56 20.15 1.39 1.57-8.74 12.63-6.91 12.59 4.75-.12 19.27-17.26 19.34 6.65.05 15.94-30 27.51-30 27.51h17.47l.65 14.96s4.97-13.34 7.59-16.57c8.1-9.97 20.18-30.07 34.59-27.1 14.41 2.97-13.66-13.92-13.66-13.92s-5.2-15.19-16.63-16.97c-10.06-1.57-14.29-2.51-26.64-7.3-1.68-.65-3.88-2.32-3.36 0z"}),a.createElement("path",{fill:"#D87B00",d:"M359.69 198.69c1.07-.99 4.46-12.63 8.69-25.28.67-1.99 15.31 1.27 14.35-.3-2.47-4.06-24.58-8.08-3.9-20.08 13.79-8 38.82 12.27 38.82 12.27l-8.72-15.14 12.64-8.03s-14.05 2.35-18.14 1.69c-12.68-2.04-36.13-2.48-40.75-16.45-4.62-13.97-5.25 18.79-5.25 18.79s-10.56 12.08-6.4 22.88c3.66 9.5 4.96 13.64 6.97 26.73.29 1.79-.06 4.53 1.69 2.92z"}),a.createElement("path",{fill:"#D87B00",d:"M395.67 219.87c-1.39-.43-13.16 2.49-26.22 5.18-2.06.42-6.59-13.88-7.47-12.26-2.27 4.17 5.36 25.31-15.41 13.45-13.84-7.91-8.89-39.73-8.89-39.73l-8.71 15.14-13.29-6.9s9.09 10.96 10.57 14.84c4.6 11.99 16 32.49 6.24 43.49-9.76 11.01 18.88-4.9 18.88-4.9s15.76 3.07 23-5.96c6.38-7.94 9.3-11.14 19.61-19.45 1.43-1.12 3.97-2.19 1.69-2.9z"}),a.createElement("path",{fill:"#FFF",d:"M256.5 0h-23.1L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1V171h22.6L96 121.8V171h64v-49.2l73.4 49.2h23.1v-22.9l-46.6-30.7h46.6v-64h-46.6l46.6-30.7z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112V171h32v-69.6h112.5v-32H144z"}),a.createElement("path",{fill:"#D80027",d:"M0 171v-11.3l62.5-42.3h22.6L7.3 171zM7.3.1l77.8 53.2H62.5L0 11.1V.1zm249.2 0v11l-63 42.3h-22.6L248.7.1zM248.7 171l-77.8-53.6h22.6l63 42.3V171z"}))},AL:function(e){var t=e.title,l=af(e,v);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ED2024",d:"M0 0h90v60H0z"}),a.createElement("path",{fill:"#212121",d:"M32.5 12.2v16l7.1 2.5-5 4.9 2.4 3 5.3-5.5 1.2 2.3-3 4.9 3.6 5.6-1.8 2.6 2.8 3.6 2.7-3.7-1.5-2.6 3-5.8-2.7-4.6 1.2-2.3 5.2 5.5 2.5-2.9-5.2-5.1 7.2-2.6V12.2l-5.2 1.9-.1 3.8-3.3.3v-2.6l1.7-2.3 5.6-2.2-2.3-.4 1.4-1.2.9.4-.8-1.4L54 9l-1-1.1L47.5 9l1.4 1.1-3.8 4.9-3.8-4.8 1.3-1.1-5-1.2L36.2 9l-1.5-.4-.8 1.4.9-.6 1.6 1.1-2.3.5 5.5 2 1.6 2.3v2.9l-3.3-.3v-3.6z"}),a.createElement("path",{d:"M26.2 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM57.4 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM53.4 36.1h6.4V38h-6.4zm-23.2 0h6.4V38h-6.4z",fill:"#212121"}))},AM:function(e){var t=e.title,l=af(e,E);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#FF9811",d:"M0 228h513v114H0z"}))},AO:function(e){var t=e.title,l=af(e,z);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 171h513v171H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v171H0z"}),a.createElement("g",{fill:"#FFDA44"},a.createElement("path",{d:"m332.7 135.6 17.5-8.6-7.4-19-18.7 6.2zm-45.6-56 5.5-18.8-19.1-7.2-8 18zm29.4 23.2 12.2-15.3-14.9-13.9-14.2 13.6zm19.4 68.9 19.5-.8v-21.3l-22.9.2zm-12.6 38.1 18.8 5.5 7.3-19-18-8zm-29 32.4 14.9 12.7 14.4-14.4-13.1-14.7zm-47-147.7 9.8 19.9 21.9 3.3-15.9 15.5 3.6 21.9-19.6-10.4-19.7 10.2 3.8-21.9-15.8-15.5 22-3.1z"}),a.createElement("path",{d:"m250.8 61.3-2.7 18.3c43.1 3.2 77 39.2 77 83.1 0 46-37.3 82.9-83.4 83.4-29.2.3-51.3-14.8-67-33.7l-13.9 12.3c15 19 40.8 39.9 80.9 39.9 56.3 0 101.9-45.6 101.9-101.9.1-53.2-40.7-96.9-92.8-101.4z"}),a.createElement("path",{fill:"#000",d:"m291.9 223.4-11.8 14s51.9 38.9 53.6 40.4c1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-2-1.5-51.8-42-51.8-42z"}),a.createElement("path",{d:"M206.1 157.2c-7.7 10.3-7.5 23.1 2.8 30.9 0 0 135.2 101.5 136.9 103 1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-1.9-1.5-149.7-121.5-149.7-121.5zm47.7 99.1 7.3 18.2 19.5-6-4.8-19.1zm-40.4-3.7-2 19.5 20.1 3.6 4.5-19.1zm-35.7-21.2L167.4 248l16.4 12.1 12.5-15.2z"})))},AQ:function(e){var t=e.title,l=af(e,f);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 744 496"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#3A7DCE",d:"M0 0h744v496H0V0z"}),a.createElement("path",{fill:"#fff",d:"m120 125 90 63 54-14 23-81 61-36 92 14 105 55 6 90 34 12v92l-65 115-78 24-72-17 18-30-8-32-10 9-162-25-49-85 20-46-49-62z"}))},AR:function(e){var t=e.title,l=af(e,p);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 0h512v114H0zm0 228h512v114H0z"}),a.createElement("circle",{fill:"#FFDA44",stroke:"#d6ab00",strokeWidth:5,cx:256.5,cy:171,r:40}))},AS:function(e){var t=e.title,l=af(e,w);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M513 33 95.3 171 513 310.76V342L0 171 513 0z"}),a.createElement("path",{fill:"#FFF",d:"M513 287.18v24.58L81.72 171 513 30v24.16"}),a.createElement("path",{fill:"#A2001D",d:"m476.98 140.21-21.89 10.68-3.18-15.32 31.19-29.77s-9.42-40.65-13.75-44.98l-112.32 55.82-6.84 36.76-31.9 28.59-.4 34.2 34.29-22.76 67.23-2.66-1.51 38.11h22.23l11.9-44.64 31.55-24.61-6.6-19.42z"}),a.createElement("path",{fill:"#EFC100",stroke:"#231F20",strokeMiterlimit:10,d:"m317.89 238.41-22.24-11.11 22.24-11.11h144.46v22.22z"}))},AT:function(e){var t=e.title,l=af(e,s);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0zm0 228h513v114H0z"}))},AU:function(e){var t=e.title,l=af(e,d);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M222.2 170.7c.3-.3.5-.6.8-.9-.2.3-.5.6-.8.9zM188 212.6l11 22.9 24.7-5.7-11 22.8 19.9 15.8-24.8 5.6.1 25.4-19.9-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9L332 136zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm42.5 49.7 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.4-7.6-9.5 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zM398 166.5l4.1 12.7h13.3l-10.8 7.8 4.2 12.7-10.8-7.9-10.8 7.9 4.1-12.7-10.7-7.8h13.3z"}),a.createElement("path",{d:"M254.8 0v30.6l-45.1 25.1h45.1V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9H99v-48.6l-87.4 48.6H-1.2v-30.6L44 115H-1.2V55.7h59.1L-1.2 22.8V0h26.7L99 40.8V0h55.6v48.6L242.1 0z"})),a.createElement("path",{fill:"#D80027",d:"M142.8 0h-32v69.3h-112v32h112v69.4h32v-69.4h112v-32h-112z"}),a.createElement("path",{fill:"#0052B4",d:"m154.6 115 100.2 55.7v-15.8L183 115z"}),a.createElement("path",{fill:"#FFF",d:"m154.6 115 100.2 55.7v-15.8L183 115z"}),a.createElement("path",{d:"m154.6 115 100.2 55.7v-15.8L183 115zm-83.9 0-71.9 39.9v15.8L99 115z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M99 55.7-1.2 0v15.7l71.9 40z"}),a.createElement("path",{fill:"#FFF",d:"M99 55.7-1.2 0v15.7l71.9 40z"}),a.createElement("path",{d:"M99 55.7-1.2 0v15.7l71.9 40zm84 0 71.8-40V0L154.6 55.7z",fill:"#D80027"}))},AW:function(e){var t=e.title,l=af(e,M);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 363 242"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 0h363v242H0z"}),a.createElement("path",{fill:"#FFF",d:"M57 96.9 14.7 78.2 57 59.6l18.6-42.2 18.6 42.2 42.3 18.6-42.3 18.7-18.6 42.2z"}),a.createElement("path",{fill:"#f30028",d:"m75.6 40.6 11.5 26.1 26.1 11.5-26.1 11.5-11.5 26.1-11.5-26.1L38 78.2l26.1-11.5z"}),a.createElement("path",{d:"M0 152.2h363v15.7H0zm0 31.4h363v15.7H0z",fill:"#FFDA44"}))},AX:function(e){var t=e.title,l=af(e,F);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M513 210.9H202.2V342h-79.8V210.9H0v-79.8h122.4V0h79.8v131.1H513v61.2z"}),a.createElement("path",{fill:"#D80027",d:"M513 149.7v42.6H183.7V342H141V192.3H0v-42.6h141V0h42.7v149.7z"}))},AZ:function(e){var t=e.title,l=af(e,H);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ef3340",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00b5e2",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#509e2f",d:"M0 228h513v114H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M265.6 212.6c-23 0-41.6-18.6-41.6-41.6s18.6-41.6 41.6-41.6c7.2 0 13.9 1.8 19.8 5-9.2-9-21.9-14.6-35.8-14.6-28.3 0-51.2 22.9-51.2 51.2s22.9 51.2 51.2 51.2c13.9 0 26.6-5.6 35.8-14.6-5.9 3.2-12.6 5-19.8 5z"}),a.createElement("path",{d:"m297.6 142.2 5.5 15.5 14.9-7.1-7.1 14.9 15.5 5.5-15.5 5.5 7.1 14.9-14.9-7.1-5.5 15.5-5.5-15.5-14.9 7.1 7.1-14.9-15.5-5.5 15.5-5.5-7.1-14.9 14.9 7.1z"})))},BA:function(e){var t=e.title,l=af(e,o);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#10338C",d:"M0 0h513.1v342H0z"}),a.createElement("path",{fill:"#F6C500",d:"M99.9 0h342v342"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M19.9 21.1 40.3 6.2 60.9 21 54 0H26.7z"}),a.createElement("path",{d:"M92.3 25.5 84.4 1.3l-7.8 24.2H51.3l20.5 14.8-7.8 24 20.4-14.8L105 64.3l-7.9-24 20.5-14.9z"}),a.createElement("path",{d:"m136.3 69.2-7.8-24-7.8 24H95.5l20.4 14.9-7.8 24 20.4-14.8 20.6 14.8-7.8-24 20.4-14.9z"}),a.createElement("path",{d:"m179.4 112.3-7.8-24.1-7.8 24.1h-25.3l20.5 14.9-7.8 24 20.4-14.8 20.6 14.8-7.9-24 20.5-15z"}),a.createElement("path",{d:"m222.5 155.3-7.8-24-7.8 24h-25.4l20.6 15-7.8 24 20.4-14.9 20.4 14.9-7.8-24 20.6-15z"}),a.createElement("path",{d:"m265.6 198.4-7.8-24-7.8 24h-25.4l20.6 14.9-7.8 24.1 20.4-14.9 20.4 14.9-7.8-24.2 20.5-14.8z"}),a.createElement("path",{d:"m308.7 241.5-7.9-24-7.8 24h-25.3l20.5 14.8-7.9 24.2 20.6-14.9 20.4 14.8-7.8-24.1 20.5-14.8z"}),a.createElement("path",{d:"m351.7 284.6-7.8-24.2-7.8 24.2h-25.3l20.4 14.8-7.8 24.1 20.5-14.9 20.5 14.9-7.8-24.1 20.4-14.8z"}),a.createElement("path",{d:"m387 303.5-7.9 24.1-25.3.1 19.8 14.3h26.6l19.9-14.4h-25.3z"})))},BB:function(e){var t=e.title,l=af(e,g);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ffc726",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#00267f"}),a.createElement("path",{d:"m325.74 101.02-31.97 12.4c-.68 1.35-5.79 7.54-8.18 53.06h-17.05v-60.42L256 78.68l-12.54 27v60.8H226.4c-2.39-45.53-7.8-52.48-8.47-53.84l-31.68-11.63c.15.31 15.4 31.34 15.4 78.01v12.54h41.81v71.07h25.08v-71.07h41.81v-12.54c0-24.13 4.17-44.02 7.68-56.46 3.82-13.57 7.7-21.49 7.74-21.57l-.03.03z"}))},BD:function(e){var t=e.title,l=af(e,u);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#2d6e41",d:"M0 85.331h513v342H0z"}),a.createElement("circle",{fill:"#F40B32",cx:218.902,cy:256.5,r:115}))},BE:function(e){var t=e.title,l=af(e,x);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#fdda25",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#ef3340",d:"M342 0h171v342H342z"}))},BF:function(e){var t=e.title,l=af(e,D);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#3d944f",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#ef2b2d",d:"M0 0h513v171H0z"}),a.createElement("path",{fill:"#FFDA44",d:"m256 102.6 16.9 52h54.7l-44.2 32.2 16.8 52-44.2-32.1-44.2 32.1 16.8-52-44.2-32.2h54.7z"}))},BG:function(e){var t=e.title,l=af(e,B);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#00966e",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#d62612",d:"M0 228h513v114H0z"}))},BH:function(e){var t=e.title,l=af(e,L);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"m222.8 34.3-85.2 34.2 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.8H0V0h137.6z"}))},BI:function(e){var t=e.title,l=af(e,V);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M215.9 170.7 0 314.6V26.8zM513 26.8v287.8L297.1 170.7z",fill:"#47a644"}),a.createElement("path",{fill:"#0052B4",d:"M513 26.8 296.1 170.7 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z"}),a.createElement("path",{fill:"#FFF",d:"M513 26.8 297.1 170.7 513 314.6V342h-40L256 197.4 39 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z"}),a.createElement("circle",{fill:"#FFF",cx:251.6,cy:170.7,r:100.2}),a.createElement("path",{d:"m251.4 103.6 7.4 12.9h14.8l-7.4 12.8 7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8H244zm38.8 66.7 7.4 12.9h14.8L305 196l7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.9l7.4-12.8-7.4-12.8h14.9zm-77.2 0 7.4 12.9h14.9l-7.4 12.8 7.4 12.8h-14.9l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8h14.8z",fill:"#D80027",stroke:"#47a644",strokeWidth:3}))},BJ:function(e){var t=e.title,l=af(e,A);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#008751",d:"M0 85.333h513v342H0z"}),a.createElement("path",{fill:"#fcd116",d:"M196.666 85.333H513v171H196.666z"}),a.createElement("path",{fill:"#e8112d",d:"M196.666 256H513v171H196.666z"}))},BL:function(e){var t=e.title,l=af(e,y);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#E6BC00",d:"M157.31 199.76s-9.04 43.93-19.31 40.39c-10.62-3.54-17.53-18.76-17.53-18.76l-14.52 21.24s38.18 8.48 41.01 5.47c1.22-1.14 8.21-15.1 10.34-26.05v-22.29zm-56.13 60.57s-2.48 20.18-1.06 22.66c1.24 2.3 39.48 11.33 39.48 11.33s-24.96 16.46-29.74 20.54L91.8 284.94l-.71-24.61h10.09zm11.33-165.69s39.65 41.6 40.36 45.5c.71 3.72-4.25 3.19-4.25 3.19s-44.79-37.53-49.92-41.07c-5.31-3.55 13.81-7.62 13.81-7.62z"}),a.createElement("path",{fill:"#ADADAD",d:"M99.41 104.73s16.99-.71 16.64-11.51c-.35-10.62-11.15-14.87-19.12-12.39-7.97 2.3-23.01 13.45-13.63 35.05 9.38 21.42 23.37 29.39 26.2 47.8 0 0-5.46 9.86-19.12.35-16.9-11.77-6.2-38.24-10.44-44.96-4.25-7.08-40.95-38.92-40.95-38.92s-30.24 39.37-18 74.92c16.95 49.21 51.74 31.98 64.61 36.76 0 0-42.13 61.96-49.57 67.09 0 0 24.08 8.32 47.8-18.76 0 0 5.84 9.74 7.08 20.18h10.27c4.78-26.2 51.51-64.26 49.92-82.32-1.77-21.25-49.21-49.39-51.69-73.29z"}),a.createElement("path",{fill:"#E6BC00",d:"M359.17 201.27s8.96 42.43 19.23 38.89c10.62-3.54 17.53-18.76 17.53-18.76l14.52 21.24s-37 8.48-39.83 5.47c-1.21-1.14-9.32-13.79-11.52-24.66l.07-22.18zm56.05 59.06s2.48 20.18 1.06 22.66c-1.24 2.3-39.48 11.33-39.48 11.33s24.96 16.46 29.74 20.54l18.06-29.92.71-24.61h-10.09zM403.89 94.64s-39.65 41.6-40.36 45.5c-.71 3.72 4.25 3.19 4.25 3.19s44.79-37.53 49.92-41.07c5.14-3.55-13.81-7.62-13.81-7.62z"}),a.createElement("path",{fill:"#125ECC",d:"M157.31 87.06H359.1v145.46c0 16.06-9.69 21.39-21.91 31.85l-45.92 39.41c-18.25 15.62-47.91 15.57-66.07 0l-46.01-39.43c-12.08-10.35-21.88-15.71-21.88-31.82V87.06z"}),a.createElement("path",{fill:"#FFE600",d:"M200.55 147.71c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65-3c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65 3c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zM214.96 274.43c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41c.01 7.96-6.45 14.41-14.41 14.41zm43.24 14.42c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41c0 7.95-6.45 14.41-14.41 14.41zm43.24-14.42c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41z"}),a.createElement("path",{fill:"#D60537",d:"M157.31 175.36H359.1v57.65H157.31v-57.65z"}),a.createElement("path",{fill:"#EACE00",d:"M142.9 43.82s57.65-14.41 115.31-14.41 115.31 14.41 115.31 14.41l-14.41 57.65s-50.45-14.41-100.89-14.41-100.89 14.41-100.89 14.41L142.9 43.82z"}),a.createElement("path",{fill:"#7A6920",d:"M258.2 72.65c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65 5c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm-115.3 0c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41z"}),a.createElement("path",{fill:"#ADADAD",d:"M365.08 178.02c-1.59 18.06 45.14 56.12 49.92 82.32h10.27c1.24-10.44 7.08-20.18 7.08-20.18 23.72 27.09 47.8 18.76 47.8 18.76-7.44-5.13-49.57-67.09-49.57-67.09 12.88-4.78 47.67 12.45 64.61-36.76 12.24-35.55-18-74.92-18-74.92s-36.7 31.84-40.95 38.92c-4.25 6.73 6.46 33.2-10.44 44.96-13.66 9.51-19.12-.35-19.12-.35 2.83-18.41 16.82-26.38 26.2-47.8 9.38-21.6-5.66-32.75-13.63-35.05-7.97-2.48-18.76 1.77-19.12 12.39-.35 10.8 16.64 11.51 16.64 11.51-2.48 23.9-49.92 52.04-51.69 73.29z"}),a.createElement("circle",{fill:"#FFF",cx:258.2,cy:204.19,r:16.93}))},BM:function(e){var t=e.title,l=af(e,C);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#c8102e",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#012169",d:"M0 .1h256.5v171H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0h-22.6L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1v22.6h22.6L96 121.8v48.9h64v-48.9l73.4 48.9H256v-22.6l-46.1-30.7H256v-64h-46.1L256 22.7z"}),a.createElement("path",{fill:"#c8102e",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{fill:"#c8102e",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}),a.createElement("g",{transform:"translate(13 5)"},a.createElement("path",{fill:"#fff",d:"M303.9 94.94v99.69c0 59.81 79.75 99.69 79.75 99.69s79.75-39.88 79.75-99.69V94.94H303.9z"}),a.createElement("path",{fill:"#2F8F22",d:"M436.37 254.44H330.93c23.13 25.08 52.72 39.88 52.72 39.88s29.59-14.8 52.72-39.88z"}),a.createElement("circle",{fill:"#65B5D2",cx:383.65,cy:214.56,r:39.88}),a.createElement("circle",{fill:"#c8102e",cx:343.77,cy:194.63,r:19.94}),a.createElement("circle",{fill:"#c8102e",cx:423.52,cy:194.63,r:19.94}),a.createElement("circle",{fill:"#c8102e",cx:383.65,cy:154.75,r:19.94})))},BN:function(e){var t=e.title,l=af(e,k);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"m0 193.74 513 127.19V214.26L0 97.08z"}),a.createElement("path",{fill:"#FFF",d:"M513 234.26v-86.67L0 20.41v86.67"}),a.createElement("g",{fill:"#D80027",stroke:"#231F20",strokeWidth:3,strokeMiterlimit:10},a.createElement("path",{d:"M306.4 134.01a50.28 50.28 0 0 1 6.07 24.02c0 21.55-13.51 39.94-32.52 47.19v-59.51c5.7-1.19 10-6.37 10-12.59 6.9 0 12.5-5.75 12.5-12.85h-.42c6.9 0 12.91-5.75 12.91-12.85h-34.99V76.58l-14.99-27.71-15 27.71v30.84h-34.99c0 7.1 6.01 12.85 12.91 12.85h-.42c0 7.1 5.6 12.85 12.5 12.85 0 6.22 4.29 11.4 9.99 12.59v61.37c-22.09-5.39-38.48-25.3-38.48-49.05 0-8.7 2.2-16.88 6.07-24.02-10.96 11.21-17.72 26.53-17.72 43.44 0 34.32 27.82 62.15 62.15 62.15s62.15-27.83 62.15-62.15c0-16.91-6.77-32.24-17.72-43.44z"}),a.createElement("path",{d:"M198.46 226.81s20.69 27.71 66.5 27.71 66.5-27.71 66.5-27.71l13.47 28.37s-21.03 27.71-79.97 27.71-79.97-27.71-79.97-27.71l13.47-28.37zm-69.22-93.63h20.88l24.93 27.26v73.45h-26.28v-68.37zm270.76 0h-20.88l-24.93 27.26v73.45h26.27v-68.37z"})))},BO:function(e){var t=e.title,l=af(e,S);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#d52b1e",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#f9e300",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#007934",d:"M0 228h513v114H0z"}))},BQ:function(e){var t=e.title,l=af(e,W);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#012a87",d:"M0 342h513V0z"}),a.createElement("path",{fill:"#f9d90f",d:"M250.4 0H0v166.9z"}),a.createElement("path",{fill:"#dc171d",d:"m140.4 118.3 12.2 21.2h24.5l-12.3 21.1 12.3 21.2h-24.5L140.4 203l-12.2-21.2h-24.5l12.3-21.2-12.3-21.1h24.5z"}),a.createElement("circle",{fill:"none",stroke:"#000",strokeWidth:9,strokeMiterlimit:10,cx:140.4,cy:160.6,r:57.7}))},BR:function(e){var t=e.title,l=af(e,b);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#009b3a",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#fedf00",d:"m256.5 19.3 204.9 151.4L256.5 322 50.6 170.7z"}),a.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:80.4}),a.createElement("path",{fill:"#002776",d:"M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z"}))},BS:function(e){var t=e.title,l=af(e,G);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ffc72c",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#00778b"}),a.createElement("path",{d:"M256 171 0 342V0z"}))},BT:function(e){var t=e.title,l=af(e,T);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FF7415",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M513 0H0v342"}),a.createElement("path",{fill:"none",stroke:"#FFF",strokeWidth:42,strokeMiterlimit:10,d:"M128.7 255.5s35 54 67.3 32.4c56.9-37.9-68.9-108.6-2.9-152.6 58.3-38.8 76.6 103.5 137.6 62.8 59-39.3-64.7-111.4-9.2-148.4 33.4-22.2 67.1 32.6 67.1 32.6"}))},BV:function(e){var t=e.title,l=af(e,N);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 33.333 1100 733.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ef2b2d",d:"M0 0h1100v800H0z"}),a.createElement("path",{fill:"#fff",d:"M300 0h200v800H300z"}),a.createElement("path",{fill:"#fff",d:"M0 300h1100v200H0z"}),a.createElement("path",{fill:"#002868",d:"M350 0h100v800H350z"}),a.createElement("path",{fill:"#002868",d:"M0 350h1100v100H0z"}))},BW:function(e){var t=e.title,l=af(e,O);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 238h513v104H0zM0 0h513v104H0z",fill:"#6da9d2"}),a.createElement("path",{d:"M0 125.5h513v89.656H0z"}))},BY:function(e){var t=e.title,l=af(e,R);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#007C30",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#CE1720",d:"M0 230h513V0H0"}),a.createElement("path",{fill:"#FFF",d:"M100 230V0H0v342h513-413z"}),a.createElement("path",{d:"M28 159.6 8.6 128.2 28 97.4l19.3 30.8zm44.6 0-19.3-31.4 19.3-30.8L92 128.2zM28 241.2 8.6 209.8 28 179l19.3 30.8zm44.6 0-19.3-31.4L72.6 179 92 209.8z",fill:"#CE1720"}),a.createElement("path",{d:"m28 73.8-16.1-26L28 22.2l16 25.6zm44.6 0-16-26 16-25.6 16.1 25.6zM28 318l-16.1-26.1L28 266.3l16 25.6zm44.6 0-16-26.1 16-25.6 16.1 25.6z",fill:"none",stroke:"#CE1720",strokeWidth:7}))},BZ:function(e){var t=e.title,l=af(e,I);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#003e87",d:"M0 0h513v342H0z"}),a.createElement("circle",{fill:"#FFF",cx:260.9,cy:170.9,r:118.9}),a.createElement("circle",{fill:"none",stroke:"#6DA544",strokeWidth:18,strokeMiterlimit:10,cx:261.9,cy:173.1,r:94.5}),a.createElement("g",{stroke:"#000"},a.createElement("path",{fill:"#003e87",d:"m261.9 151.5-50.6 23.4v20c0 11.8 6.1 22.8 16.2 28.9L262 239l34.5-15.2c10-6.2 16.2-17.1 16.2-28.9v-20l-50.8-23.4z"}),a.createElement("path",{fill:"#FFDA44",d:"M211.3 128.1h101.3v46.7H211.3z"})),a.createElement("path",{d:"M0 0h513v35H0zm0 306h513v35H0z",fill:"#ce1127"}))},CA:function(e){var t=e.title,l=af(e,P);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h142v342H0zm371 0h142v342H371zm-64.5 206 50.4-25.2-25.2-12.6V143l-50.4 25.2 25.2-50.4h-25.2L256.1 80l-25.2 37.8h-25.2l25.2 50.4-50.4-25.2v25.2l-25.2 12.6 50.4 25.2-12.6 25.2h50.4V269h25.2v-37.8h50.4z",fill:"red"}))},CC:function(e){var t=e.title,l=af(e,K);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"green",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"m422.7 252.4 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.2V301l-11.1-8.9-11.1 8.9v-14.2l-13.8-3.2 11.1-8.8-6.2-12.8 13.9 3.2zm-46.6-136.3 6.2 12.9 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.1v14.3l-11.1-8.9-11.1 8.9.1-14.3-13.9-3.1 11.1-8.8-6.2-12.8L370 129zm37-77.8 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.9-13.9 3.1v14.2L413.1 78 402 86.9l.1-14.2-13.9-3.1 11.1-8.9-6.2-12.8 13.9 3.2zm51.8 58.4 6.2 12.8 13.9-3.2-6.3 12.8 11.2 8.9-13.9 3.1.1 14.2-11.2-8.9-11.1 8.9.1-14.2L440 128l11.2-8.9-6.3-12.8 13.9 3.2zm-28 68.1 4.9 14.8h15.6l-12.6 9.2 4.8 14.9-12.7-9.2-12.6 9.2 4.8-14.9-12.6-9.2h15.6zM306.8 254.7c-49.2 0-89.1-39.9-89.1-89.1s39.9-89.1 89.1-89.1c15.3 0 29.8 3.9 42.4 10.7C329.4 67.9 302.3 56 272.5 56c-60.5 0-109.6 49.1-109.6 109.6S212 275.3 272.5 275.3c29.8 0 56.9-11.9 76.6-31.3-12.6 6.8-27 10.7-42.3 10.7zM140.4 59.5C129.7 41 109.7 28.6 86.8 28.6S44 41 33.3 59.5h107.1zm.2.4-53.8 53.8-53.7-53.8C28 68.9 25 79.3 25 90.5c0 34.2 27.7 61.9 61.9 61.9s61.9-27.7 61.9-61.9c-.1-11.2-3.1-21.6-8.2-30.6z",fill:"#FFDA44"}),a.createElement("path",{fill:"#A2001D",d:"M71.4 98.2v52.2c4.9 1.3 10.1 1.9 15.5 1.9s10.5-.7 15.5-1.9V98.2h-31z"}))},CD:function(e){var t=e.title,l=af(e,U);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M513 66.9V0H411.7L0 274.4V342h100.3z"}),a.createElement("path",{fill:"#D80027",d:"M513 0v40.1L60.2 342H0v-40.8L451.8 0z"}),a.createElement("path",{fill:"#FFDA44",d:"m93.6 31.2 16.3 50.4H163l-42.9 31.2 16.4 50.5-42.9-31.2-43 31.2L67 112.8 24.1 81.6h53.1z"}))},CF:function(e){var t=e.title,l=af(e,Z);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#d21034",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 171h211.5v85.3H0zm300.5 0H512v85.3H300.5z",fill:"#3a9927"}),a.createElement("path",{fill:"#003082",d:"M0 0v85.3h211.5V0h89v85.3H513V0z"}),a.createElement("path",{d:"M300.5 85.3H512v85.3H300.5zM0 85.3h211.5v85.3H0z",fill:"#FFF"}),a.createElement("path",{d:"M300.5 342h-89v-86H0v86h513v-86H300.5zM105.7 8.6l8.6 26.2h27.5L119.5 51l8.6 26.2L105.7 61 83.4 77.2 91.9 51 69.6 34.8h27.6z",fill:"#ffce00"}))},CG:function(e){var t=e.title,l=af(e,Y);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#da1a35",d:"M0 85.331h513v342H0z"}),a.createElement("path",{fill:"#009543",d:"M443.726 85.331 102.4 426.657H0V85.331z"}),a.createElement("path",{fill:"#fbde4a",d:"M500.124 85.331 158.798 426.657H11.876L353.202 85.331z"}))},CH:function(e){var t=e.title,l=af(e,J);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"red",d:"M0 85.337h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M356.174 222.609h-66.783v-66.783h-66.782v66.783h-66.783v66.782h66.783v66.783h66.782v-66.783h66.783z"}))},CI:function(e){var t=e.title,l=af(e,j);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#009e60",d:"M342 0h171v342H342z"}),a.createElement("path",{fill:"#f77f00",d:"M0 0h171v342H0z"}))},CK:function(e){var t=e.title,l=af(e,Q);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#01237a",d:"M0 85.332h513v342H0z"}),a.createElement("path",{d:"m384 156.705 5.283 16.254h17.089l-13.826 10.045 5.281 16.254L384 189.211l-13.825 10.047 5.28-16.254-13.825-10.045h17.089zm-70.209 29.081 15.228 7.758 12.084-12.083-2.673 16.879 15.227 7.759-16.879 2.673-2.674 16.88-7.76-15.227-16.878 2.673 12.086-12.084zm-29.081 70.209 16.254-5.281.001-17.089 10.044 13.825 16.254-5.282-10.046 13.827 10.046 13.826-16.254-5.28-10.044 13.825v-17.09zm29.081 70.209 7.759-15.229-12.084-12.084 16.881 2.674 7.757-15.227 2.674 16.879 16.879 2.672-15.227 7.759 2.673 16.882-12.084-12.087zM384 355.284l-5.281-16.253h-17.091l13.827-10.045-5.28-16.254L384 322.776l13.827-10.044-5.281 16.254 13.826 10.045h-17.089zm70.209-29.08-15.229-7.758-12.083 12.084 2.673-16.882-15.227-7.756 16.879-2.675 2.675-16.879 7.756 15.227 16.881-2.674-12.086 12.085zm29.081-70.209-16.254 5.281v17.09l-10.045-13.826-16.254 5.281 10.046-13.826-10.046-13.827 16.254 5.282 10.045-13.825v17.089zm-29.081-70.207-7.757 15.226 12.082 12.084-16.881-2.673-7.756 15.227-2.675-16.88-16.879-2.675 15.227-7.757-2.673-16.878 12.084 12.082zM0 186.665v16h46.069L0 233.377v7.539l57.377-38.252H80L0 255.998h112v-69.334H0zm96 69.331H22.628L96 207.083v48.913zm80-117.331 80-53.334H144v69.334h112v-16h-46.069L256 107.951v-7.539l-57.377 38.251H176v.002zm-16-53.332h73.372L160 134.246V85.333zm-16 170.665h112l-80-53.334h22.623L256 240.917v-7.539l-46.069-30.713H256v-16H144v69.333zm16-48.915 73.372 48.913H160v-48.913zM112 85.331H0l80 53.334H57.377L0 100.413v7.539l46.069 30.712H0v16h112V85.331zm-16 48.915L22.628 85.333H96v48.913z",fill:"#FFF"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 85.331h-32v69.334H0v32h112v69.333h32v-69.333h112v-32H144z"}),a.createElement("path",{d:"M80 138.665 0 85.331v15.082l57.377 38.252zm96 0h22.623L256 100.413V85.331zm-118.623 64L0 240.917v15.081l80-53.333zm118.623 0 80 53.333v-15.081l-57.377-38.252z"})))},CL:function(e){var t=e.title,l=af(e,_);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M196 0h317v171H196z"}),a.createElement("path",{fill:"#0037A1",d:"M0 0h196v171H0z"}),a.createElement("path",{fill:"#FFF",d:"M98 24.5 113.1 71H162l-39.6 28.7 15.2 46.5L98 117.5l-39.6 28.7 15.2-46.5L34 71h48.9z"}))},CM:function(e){var t=e.title,l=af(e,X);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ce1126",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#007a5e",d:"M0 0h171v342H0z"}),a.createElement("path",{d:"M342 0h171v342H342zm-86 102.2 17.2 53H329L283.9 188l17.2 53-45.1-32.7-45.1 32.7 17.2-53-45.1-32.8h55.8z",fill:"#fcd116"}))},CN:function(e){var t=e.title,l=af(e,q);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"m226.8 239.2-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z",fill:"#FFDA44"}))},CO:function(e){var t=e.title,l=af(e,$);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 256.5h513V342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 171h513v85.5H0z"}))},CR:function(e){var t=e.title,l=af(e,ee);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 285h513v57H0zM0 0h513v57H0z"}))},CU:function(e){var t=e.title,l=af(e,et);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FF9811",d:"M0-40.8v422.9-211.4z"}),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v68.3H0zm0 136.5h513v68.3H0zm0 136.6h513v68.3H0z",fill:"#0052B4"}),a.createElement("path",{fill:"#D80027",d:"M256 170.7 0 342V0z"}),a.createElement("path",{fill:"#FFF",d:"m86.5 111.4 12.7 39.2h41.3l-33.4 24.2 12.8 39.3-33.4-24.2-33.4 24.2 12.8-39.3-33.4-24.2h41.2z"}))},CV:function(e){var t=e.title,l=af(e,el);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#003893",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#cf2027",d:"M0 182.2h513v41.4H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 140.8h513v41.4H0zm0 82.8h513V265H0z"}),a.createElement("path",{d:"m150.4 70 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13.1-17.9 13.1 6.8-21.1-17.9-13.1h22.2zm0 209.7 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13h22.2zm-97.6-70.9 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13H46zM90.1 91l6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-18-13h22.3zm-66.3 71H46l6.8-21.1 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13-17.9 13 6.8-21.1zm48.4 148.9 6.8-21.1-18-13h22.3l6.8-21.2 6.9 21.2h22.2l-18 13 6.9 21.1-18-13zM248 208.8l-6.9 21.1h-22.2l18 13-6.9 21.2 18-13.1 18 13.1-6.9-21.2 18-13h-22.2zM210.7 91l-6.8 21.1h-22.2l17.9 13-6.8 21.2 17.9-13.1 18 13.1-6.9-21.2 18-13h-22.2zm66.4 71h-22.2l-6.9-21.1-6.9 21.1h-22.2l18 13.1-6.9 21.1 18-13 18 13-6.9-21.1zm-48.4 148.9-6.9-21.1 18-13h-22.2l-6.9-21.2-6.8 21.2h-22.2l17.9 13-6.8 21.1 17.9-13z",fill:"#f7d116",stroke:"#000"}))},CW:function(e){var t=e.title,l=af(e,ea);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#002b7f",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#f9e814",d:"M0 233.5h513v51H0z"}),a.createElement("path",{d:"m168.7 86.5 12.9 39.8h41.8l-33.8 24.5 12.9 39.7-33.8-24.5-33.8 24.5 12.9-39.7-33.8-24.5h41.8zm-83.3-54 7.8 23.9h25L97.9 71.1l7.8 23.8-20.3-14.7-20.3 14.7 7.8-23.8-20.3-14.7h25.1z",fill:"#FFF"}))},CX:function(e){var t=e.title,l=af(e,ec);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0021ad",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#1c8a42",d:"M0 0h513v342"}),a.createElement("path",{d:"m77.6 272 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9V317l-10.3-8.3-10.2 8.3v-13.2l-12.8-2.9 10.3-8.1-5.8-11.9 12.9 3zm-37.1-98.9 5.7 11.9 12.8-3-5.7 11.8 10.3 8.2-12.9 2.9.1 13.2-10.3-8.3-10.3 8.3.1-13.2-12.9-2.9 10.4-8.2L22 182l12.8 3zm37.1-80.9 5.7 11.8 12.8-2.9-5.7 11.8 10.3 8.2-12.8 2.9v13.1l-10.3-8.2-10.2 8.2V124l-12.8-2.9 10.3-8.2-5.8-11.8L72 104zm46.1 62.9 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9v13.2l-10.3-8.2-10.2 8.2v-13.2l-12.8-2.9 10.3-8.1-5.7-11.9 12.8 3zm-32.9 54 4.4 13.7h14.5L98 231.3l4.5 13.7-11.7-8.4-11.7 8.4 4.5-13.7-11.7-8.5h14.4z",fill:"#FFF"}),a.createElement("circle",{fill:"#ffc639",cx:267.1,cy:170.7,r:74.5}),a.createElement("path",{fill:"#1c8a42",d:"M267.1 220.3h24.8s10.8-19 0-37.2l24.8-24.8-12.4-24.8h-12.4s-6.2 18.6-31 18.6-31-18.6-31-18.6h-12.4l12.4 24.8-12.4 24.8 12.4 12.4s12.4-24.8 37.2-12.4c0 0 10.5 15.5 0 37.2z"}),a.createElement("path",{fill:"#ffc639",d:"M464.4 92.2c.6-2.9-.2-17.6-.2-20.7 0-21.3-13.9-39.4-33.2-45.7 5.9 12 9.2 25.4 9.2 39.7 0 4.8-.4 9.5-1.1 14.1-2.9-4.7-6.6-8.9-11.2-12.6-17.1-13.6-40.6-14-57.9-2.5 13.4 2.9 26.3 8.9 37.7 18 9 7.1 16.2 16.8 21.7 26.1 0 0-17.8 10.9-31 15.1s-42.3 7.9-42.3 7.9c72 12 132-36 132-36-6.5-13.4-15.8-4-23.7-3.4z"}))},CY:function(e){var t=e.title,l=af(e,er);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#DB7D00",d:"M141.7 154.7s.2 67.1 74.7 65.3l4.5 13.9h8.9s-7.4-41.1 60.1-41.5c0 0 0-27.6 27.6-27.6H359s-66-51.8 58.9-118l1.8-13.1s-129.9 71-198.9 57.2c0 0 10.7 42.5-10.8 42.5-10.8 0-9.7-8.1-32.3-8.1-18.7 0-17.3 19.7-26.3 19.5-8.9-.2-18.8-12.3-19.6-10.2-.7 2.1 9.9 20.1 9.9 20.1z"}),a.createElement("g",{fill:"#006651"},a.createElement("path",{d:"M237.2 308.1c6.9-5 13-6.6 22.4-8.3s19.4-4.4 24.6-5.8-17.7 6.6-23.5 8.3c-5.8 1.6-23.5 5.8-23.5 5.8zm37.9-14.7c-1.9-11.9 2.8-24.3 13.5-29.3 2.5 8.6-5.2 23.2-13.5 29.3zm18.2-6.2c-5.8-9.8 4-22.6 11.1-28.8 3.3 6-2.5 23.7-11.1 28.8zm16.9-7.6c-6.2-8.4 1.1-23.2 8.8-29 3.1 8.2.1 23.2-8.8 29zm16.9-10.6c-5.6-8-1.7-20.4 6.3-28.4 5.8 6.6.9 21-6.3 28.4zm13.5-10.7c-4.7-7.5 1.1-25.4 8.6-30.4 3.3 6.6.8 25.4-8.6 30.4zm10.8-2.8c-1.4-10.8 17.4-22.7 25.2-22.4-.9 8.9-8.9 18.6-25.2 22.4zm-10.5 12.2c8.8-9.1 26-9.1 32.1-7.2-1.7 5.3-21.9 16.9-32.1 7.2z"}),a.createElement("path",{d:"M328.7 276.8c12.4-3.3 20.5-6.1 27.9 1.7-5.2 6.6-25.4 4.7-27.9-1.7zm-17.7 8c11.9-6.4 26.3 3 28.5 8.6-13.3 5.5-28.7-7.2-28.5-8.6zm-16.3 9.2c10.8-4.1 23.2 1.4 28.2 7.5-5.8 2.7-21 5.7-28.2-7.5zm-14.9 4.7c12.4-1.4 24.4 8 27 13.4-15.9 1.5-22-3.2-27-13.4zm-4 9.4c-6.9-5-13-6.6-22.4-8.3-9.4-1.7-19.4-4.4-24.6-5.8-5.3-1.4 17.7 6.6 23.5 8.3 5.8 1.6 23.5 5.8 23.5 5.8zm-37.9-14.7c1.9-11.9-2.8-24.3-13.5-29.3-2.5 8.6 5.2 23.2 13.5 29.3zm-18.2-6.2c5.8-9.8-4-22.6-11.1-28.8-3.3 6 2.5 23.7 11.1 28.8zm-16.9-7.6c6.2-8.4-1.1-23.2-8.8-29-3.1 8.2-.1 23.2 8.8 29zM185.9 269c5.6-8 1.7-20.4-6.3-28.4-5.8 6.6-.9 21 6.3 28.4zm-13.5-10.7c4.7-7.5-1.1-25.4-8.6-30.4-3.3 6.6-.8 25.4 8.6 30.4zm-10.8-2.8c1.4-10.8-17.4-22.7-25.2-22.4.9 8.9 8.9 18.6 25.2 22.4zm10.5 12.2c-8.8-9.1-26-9.1-32.1-7.2 1.7 5.3 21.9 16.9 32.1 7.2z"}),a.createElement("path",{d:"M184.3 276.8c-12.4-3.3-20.5-6.1-27.9 1.7 5.2 6.6 25.4 4.7 27.9-1.7zm17.7 8c-11.9-6.4-26.3 3-28.5 8.6 13.3 5.5 28.7-7.2 28.5-8.6zm16.3 9.2c-10.8-4.1-23.2 1.4-28.2 7.5 5.8 2.7 21 5.7 28.2-7.5zm14.9 4.7c-12.4-1.4-24.4 8-27 13.4 15.9 1.5 22-3.2 27-13.4z"})))},CZ:function(e){var t=e.title,l=af(e,eh);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#11457e",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#d7141a",d:"M513 171v171H0l215-171z"}),a.createElement("path",{fill:"#FFF",d:"M513 0v171H215.185L0 0z"}))},DE:function(e){var t=e.title,l=af(e,en);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 228h513v114H0z"}))},DJ:function(e){var t=e.title,l=af(e,em);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#12ad2b",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6ab2e7",d:"M513 0v166.7L0 170.8V0z"}),a.createElement("path",{fill:"#FFF",d:"M256 170.7 0 342V0z"}),a.createElement("path",{fill:"#d7141a",d:"m89.8 92.5 17 52.4H162l-44.6 32.5 17 52.4-44.6-32.4-44.6 32.4 17-52.4-44.6-32.5h55.2z"}))},DK:function(e){var t=e.title,l=af(e,ei);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#c60c30",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M190 0h-60v140H0v60h130v142h60V200h323v-60H190z"}))},DM:function(e){var t=e.title,l=af(e,ev);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 110.7v120h513v-120z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 110.7h513v40H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 190.7h513v40H0z"}),a.createElement("path",{d:"M196 0h120v342H196z"}),a.createElement("path",{fill:"#FFDA44",d:"M196 0h40v342h-40z"}),a.createElement("path",{fill:"#FFF",d:"M274.7 0h40v342h-40z"}),a.createElement("circle",{fill:"#D80027",cx:256,cy:170.7,r:123.1}),a.createElement("path",{d:"m256 58.6 4.6 14.2h15l-12.1 8.9 4.6 14.2-12.1-8.8-12.1 8.8 4.6-14.2-12.1-8.9h15zM190.1 80l12.2 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15l-4.6 14.2-4.7-14.2h-15l12.1-8.8zm-40.7 56h15l4.6-14.2 4.7 14.2h15l-12.2 8.8 4.7 14.3-12.2-8.8-12.1 8.8 4.6-14.3zm0 69.3 12.1-8.8-4.6-14.3L169 191l12.2-8.8-4.7 14.3 12.2 8.8h-15l-4.7 14.3-4.6-14.3zm40.7 56.1 4.6-14.3-12.1-8.8h15l4.7-14.3 4.6 14.3h15l-12.1 8.8 4.6 14.3-12.1-8.9zm65.9 21.4-4.6-14.3h-15l12.1-8.8-4.6-14.3 12.1 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15zm65.9-21.4-12.2-8.9-12.1 8.9 4.6-14.3-12.1-8.8h15l4.6-14.3 4.7 14.3h15l-12.1 8.8zm40.7-56.1h-15l-4.6 14.3-4.7-14.3h-15l12.2-8.8-4.7-14.3L343 191l12.1-8.8-4.6 14.3zm0-69.3-12.1 8.8 4.6 14.3-12.1-8.8-12.2 8.8 4.7-14.3-12.2-8.8h15l4.7-14.2 4.6 14.2zm-40.7-56-4.6 14.3 12.1 8.8h-15l-4.7 14.2-4.6-14.2h-15l12.1-8.8-4.6-14.3 12.1 8.8zM279.3 168.7c-11-21.1-14.5-25.1-14.5-25.1s.4-9.7.4-15.6c0-8.8-7.4-15.8-16.5-15.8-8.6 0-15.7 2.9-16.5 11-4.2.9-8.6 4.1-8.6 10.7 0 4.8 1 7.3 5.2 9.3 2.1-4.6 4.3-4.8 9.3-6.4.8.6 1.7 3 2.6 3.4l.3 1s-13.3 6.6-13.3 30.9c0 29.5 22 45.4 22 45.4l-1.8.3-1.9 7.1h22v-7.2l11 17.5c.3-.3 10.2-47.6.3-66.5z",fill:"#496E2D"}))},DO:function(e){var t=e.title,l=af(e,eE);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 215.2h211.5v126.1H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h211.5v126.2H0z"}),a.createElement("path",{fill:"#D80027",d:"M300.5 0H512v126.2H300.5z"}),a.createElement("path",{fill:"#0052B4",d:"M300.5 215.2H512v126.1H300.5z"}),a.createElement("g",{stroke:"#FFF",strokeWidth:5,strokeMiterlimit:10},a.createElement("path",{fill:"#0052B4",d:"M256 130h-49.9v49.4s19.5 6 49.9 6V130z"}),a.createElement("path",{fill:"#D80027",d:"M206.1 179.4v6c0 27.5 22.3 49.9 49.9 49.9v-49.9c-30.4 0-49.9-6-49.9-6z"}),a.createElement("path",{fill:"#0052B4",d:"M256 235.3c27.5 0 49.9-22.3 49.9-49.9v-6s-19.5 6-49.9 6v49.9z"}),a.createElement("path",{fill:"#D80027",d:"M256 130v55.4c30.4 0 49.9-6 49.9-6V130H256z"})))},DZ:function(e){var t=e.title,l=af(e,ez);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#41662E",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M256.5 0H513v342H256.5z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"m341.5 105.3-29.4 40.4-47.5-15.4 29.4 40.4-29.4 40.4 47.5-15.4 29.4 40.4v-50l47.5-15.5-47.5-15.4z"}),a.createElement("path",{d:"M309.9 276.7c-58.5 0-106-47.5-106-106s47.5-106 106-106c18.3 0 35.4 4.6 50.4 12.7-23.5-23-55.7-37.2-91.2-37.2-72 0-130.4 58.4-130.4 130.4S197.1 301 269.1 301c35.5 0 67.7-14.2 91.2-37.2-14.9 8.2-32.1 12.9-50.4 12.9z"})))},EC:function(e){var t=e.title,l=af(e,ef);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 170.7h513V256H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 256h513v85.3H0z"}),a.createElement("circle",{fill:"#FFDA44",cx:256,cy:171,r:60}),a.createElement("path",{fill:"#4C1F00",d:"M369.2 79.9s-27.2-13.8-33.9-16c-6.7-2.2-49.1-13.2-49.1-7 0 10.3-13.5 12-15.5 12s-2-5.3-14.8-5.3-13.7 4.8-15.8 4.8c-2.2 0-14.5-1-14.5-11.5 0-5.2-42.9 4-49.1 7-6.1 3.1-33.9 16-33.9 16s45.8 2.7 53.9 6.2 43.8 16.5 43.8 16.5l-2.8 13.3h37.8l-3.8-13.3s35.1-12.7 43.8-16.5 53.9-6.2 53.9-6.2z"}),a.createElement("path",{fill:"#57BA17",d:"M217.7 171.7c0 21.1 17.2 38.3 38.3 38.3 21.1 0 38.3-17.2 38.3-38.3v-11.5h-76.5v11.5z"}),a.createElement("path",{fill:"#338AF3",d:"M256 110.5c-21.1 0-38.3 17.2-38.3 38.3v11.5h76.5v-11.5c.1-21.1-17.1-38.3-38.2-38.3z"}))},EE:function(e){var t=e.title,l=af(e,ep);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#111",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#368FD8",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 228h513v114H0z"}))},EG:function(e){var t=e.title,l=af(e,ew);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{d:"M0 228h513v114H0z"}),a.createElement("path",{fill:"#C09300",d:"M220.3 204.4s0-58.4 4.5-64.7c3.1-4.3 16.8 5.2 22.7 4.5 0 0 4.2-7.5 4.5-12 .3-4.6-1.1-7.6-4.9-6.2 0 0-1.2-2.1.5-3.3 1.6-1.2 5.6.1 5.6.1s-.5-1 1.6-.9c2.9.2 7.2 1.4 7.4 5.6.2 3.1.3 7.7.4 8.7.7 6.8 2.7 8.7 2.7 8.7s18.4-9.2 22-5.2c3.3 3.8 4.5 64.7 4.5 64.7l-18.1-16.8 12.1 29.5s-14.4 2.4-28.9 2.4c-14.5 0-31.1-4.2-31.1-4.2l13.8-28.2-19.3 17.3z"}))},EH:function(e){var t=e.title,l=af(e,es);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#428823",d:"M0 228h513v114H0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M256 171 0 342V0zm53.1 0c0-22.9 13.1-42.1 34.6-46.8-3.3-.7-6.7-1.1-10.3-1.1-26.4 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9c3.5 0 7-.4 10.3-1.1-21.5-5.1-34.6-24.2-34.6-46.8z"}),a.createElement("path",{d:"m365 129.2 10.3 31.7h33.3l-27 19.6 10.3 31.7-26.9-19.6-27 19.6 10.3-31.7-27-19.6h33.4z"})))},ER:function(e){var t=e.title,l=af(e,ed);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#56AF35",d:"M0 0h513v171H0z"}),a.createElement("path",{fill:"#D80027",d:"m0 342 513-171L0 0v342z"}),a.createElement("g",{fill:"#ffc945"},a.createElement("path",{d:"M134.7 231.5c33.6 0 60.8-27.2 60.8-60.8s-27.2-60.8-60.8-60.8-60.8 27.2-60.8 60.8 27.2 60.8 60.8 60.8zm0 24.3c-47 0-85.2-38.1-85.2-85.2s38.1-85.2 85.2-85.2 85.2 38.1 85.2 85.2-38.2 85.2-85.2 85.2z"}),a.createElement("circle",{cx:119.5,cy:148.3,r:17.5}),a.createElement("circle",{cx:148.9,cy:158.5,r:17.5}),a.createElement("circle",{cx:134.7,cy:135.2,r:17.5}),a.createElement("circle",{cx:119.5,cy:172.7,r:17.5}),a.createElement("circle",{cx:149.9,cy:182.8,r:17.5}),a.createElement("circle",{cx:122.5,cy:198,r:17.5}),a.createElement("circle",{cx:145.9,cy:205.2,r:17.5})))},ES:function(e){var t=e.title,l=af(e,eM);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h22.5v15H0V0z"}),a.createElement("path",{fill:"#D03433",d:"M0 0h22.5v4H0V0zm0 11h22.5v4H0v-4z"}),a.createElement("path",{fill:"#FBCA46",d:"M0 4h22.5v7H0V4z"}),a.createElement("path",{fill:"#FFF",d:"M7.8 7h1v.5h-1V7z"}),a.createElement("path",{fill:"#A41517",d:"M7.2 8.5c0 .3.3.5.6.5s.6-.2.6-.5L8.5 7H7.1l.1 1.5zM6.6 7c0-.3.2-.5.4-.5h1.5c.3 0 .5.2.5.4V7l-.1 1.5c-.1.6-.5 1-1.1 1-.6 0-1-.4-1.1-1L6.6 7z"}),a.createElement("path",{fill:"#A41517",d:"M6.8 7.5h2V8h-.5l-.5 1-.5-1h-.5v-.5zM5.3 6h1v3.5h-1V6zm4 0h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3 0 .5.2.5.5v.2c0 .2-.1.3-.3.3H7c-.1 0-.2-.1-.2-.2v-.3z"}))},ET:function(e){var t=e.title,l=af(e,eF);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#20AA46",d:"M0 0h22.5v5H0V0z"}),a.createElement("path",{fill:"#E92F3B",d:"M0 10h22.5v5H0v-5z"}),a.createElement("path",{fill:"#FADF50",d:"M0 5h22.5v5H0V5z"}),a.createElement("circle",{fill:"#205CCA",cx:11.3,cy:7.5,r:5.2}),a.createElement("g",{stroke:"#FFDB3D",fill:"none"},a.createElement("path",{d:"m11.3 8.8-2.1 1.5.8-2.4-2-1.5h2.5l.8-2.3.8 2.3h2.6l-2.1 1.5.8 2.4-2.1-1.5zm-1-2.4h1.9M9.9 7.8l1.3 1m.8-2.6.7 1.8M10 7.9l.6-1.8M11 9l1.6-1.1",strokeWidth:.5}),a.createElement("path",{d:"m8.7 3.9 1.1 1.6m4-1.7-1 1.6m-1.5 4.7V12M8.9 8.3 7.1 9m8.4 0-1.8-.7",strokeWidth:.25})))},EU:function(e){var t=e.title,l=af(e,eH);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 810 540"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#039",d:"M0 0h810v540H0z"}),a.createElement("path",{fill:"#FC0",d:"m404.951 59.865 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-90 24 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-66 66 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-24 89.999 6.735 20.719h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm24 90.001 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm66 66 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm180-312 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm66 66 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm24 90 6.735 20.718h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm-24 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm-156 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm90-24.001 6.735 20.719h21.894l-17.633 12.812 6.639 20.74-17.635-12.812-17.633 12.812 6.735-20.73-17.633-12.811h21.797z"}))},FI:function(e){var t=e.title,l=af(e,eo);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#2E52B2",d:"M513 129.3V212H203.7v130H121V212H0v-82.7h121V0h82.7v129.3z"}))},FJ:function(e){var t=e.title,l=af(e,eg);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#62B5E5",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#F3F3F3",d:"M307.1 127.1v92c0 61.6 80.5 80.5 80.5 80.5s80.4-19 80.4-80.6v-92l-80.5-23-80.4 23.1z"}),a.createElement("path",{fill:"#D80027",d:"M468 132.8V98.3H307.1v34.5h69v69h-69v23h69V296c6.9 2.5 11.5 3.5 11.5 3.5s4.6-1.1 11.5-3.5v-71.2h69v-23h-69v-69H468z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M0 0h256.5v170.6H0V0z"}),a.createElement("path",{d:"m155.9 115 100.6 55.6v-15.8L184.6 115h-28.7zm-55.7-59.3L0 0v15.8l71.8 39.9h28.4z"})),a.createElement("path",{d:"m196.9 115 59.6 32.9V115h-59.6zm-41 0 100.6 55.6v-15.8L184.6 115h-28.7zm73.4 55.6-73.5-40.9v40.9h73.5zM45.2 115 0 140.1V115h45.2zm55 7.1v48.6H12.8l87.4-48.6zM59.1 55.7 0 22.8v32.8s59.1 0 59.1.1zm41.1 0L0 0v15.8l71.8 39.9h28.4zM26.7 0l73.5 40.8V0H26.7zm184.2 55.7 45.6-25.1v25.1h-45.6zm-55-7.2V0h87.4l-87.4 48.5z",fill:"#0052B4"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144.3-.2h-32.1v69.5H0v32.1h112.2v69.5h32.1v-69.5h112.2V69.3H144.3V-.2z"}),a.createElement("path",{d:"m155.9 115 100.6 55.6v-15.8L184.6 115h-28.7zm-84.1 0L0 154.9v15.8L100.2 115H71.8zm28.4-59.3L0 0v15.8l71.8 39.9h28.4zm83.9 0 72.4-39.9V0L155.9 55.7h28.2z"})))},FK:function(e){var t=e.title,l=af(e,eu);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z",fill:"#D80027"}),a.createElement("path",{fill:"#1F8BDE",d:"M312.2 194.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3z"}),a.createElement("path",{fill:"#FFF",d:"M312.2 194.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3zm79.6 86.3c7.9-4.5 15.9-10 23.2-16.7 20.5-18.5 32.6-41.4 32.6-69.7v-90c0-.3-120.4-.3-120.4-.3v90.3c0 28.3 12.1 51.2 32.6 69.7 8.3 7.5 17.6 13.9 27.6 19 1.4-.6 2.8-1.4 4.4-2.3z"}),a.createElement("path",{fill:"#187536",d:"M347.1 193.4c-2.6-7.9 1.7-14.3 10.1-14.3h60.5c8.2 0 12.8 6.3 10.1 14.3l-5.5 16.5c-2.6 7.9-8.9 9.2-15.8 4 0 0 2.6-4.8-19.1-4.8-21.7 0-19.1 4.8-19.1 4.8-6.1 5.7-13.1 4-15.8-4 .1.1-5.4-16.5-5.4-16.5z"}),a.createElement("path",{fill:"#FFF",d:"M357.4 179.1c8.1 1.6 17.8-15 30.1-15 13.1 0 21.8 17.1 30.1 15 7.4-1.8 15-22.2 15-30.1 0-16.6-20.2-30.1-45.1-30.1-24.9 0-45.1 13.5-45.1 30.1-.1 8.5 6.6 28.5 15 30.1zm-1.4 91.6c6.2.4 12.5-1.8 17.2-6.5l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c4.7 4.7 11 6.9 17.1 6.5 5.3-.3 32.5-33.5 25.7-32.6-4.6.6-9.1 2.8-12.7 6.3l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-3.5-3.5-7.8-5.6-12.3-6.3-6.7-1.1 20.1 32.2 25.3 32.5zM322.1 210c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0 0 0 5.5-14.8 2.5-15.9-7.9-2.9-17.2-1.2-23.5 5.2l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-6.2-6.2-15.1-8-22.8-5.5-3.1 1.1 1.9 16.1 1.9 16.1z"}))},FM:function(e){var t=e.title,l=af(e,ex);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"m256 37.9 10.1 31.2H299l-26.6 19.3 10.2 31.2-26.6-19.3-26.6 19.3 10.2-31.2L213 69.1h32.9zM123.2 170.7l31.2-10.2v-32.8l19.3 26.6 31.2-10.2-19.3 26.6 19.3 26.5-31.2-10.1-19.3 26.5v-32.8zM256 303.5l-10.1-31.2H213l26.6-19.3-10.2-31.3L256 241l26.6-19.3-10.2 31.3 26.6 19.3h-32.9zm132.8-132.8-31.2 10.1v32.8l-19.3-26.5-31.2 10.1 19.3-26.5-19.3-26.6 31.2 10.2 19.3-26.6v32.8z",fill:"#FFF"}))},FO:function(e){var t=e.title,l=af(e,eD);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0F61A5",d:"M513 214.5H206.2V342h-87.8V214.5H0v-87.7h118.4V0h87.8v126.8H513V192z"}),a.createElement("path",{fill:"#E50E3D",d:"M513 149.3V192H183.7v150H141V192H0v-42.7h141V0h42.7v149.3z"}))},FR:function(e){var t=e.title,l=af(e,eB);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},GA:function(e){var t=e.title,l=af(e,eL);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}))},GB:function(e){var t=e.title,l=af(e,eV);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M0 0h513v341.3H0V0z"}),a.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zM200.3 111.3 0 0v31.5l143.7 79.8h56.6z"})),a.createElement("path",{d:"M393.8 230 513 295.7V230H393.8zm-82.1 0L513 341.3v-31.5L369.3 230h-57.6zm146.9 111.3-147-81.7v81.7h147zM90.3 230 0 280.2V230h90.3zm110 14.2v97.2H25.5l174.8-97.2zm-82.1-132.9L0 45.6v65.7h118.2zm82.1 0L0 0v31.5l143.7 79.8h56.6zM53.4 0l147 81.7V0h-147zm368.3 111.3L513 61.1v50.2h-91.3zm-110-14.2V0h174.9L311.7 97.1z",fill:"#0052B4"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M288 0h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z"}),a.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zm-168 0L0 309.9v31.5L200.3 230h-56.6zm56.6-118.7L0 0v31.5l143.7 79.8h56.6zm168 0L513 31.5V0L311.7 111.3h56.6z"})))},GD:function(e){var t=e.title,l=af(e,eA);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#c60a0a",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#3E8446",d:"m256.5 170.7-212 126.1V44.5z"}),a.createElement("path",{d:"m256.5 170.7 211 126.1h-423zm211-126.2-211 126.2-212-126.2z",fill:"#FFDA44"}),a.createElement("path",{fill:"#3E8446",d:"M467.5 44.5v252.3l-211-126.1z"}),a.createElement("path",{d:"m256.5 10.4 2.8 10.2H270l-8.6 6.3 3.3 10.2-8.2-6.3-9.2 6.3 3.3-10.2-8.6-6.3h10.7zm-86.4 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm-85.4 293.8 2.8 10.2H270l-8.6 6.3 3.3 10.2-8.2-6.3-9.2 6.3 3.3-10.2-8.6-6.3h10.7zm-86.4 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7z",fill:"#FFDA44"}),a.createElement("circle",{fill:"#c60a0a",cx:244.5,cy:170.7,r:76.2}),a.createElement("path",{fill:"#FFDA44",d:"m244.5 110.1 13.6 41.8h44l-35.6 25.8 13.6 41.8-35.6-25.8-35.5 25.8 13.6-41.8-35.6-25.8h44zm-136.8 57.7c4.4 6.9 2.3 16.1-4.6 20.5s-16.1 2.3-20.5-4.6c-7.9-12.5-3.3-33-3.3-33s20.4 4.6 28.4 17.1z"}),a.createElement("circle",{fill:"#A2001D",cx:99.1,cy:182.1,r:7.4}))},GE:function(e){var t=e.title,l=af(e,ey);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M.8 0h21v15H.8V0z"}),a.createElement("path",{fill:"#eb000e",d:"M9.8 6H0v3h9.8v6h3V9h9.8V6h-9.8V0h-3v6z"}),a.createElement("path",{fill:"#eb000e",d:"m17.3 2.7-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm-12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm0 9-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2z"}))},GF:function(e){var t=e.title,l=af(e,eC);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FDEB01",d:"m0 0 90 60H0z"}),a.createElement("path",{fill:"#58A846",d:"M90 0v60L0 0z"}),a.createElement("path",{fill:"#ED3D24",d:"m50.7 33.3 9.3-6.7H48.5L45 15.7l-3.5 10.9H30l9.3 6.7-3.6 11 9.3-6.7 9.3 6.7z"}))},GG:function(e){var t=e.title,l=af(e,ek);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M308 0H204v118.7H0v104h204V342h104V222.7h205v-104H308z"}),a.createElement("path",{fill:"#FFDA44",d:"m368.6 188 26 17.3V136l-26 17.3h-95.3V58.1l17.3-26h-69.2l17.3 26v95.2h-95.3l-26-17.3v69.3l26-17.3h95.3v95.2l-17.3 26h69.2l-17.3-26V188z"}))},GH:function(e){var t=e.title,l=af(e,eS);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 228h513v114H0z"}),a.createElement("path",{d:"m255.9 113.8 14.1 43.4 40.4 3.2-37 26.9 19.5 40.3-37-26.9-37 26.9 14.1-43.5-36.9-26.9h45.7z"}))},GI:function(e){var t=e.title,l=af(e,eW);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 230h513v112H0z"}),a.createElement("path",{fill:"#D80027",stroke:"#000",strokeMiterlimit:10,d:"M363.1 131.8V99.1H374V77.3h-21.9v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7h-21.8V55.5h10.9V33.7h-21.8v10.9h-10.9V33.7H254v10.9h-10.9V33.7h-21.8v21.8h10.9v76.3h-21.8V99.1h10.9V77.3h-21.8v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7H145V219h239.9v-87.2z"}),a.createElement("path",{fill:"#FFDA44",stroke:"#000",strokeMiterlimit:10,d:"m264.9 235.5-24.2 18.2 19.1 14.3v31.3h-23.2v9h23v7.9h-23v9.3H270V268l19.1-14.3-24.2-18.2zm0 25.3-10.1-7.1 10.1-7.1 10.1 7.1-10.1 7.1z"}),a.createElement("path",{d:"M239.6 209.7v-27.9s.1-22.3 25-22.3c24.8 0 25.7 22 25.7 22v28.2h-50.7zm-69.1 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8z"}),a.createElement("path",{d:"M169.1 209.7v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm151.8 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm8.4-77.7v-15.7s.1-12.1 11.3-12.1c11.3 0 11.7 11.9 11.7 11.9V132h-23zm-78.8 0v-23.7s.1-18.3 14.3-18.3c14.2 0 14.7 18 14.7 18v24h-29zm-73 0v-15.7s.1-12.1 11.3-12.1 11.7 11.9 11.7 11.9V132h-23z"}))},GL:function(e){var t=e.title,l=af(e,eb);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M513 0v171H0V0z"}),a.createElement("circle",{fill:"#FFF",cx:185.8,cy:171.2,r:117.8}),a.createElement("path",{fill:"#D80027",d:"M68 171c0-65.1 52.8-117.8 117.8-117.8 65.1 0 117.8 52.8 117.8 117.8"}))},GM:function(e){var t=e.title,l=af(e,eG);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#cf0d19",d:"M0 0h513v100H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 121h513v100H0z"}),a.createElement("path",{fill:"#1a7e25",d:"M0 242h513v100H0z"}))},GN:function(e){var t=e.title,l=af(e,eT);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M342 0h171v342H342z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h171v342H0z"}))},GP:function(e){var t=e.title,l=af(e,eN);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},GQ:function(e){var t=e.title,l=af(e,eO);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v113.8H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 227.6h513V342H0z"}),a.createElement("path",{fill:"#0070C8",d:"M126 171 0 342V0z"}),a.createElement("path",{fill:"none",stroke:"#000",strokeMiterlimit:10,d:"M233.8 139.4v40.4c0 35.6 35.6 35.6 35.6 35.6s35.6 0 35.6-35.6v-40.4h-71.2z"}),a.createElement("path",{fill:"#786145",d:"M264.5 179.8h9.8l4 25.8h-17.8z"}),a.createElement("path",{fill:"#6DA544",d:"M287.2 162c0-9.8-8-14.8-17.8-14.8s-17.8 5-17.8 14.8c-4.9 0-8.9 4-8.9 8.9s4 8.9 8.9 8.9h35.6c4.9 0 8.9-4 8.9-8.9s-4-8.9-8.9-8.9z"}),a.createElement("path",{d:"m230.7 120 1.9 3.3h3.8l-1.9 3.3 1.9 3.2h-3.8l-1.9 3.3-1.9-3.3H225l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.8 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H279l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm16 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H295l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm15 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2H310l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8z",fill:"#FFDA00",stroke:"#000",strokeMiterlimit:10}))},GR:function(e){var t=e.title,l=af(e,eR);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("g",{fill:"#0d5eaf"},a.createElement("path",{d:"M0 0h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z"}),a.createElement("path",{d:"M0 0h190v190H0z"})),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M0 76h190v38H0z"}),a.createElement("path",{d:"M76 0h38v190H76z"})))},GS:function(e){var t=e.title,l=af(e,eI);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{fill:"#D80027",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}),a.createElement("ellipse",{fill:"#FFF",cx:443.4,cy:233.6,rx:29,ry:43.5}),a.createElement("ellipse",{fill:"#FFCE00",cx:406.9,cy:317.7,rx:22,ry:9.3}),a.createElement("ellipse",{fill:"#FFCE00",cx:364,cy:317.7,rx:22,ry:9.3}),a.createElement("path",{fill:"#39B200",d:"m342 190.1 43.4 86.9 43.5-86.9z"}),a.createElement("ellipse",{fill:"#9B9B9B",cx:327.5,cy:233.6,rx:29,ry:43.5}),a.createElement("path",{fill:"#757575",d:"m371 175.6-14.5 14.5h57.9l-14.5-14.5 14.5-43.5s-13-29-29-29-29 29-29 29l14.6 43.5z"}),a.createElement("circle",{fill:"#C6B56F",cx:385.4,cy:67,r:29}),a.createElement("circle",{fill:"#A54A00",cx:386,cy:88.7,r:29}),a.createElement("circle",{fill:"#FFF",cx:443.4,cy:117.7,r:29}),a.createElement("circle",{fill:"#0049FF",cx:342.2,cy:146.7,r:29}),a.createElement("circle",{fill:"#0041F9",cx:429.8,cy:146.7,r:29}),a.createElement("circle",{fill:"#F7D71E",cx:386,cy:233.6,r:29}),a.createElement("circle",{fill:"#CEC851",cx:457.9,cy:190.1,r:29}),a.createElement("circle",{fill:"#FFF",cx:385.4,cy:289.5,r:29}),a.createElement("path",{fill:"#7C0B29",d:"m371 135.7 14.5-3.5 14.5 3.5c0 7.5-14.5 11-14.5 11s-14.5-3.5-14.5-11z"}),a.createElement("circle",{fill:"#FFF",cx:327.5,cy:117.4,r:29}))},GT:function(e){var t=e.title,l=af(e,eP);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#338AF3"}),a.createElement("circle",{fill:"#DCC26D",cx:256,cy:155.8,r:25.5}),a.createElement("path",{fill:"#628A40",d:"M194.2 155.9c0 22.1 11.8 42.5 30.8 53.5 5.9 3.4 13.5 1.4 16.9-4.5 3.4-5.9 1.4-13.5-4.5-16.9-11.5-6.6-18.5-18.9-18.5-32.1 0-6.8-5.5-12.4-12.4-12.4s-12.3 5.5-12.3 12.4zm95.1 52.1c17.8-11.4 28.6-31 28.5-52.1 0-6.8-5.5-12.4-12.4-12.4-6.8 0-12.4 5.5-12.4 12.4 0 12.7-6.5 24.5-17.1 31.3-5.8 3.6-7.7 11.2-4.1 17 3.6 5.8 11.2 7.7 17 4.1.2-.1.3-.2.5-.3z"}))},GU:function(e){var t=e.title,l=af(e,eK);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M11.1 11.1h489.7v319.1H11.1z"}),a.createElement("path",{fill:"#7DBEF1",d:"M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z"}),a.createElement("path",{fill:"#1C8AE6",d:"M179.8 180.7h152.6l-29.3 64.9h-95.2z"}),a.createElement("path",{fill:"#FFF042",d:"M192.3 205.9s40.5 38.2 51 38.2c12.4 0 12.6-18.4 25.5-25.5 20.2-11.1 51-12.7 51-12.7L297 248.7l-41 36.6-46.8-39.7-16.9-39.7z"}),a.createElement("path",{fill:"#259C7B",d:"m256 157.5-22.5 15.6 7.9-26.2-21.8-16.5 27.4-.5 9-25.9 9 25.9 27.4.5-21.8 16.6 7.9 26.2-22.5-15.7z"}),a.createElement("path",{fill:"#8E5715",d:"M249.7 144.6c-.9 9.2-1.5 18.4-1.7 27.6-.3 11.9.3 20.7 2 26 2.2 6.6 7.2 12.9 14.2 18.9 5.3 4.6 10.6 8.1 14.2 10.1 3.1 1.7 7 .6 8.7-2.4 1.7-3.1.6-7-2.4-8.7-4.3-2.5-8.4-5.4-12.2-8.7-5.4-4.6-9.1-9.2-10.4-13.3-1.1-3.4-1.6-11.3-1.4-21.7.2-8.9.8-17.8 1.7-26.6.4-3.5-2.2-6.6-5.7-7-3.6-.3-6.7 2.3-7 5.8z"}),a.createElement("path",{fill:"#FFF",d:"m217.8 170.7 25.5 38.2h-25.5v-38.2z"}),a.createElement("path",{fill:"none",stroke:"#D80027",strokeWidth:12,strokeMiterlimit:10,d:"M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z"}))},GW:function(e){var t=e.title,l=af(e,eU);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 0h512v171H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h182v342H0z"}),a.createElement("path",{d:"m98.3 109.8 15.1 46.5h48.9L122.8 185l15.1 46.5-39.6-28.7-39.5 28.7L73.9 185l-39.6-28.7h48.9z"}))},GY:function(e){var t=e.title,l=af(e,eZ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#009E49",d:"M0 0h900v600H0V0z"}),a.createElement("path",{fill:"#FFF",d:"m0 0 947 300L0 600V0z"}),a.createElement("path",{fill:"#FFD00D",d:"M0 26.1 870 300 0 573.9V26.1z"}),a.createElement("path",{fill:"#2D2D2D",d:"m0 0 450 300L0 600V0z"}),a.createElement("path",{fill:"#D3132F",d:"m0 35 397.5 265L0 565V35z"}))},HK:function(e){var t=e.title,l=af(e,eY);return a.createElement("svg",az({viewBox:"0 0.5 21 14",xmlns:"http://www.w3.org/2000/svg"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0z"}),a.createElement("path",{fill:"#ee1c25",d:"M0 0h21v15H0z"}),a.createElement("path",{d:"M12 7.19c-.798-.5-1 .409-1 0 0-.828.895-1.5 2-1.5s2 .672 2 1.5c-.949 0-1.044.5-1.5.5-.56 0-.702 0-1.5-.5zM13.25 7a.25.25 0 1 0 0-.5.25.25 0 0 0 0 .5zm-1.81 1.962c.228-.913-.698-.824-.31-.95.788-.257 1.703.387 2.045 1.438.341 1.05-.021 2.11-.809 2.366-.293-.903-.798-.838-.939-1.272-.173-.533-.217-.668.012-1.582zm.566 1.13a.25.25 0 1 0 .476-.154.25.25 0 0 0-.476.154zM9.58 8.977c.94-.065.57-.919.81-.588.486.67.157 1.74-.737 2.389-.894.65-2.013.632-2.5-.038.768-.558.55-1.018.92-1.286.453-.33.568-.413 1.507-.477zm-.899.888a.25.25 0 1 0 .294.405.25.25 0 0 0-.294-.405zm.312-2.652c.351.874 1.049.258.809.588-.487.67-1.606.687-2.5.038-.894-.65-1.223-1.719-.736-2.39.767.559 1.138.21 1.507.478.453.33.568.413.92 1.286zm-1.124-.58a.25.25 0 1 0-.293.404.25.25 0 0 0 .293-.404zm2.619-.524c-.722.605.08 1.078-.309.951-.788-.256-1.15-1.315-.809-2.365.342-1.05 1.257-1.695 2.045-1.439-.293.903.153 1.147.012 1.581-.173.533-.217.668-.939 1.272zm.205-1.247a.25.25 0 1 0-.475-.155.25.25 0 0 0 .475.155z",fill:"#FFF"})))},HM:function(e){var t=e.title,l=af(e,eJ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M223.4 170.7c.3-.3.5-.6.8-.9-.3.3-.5.6-.8.9zm-34.2 41.9 11 22.9 24.7-5.7-11.1 22.8 19.9 15.8L209 274v25.4l-19.8-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.9-2.6 9.5-7.5-5.3-10.9 11.9 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6v-12.1l-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9 11.9 2.7zm42.4 49.7 5.3 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.5-7.6-9.4 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-30.3 57.9 4.1 12.7h13.3l-10.8 7.8 4.1 12.6-10.7-7.8-10.8 7.8 4.1-12.6-10.7-7.8h13.3z"}),a.createElement("path",{d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"})),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z",fill:"#D80027"}))},HN:function(e){var t=e.title,l=af(e,ej);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0zm203.5-110.1 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zM256 147.6l6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm-52.5 29.7 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1z",fill:"#338AF3"}))},HR:function(e){var t=e.title,l=af(e,eQ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}),a.createElement("path",{d:"M309.3 113.2v-44l17.5-14.4 17.7 14.4v44zm-105.6 0v-44l-17.3-14.4-17.9 14.4v44zm35.2 0v-44l17.6-14.4 17.6 14.4v44z",fill:"#338AF3"}),a.createElement("path",{d:"M309.3 113.2h-35.2v-44l17.5-14.4 17.7 14.4zm-70.4 0h-35.2v-44l17.5-14.4 17.7 14.4z",fill:"#0052B4"}),a.createElement("path",{stroke:"#D80027",fill:"#FFF",d:"M168.5 113.2v101.9c0 24.3 14.4 46.2 35.4 59.4 21.3 13.4 42.1 14.7 52.6 14.7s31.4-1.7 52.6-14.8c21-13 35.4-35.1 35.4-59.3V113.2h-176z"}),a.createElement("path",{d:"M168.5 113.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm35.2 35.2h35.2V254h-35.2zm35.2-35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-35.2 35.2h35.2V254h-35.2zm35.2 55.5c8.6-5.4 16.2-12.3 22-20.3h-22v20.3zM181.7 254c5.8 8 13.3 14.9 22 20.4V254h-22zm57.2 0v33.7c7.2 1.2 13.3 1.5 17.6 1.5 4.3 0 10.4-.3 17.6-1.6V254h-35.2z",fill:"#D80027"}))},HT:function(e){var t=e.title,l=af(e,e_);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#A2001D",d:"M0 0h513v172H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 172h513v172H0z"}),a.createElement("path",{fill:"#FFF",d:"m381.4 251.5-110.7-13.8-110.8 13.8V85.4h221.5z"}),a.createElement("circle",{fill:"#0052B4",cx:270.7,cy:182.3,r:55.4}),a.createElement("circle",{fill:"#A2001D",cx:270.7,cy:182.3,r:27.7}),a.createElement("path",{fill:"#6DA544",d:"M229.1 113.1h83.1l-41.5 41.5z"}),a.createElement("path",{fill:"#FFDA44",d:"M256.8 140.8h27.7v83h-27.7z"}),a.createElement("path",{fill:"#6DA544",d:"M314.9 215.5h-88.5l-66.5 36h221.5z"}))},HU:function(e){var t=e.title,l=af(e,eX);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 228h513v114H0z"}))},IC:function(e){var t=e.title,l=af(e,eq);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 200"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#fc0",d:"M0 0h300v200H0z"}),a.createElement("path",{fill:"#0768a9",d:"M0 0h200v200H0z"}),a.createElement("path",{fill:"#fff",d:"M0 0h100v200H0z"}))},ID:function(e){var t=e.title,l=af(e,e$);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#E00",d:"M0 0h513v171H0z"}))},IE:function(e){var t=e.title,l=af(e,e1);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#FF9811",d:"M342 0h171v342H342z"}))},IL:function(e){var t=e.title,l=af(e,e2);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M340.6 122.4h-56.1l-28-48.6-28 48.6h-56.1l28 48.6-28 48.6h56.1l28 48.6 28-48.6h56.1l-28-48.6 28-48.6zM293.2 171 276 204.2h-38.9L219.8 171l17.2-33.2h38.9l17.3 33.2zm-36.7-71.8 11.9 23.3h-23.9l12-23.3zm-58.3 38.6h23.9l-10.8 21-13.1-21zm0 66.4 13-22.1 11.9 22.1h-24.9zm58.3 37.5-11.9-22.1h23.9l-12 22.1zm59.4-37.5h-25l11.9-22.1 13.1 22.1zm-26.1-66.4h26.1l-13 22.1-13.1-22.1zM0 21.3h512V64H0zm0 256h512V320H0z",fill:"#2E52B2"}))},IM:function(e){var t=e.title,l=af(e,e3);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#E52D42",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M393.3 68.2h-45.8l-33.8 80.2-34.4-22.9s-24.7-59.1-34.4-68.2c-9.7-9.7-18.7-.6-48.9 7.8-29.6 8.4-30.8 18.7-42.2 18.7-4.8 0-19.9-17.5-27.7-22.3-12.1-7.8-16.9-4.2-13.9 7.2 1.2 4.8 10.9 10.9 16.9 19.9 7.8 11.5 12.7 25.9 12.7 25.9s10.9-10.3 16.9-12.1c9-2.4 19.3 1.8 31.4 0 15.1-2.4 31.4-10.9 31.4-10.9l4.2 43.4s-54.3 50.7-49.5 70.6 56.1 44.6 68.2 62.7c12.1 17.5-7.2 24.1-7.2 32.6s-1.8 19.9 7.2 16.3c9-3.6 10.3-18.1 18.7-31.4 6-9 10.3-13.9 11.5-17.5 1.8-9-23.5-32-37.4-48.9-6.6-7.8-19.9-18.7-19.9-18.7l39.2-29.6s67.6 27.7 82.6 18.7c15.1-9 19.3-98.3 19.3-98.3l47-11.5-12.1-11.7z"}),a.createElement("path",{fill:"#F8DD4E",d:"M279.3 262.4c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.8-182.8c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm0 91.1c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6 0 11.5 4.8 11.5 11.5-.6 6.7-5.5 11.5-11.5 11.5zm-136.9 45.8c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.2-136.9c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-4.8 11.5-11.5 11.5zm22.9 91.1c-6 0-11.5-10.3-11.5-22.9s4.8-22.9 11.5-22.9c6 0 11.5 10.3 11.5 22.9s-4.8 22.9-11.5 22.9zm-114-45.2c-6 0-11.5-4.8-11.5-11.5 0-6.6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5 0 6.6-4.8 11.5-11.5 11.5z"}))},IN:function(e){var t=e.title,l=af(e,e0);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#F93",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#fff",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#138808",d:"M0 228h513v114H0z"}),a.createElement("circle",{cx:256.5,cy:171,r:34.2,stroke:"navy",strokeWidth:4,fill:"none"}),a.createElement("circle",{cx:256.5,cy:171,r:3.42,fill:"navy"}),a.createElement("path",{d:"m265.3 138.159-17.6 65.682m17.6-65.682-17.6 65.682m25.8-62.286-34 58.89m41.042-53.487-48.084 48.084M285.945 154l-58.89 34m62.286-25.8-65.682 17.6M290.5 171h-68m66.841 8.8-65.682-17.6m62.286 25.8-58.89-34m53.487 41.042-48.084-48.084m41.042 53.487-34-58.89m25.8 62.286-17.6-65.682M256.5 205v-68m-8.8 66.841 17.6-65.682m-25.8 62.286 34-58.89m-41.042 53.487 48.084-48.084M227.055 188l58.89-34m-62.286 25.8 65.682-17.6M222.5 171h68m-66.841-8.8 65.682 17.6M227.055 154l58.89 34m-53.487-41.042 48.084 48.084M239.5 141.555l34 58.89m-25.8-62.286 17.6 65.682",stroke:"navy",strokeWidth:2}))},IO:function(e){var t=e.title,l=af(e,e4);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0-.3h513V342H0V-.3z"}),a.createElement("path",{fill:"#0052B4",d:"M462.9 198.1c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zM0 31.7l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 1-20 6-30.1 12-7 4-16 9-20 9s-14-5-21-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-11-30.1-12v22zm462.9 55.2c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 3.9-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 1 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-8 19-9v-23zm-50.1 133.3c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 0 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-9 19-9v-23z"}),a.createElement("path",{fill:"#FFF",d:"M0-.3h256v171H0V-.3z"}),a.createElement("path",{d:"M389.8 119.9H408v78.8h-18.3l.1-78.8zm0 117.8H408v75.1h-18.3l.1-75.1z",fill:"#A2001D"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144-.3h-32v70H0v32h112v69h32v-69h112v-32H144v-70z"}),a.createElement("path",{d:"M0-.3v15l57 39h23L0-.3zm256 0v15l-57 39h-23l80-54z"}),a.createElement("path",{d:"M0-.3v15l57 39h23L0-.3zm256 0v15l-57 39h-23l80-54zM0 170.7v-15l57-38h23l-80 53zm256 0v-15l-57-38h-23l80 53z"})),a.createElement("g",{fill:"#2E52B2"},a.createElement("path",{d:"M0 22.7v31h46l-46-31zm96-23v49L23-.3h73zm160 23v31h-46l46-31zm-96-23v49l73-49h-73z"}),a.createElement("path",{d:"M0 22.7v31h46l-46-31zm96-23v49L23-.3h73zm160 23v31h-46l46-31zm-96-23v49l73-49h-73zM0 147.7v-30h46l-46 30zm96 23v-49l-73 49h73zm160-23v-30h-46l46 30zm-96 23v-49l73 49h-73z"})),a.createElement("path",{fill:"#5DA51E",stroke:"#45602C",strokeWidth:4,strokeMiterlimit:10,d:"M462.8 91.5h-29.1l25.7-25.7c4.5-4.4 4.5-11.4 0-15.8l-3.4-3.4c-4.4-4.4-11.4-4.4-15.8 0l-25.9 25.9V37.4c0-6.2-5.1-11.3-11.3-11.3h-4.7c-6.2 0-11.3 5.1-11.3 11.3v31.7l-23.5-23.8c-4.7-4.7-12.2-4.7-16.9 0l-3.6 3.6c-4.7 4.7-4.7 12.4 0 17.2l25 25.4h-30.6c-6 0-10.9 4.9-10.9 10.9v4.6c0 6 4.9 10.9 10.9 10.9H369l-20.7 20.7c-4.4 4.4-4.4 11.4 0 15.8l3.4 3.4c4.4 4.4 11.4 4.4 15.8 0l19.6-19.6V167c0 6.1 5.1 11.1 11.3 11.3h4.7c6.2 0 11.3-5.1 11.3-11.3v-28.3l22.2 22.6c4.7 4.7 12.4 4.7 17.1 0l3.6-3.6c4.7-4.7 4.7-12.4 0-17.2L435.2 118h27.6c5.9 0 10.7-4.9 10.9-10.9v-4.6c0-6.1-4.9-11-10.9-11z"}),a.createElement("path",{fill:"#E2DD24",stroke:"#525625",strokeWidth:4,strokeMiterlimit:10,d:"M439.2 249.1h-79.8s-.9-13.4-6-21.8c-6.2-10.4-13.9-28.1-1.4-36.7 15.9-10.9 33.7.8 48.2.8 11.8.1 26.9-14 45-.8 12.2 8.9 3.9 28.2-1.3 36.7-7 11.5-4.7 21.8-4.7 21.8z"}))},IQ:function(e){var t=e.title,l=af(e,e5);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#CE1126",d:"M0 0h513v114H0z"}),a.createElement("path",{d:"M0 228h513v114H0z"}),a.createElement("path",{d:"M219.2 160.7h-29.3c1.5-5.7 6.6-9.9 12.8-9.9v-19.9c-18.3 0-33.1 14.9-33.1 33.1v16.5h49.6c1.8 0 3.3 1.5 3.3 3.3v6.6h-66.2v19.9h86.1v-26.5c0-12.7-10.4-23.1-23.2-23.1zm49.6 29.8v-59.6H249v79.5h33.1v-19.9zm66.2 0v-59.6h-19.8v59.6h-6.6v-19.8h-19.9v39.7h59.6v-19.9z",fill:"#547C31"}))},IR:function(e){var t=e.title,l=af(e,e6);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),a.createElement("path",{d:"M0 227.9h513v114H0zm278.8-93.1c.1 2 8.7 26.2 4.4 39.4-6.6 20.3-15.8 21.8-19.8 24.5V134l-6.9-4.2-6.9 4.2v64.7c-4-2.7-12.4-2.4-19.8-24.5-4.3-12.7 5.7-37.3 5.8-39.2 0 0-9.5 8.1-15.8 24-5.9 14.8 1.9 49.6 29.5 54.8 2.3.4 4.7 5.6 7.2 5.6 2.1 0 4.1-5.2 6-5.5 28.4-4.6 35-41.7 29.9-55.6-5.4-14.6-13.6-23.5-13.6-23.5z",fill:"#D80027"}),a.createElement("path",{d:"M44.6 98.9h22.3v24.4H44.6zM0 98.9h22.3v24.4H0zm89.2 0h22.3v24.4H89.2zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4H223zm44.7 0H290v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0H513v24.4h-22.3zm-446.1 118h22.3v25.5H44.6zm-44.6 0h22.3v25.5H0zm89.2 0h22.3v25.5H89.2zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5H223zm44.7 0H290v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0H513v25.5h-22.3z",fill:"#FFF",opacity:.5}))},IS:function(e){var t=e.title,l=af(e,e7);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M513 210.6H202.2v130.7h-79.8V210.6H0v-79.8h122.4V0h79.8v130.8H513v18.5l-1 42.7z"}),a.createElement("path",{fill:"#D80027",d:"M513 149.3V192H183.7v149.3H141V192H0v-42.7h141V0h42.7v149.3z"}))},IT:function(e){var t=e.title,l=af(e,e8);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#F4F5F0",d:"M342 0H0v341.3h512V0z"}),a.createElement("path",{fill:"#008C45",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#CD212A",d:"M342 0h171v342H342z"}))},JE:function(e){var t=e.title,l=af(e,e9);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M301.8 171 513 30.2V0h-45.3L256.5 140.8 45.3 0H0v30.2L211.2 171 0 311.8V342h45.3l211.2-140.8L467.7 342H513v-30.2z"}),a.createElement("path",{fill:"#FFDA44",d:"m233.7 44.6 22.3 5.6 22.3-5.6 4-20.9-14.9 6.5L256 14.8l-11.4 15.4-14.9-6.5z"}),a.createElement("path",{fill:"#D80027",d:"M233.7 44.6s-4 12.9-4 29.9c0 27.9 26.3 41.3 26.3 41.3s26.3-15.5 26.3-41.3c0-15.4-4-29.9-4-29.9s-8.1-5-22.3-5-22.3 5-22.3 5z"}))},JM:function(e){var t=e.title,l=af(e,te);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M215.9 171 0 314.6V26.8zM513 26.8v287.8L296.1 171z"}),a.createElement("path",{fill:"#0052B4",d:"M513 26.8 296.1 171 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4L215.9 171 0 26.8V0h40.1L256 143.9 471.9 0H513z"}),a.createElement("path",{fill:"#FFDA44",d:"M513 26.8 296.1 171 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4L215.9 171 0 26.8V0h40.1L256 143.9 471.9 0H513z"}))},JO:function(e){var t=e.title,l=af(e,tt);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 228h513v114H0z"}),a.createElement("path",{fill:"#D80027",d:"M256.5 170.7 0 341.3V0z"}),a.createElement("path",{fill:"#FFF",d:"m77.9 139.5 7.9 16.4 17.8-4.1-8 16.5 14.3 11.3-17.8 4 .1 18.3-14.3-11.5-14.2 11.5v-18.3l-17.8-4 14.3-11.3-7.9-16.5 17.7 4.1z"}))},JP:function(e){var t=e.title,l=af(e,tl);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),a.createElement("circle",{fill:"#D80027",cx:256.5,cy:171,r:96}))},KE:function(e){var t=e.title,l=af(e,ta);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h512v90.579H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 251h513v91H0z"}),a.createElement("path",{fill:"#A2001D",d:"M0 114h513v114H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"m323.3 54.5-25.6-11.8L256 137l-41.7-94.3-25.6 11.8 51.8 116.2-51.8 116.2 25.6 11.8 41.7-94.4 41.7 94.4 25.6-11.8-51.8-116.2z"}),a.createElement("path",{d:"M273.4 65.6c-9.9-10.8-17.4-17-17.4-17s-7.5 6.2-17.4 17v210.1c9.9 10.8 17.4 17 17.4 17s7.5-6.2 17.4-17V65.6z"})),a.createElement("path",{d:"M209 105.9v129.5c10.5 18.5 23.3 33.7 32.9 43.8V62.1c-9.6 10.1-22.4 25.3-32.9 43.8zm94 0c-10.5-18.5-23.3-33.7-32.9-43.8v217.2c9.6-10.1 22.4-25.3 32.9-43.8V105.9z",fill:"#A2001D"}),a.createElement("path",{d:"M303 105.9v129.5c10.6-18.8 18.8-41 18.8-64.8s-8.2-45.9-18.8-64.7zm-94 0v129.5c-10.6-18.8-18.8-41-18.8-64.8s8.2-45.9 18.8-64.7z"}))},KG:function(e){var t=e.title,l=af(e,tc);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 342"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M0 0h513v342H0z"}),a.createElement("circle",{cx:256,cy:170.7,r:170.7})),a.createElement("path",{fill:"#FFDA44",d:"M382.4 170.7 330.8 195l27.5 50-56.1-10.7-7.1 56.6-39.1-41.7-39.1 41.7-7.1-56.6-56.1 10.7 27.5-50-51.6-24.3 51.6-24.3-27.5-50.1 56.1 10.8 7.1-56.7L256 92.1l39.1-41.7 7.1 56.7 56.1-10.8-27.5 50.1z"}),a.createElement("circle",{fill:"#D80027",cx:257.4,cy:170.7,r:71.6}),a.createElement("path",{d:"M214.2 170.7c-2.1 0-4.1.1-6.2.3.1 12 4.4 22.9 11.6 31.5 3.8-10.3 9.5-19.6 16.7-27.7-6.9-2.7-14.3-4.1-22.1-4.1zm26.6 46.5c5.2 1.9 10.8 2.9 16.6 2.9 5.8 0 11.4-1 16.6-2.9-2.8-11.1-8.7-21-16.6-28.8-7.9 7.8-13.8 17.7-16.6 28.8zm59.4-71.2c-8.5-14.8-24.5-24.7-42.8-24.7-18.3 0-34.2 9.9-42.8 24.7 15.6.1 30.2 4.3 42.8 11.6 12.6-7.3 27.2-11.6 42.8-11.6zm-21.7 28.8c7.2 8 12.9 17.4 16.7 27.7 7.2-8.5 11.5-19.5 11.6-31.5-2-.2-4.1-.3-6.2-.3-7.7 0-15.2 1.4-22.1 4.1z",fill:"#FFDA44"}))},KH:function(e){var t=e.title,l=af(e,tr);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#0052B4"}),a.createElement("path",{fill:"#FFF",d:"M303.5 196.6v-17.8h-11.9v-23.7l-11.9-11.9-11.8 11.9v-23.8L256 119.5l-11.9 11.8v23.8l-11.8-11.9-11.9 11.9v23.7h-11.9v17.8h-11.9v17.8h118.8v-17.8z"}))},KI:function(e){var t=e.title,l=af(e,th);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 450 300"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#CE1126",d:"M0 0h450v300H0V0z"}),a.createElement("g",{fill:"#FCD116"},a.createElement("circle",{cx:227.6,cy:161.2,r:56.2}),a.createElement("path",{d:"m254.1 73.4-23.7 26 28.6 6.5zm-51.5.2-4.8 33.1 28.5-8zm94.3 26.7-34.7 8.5 20.1 23.7zm-138.3-1.8 15.5 32.7 20.2-22.7zm159 45.3-34.4-9.9 5.6 29.5zm-182-2.6 31.9 19.8 5.2-27.7z"})),a.createElement("path",{fill:"#003F87",d:"M0 175h450v125H0V175z"}),a.createElement("path",{fill:"#FFF",d:"M0 267c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#FCD116",d:"m183.2 48.3-1.1-5.3 22.4-3.7s-30.1-7.1-40-10.7c-14.3-5.1-16.3-12.1-16.3-12.1s44.7 11 64.8 11c4.3 0 12.8 10.7 12.8 10.7s14.8-14.9 21.9-15.4c32.1-2.3 66.6-6.4 66.6-6.4s-10 6.7-16 8.5c-16.2 4.9-50.6 11.7-50.6 11.7l-4.8 7.5H277l-14.4 4.3 7.4 6.9s-7.8-4.1-18.1-2.1c-7.1 1.3-15.4 6-22.9 8-18.7 4.8-29.9-12.8-29.9-12.8l-15.9-.1z"}))},KM:function(e){var t=e.title,l=af(e,tn);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v85.5H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.5h513V171H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 171h513v85.5H0z"}),a.createElement("path",{fill:"#6DA544",d:"M256.5 171 0 342V0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M68.6 170.7c0-24.9 17.5-45.6 40.8-50.7-3.6-.8-7.3-1.2-11.1-1.2-28.7 0-51.9 23.3-51.9 51.9s23.3 51.9 51.9 51.9c3.8 0 7.5-.4 11.1-1.2-23.3-5.1-40.8-25.9-40.8-50.7z"}),a.createElement("path",{d:"m108.9 126.1 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.2-7.3 5.2 2.8-8.5-7.2-5.3h8.9zm0 22.3 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.3-7.3 5.3 2.8-8.5-7.2-5.3h8.9z"}),a.createElement("path",{d:"m108.9 170.7 2.7 8.5h9l-7.3 5.2 2.8 8.5-7.2-5.2-7.3 5.2 2.8-8.5-7.2-5.2h8.9zm0 22.2 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.3-7.3 5.3 2.8-8.5-7.2-5.3h8.9z"})))},KN:function(e){var t=e.title,l=af(e,tm);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M512 0H0v342"}),a.createElement("path",{fill:"#FFDA44",d:"M307.7 0 0 194.5V342h206.9L513 148.5V0z"}),a.createElement("path",{d:"M513 0H385.2L0 249.4V341l126.2 1L513 91.6z"}),a.createElement("path",{d:"m141.1 187 31.2 24 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.3-22.2zM310.6 70.8l31.2 23.9 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.4-22.2z",fill:"#FFF"}))},KP:function(e){var t=e.title,l=af(e,ti);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#91DC5A",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v57.188H0zm0 284.1h513v57.177H0z",fill:"#0052B4"}),a.createElement("path",{fill:"#D80027",d:"M0 79.9h513v181.582H0z"}),a.createElement("circle",{fill:"#FFF",cx:190.33,cy:171,r:65.668}),a.createElement("path",{fill:"#D80027",d:"m190.3 105 14.8 45.3h47.7l-38.6 28.1 14.8 45.5-38.7-28.2-38.6 28.1 14.8-45.4-38.6-28.1h47.7z"}))},KR:function(e){var t=e.title,l=af(e,tv);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h900v600H0z"}),a.createElement("g",{transform:"rotate(-56.31)"},a.createElement("path",{d:"M-75 228.3H75m-150 37.5H75m-150 37.5H75m-150 475H75m-150 37.5H75m-150 37.5H75",stroke:"#000",strokeWidth:25}),a.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"M0 753.3v125"}),a.createElement("circle",{fill:"#ca163a",cy:540.8,r:150}),a.createElement("path",{fill:"#0e4896",d:"M0 390.8c-41.4 0-75 33.6-75 75s33.6 75 75 75 75 33.6 75 75-33.6 75-75 75c-82.8 0-150-67.2-150-150s67.2-150 150-150z"})),a.createElement("path",{d:"m231.56 535.73-83.205-124.808M262.76 514.928l-83.205-124.807m114.407 104.006-83.205-124.808m478.43-138.675-83.205-124.807M720.39 209.843 637.184 85.036m114.407 104.006L668.386 64.234",stroke:"#000",strokeWidth:25}),a.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"m205.6 462.897 31.202-20.8m389.981-259.989 36.444-24.296m31.202-20.801 31.202-20.801"}))},KW:function(e){var t=e.title,l=af(e,tE);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 228h513v114H0z"}),a.createElement("path",{d:"M167 227.6 0 341.3V0l167 113.8z"}))},KY:function(e){var t=e.title,l=af(e,tz);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("circle",{fill:"#6DA544",cx:384,cy:96.5,r:29.7}),a.createElement("path",{fill:"#D80027",d:"M332.1 89H436v44.5H332.1z"}),a.createElement("path",{fill:"#496E2D",d:"M435.9 170.7z"}),a.createElement("path",{fill:"#FFDA44",d:"M332.1 200.3V230h15.6c9.4 9.2 22.2 14.8 36.3 14.8 14.1 0 27-5.7 36.3-14.8h15.6v-29.7H332.1z"}),a.createElement("path",{fill:"#338AF3",d:"M332.1 126.1v44.5c0 39.8 51.9 51.9 51.9 51.9s51.9-12.2 51.9-51.9v-44.5H332.1z"}),a.createElement("path",{d:"M384 149.9c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9v20.8c13 0 13 11.9 26 11.9s13-11.9 26-11.9 13 11.9 26 11.9 13-11.9 26-11.9v-20.8c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9zm0-41.6c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9v20.8c13 0 13 11.9 26 11.9s13-11.9 26-11.9 13 11.9 26 11.9 13-11.9 26-11.9v-20.8c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9z",fill:"#F3F3F3"}),a.createElement("path",{fill:"#FFF",d:"M256 0v22.6l-46.1 30.7H256v64h-46.1L256 148v22.7h-22.6l-73.4-49v49H96v-49l-73.4 49H0V148l46.1-30.7H0v-64h46.1L0 22.6V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.2H80zm256 0v15.1l-57.4 38.2H176z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.2H80zm256 0v15.1l-57.4 38.2H176zM0 170.7v-15.1l57.4-38.3H80zm256 0v-15.1l-57.4-38.3H176z"})))},KZ:function(e){var t=e.title,l=af(e,tf);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#36B6CC",d:"M0 0h513v342H0V0z"}),a.createElement("circle",{fill:"#FFD400",cx:256.5,cy:170.9,r:68.4}),a.createElement("path",{fill:"#FFD400",d:"m256.5 251.5-27.9 41.7-7.1-49.7-43.2 25.5 15.2-47.8-50 4.2 34.4-36.5-46.9-18 46.8-18-34.4-36.5 50 4.2-15.2-47.8 43.2 25.4 7.1-49.7 27.9 41.7 27.9-41.7 7.1 49.7 43.2-25.4-15.2 47.8 50-4.2-34.3 36.6 46.8 17.9-46.8 18 34.4 36.5-50-4.2 15.2 47.8-43.2-25.4-7.1 49.7c0-.1-27.9-41.8-27.9-41.8zm0-.8c44.1 0 79.9-35.8 79.9-79.9S300.6 91 256.5 91s-79.9 35.8-79.9 79.9 35.8 79.8 79.9 79.8zM22.8 28.3c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V28.3zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V74zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm22.8-22.8c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7V245c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V188zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V96.8zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V51.2z"}))},LA:function(e){var t=e.title,l=af(e,tp);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 .1h513v90.7H0zm0 251.2h513V342H0z",fill:"#D80027"}),a.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:65.9}))},LB:function(e){var t=e.title,l=af(e,tw);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 .2h513v90.7H0zm.5 251.1H513V342H.5z",fill:"#D80027"}),a.createElement("path",{fill:"#6DA544",d:"M290.3 193.5 256 130.7l-34.3 62.8h25.7v17.2h17.2v-17.2z"}),a.createElement("path",{fill:"#14AF5A",d:"M241.3 213.1c4.4-4.4 4.4-11.6-.1-16l4.7 4.7c-5.2-4.7-12.2-6.6-19.1-5.3l-23.5 5.9c-6.1 1.5-6.8-.4-1.8-4.2l27.1-20.3c5.1-3.8 4.2-6.9-2.3-6.9h-11c-6.4 0-7-2.3-1.5-5.1l25.3-12.7c5.6-2.8 5.1-5.1-1.5-5.1h-11c-6.4 0-7.4-3.1-2.3-6.9l27.1-20.3c5.6-3.8 12.9-3.8 18.5 0l27.1 20.3c5.1 3.8 4.2 6.9-2.3 6.9h-11c-6.4 0-7 2.3-1.5 5.1l25.3 12.7c5.6 2.8 5.1 5.1-1.5 5.1h-11c-6.4 0-7.4 3.1-2.3 6.9l27.1 20.3c5.1 3.8 4.4 5.7-1.8 4.2l-23.5-5.9c-6.8-1.3-13.9.6-19.1 5.3l4.7-4.7c-4.4 4.4-4.5 11.5-.1 16l6.8 6.8c4.4 4.4 3.1 8-3.3 8h-45.8c-6.2 0-7.7-3.6-3.3-8 .1.1 6.9-6.8 6.9-6.8z"}))},LC:function(e){var t=e.title,l=af(e,ts);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#55B2FF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#F3F3F3",d:"M148.5 298.1h216l-108-254.2z"}),a.createElement("path",{fill:"#333",d:"m186 272.7 70.5-160.3L327 272.7z"}),a.createElement("path",{fill:"#FFDA44",d:"M148.5 298.1h216l-108-101.7z"}))},LI:function(e){var t=e.title,l=af(e,td);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v171H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M149.3 98.1c0-14-11.3-25.3-25.3-25.3-6.5 0-12.4 2.4-16.9 6.4V64.4h8.4V47.5h-8.4v-8.4H90.3v8.4h-8.4v16.9h8.4v14.9c-4.5-4-10.4-6.4-16.9-6.4-14 0-25.3 11.3-25.3 25.3 0 7.5 3.3 14.2 8.4 18.8v14.9h84.3V117c5.3-4.7 8.5-11.5 8.5-18.9z"}))},LK:function(e){var t=e.title,l=af(e,tM);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#A2001D",d:"M222.6 22.3h267.1v296.8H222.6z"}),a.createElement("path",{fill:"#D80027",d:"M22.3 22.3h200.3v296.8H22.3z"}),a.createElement("path",{fill:"#FFDA44",d:"M200.3 0h22.3v342h-22.3z"}),a.createElement("path",{fill:"#6DA544",d:"M22.3 22.3h89v296.8h-89z"}),a.createElement("path",{fill:"#FF9811",d:"M111.3 22.3h89v296.8h-89z"}),a.createElement("path",{fill:"#FFDA44",d:"M368.2 156.8c-1.4-2 0-37.9 0-37.9.9-7.4.1-8.4 1-11.4.9-2.9 5.4-11.6 5.4-11.6s-6-2.3-10.3-.6c-4.3 1.7-24.7-7.5-31.2 3.4-4.4 7-23.6 16.2-24.6 14-1-2.2-5.9-5-6.9-2.9s-.7 13.9 0 16c.8 2.6 9.8 2 12.3 3.1 3.7 1.8 12.2 8.2 11.9 10.7-.3 2.5-22.5-6-24.2-4.5-1.4 1.2-1.9 13.2-.4 15 1.8 2.1 23.4 5.6 25 7.5 1.6 1.9-13.1 7.4-12.3 25 .7 14.7 8 17.4 8 17.4s-2.4 3.6-7.8 3.1c-6.2-.6-27.4-17.7-27.4-17.7s-3.5-109 3.6-121.4c4.9-8.5-22.7 10.1-22.7 50.8V151c0 6.6-1.4 22.4 2.6 34 0 0-.4 46.9 1.5 49.6s12.7 2.2 14.8 0 0-30 0-30c7.7.2 18.3 17.5 32.5 16.4 20.6-1.6 28.7-9.9 34.3-5 8.1 7.1 5.5 23.2.4 31.5-2.2 3.5-14.3 4.7-15.7 7.6-1.4 2.9.5 5.4.5 5.4h29.7s1.4-20.5 2.7-26.1c1.3-5.7-.6-10.7 5.9-10.4 23.5 1.1 39.8-15.3 45.5-8 3.2 4.1 5.6 29.9 3.3 33.3-2.2 3.4-13.8 2.8-15.2 6.7-1.4 4 .8 4.4.8 4.4h29.7s-.4-21.2 2.5-27.7 4.9-10.4 9.3-17.2c4.4-6.8 11.3-15.7 11.3-36.2 0-14.2-8.1-22.8-8.1-22.8H417c-14.1.2-47.4 2.3-48.8.3zm-136-124.5c10.7-10.6 20.2-2.7 22.2 2.1 1.9 4.8 2.1 8.2 2.8 13.6.9 6.9 4.9 14 4.9 14s-7.1-3.8-14.7-4.2c-4.7-.3-9-.6-13.6-2.5-5.7-2.3-11.7-12.9-1.6-23zm248.4-.1c10.7 10.6 2.8 20.2-2 22.2s-8.2 2.1-13.6 2.8c-6.9.9-14 5-14 5s3.7-7.1 4.2-14.7c.3-4.7.6-9.1 2.4-13.6 2.2-5.7 12.8-11.8 23-1.7zm.1 276.9c-10.7 10.6-20.2 2.6-22.2-2.2-1.9-4.8-2.1-8.2-2.7-13.6-.8-6.9-4.9-14.1-4.9-14.1s7 3.8 14.7 4.3c4.7.3 9 .6 13.6 2.5 5.7 2.4 11.7 13.1 1.5 23.1zm-248.2-.1c-10.6-10.7-2.7-20.2 2.1-22.2 4.8-1.9 8.2-2.1 13.6-2.8 6.9-.9 14-4.9 14-4.9s-3.8 7.1-4.2 14.7c-.3 4.7-.6 9-2.5 13.6-2.3 5.7-12.9 11.8-23 1.6z"}),a.createElement("path",{fill:"none",stroke:"#FFDA44",strokeWidth:6,strokeMiterlimit:10,d:"M446.9 162.4s7.5-2.6 8.4-16.1c.6-8.6-19.8-16-39-11.5-19.7 4.6-34-3.1-34-14.6 0-22.9 29.7-16.2 38.9-11.3 9.1 4.9 29.7 23.5 35.1 9.4"}))},LR:function(e){var t=e.title,l=af(e,tF);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v31.1H0zm0 62.2h513v31.1H0zm0 62.3h513v31.1H0zm0 62.3h513v31.1H0zm0 62.5h513v31.1H0zm0 61.6h513V342H0z",fill:"#bf0a30"}),a.createElement("path",{fill:"#002868",d:"M0 0h155.6v155.6H0z"}),a.createElement("path",{fill:"#FFF",d:"m77.8 30.2 10.7 32.9h34.6l-28 20.4 10.7 32.9-28-20.3-28 20.3 10.7-32.9-28-20.4h34.6z"}))},LS:function(e){var t=e.title,l=af(e,tH);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 227.6h513v114H0z"}),a.createElement("path",{d:"m245.2 171 7.7-23.1c2-5.9 5.1-6 7.1 0l7.7 23.1 19.4 29.1c1.7 2.6 1.3 6.3-1.2 8 0 0-6.9 8-29.5 8s-29.5-8-29.5-8c-2.4-2-2.9-5.4-1.2-8l19.5-29.1z"}),a.createElement("path",{d:"M256.5 171c-12.5 0-22.6-10.1-22.6-22.6 0-12.5 10.1-22.6 22.6-22.6s22.6 10.1 22.6 22.6c0 12.5-10.2 22.6-22.6 22.6zm0 0c6.2 0 11.3-16.3 11.3-22.6 0-6.2-5.1-11.3-11.3-11.3-6.2 0-11.3 5.1-11.3 11.3 0 6.3 5 22.6 11.3 22.6z"}))},LT:function(e){var t=e.title,l=af(e,to);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 228h513v114H0z"}))},LU:function(e){var t=e.title,l=af(e,tg);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 228h513v114H0z"}))},LV:function(e){var t=e.title,l=af(e,tu);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{className:"prefix__st1",d:"M0 0h513v127.6H0zm0 214.4h513V342H0z",fill:"#A2001D"}))},LY:function(e){var t=e.title,l=af(e,tx);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 228h513v114H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"m281.4 150.7 9 12.3 14.5-4.7-9 12.4 9 12.3-14.5-4.7-9 12.3v-15.2l-14.5-4.7 14.5-4.7z"}),a.createElement("path",{d:"M257 201.5c-17 0-30.9-13.8-30.9-30.9s13.8-30.9 30.9-30.9c5.3 0 10.3 1.3 14.7 3.7-6.9-6.7-16.2-10.8-26.6-10.8-21 0-38 17-38 38s17 38 38 38c10.3 0 19.7-4.1 26.6-10.8-4.4 2.4-9.4 3.7-14.7 3.7z"})))},MA:function(e){var t=e.title,l=af(e,tD);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 .3V342h513V.3z"}),a.createElement("path",{fill:"#20661B",d:"M359.8 148.9h-73.3l-22.7-69.7-22.7 69.7h-73.3l59.3 43.1-22.7 69.7 59.3-43.1 59.3 43.1-22.5-69.7 59.3-43.1zm-116.1 37.7 7.7-23.6h24.8l7.7 23.6-20.1 14.6-20.1-14.6zm27.9-37.7H256l7.8-24 7.8 24zm24.3 29-4.8-14.9h25.3l-20.5 14.9zM236.6 163l-4.8 14.9-20.5-14.9h25.3zm-5.3 61.8 7.8-24 12.6 9.2-20.4 14.8zm44.5-14.9 12.6-9.2 7.8 24-20.4-14.8z"}))},MC:function(e){var t=e.title,l=af(e,tB);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.333h512v341.333H0z"}),a.createElement("path",{fill:"#c70000",d:"M0 85.333h512V256H0z"}))},MD:function(e){var t=e.title,l=af(e,tL);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#AF7F59",d:"M206.2 129.1h33.2L256 79.3l16.6 49.8h33.2v99.6L256 262l-49.8-33.2v-99.7zm33.2 33.3v49.8h33.2v-49.8h-33.2z"}))},ME:function(e){var t=e.title,l=af(e,tV);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#E6BE53",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#E01D24",d:"M20 20h473v302H20z"}),a.createElement("path",{fill:"#E6BE53",d:"M248.5 112.9c4.4 4.4 11.6 4.4 16 0l-4.7 4.7 22.7-22.7c4.9-4.5 12.1-5.6 18.2-2.8l2.1 1c5.7 2.9 6.7 8.7 2.3 13.1l4.7-4.7-22.8 22.8c-4.5 4.9-5.6 12.1-2.8 18.2l1 2.1c2.9 5.7 5.1 15.4 5.1 21.6v-11.3c0 6.2 4.4 9.1 10.2 6.2l2.1-1c5.7-2.9 6.7-8.7 2.3-13.1l4.7 4.7c-4.4-4.4-4.4-11.6 0-16l-4.7 4.7c5.2-5.5 9.6-11.6 13.1-18.2l1-2.1c2.9-5.7 6.3-15.1 7.9-21.2l5.8-23.3c1.5-6 5.9-6.8 9.6-1.8l20.2 26.9c3.8 5.1 6.9 14 6.9 20.6v22.4c0 6.3-2.2 15.8-5.1 21.7l-1 2.1c-3.5 6.6-7.9 12.7-13.1 18.2l-6.8 6.8c-5.4 5.2-11.5 9.6-18.2 13.1l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.2 0-6.9 2.2-1.1 5.1l2.1 1c5.7 2.9 13.8 8.7 18.2 13.1l-4.7-4.7c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L339 226c4.6 4.9 5.7 12.1 2.9 18.2l-1 2.1c-2.9 5.7-10.4 10.2-16.4 10.2-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.5-3.6-11.8-8.9-15.4-15.4l-1-2.1c-2.9-5.7-8.7-6.7-13.1-2.3l4.7-4.7c-4.4 4.7-5.2 11.8-1.8 17.3l10.3 15.4c3.4 5.1 2 12.1-3.1 15.5L266 284.4c-5.7 3.4-12.8 3.4-18.6 0L232 274.1c-5.1-3.4-6.5-10.3-3.1-15.5l10.3-15.4c3.4-5.5 2.6-12.6-1.8-17.3l4.7 4.7c-4.4-4.4-10.2-3.6-13.1 2.3l-1 2.1c-2.9 5.7-9.5 12.4-15.4 15.4l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.9-.3-13.1-4.2-16.4-10.2l-1-2.1c-2.8-6.1-1.6-13.3 2.9-18.2l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L181 226c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c5.5-5.2 11.6-9.6 18.2-13.1l2.1-1c5.7-2.9 5-5.1-1.1-5.1-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.6-3.5-12.7-7.9-18.2-13.1l-6.8-6.8c-5.2-5.4-9.6-11.5-13.1-18.2l-1-2.1c-3.1-6.8-4.9-14.2-5.1-21.7V121c0-6.3 3.1-15.6 6.9-20.6l20.2-26.9c3.8-5.1 8.1-4.3 9.6 1.8l5.8 23.3c2 7.3 4.6 14.4 7.9 21.2l1 2.1c2.9 5.7 8.7 13.8 13.1 18.2l-4.7-4.7c4.4 4.4 4.4 11.6 0 16l4.7-4.7c-4.4 4.4-3.6 10.2 2.3 13.1l2.1 1c5.7 2.9 10.2 0 10.2-6.2v11.3c0-6.2 2.2-15.7 5.1-21.6l1-2.1c2.8-6.1 1.7-13.2-2.8-18.2l-22.7-22.7 4.7 4.7c-4.4-4.4-3.6-10.2 2.3-13.1l2.1-1c6.1-2.8 13.2-1.7 18.2 2.8l22.7 22.7-4.8-4.5zm-18-40.7c-4.4-4.4-3.2-9.5 2.8-11.5l12.4-4.2c6-2 15.5-2 21.5 0l12.4 4.2c6 2 7.2 7.1 2.8 11.5l-6.8 6.8c-5.3 4.7-12.1 7.5-19.2 7.9-6.2 0-14.8-3.5-19.2-7.9.1 0-6.7-6.8-6.7-6.8z"}),a.createElement("path",{fill:"#215F90",d:"M233.9 200.2c0 6.2 1.7 6.4 4.2.5 0 0 7.1-23.2 18.4-23.2 11.3 0 18.6 23.6 18.6 23.6 2.2 5.7 4 5.3 4-1.1v-11.2c0-18.7-10.1-33.9-22.6-33.9-12.5 0-22.6 15.2-22.6 33.9v11.4z"}))},MF:function(e){var t=e.title,l=af(e,tA);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 108 72"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 0h108v72H0z",fill:"#003787"}),a.createElement("path",{d:"M0 0h108L60 48v24H48V48z",fill:"#fff"}),a.createElement("circle",{cx:54,cy:30,r:8,fill:"#f9d90f"}),a.createElement("path",{d:"M44 30h20L54 48z",fill:"#fff"}),a.createElement("path",{d:"M54 48 38 33h32z",fill:"#cf142b"}))},MG:function(e){var t=e.title,l=af(e,ty);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M512 426.666V85.329H0v341.337h512z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.331H0v170.666h512V85.331z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.334h181.793v341.337H0z"}))},MH:function(e){var t=e.title,l=af(e,tC);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#1E509C",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M513 176.1V81.3L0 342l513-165.9z"}),a.createElement("path",{fill:"#F18D36",d:"M513 0v81.3L0 342 513 0z"}),a.createElement("path",{fill:"#FFF",d:"m126.7 99.3-7.8-54.1-7.7 54.1-20.8-23.7 10.7 31.6-31.5-10.7 23.6 20.8-54.1 7.7 54.1 7.7-23.6 20.8 31.5-10.7-10.7 31.6 20.8-23.7 7.7 54.1 7.8-54.1 20.7 23.7-10.6-31.6 31.5 10.7-23.6-20.8 54-7.7-54-7.7 23.6-20.8-31.5 10.7 10.6-31.6z"}))},MK:function(e){var t=e.title,l=af(e,tk);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.333h512V426.67H0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M383.875 426.662 256 252.286l26.827 174.376zM133.565 85.33 256 252.286 230.314 85.33zm95.606 341.332L256 252.286 128.124 426.662zM0 85.33V212.9l256 39.386L28.333 85.33zm0 341.332h18.212L256 252.286 0 291.67zm256-174.376L512 212.9V85.33h-28.331zM281.686 85.33 256 252.286 378.434 85.33zM512 426.662V291.671l-256-39.385 237.787 174.376z"}),a.createElement("circle",{cx:256,cy:252.29,r:59.359})),a.createElement("circle",{fill:"#FFDA44",cx:256,cy:252.29,r:44.522}))},ML:function(e){var t=e.title,l=af(e,tS);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 85.331h170.663v341.337H0z"}),a.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},MM:function(e){var t=e.title,l=af(e,tW);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#FFF",d:"M384 227.261h-97.783L256 134.265l-30.217 92.997H128l79.108 57.475-30.217 92.998L256 320.925l79.108 56.81-30.217-92.998L384 227.261z"}))},MN:function(e){var t=e.title,l=af(e,tb);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#095FAD",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M342 0h171v342H342zM0 0h171v342H0z",fill:"#BE1229"}),a.createElement("g",{fill:"#FFDA44"},a.createElement("path",{d:"M108.3 166.3h14.8v74.2h-14.8zm-59.4 0h14.8v74.2H48.9z"}),a.createElement("circle",{cx:86,cy:203.4,r:14.8}),a.createElement("path",{d:"M71.2 225.7h29.7v14.8H71.2zm0-59.4h29.7v14.8H71.2z"}),a.createElement("circle",{cx:86,cy:144,r:14.8}),a.createElement("path",{d:"M76.3 123.9h19.5L86 108.3z"})))},MO:function(e){var t=e.title,l=af(e,tG);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#00745a",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M285.682 248.878c-4.19 0-8.166.836-11.861 2.164 2.023-4.509 3.379-9.527 3.379-14.885 0-21.201-21.201-37.101-21.201-37.101s-21.201 15.901-21.201 37.101c0 5.357 1.356 10.375 3.379 14.885-3.693-1.328-7.671-2.164-11.861-2.164-21.201 0-37.101 21.201-37.101 21.201s15.901 21.201 37.101 21.201c12.429 0 23.031-7.286 29.682-13.315 6.65 6.03 17.251 13.315 29.682 13.315 21.201 0 37.101-21.201 37.101-21.201s-15.899-21.201-37.099-21.201z"}),a.createElement("path",{d:"m256 152.111 4.38 13.476h14.171l-11.464 8.332 4.376 13.476-11.463-8.33-11.463 8.33 4.376-13.476-11.464-8.332h14.171zm-53.888 23.572 8.425 7.585 9.818-5.667-4.61 10.355 8.423 7.588-11.274-1.185-4.611 10.355-2.358-11.088-11.275-1.185 9.818-5.669zm-39.45 39.449 11.09 2.358 5.668-9.818 1.186 11.274 11.089 2.358-10.357 4.61 1.186 11.274-7.587-8.423-10.357 4.61 5.669-9.818zm147.227-39.449-8.425 7.585-9.818-5.667 4.611 10.355-8.425 7.588 11.275-1.185 4.61 10.355 2.359-11.088 11.275-1.185-9.818-5.669zm39.449 39.449-11.089 2.358-5.669-9.818-1.186 11.274-11.088 2.358 10.357 4.61-1.185 11.274 7.586-8.423 10.357 4.61-5.669-9.818z",fill:"#FFDA44"}),a.createElement("path",{d:"M256 350.642c16.84 0 32.363-5.619 44.816-15.073h-89.63c12.451 9.454 27.974 15.073 44.814 15.073zm-68.023-44.522a74.138 74.138 0 0 0 8.85 15.073h118.345a74.13 74.13 0 0 0 8.85-15.073H187.977z",fill:"#FFF"}))},MP:function(e){var t=e.title,l=af(e,tT);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 750 500"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0071BC",d:"M0 0h750v500H0V0z"}),a.createElement("g",{fill:"#FFF",stroke:"#000",strokeWidth:1.9},a.createElement("circle",{cx:375,cy:245,r:225,fill:"#fff"}),a.createElement("circle",{cx:375,cy:245,r:165,fill:"#0071BC"})),a.createElement("g",{stroke:"#000"},a.createElement("path",{fill:"#8C8A8C",strokeWidth:1.9,d:"M444.7 450c.7 11-7.8 20-18.8 20H323.6c-11 0-19.5-9-19-20l16.7-325c.6-11 10-20 21-20h61.4c11 0 20.5 9 21.2 20l19.8 325z"}),a.createElement("path",{fill:"#FFF",strokeWidth:2,strokeLinejoin:"round",d:"m373 114 30 93h97l-78 56 29 92-78-56-78 57 30-93-79-57h97l30-92z"})))},MQ:function(e){var t=e.title,l=af(e,tN);return a.createElement("svg",az({viewBox:"0 0 900 600",xmlns:"http://www.w3.org/2000/svg"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#231f1e",d:"M0 0h900v600H0z"}),a.createElement("path",{fill:"#00a650",d:"M0 0h900v300H0z"}),a.createElement("path",{fill:"#ef1923",d:"m0 0 450 300L0 600z"}))},MR:function(e){var t=e.title,l=af(e,tO);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 100 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#006233",d:"M0 100h513v342H0z"}),a.createElement("path",{fill:"#cd2a3e",d:"M0 100h513v46H0zm0 296h513v46H0z"}),a.createElement("path",{fill:"#ffc400",d:"M256 298.851c-45.956 0-84.348-32.298-93.767-75.429A96.288 96.288 0 0 0 160 243.994c0 53.02 42.979 96 96 96s96-42.98 96-96c0-7.066-.785-13.942-2.233-20.572-9.419 43.131-47.811 75.429-93.767 75.429z"}),a.createElement("path",{fill:"#ffc400",d:"m255.999 171.994 8.935 27.502h28.918l-23.394 16.996 8.936 27.503-23.395-16.998-23.394 16.998 8.937-27.503-23.394-16.996h28.915z"}))},MS:function(e){var t=e.title,l=af(e,tR);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#1B4991",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00A2B8",stroke:"#FFF",strokeWidth:3,d:"M318.2 106.7v106.5c0 51.9 67.8 67.8 67.8 67.8s67.8-15.9 67.8-67.8V106.7H318.2z"}),a.createElement("path",{fill:"#A35023",d:"M319.7 212.7c0 50.8 66.3 66.3 66.3 66.3s66.3-15.6 66.3-66.3H319.7z"}),a.createElement("path",{d:"M415.1 155.1h-19.4v-19.4h-19.4v19.4H357v19.4h19.3v58.1h19.4v-58.1h19.4z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{fill:"#D80027",d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z"}),a.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{fill:"#D80027",d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z"}))},MT:function(e){var t=e.title,l=af(e,tI);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#C31B28",d:"M256 0h256.5v342H256z"}),a.createElement("path",{fill:"#ACABB1",stroke:"#C31B28",strokeWidth:2,d:"M101.2 68.2V33H66v35.2H30.8v35.2H66v35.2h35.2v-35.2h35.2V68.2z"}))},MU:function(e){var t=e.title,l=af(e,tP);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#f7ce00",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{fill:"#e32737",d:"M0 85.331h512v85.337H0z"}),a.createElement("path",{fill:"#191f6a",d:"M0 170.657h512v85.337H0z"}),a.createElement("path",{fill:"#00a04e",d:"M0 341.331h512v85.337H0z"}))},MV:function(e){var t=e.title,l=af(e,tK);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#d01920",d:"M0 85.331h512v341.333H0z"}),a.createElement("path",{fill:"#017c3b",d:"M144.696 174.375h222.609v163.25H144.696z"}),a.createElement("path",{fill:"#FFF",d:"M283.484 304.226c-26.637 0-48.232-21.594-48.232-48.232s21.594-48.232 48.232-48.232c8.306 0 16.12 2.1 22.943 5.797-10.703-10.467-25.341-16.927-41.494-16.927-32.784 0-59.362 26.577-59.362 59.362s26.578 59.362 59.362 59.362c16.154 0 30.791-6.461 41.494-16.927-6.822 3.698-14.636 5.797-22.943 5.797z"}))},MW:function(e){var t=e.title,l=af(e,tU);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#272727",d:"M0 0h512v114H0z"}),a.createElement("path",{fill:"#e40112",d:"M0 114h512v114H0z"}),a.createElement("path",{fill:"#07893f",d:"M0 228h512v114H0z"}),a.createElement("circle",{fill:"#e40112",cx:256,cy:125,r:95}))},MX:function(e){var t=e.title,l=af(e,tZ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#dc2339",d:"M342 0H0v341.3h513V0z"}),a.createElement("path",{fill:"#11865d",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M171 0h171v342H171z"}),a.createElement("path",{fill:"#8C9157",d:"M195.8 171.2c0 21.6 11.5 41.7 30.3 52.5 5.8 3.4 13.2 1.4 16.6-4.4 3.4-5.8 1.4-13.2-4.4-16.6-11.3-6.5-18.2-18.5-18.2-31.5 0-6.7-5.4-12.1-12.1-12.1-6.7 0-12.2 5.4-12.2 12.1zm93.4 51.1c17.5-11.1 28-30.4 28-51.1 0-6.7-5.4-12.1-12.1-12.1s-12.1 5.4-12.1 12.1c0 12.4-6.3 24-16.8 30.7-5.7 3.5-7.5 10.9-4.1 16.7s10.9 7.5 16.7 4.1c0-.2.2-.3.4-.4z"}),a.createElement("ellipse",{fill:"#C59262",cx:256.5,cy:159.1,rx:24.3,ry:36.4}))},MY:function(e){var t=e.title,l=af(e,tY);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0zm0 48.9h513V171H0zm0 48.8h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0z",fill:"#c00"}),a.createElement("path",{fill:"#006",d:"M0 0h256.5v195.4H0z"}),a.createElement("path",{d:"M153.3 42.1C122.6 30.7 88.5 46.3 77.1 77s4.2 64.8 34.9 76.2c13.3 5 28 5 41.4 0-30.7 24.5-75.4 19.6-100-11.1s-19.6-75.4 11.1-100c26-20.7 62.9-20.7 88.8 0zm26.7 75-20.6 23.3 5.4-30.6-31-1.6 27.3-14.9L143 68l28.6 12 8.4-29.9 8.4 29.9L217 68l-18 25.4 27.3 14.9-31 1.6 5.4 30.6-20.7-23.4z",fill:"#fc0"}))},MZ:function(e){var t=e.title,l=af(e,tJ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.333h513v342H0z"}),a.createElement("path",{fill:"#f4d900",d:"M0 323.333h513v104H0z"}),a.createElement("path",{fill:"#006d66",d:"M0 85.333h513v104H0z"}),a.createElement("path",{d:"M0 204.333h513v104H0z"}),a.createElement("path",{fill:"#cb0f31",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("path",{fill:"#f4d900",d:"m83.477 195.132 15.107 46.498h48.894l-39.554 28.739 15.107 46.499-39.554-28.738-39.555 28.738 15.11-46.499-39.554-28.739H68.37z"}))},NA:function(e){var t=e.title,l=af(e,tj);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.337h512"}),a.createElement("path",{fill:"#FFF",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),a.createElement("path",{fill:"#A2001D",d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}),a.createElement("path",{fill:"#FFDA44",d:"m187.737 189.212-22.741 10.696 12.11 22.024-24.693-4.724-3.129 24.945-17.199-18.347-17.2 18.347-3.129-24.945-24.693 4.723 12.109-22.023-22.739-10.696 22.74-10.697-12.11-22.022 24.693 4.722 3.13-24.944 17.199 18.347 17.2-18.347 3.128 24.944 24.693-4.722-12.108 22.024z"}))},NC:function(e){var t=e.title,l=af(e,tQ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 426.7"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#009543",d:"M0 293h640v133.7H0V293z"}),a.createElement("path",{fill:"#ED4135",d:"M0 132h640v161.3H0V132z"}),a.createElement("path",{fill:"#0035AD",d:"M0 0h640v133.3H0V0z"}),a.createElement("circle",{fill:"#FAE600",stroke:"#000",strokeWidth:5.3,cx:240,cy:213.3,r:157.3}),a.createElement("path",{d:"m307.9 354.5-31.8 12-36.1 4.2-37.8-2.4-35.9-15.5s28.6-29.3 40.7-33.5c8.6-3 22.4-3.7 22.4-3.7V122l-.3-66H246l-.5 67.5v191.7s15.3 1.2 22.1 4.1c11.3 4.9 40.3 35.2 40.3 35.2z"}),a.createElement("path",{d:"m212.727 102.375 42.955-21.418 5.577 11.187-42.955 21.417z"}),a.createElement("ellipse",{cx:237.8,cy:280.5,rx:16.8,ry:26.5}),a.createElement("circle",{cx:237.4,cy:143.4,r:20.9}),a.createElement("ellipse",{cx:238.4,cy:211.1,rx:19.9,ry:12.1}),a.createElement("path",{d:"M213.8 177h47v10h-47zm0 57h47v10h-47z"}))},NE:function(e){var t=e.title,l=af(e,t_);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#e05206",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#0db02b",d:"M0 312.888h512v113.775H0z"}),a.createElement("circle",{fill:"#e05206",cx:256,cy:256,r:32}))},NF:function(e){var t=e.title,l=af(e,tX);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.5 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.5h513v342H0z"}),a.createElement("path",{d:"M0 85.5h171v342H0zm342 0h171v342H342zm-38 226.495-48-152.001-48 152.001h36v39.999h24v-39.999z",fill:"#007b23"}))},NG:function(e){var t=e.title,l=af(e,tq);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.5 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.5h513v342H0z"}),a.createElement("path",{d:"M0 85.5h171v342H0zm342 0h171v342H342z",fill:"#007b23"}))},NI:function(e){var t=e.title,l=af(e,t$);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#338AF3"}),a.createElement("path",{fill:"#FFDA44",d:"M256 214.447c-22.949 0-41.553 18.603-41.553 41.553S233.05 297.553 256 297.553c22.949 0 41.553-18.603 41.553-41.553S278.949 214.447 256 214.447zm0 65.298c-13.114 0-23.745-10.631-23.745-23.745s10.631-23.745 23.745-23.745 23.745 10.631 23.745 23.745-10.631 23.745-23.745 23.745z"}),a.createElement("path",{fill:"#0052B4",d:"M276.563 261.936 256 256l-20.563 5.936-6.855 11.873h54.836z"}),a.createElement("path",{fill:"#338AF3",d:"m256 226.32-13.709 23.744L256 256l13.709-5.936z"}),a.createElement("path",{fill:"#6DA544",d:"M235.437 261.936h41.126l-6.854-11.872h-27.418z"}))},NL:function(e){var t=e.title,l=af(e,t1);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#cd1f2a",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#1d4185",d:"M0 228h513v114H0z"}))},NO:function(e){var t=e.title,l=af(e,t2);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),a.createElement("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},NP:function(e){var t=e.title,l=af(e,t3);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.337l280.419 174.75H87.61l183.576 166.576z"}),a.createElement("path",{fill:"#D80027",d:"M244.769 249.888 10.199 103.71v312.754h234.57L61.193 249.888z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"m98.003 324.433-14.589-6.863 7.77-14.13-15.844 3.03-2.008-16.005-11.035 11.772-11.036-11.772-2.008 16.005-15.843-3.031 7.77 14.131-14.591 6.863 14.591 6.862-7.77 14.13 15.844-3.029 2.007 16.004 11.036-11.772L73.332 358.4l2.008-16.004 15.843 3.03-7.769-14.13zm-9.735-132.771-10.612-4.991 5.651-10.278-11.523 2.205-1.461-11.641-8.026 8.561-8.026-8.561-1.46 11.641-11.525-2.205 5.652 10.278-10.613 4.991 25.972 5.194z"}),a.createElement("path",{d:"M93.462 191.662c0 17.212-13.953 31.165-31.165 31.165s-31.165-13.953-31.165-31.165"})))},NR:function(e){var t=e.title,l=af(e,t0);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 239.994h512v32H0z"}),a.createElement("path",{fill:"#FFF",d:"m174.802 341.329-19.124 8.996 10.184 18.521-20.767-3.973-2.631 20.978L128 370.422l-14.465 15.429-2.63-20.978-20.767 3.973 10.183-18.521-19.123-8.996 19.124-8.995-10.184-18.52 20.766 3.971 2.632-20.978L128 312.236l14.465-15.429 2.63 20.978 20.767-3.971-10.183 18.521z"}))},NU:function(e){var t=e.title,l=af(e,t4);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.334h256v170.663H0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 85.33h-32v69.333H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80z"})),a.createElement("path",{d:"M0 107.951v30.712h46.069zm96-22.62v48.913L22.628 85.331z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M256 85.329v15.083l-57.377 38.251H176z"}),a.createElement("path",{d:"M256 107.951v30.712h-46.069zm-96-22.62v48.913l73.372-48.913z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M0 85.329v15.083l57.377 38.251H80z"}),a.createElement("path",{d:"M0 107.951v30.712h46.069zm96-22.62v48.913L22.628 85.331z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M256 85.329v15.083l-57.377 38.251H176z"}),a.createElement("path",{d:"M256 107.951v30.712h-46.069zm-96-22.62v48.913l73.372-48.913z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M0 255.997v-15.082l57.377-38.252H80z"}),a.createElement("path",{d:"M0 233.376v-30.713h46.069zm96 22.618v-48.912l-73.372 48.912z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M256 255.997v-15.082l-57.377-38.252H176z"}),a.createElement("g",{fill:"#2E52B2"},a.createElement("path",{d:"M256 233.376v-30.713h-46.069zm-96 22.618v-48.912l73.372 48.912z"}),a.createElement("circle",{cx:128,cy:170.66,r:22.627})),a.createElement("path",{d:"m128 154.663 3.97 12.222h12.854l-10.398 7.556 3.971 12.222L128 179.109l-10.398 7.554 3.972-12.222-10.398-7.556h12.853zm0 65.14 2.364 7.278h7.653l-6.19 4.498 2.364 7.278-6.191-4.498-6.191 4.498 2.364-7.278-6.19-4.498h7.652zm0-117.334 2.364 7.278h7.653l-6.19 4.498 2.364 7.278-6.191-4.498-6.191 4.498 2.364-7.278-6.19-4.498h7.652zm69.931 58.667 2.365 7.277h7.653l-6.192 4.499 2.365 7.279-6.191-4.498-6.191 4.498 2.365-7.279-6.191-4.499h7.652zm-139.862 0 2.364 7.277h7.653l-6.191 4.499 2.364 7.279-6.19-4.498-6.191 4.498 2.365-7.279-6.192-4.499h7.653z",fill:"#FFDA44"}))},NZ:function(e){var t=e.title,l=af(e,t5);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{d:"m425.301 233.745 3.388 10.428h10.963l-8.87 6.444 3.388 10.427-8.869-6.444-8.871 6.444 3.388-10.427-8.87-6.444h10.963zm-39.194 75.072 5.083 15.642h16.445l-13.305 9.667 5.082 15.64-13.305-9.667-13.305 9.667 5.083-15.64-13.305-9.667h16.445zm1.481-122.846 4.236 13.036h13.704l-11.088 8.054 4.235 13.034-11.087-8.056-11.088 8.056 4.235-13.034-11.087-8.054h13.704zm-37.712 47.32 5.082 15.641h16.446l-13.306 9.666 5.084 15.641-13.306-9.666-13.305 9.666 5.082-15.641-13.305-9.666h16.445z",fill:"#D80027"}),a.createElement("path",{fill:"#FFF",d:"M256.003 85.329v30.564l-45.178 25.088h45.178v59.359H196.89l59.113 32.846v22.806h-26.69l-73.484-40.826v40.826h-55.652v-48.573l-87.429 48.573H.003v-30.553l45.168-25.099H.003v-59.359h59.103L.003 108.147V85.329h26.68l73.494 40.838V85.329h55.652v48.573l87.43-48.573z"}),a.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.334H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915z"}),a.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915z"}),a.createElement("path",{d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915zm-83.98 0L0 240.259v15.739l100.174-55.654z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.174 140.983 0 85.33v15.738l71.847 39.915z"}),a.createElement("path",{fill:"#FFF",d:"M100.174 140.983 0 85.33v15.738l71.847 39.915z"}),a.createElement("path",{d:"M100.174 140.983 0 85.33v15.738l71.847 39.915zm83.98 0L256 101.068V85.33l-100.174 55.653z",fill:"#D80027"}))},OM:function(e){var t=e.title,l=af(e,t6);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M138 0h377v114H138z"}),a.createElement("path",{fill:"#4A7C3A",d:"M138 230h377v114H138z"}),a.createElement("g",{fill:"none",stroke:"#FFF",strokeWidth:10,strokeMiterlimit:2},a.createElement("path",{d:"M40.3 35.2s37.1 48 50.8 54.5c13.7 6.5 17.1 5.7 17.1 5.7"}),a.createElement("path",{d:"M100 35.2S62.9 80.6 53.3 87.6c-9.6 7-18.7 7.8-18.7 7.8m17.1-30.1h37.9M70.7 35.2v30.1"})))},PA:function(e){var t=e.title,l=af(e,t7);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M256 256v170.663H0V256h256z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.337V256H256V85.337h256z"}),a.createElement("path",{fill:"#0052B4",d:"m128 123.034 11.824 36.389h38.263l-30.955 22.491 11.823 36.389L128 195.813l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}),a.createElement("path",{fill:"#D80027",d:"m384 293.697 11.824 36.389h38.263l-30.955 22.491 11.823 36.389L384 366.476l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}))},PE:function(e){var t=e.title,l=af(e,t8);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{d:"M0 85.331h170.663v341.337H0zm341.337 0H512v341.337H341.337z",fill:"#D80027"}))},PF:function(e){var t=e.title,l=af(e,t9);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#D80027"}),a.createElement("path",{fill:"#FFDA44",d:"M293.991 256c0 20.982-17.01 33.243-37.992 33.243S218.008 276.982 218.008 256s17.01-37.992 37.992-37.992 37.991 17.01 37.991 37.992z"}),a.createElement("path",{fill:"#0052B4",d:"M293.991 256c0 20.982-17.01 37.992-37.992 37.992s-37.992-17.01-37.992-37.992"}),a.createElement("path",{d:"M232.259 246.506h9.498v19h-9.498zm37.988 0h9.498v19h-9.498zm-19-14.247h9.498v33.243h-9.498z",fill:"#D80027"}))},PG:function(e){var t=e.title,l=af(e,le);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#A2001D",d:"M0 85.33h512v341.332"}),a.createElement("path",{d:"m204.631 326.488 2.762 8.504h8.941l-7.233 5.255 2.763 8.502-7.233-5.254-7.233 5.254 2.762-8.502-7.233-5.255h8.94zm-22.834-81.622 4.605 14.172h14.901l-12.056 8.757 4.605 14.172-12.055-8.759-12.055 8.759 4.606-14.172-12.056-8.757h14.901zm0 103.883 4.604 14.173h14.902l-12.057 8.757 4.606 14.173-12.055-8.759-12.055 8.759 4.604-14.173-12.054-8.757h14.899zm43.566-66.782 4.606 14.172h14.901l-12.056 8.758 4.605 14.172-12.056-8.759-12.054 8.759 4.606-14.172-12.056-8.758h14.901zm-87.133 0 4.606 14.172h14.899l-12.054 8.758 4.603 14.172-12.054-8.759-12.055 8.759 4.605-14.172-12.055-8.758h14.9z",fill:"#FFF"}),a.createElement("path",{fill:"#FFDA44",d:"M376.526 204.163c-7.628-7.628-17.538-12.133-28.189-12.908l31.88-24.795c-12.698-12.698-29.714-18.431-46.319-17.218a44.31 44.31 0 0 0-11.396-19.511l-12.593 25.186a18.47 18.47 0 0 0-3.148-4.197c-7.245-7.245-18.991-7.244-26.234 0s-7.245 18.99 0 26.234a18.536 18.536 0 0 0 4.197 3.148l-25.186 12.593a44.303 44.303 0 0 0 19.519 11.399c-1.217 16.606 4.511 33.619 17.209 46.317L324.12 214.6a11.053 11.053 0 0 1 7.807-3.202c2.973 0 5.768 1.158 7.87 3.26a11.055 11.055 0 0 1 3.26 7.87c0 2.974-1.158 5.768-3.26 7.87l10.494 10.494c4.905-4.905 7.607-11.428 7.607-18.364 0-5.675-1.81-11.071-5.153-15.534a29.492 29.492 0 0 1 13.288 7.662c11.573 11.572 11.573 30.403 0 41.975l10.494 10.494c8.409-8.409 13.039-19.59 13.039-31.481-.001-11.892-4.632-23.072-13.04-31.481z"}))},PH:function(e){var t=e.title,l=af(e,lt);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M512 85.337V256H256L0 85.337z"}),a.createElement("path",{fill:"#D80027",d:"M512 256v170.663H0L256 256z"}),a.createElement("path",{d:"m161.908 256-27.288-12.835 14.532-26.428-29.632 5.668-3.755-29.933-20.64 22.015-20.639-22.015-3.755 29.933-29.631-5.669 14.531 26.428L28.343 256l27.288 12.835L41.1 295.263l29.633-5.668 3.753 29.933 20.639-22.015 20.64 22.015 3.755-29.933 29.631 5.669-14.532-26.427zM21.789 117.607l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.694-14.809-4.932-9.268 12.559.117-15.608-14.809-4.934 14.88-4.712zm0 235.923 9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.695-14.809-4.933-9.268 12.558.117-15.607-14.809-4.934 14.88-4.712zm188.606-117.961-9.081 12.695-14.879-4.713 9.268 12.559-9.081 12.696 14.809-4.933 9.268 12.558-.117-15.607 14.809-4.934-14.88-4.713z",fill:"#FFDA44"}))},PK:function(e){var t=e.title,l=af(e,ll);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"m393.508 170.516 17.512 18.875 23.363-10.821-12.541 22.487 17.513 18.876-25.263-4.978-12.539 22.488-3.073-25.564-25.263-4.978 23.363-10.82z"}),a.createElement("path",{d:"M0 85.343h512v341.326H0z"})),a.createElement("path",{fill:"#01411c",d:"M128 85.331h384v341.337H128z"}),a.createElement("path",{d:"M361.909 298.793c-31.037 22.426-74.378 15.446-96.804-15.592-22.427-31.038-15.446-74.379 15.593-96.804 9.677-6.992 20.55-11.125 31.613-12.563-21.283-3.183-43.777 1.613-62.598 15.211-38.2 27.602-46.792 80.944-19.191 119.145 27.601 38.199 80.944 46.792 119.145 19.189 18.82-13.598 30.436-33.448 34.096-54.655-4.839 10.05-12.176 19.076-21.854 26.069zm-1.329-125.904 17.484 18.842 23.322-10.802-12.519 22.447 17.483 18.844-25.219-4.968-12.519 22.45-3.067-25.521-25.22-4.969 23.323-10.802z",fill:"#FFF"}))},PL:function(e){var t=e.title,l=af(e,la);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512V256H0z"})),a.createElement("path",{fill:"#D80027",d:"M0 256h512v170.663H0z"}))},PM:function(e){var t=e.title,l=af(e,lc);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},PN:function(e){var t=e.title,l=af(e,lr);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#ACABB1",d:"M400.696 219.822 384 225.387l-16.696-5.565-5.565-13.913 5.565-13.913h33.392l-5.566 13.913z"}),a.createElement("path",{fill:"#338AF3",d:"M345.043 219.822v61.217c0 29.821 38.957 38.957 38.957 38.957s38.957-9.137 38.957-38.957v-61.217h-77.914z"}),a.createElement("path",{fill:"#6DA544",d:"M348.555 295.541C358.131 313.927 384 319.996 384 319.996s25.869-6.069 35.445-24.455L384 236.518l-35.445 59.023z"}),a.createElement("path",{fill:"#FFDA44",d:"M422.957 280.421 384 219.822l-38.957 60.599v.618c0 5.518 1.337 10.328 3.512 14.503L384 240.405l35.445 55.137c2.175-4.175 3.512-8.983 3.512-14.503v-.618z"}),a.createElement("path",{fill:"#FFF",d:"M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.554l45.167-25.098H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.825V85.333h55.652v48.572l87.43-48.572z"}),a.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),a.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),a.createElement("path",{d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),a.createElement("path",{fill:"#FFF",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),a.createElement("path",{d:"M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z",fill:"#D80027"}))},PR:function(e){var t=e.title,l=af(e,lh);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512V153.6H0zm0 136.526h512v68.263H0zM0 358.4h512v68.263H0z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("path",{fill:"#FFF",d:"m83.477 195.132 15.107 46.498h48.894l-39.554 28.739 15.107 46.499-39.554-28.738-39.555 28.738 15.11-46.499-39.554-28.739H68.37z"}))},PS:function(e){var t=e.title,l=af(e,ln);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#268024",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#e4312b",d:"M256 256.006 0 426.668V85.331z"}))},PT:function(e){var t=e.title,l=af(e,lm);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M196.641 85.337v341.326H0V85.337z"}),a.createElement("circle",{fill:"#FFDA44",cx:196.641,cy:256,r:64}),a.createElement("path",{fill:"#D80027",d:"M160.638 224v40.001c0 19.882 16.118 36 36 36s36-16.118 36-36V224h-72z"}),a.createElement("path",{fill:"#FFF",d:"M196.638 276c-6.617 0-12-5.383-12-12v-16h24.001v16c-.001 6.616-5.385 12-12.001 12z"}))},PW:function(e){var t=e.title,l=af(e,li);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),a.createElement("circle",{fill:"#FFDA44",cx:218.902,cy:255.994,r:74.207}))},PY:function(e){var t=e.title,l=af(e,lv);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#6DA544",d:"m289.579 216.738-12.592 12.592c5.37 5.372 8.693 12.792 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.112-5.316-24.985-13.91-33.579z"}),a.createElement("path",{fill:"#FFDA44",d:"m256 232.51 4.421 13.605h14.304l-11.573 8.408 4.421 13.604L256 259.719l-11.573 8.408 4.421-13.604-11.573-8.408h14.304z"}))},QA:function(e){var t=e.title,l=af(e,lE);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#751A46",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 0v342h150.3l37.7-19.6-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19 37.7-18.9-37.7-19 37.7-19-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19L188 57l-37.7-19L188 19.1 150.3 0z"}))},RE:function(e){var t=e.title,l=af(e,lz);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},RO:function(e){var t=e.title,l=af(e,lf);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),a.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},RS:function(e){var t=e.title,l=af(e,lp);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.331h512v113.775H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 312.882h512v113.775H0z"}),a.createElement("path",{fill:"#D80027",d:"M129.468 181.793v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.356 256 266.929v-85.136H129.468z"}),a.createElement("path",{d:"M155.634 196.634h74.201v-29.681l-14.841 7.42-22.261-22.26-22.259 22.26-14.84-7.42zm85.526 82.148-48.231-48.231-48.231 48.231 15.741 15.74 32.49-32.49 32.49 32.49z",fill:"#FFDA44"}),a.createElement("path",{fill:"#FFF",d:"M241.16 233.734h-22.504a14.74 14.74 0 0 0 2.001-7.418c0-8.196-6.645-14.84-14.84-14.84-5.663 0-10.581 3.172-13.083 7.836-2.502-4.663-7.421-7.836-13.083-7.836-8.195 0-14.84 6.644-14.84 14.84 0 2.706.736 5.235 2.001 7.418h-22.114c0 8.196 7.139 14.84 15.334 14.84h-.494c0 8.196 6.644 14.84 14.84 14.84 0 7.257 5.211 13.286 12.094 14.576l-11.694 26.401a48.075 48.075 0 0 0 18.149 3.544 48.079 48.079 0 0 0 18.149-3.544l-11.694-26.401c6.883-1.29 12.094-7.319 12.094-14.576 8.196 0 14.84-6.644 14.84-14.84h-.494c8.199 0 15.338-6.644 15.338-14.84z"}))},RU:function(e){var t=e.title,l=af(e,lw);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.33v341.332h512V85.33z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.333h512v113.775H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 312.884h512v113.775H0z"}))},RW:function(e){var t=e.title,l=af(e,ls);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 255.994h512v81.619H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 337.614h512v89.043H0z"}),a.createElement("path",{fill:"#FFDA44",d:"m278.261 185.209 20.844 9.804-11.099 20.186 22.632-4.33 2.868 22.865 15.765-16.816 15.766 16.816 2.867-22.865 22.633 4.33-11.099-20.186 20.843-9.804-20.844-9.805 11.1-20.185-22.633 4.329-2.868-22.864-15.765 16.816-15.766-16.816-2.867 22.864-22.634-4.329 11.1 20.187z"}))},SA:function(e){var t=e.title,l=af(e,ld);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#055e1c",d:"M0 85.333h512v341.333H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M183.548 289.386c0 12.295 9.731 22.261 21.736 22.261h65.208c0 10.244 8.11 18.551 18.114 18.551h21.736c10.004 0 18.114-8.306 18.114-18.551v-22.261H183.548zm146.716-107.595v51.942c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942h-21.735zm-155.773 51.943c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942H174.49v51.942z"}),a.createElement("path",{d:"M297.661 181.788h21.736v51.942h-21.736zm-32.604 29.685c0 2.046-1.625 3.71-3.623 3.71-1.998 0-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 2.046-1.625 3.71-3.623 3.71s-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 14.32 11.376 25.971 25.358 25.971 5.385 0 10.38-1.733 14.491-4.677 4.11 2.944 9.106 4.677 14.491 4.677 1.084 0 2.15-.078 3.2-.215-1.54 6.499-7.255 11.345-14.068 11.345v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.943h-21.736l.002 29.682z"}),a.createElement("path",{d:"M207.093 248.57h32.601v22.261h-32.601z"})))},SB:function(e){var t=e.title,l=af(e,lM);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.329h512"}),a.createElement("path",{fill:"#FFDA44",d:"M0 396.494v30.169h45.255L512 115.499v-30.17h-45.255z"}),a.createElement("path",{d:"m85.688 108.787 5.12 15.756h16.566l-13.403 9.737 5.12 15.757-13.403-9.738-13.405 9.738 5.12-15.757L64 124.543h16.567zm84.624 0 5.121 15.756H192l-13.403 9.737 5.12 15.757-13.405-9.738-13.403 9.738 5.12-15.757-13.403-9.737h16.566zm-84.624 82.502 5.12 15.756h16.566l-13.403 9.738 5.12 15.757-13.403-9.739-13.405 9.739 5.12-15.757L64 207.045h16.567zm84.624 0 5.121 15.756H192l-13.403 9.738 5.12 15.757-13.405-9.739-13.403 9.739 5.12-15.757-13.403-9.738h16.566zM128 150.037l5.12 15.756h16.568l-13.405 9.738 5.12 15.758L128 181.55l-13.403 9.739 5.12-15.758-13.405-9.738h16.568z",fill:"#FFF"}))},SC:function(e){var t=e.title,l=af(e,lF);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M235.454 85.337 0 426.663 427.345 85.337z"}),a.createElement("path",{fill:"#6DA544",d:"M512 329.393 0 426.663h512z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.337h-84.655L0 426.663l512-204.512z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.337v341.326L235.454 85.337z"}))},SD:function(e){var t=e.title,l=af(e,lH);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 426.668V85.331l256 170.675z"}))},SE:function(e){var t=e.title,l=af(e,lo);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M192 85.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z"}))},SG:function(e){var t=e.title,l=af(e,lg);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512V256H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M83.478 170.666c0-24.865 17.476-45.637 40.812-50.734a52.059 52.059 0 0 0-11.13-1.208c-28.688 0-51.942 23.254-51.942 51.941s23.255 51.942 51.942 51.942c3.822 0 7.543-.425 11.13-1.208-23.336-5.095-40.812-25.867-40.812-50.733zm66.783-48.231 3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921z"}),a.createElement("path",{d:"m121.344 144.696 3.683 11.337h11.921l-9.645 7.007 3.684 11.337-9.643-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921zm57.834 0 3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.685-11.337-9.645-7.007h11.921zm-11.131 33.391 3.684 11.337h11.921l-9.644 7.007 3.684 11.337-9.645-7.006-9.643 7.006 3.684-11.337-9.644-7.007h11.92zm-35.573 0 3.683 11.337h11.921l-9.644 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.684-11.337-9.644-7.007h11.92z"})))},SH:function(e){var t=e.title,l=af(e,lu);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.3H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z"})),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{d:"M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z",fill:"#D80027"}),a.createElement("path",{fill:"#29DBFF",d:"M449 139.7c-.1 44.4-7.2 92.1-65 114.9-57.8-22.8-64.9-70.5-65-114.9h130z"}),a.createElement("path",{fill:"#ffda44",d:"M449 139.7c0-16.7-.9-32.9-.5-47.1C426.9 83 398.4 81 383.9 81s-42.9 2-64.6 11.6c.4 14.2-.5 30.4-.5 47.1H449z"}),a.createElement("path",{fill:"#BF521B",d:"m369.5 204.5.3 10.3-12.8.2 4.9 13.2h-17.3c-18-20.2-23.4-42.4-24.9-68.1l9.1-9.7 8.3 14.3 10.8-12.8 7 7.8.8 15.7 13.8 29.1z"}),a.createElement("path",{fill:"#474747",d:"m436.6 192.5-8.6 18.3h-47l-29.2-19.5 25.7 10.5h25.1l3.7-6.5 7.2.2 2-3z"}))},SI:function(e){var t=e.title,l=af(e,lx);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 199.112h512v113.775H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#FFF",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l-.145-44.188 89.043-.266.146 44.454z"}),a.createElement("path",{fill:"#0052B4",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l-.145-44.188 89.043-.266.146 44.454z"}),a.createElement("path",{fill:"#FFF",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l14.848 14.837 29.674-22.261 29.685 22.261 14.837-14.837z"}))},SJ:function(e){var t=e.title,l=af(e,lD);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),a.createElement("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},SK:function(e){var t=e.title,l=af(e,lB);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 196.641h512v118.717H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 315.359h512v111.304H0z"}),a.createElement("path",{fill:"#FFF",d:"M129.468 181.799v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.362 256 266.935v-85.136H129.468z"}),a.createElement("path",{fill:"#D80027",d:"M146.126 184.294v81.941c0 5.472 1.215 10.64 3.623 15.485h85.97c2.408-4.844 3.623-10.012 3.623-15.485v-81.941h-93.216z"}),a.createElement("path",{fill:"#FFF",d:"M221.301 241.427h-21.425v-14.283h14.284v-14.283h-14.284v-14.284h-14.283v14.284h-14.282v14.283h14.282v14.283h-21.426v14.284h21.426v14.283h14.283v-14.283h21.425z"}),a.createElement("path",{fill:"#0052B4",d:"M169.232 301.658c9.204 5.783 18.66 9.143 23.502 10.636 4.842-1.494 14.298-4.852 23.502-10.636 9.282-5.833 15.79-12.506 19.484-19.939a24.878 24.878 0 0 0-14.418-4.583c-1.956 0-3.856.232-5.682.657-3.871-8.796-12.658-14.94-22.884-14.94-10.227 0-19.013 6.144-22.884 14.94a25.048 25.048 0 0 0-5.682-.657 24.88 24.88 0 0 0-14.418 4.583c3.691 7.433 10.198 14.106 19.48 19.939z"}))},SL:function(e){var t=e.title,l=af(e,lL);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 312.888h512v113.775H0z"}))},SM:function(e){var t=e.title,l=af(e,lV);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.34h512v341.326H0z"}),a.createElement("path",{fill:"#FFF",d:"M512 85.334v166.69L0 256.175V85.334z"}),a.createElement("path",{fill:"#6DA544",d:"M323.744 203.099 256 270.843l-67.744-67.744a81.156 81.156 0 0 0-13.879 45.483v22.261c0 35.744 23.097 66.193 55.148 77.213-4.277 8.385-3.556 18.848 2.712 26.671l24.258-19.439 24.258 19.439c6.342-7.915 7.011-18.534 2.564-26.968 31.614-11.261 54.308-41.485 54.308-76.916v-22.261a81.174 81.174 0 0 0-13.881-45.483z"}),a.createElement("path",{fill:"#FFDA44",d:"M256 330.206c-32.732 0-59.362-26.63-59.362-59.362v-22.261c0-32.733 26.63-59.363 59.362-59.363s59.362 26.63 59.362 59.362v22.261c0 32.733-26.63 59.363-59.362 59.363z"}),a.createElement("path",{fill:"#338AF3",d:"M293.101 270.843v-22.261c0-20.458-16.643-37.101-37.101-37.101s-37.101 16.643-37.101 37.101v22.261L256 278.264l37.101-7.421z"}),a.createElement("path",{fill:"#6DA544",d:"M218.899 270.843c0 20.458 16.643 37.101 37.101 37.101s37.101-16.643 37.101-37.101h-74.202z"}),a.createElement("path",{fill:"#FFDA44",d:"M300.522 189.22c0-12.295-9.966-22.261-22.261-22.261a22.173 22.173 0 0 0-14.84 5.672v-13.093h7.421v-14.84h-7.421v-7.421h-14.84v7.421h-7.421v14.84h7.421v13.093a22.177 22.177 0 0 0-14.841-5.672c-12.295 0-22.261 9.966-22.261 22.261 0 6.591 2.867 12.512 7.421 16.589v13.093h74.203v-13.093c4.552-4.077 7.419-9.997 7.419-16.589z"}))},SN:function(e){var t=e.title,l=af(e,lA);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M330.207 85.331H512v341.337H330.207z"}),a.createElement("path",{d:"M0 85.331h181.793v341.337H0zm255.999 111.301 14.733 45.347h47.685l-38.576 28.029 14.734 45.348-38.576-28.026-38.577 28.026 14.737-45.348-38.576-28.029h47.681z",fill:"#496E2D"}))},SO:function(e){var t=e.title,l=af(e,ly);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"m256 157.273 22.663 69.748H352l-59.332 43.106 22.664 69.749L256 296.769l-59.332 43.107 22.664-69.749L160 227.021h73.337z"}))},SR:function(e){var t=e.title,l=af(e,lC);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#A2001D",d:"M0 196.636h512v118.728H0z"}),a.createElement("path",{d:"M0 352.462h512v74.207H0zM0 85.331h512v74.207H0z",fill:"#6DA544"}),a.createElement("path",{fill:"#FFDA44",d:"m256.742 218.003 9.43 29.021h30.518L272 264.963l9.431 29.023-24.689-17.937-24.689 17.937 9.431-29.023-24.69-17.939h30.518z"}))},SS:function(e){var t=e.title,l=af(e,lk);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 322.783h512v103.88H0z"}),a.createElement("path",{d:"M0 85.337h512v104.515H0z"}),a.createElement("path",{fill:"#A2001D",d:"M0 210.877h512v89.656H0z"}),a.createElement("path",{fill:"#0052B4",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("path",{fill:"#FFDA44",d:"m73.178 209.188 20.831 29.067 34.084-10.83-21.207 28.795 20.83 29.069-33.939-11.271-21.208 28.794.234-35.762-33.94-11.273 34.083-10.83z"}))},ST:function(e){var t=e.title,l=af(e,lS);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#6DA544"}),a.createElement("path",{fill:"#D80027",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("path",{d:"m302.049 226.318 7.368 22.674h23.842l-19.288 14.016 7.366 22.674-19.288-14.015-19.287 14.015 7.366-22.674-19.288-14.016h23.842zm74.203 0 7.367 22.674h23.842l-19.288 14.016 7.367 22.674-19.288-14.015-19.288 14.015 7.367-22.674-19.288-14.016h23.842z"}))},SV:function(e){var t=e.title,l=af(e,lW);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#0052B4"}),a.createElement("path",{fill:"#FFDA44",d:"M228.582 261.936 256 214.447l27.418 47.489z"}),a.createElement("path",{fill:"#6DA544",d:"M291.616 277.616 256 295.425l-35.616-17.809v-23.744h71.232z"}),a.createElement("path",{fill:"#FFDA44",d:"m289.579 216.485-12.592 12.592c5.37 5.372 8.693 12.791 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.114-5.316-24.987-13.91-33.579z"}))},SX:function(e){var t=e.title,l=af(e,lb);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.331v166.69L0 256.173V85.331z"}),a.createElement("path",{fill:"#FFF",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("g",{fill:"#FFDA44"},a.createElement("path",{d:"M59.621 256a59.546 59.546 0 0 0-.193 4.57c0 32.821 26.607 59.429 59.429 59.429s59.429-26.607 59.429-59.429c0-1.539-.078-3.061-.193-4.57H59.621z"}),a.createElement("circle",{cx:118.862,cy:210.287,r:18.286})),a.createElement("path",{fill:"#D80027",d:"M77.715 205.714v59.429c0 31.494 41.144 41.143 41.144 41.143s41.144-9.649 41.144-41.143v-59.429H77.715z"}),a.createElement("path",{fill:"#338AF3",d:"M118.877 287.148c-7.632-2.746-22.876-9.767-22.876-22.006v-41.144h45.715v41.144c-.001 12.28-15.244 19.283-22.839 22.006z"}),a.createElement("path",{fill:"#F3F3F3",d:"M128.001 246.856v-9.142l-9.144-4.571-9.142 4.571v9.142l-4.571 4.573v18.285h27.428v-18.285z"}))},SY:function(e){var t=e.title,l=af(e,lG);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 0h900v600H0z",fill:"#0f0f0f"}),a.createElement("path",{d:"M0 0h900v400H0z",fill:"#fff"}),a.createElement("path",{d:"M0 0h900v200H0z",fill:"#047a3f"}),a.createElement("path",{d:"m176.26 375 48.738-150 48.738 150-127.6-92.705h157.72M626.256 375l48.738-150 48.738 150-127.6-92.705h157.72M401.252 375l48.738-150 48.738 150-127.6-92.705h157.72",fill:"#ce1126"}))},SZ:function(e){var t=e.title,l=af(e,lT);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#2B5DEA",d:"M0 0h900v600H0V0z"}),a.createElement("path",{fill:"#FFDF29",d:"M0 100h900v400H0V100z"}),a.createElement("path",{fill:"#D70000",d:"M0 150h900v300H0V150z"}),a.createElement("path",{fill:"#FFF",d:"M450 171.4v257.2c114.3 0 171.4-85.7 214.3-128.6-42.9-42.9-100-128.6-214.3-128.6z"}),a.createElement("path",{d:"M450 171.4c-100 0-171.4 85.7-214.3 128.6C278.6 342.9 350 428.6 450 428.6V171.4z"}),a.createElement("path",{fill:"#FFF",d:"M346.3 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z"}),a.createElement("path",{d:"M477.8 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z"}))},TA:function(e){var t=e.title,l=af(e,lN);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.3H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z"})),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{d:"M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z",fill:"#D80027"}),a.createElement("path",{fill:"#29DBFF",d:"M448.9 169.5c0 9.6-.3 29.6-1.4 39.2-4.1 34.9-23.5 68.8-62.1 85.9-45.3-17.9-60.8-51-64.9-85.9-1.1-9.6-1.5-19.4-1.5-29l.3-47.1h129.2l.4 36.9z"}),a.createElement("path",{fill:"#FFF",d:"M447.5 208.7c-.2 1.6-.4 3.3-.6 4.9-4.8 33.1-22.9 65.4-61.5 81-43.2-17-59.4-47.9-64.2-81-.2-1.6-.4-3.2-.6-4.9"}),a.createElement("path",{fill:"#29DBFF",d:"m385.4 251.7-22.9-43h45.8z"}),a.createElement("path",{fill:"#FFF",d:"m385.4 165.8-22.9 42.9h45.8z"}),a.createElement("ellipse",{fill:"#FFBE57",cx:474.8,cy:236.8,rx:16.8,ry:43.3}),a.createElement("ellipse",{fill:"#FFBE57",cx:295.3,cy:236.8,rx:16.8,ry:43.3}),a.createElement("path",{fill:"#FFF",d:"m385.4 31.5-33.4 44h68.5zM315.5 280s33.8 29.5 69.9 29.5 67.1-29.5 67.1-29.5l8.5 14.6S439.2 326 385.4 326 307 294.6 307 294.6l8.5-14.6z"}),a.createElement("ellipse",{fill:"#A5A5A5",cx:386.3,cy:104.3,rx:34.3,ry:23.3}))},TC:function(e){var t=e.title,l=af(e,lO);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M332.058 191.996v78.221c0 38.103 51.942 49.779 51.942 49.779s51.942-11.675 51.942-49.779v-78.221H332.058z"}),a.createElement("path",{fill:"#FF9811",d:"M376.579 220.44c0 7.855-6.644 28.445-14.84 28.445s-14.84-20.589-14.84-28.445c0-7.856 14.84-14.222 14.84-14.222s14.84 6.367 14.84 14.222z"}),a.createElement("path",{fill:"#A2001D",d:"M415.961 235.93c2.394-5.6 4.257-13.785 4.257-17.86 0-6.546-8.904-11.852-8.904-11.852s-8.904 5.306-8.904 11.852c0 4.075 1.862 12.26 4.257 17.86l-5.141 11.123a26.898 26.898 0 0 0 9.788 1.831c3.463 0 6.766-.654 9.788-1.831l-5.141-11.123z"}),a.createElement("path",{fill:"#6DA544",d:"M372.87 270.217s-7.421 14.222-7.421 28.445h37.101c0-14.222-7.421-28.445-7.421-28.445l-11.13-7.111-11.129 7.111z"}),a.createElement("path",{fill:"#D80027",d:"M395.13 270.217v-3.555c0-5.891-4.983-10.666-11.13-10.666-6.147 0-11.13 4.776-11.13 10.666v3.555h22.26z"}),a.createElement("path",{fill:"#FFF",d:"M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.554l45.167-25.098H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.825V85.333h55.652v48.572l87.43-48.572z"}),a.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),a.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),a.createElement("path",{d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),a.createElement("path",{fill:"#FFF",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),a.createElement("path",{d:"M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z",fill:"#D80027"}))},TD:function(e){var t=e.title,l=af(e,lR);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),a.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},TF:function(e){var t=e.title,l=af(e,lI);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0V0z"}),a.createElement("path",{fill:"#0A388A",d:"M0 0h22.5v15H0V0z"}),a.createElement("path",{fill:"#FFF",d:"M0 0h11.3v7.5H0V0z"}),a.createElement("path",{fill:"#D80027",d:"M7.1 0h3.6v7H7.1V0z"}),a.createElement("path",{fill:"#0A388A",d:"M0 0h3.6v7H0V0z"}),a.createElement("path",{fill:"#FFF",d:"M3.6 0h3.6v7H3.6V0zm10.9 6h5L19 7h-1.5v.5h1l-.5 1h-.5V10h-1V7H15l-.5-1zm4 2.5 1 1.5h-2l1-1.5zm-3 0 1 1.5h-2l1-1.5zm1.5 3L16 10h2l-1 1.5zM20 8c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-6 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm1 4c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm4 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-2 1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5z"}))},TG:function(e){var t=e.title,l=af(e,lP);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512V153.6H0zM0 358.4h512v68.263H0zm0-136.537h512v68.263H0z",fill:"#496E2D"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h204.054v204.054H0z"}),a.createElement("path",{fill:"#FFF",d:"m102.026 133.938 13.26 40.812h42.916l-34.718 25.226 13.26 40.814-34.718-25.224-34.719 25.224 13.263-40.814-34.718-25.226h42.913z"}))},TH:function(e){var t=e.title,l=af(e,lK);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.334h512V426.66H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 194.056h512v123.882H0z"}),a.createElement("path",{d:"M0 85.334h512v54.522H0zm0 286.809h512v54.522H0z",fill:"#D80027"}))},TJ:function(e){var t=e.title,l=af(e,lU);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{d:"M226.318 300.522h59.364v-25.23l-11.873 5.937L256 263.421l-17.809 17.808-11.873-5.937zm-33.963-29.682 2.763 8.504h8.94l-7.233 5.255 2.763 8.502-7.233-5.255-7.234 5.255 2.763-8.502-7.233-5.255h8.94zm8.566-29.68 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm24.488-22.261 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm94.236 51.941-2.763 8.504h-8.94l7.233 5.255-2.763 8.502 7.233-5.255 7.234 5.255-2.763-8.502 7.233-5.255h-8.94zm-8.566-29.68-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zm-24.488-22.261-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zM256 207.767l2.763 8.503h8.941l-7.234 5.256 2.763 8.502-7.233-5.254-7.233 5.254 2.763-8.502-7.234-5.256h8.941z",fill:"#FFDA44"}))},TK:function(e){var t=e.title,l=af(e,lZ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"m210.715 174.377 3.684 11.338h11.919l-9.643 7.006 3.684 11.337-9.644-7.007-9.644 7.007 3.684-11.337-9.645-7.006h11.921zm-93.899 107.594 4.605 14.172h14.9l-12.055 8.757 4.606 14.173-12.056-8.76-12.055 8.76 4.604-14.173-12.054-8.757h14.899zm27.88-162.292 4.604 14.172h14.901l-12.056 8.758 4.606 14.171-12.055-8.759-12.056 8.759 4.606-14.171-12.055-8.758h14.9zm-75.157 55.652 4.604 14.172h14.9l-12.055 8.758 4.606 14.171-12.055-8.758-12.056 8.758 4.606-14.171-12.055-8.758h14.9z",fill:"#FFF"}),a.createElement("path",{d:"M483.386 354.503H117.801s109.234-88.562 310.593-220.938c.001 0-88.443 128.935 54.992 220.938zm-365.585 11.586c-11.177 0-11.195 17.37 0 17.37h365.585c11.177 0 11.195-17.37 0-17.37H117.801z",fill:"#FFDA44"}))},TL:function(e){var t=e.title,l=af(e,lY);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M256 256 0 90.691v44.242L155.826 256 0 377.067v44.242z"}),a.createElement("path",{d:"M0 90.691v330.618L189.217 256z"}),a.createElement("path",{fill:"#FFF",d:"m44.184 213.36 24.912 23.577 30.121-16.41-14.723 30.98 24.911 23.575-34.012-4.43L60.67 301.63l-6.296-33.716-34.012-4.43 30.119-16.408z"}))},TM:function(e){var t=e.title,l=af(e,lJ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M357.208 183.679c8.397-23.404-1.036-48.858-21.281-61.536a52.131 52.131 0 0 1 10.884 2.621c27.002 9.688 41.038 39.428 31.35 66.431s-39.428 41.038-66.431 31.35a52.182 52.182 0 0 1-10.069-4.895c23.686 3.084 47.15-10.566 55.547-33.971zm-46.571-67.95-7.297 9.427-11.22-4.026 6.712 9.852-7.296 9.427 11.443-3.338 6.712 9.852.361-11.914 11.444-3.339-11.221-4.025z"}),a.createElement("path",{d:"m330.338 146.448-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.443-3.339 6.712 9.853.36-11.915 11.445-3.34-11.221-4.024zM275.9 126.916l-7.296 9.427-11.219-4.024 6.711 9.851-7.296 9.426 11.443-3.338 6.712 9.852.361-11.915 11.444-3.337-11.221-4.027zm-.799 35.189-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.444-3.338 6.711 9.852.362-11.915 11.443-3.338-11.22-4.026zm33.484 12.013-7.296 9.427-11.22-4.026 6.712 9.853-7.297 9.426 11.444-3.338 6.712 9.852.36-11.915 11.443-3.338-11.219-4.025z"})),a.createElement("path",{fill:"#D80027",d:"M83.478 85.337h89.043v341.326H83.478z"}),a.createElement("path",{fill:"#FFF",d:"m117.458 175.191-14.908-11.105v-15.705l14.908-11.105h21.084l14.908 11.105v15.705l-14.908 11.105z"}),a.createElement("path",{d:"M128 137.276h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.105v-8.012H128z",fill:"#FF9811"}),a.createElement("path",{fill:"#FFF",d:"m117.458 374.725-14.908-11.106v-15.704l14.908-11.105h21.084l14.908 11.105v15.704l-14.908 11.106z"}),a.createElement("path",{d:"M128 336.81h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.106v-8.011H128z",fill:"#FF9811"}),a.createElement("path",{d:"m117.458 274.957-14.908-11.105v-15.703l14.908-11.106h21.084l14.908 11.106v15.703l-14.908 11.105zm36.513 24.434h-6.493v-6.493h-11.411l-8.068-8.068-8.067 8.068h-11.41v6.493h-6.493v12.986h6.493v6.492h11.41l8.068 8.069 8.068-8.069h11.41v-6.492h6.493zm0-99.768h-6.493v-6.492h-11.411l-8.068-8.069-8.067 8.069h-11.41v6.492h-6.493v12.986h6.493v6.492h11.41l8.068 8.07 8.068-8.07h11.41v-6.492h6.493z",fill:"#496E2D"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M120.576 248.576h14.84v14.84h-14.84z"}),a.createElement("circle",{cx:128,cy:206.113,r:7.421}),a.createElement("circle",{cx:128,cy:305.887,r:7.421})))},TN:function(e){var t=e.title,l=af(e,lj);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),a.createElement("circle",{fill:"#FFF",cx:256,cy:255.994,r:96}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"m267.826 219.291 16.47 22.695 26.673-8.649-16.496 22.676 16.468 22.695-26.664-8.681-16.495 22.676.017-28.04-26.664-8.682 26.674-8.648z"}),a.createElement("path",{d:"M277.818 312.724c-31.33 0-56.727-25.397-56.727-56.727s25.397-56.727 56.727-56.727c9.769 0 18.96 2.47 26.985 6.819-12.589-12.31-29.804-19.909-48.803-19.909-38.558 0-69.818 31.259-69.818 69.818s31.26 69.818 69.818 69.818c18.999 0 36.215-7.599 48.803-19.909-8.026 4.347-17.216 6.817-26.985 6.817z"})))},TO:function(e){var t=e.title,l=af(e,lQ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.331h256v170.663H0z"}),a.createElement("path",{fill:"#D80027",d:"M141.357 157.303V130.59h-26.714v26.713H87.93v26.713h26.713v26.713h26.714v-26.713h26.713v-26.713z"}))},TR:function(e){var t=e.title,l=af(e,l_);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#E30A17",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M259.7 118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8 0-73.8 30.8-73.8 68.9s33.1 68.9 73.8 68.9c17.1 0 32.9-5.4 45.3-14.5-30 38.6-85.7 45.6-124.3 15.5s-45.6-85.7-15.5-124.3 85.7-45.6 124.3-15.5c5.8 4.5 11 9.8 15.5 15.5zm39.9 65.8-18.1 21.9 1.2-28.4-26.4-10.4 27.3-7.6 1.8-28.3 15.6 23.7 27.5-7.1-17.5 22 15.3 23.9-26.7-9.7z"}))},TT:function(e){var t=e.title,l=af(e,lX);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFF",d:"m6.066 85.337 207.961 212.636 131.584 128.69h160.323L297.973 214.027 166.389 85.337z"}),a.createElement("path",{d:"M43.364 85.337 384.69 426.663h83.946L127.31 85.337z"}))},TV:function(e){var t=e.title,l=af(e,lq);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h900v600H0z"}),a.createElement("path",{fill:"#00B2EE",d:"M0 300h450V0h450v600H0V300z"}),a.createElement("path",{fill:"#FFDA44",d:"m345.3 480.9 29.4 90.6-77.1-56H393l-77.1 56 29.4-90.6zM706.4 340l29.4 90.6-77.1-56H754l-77.1 56 29.5-90.6zm106.4-78.5 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zm0-224.1 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6z"}),a.createElement("path",{fill:"#FFF",d:"M449.9 0v206.3h-81l81 54V300h-39.7l-129-85.9V300H168.7v-85.9L39.7 300H0v-39.7l81-54H0V93.8h81L0 39.9V0h39.7l129 85.9V0h112.5v85.9L410.2 0z"}),a.createElement("path",{fill:"#D80027",d:"M253.1 0h-56.3v122H0v56.2h196.8V300h56.3V178.2h196.8V122H253.1z"}),a.createElement("path",{fill:"#2E52B2",d:"M449.9 39.9v53.9h-81z"}),a.createElement("path",{fill:"#D80027",d:"M0 300v-19.3l109.9-74.4h39.7L12.8 300zM12.8.1l136.8 93.7h-39.7L0 19.4V.1zm437.1.1v19.3L340 93.8h-39.7L437.1.2zM437.1 300l-136.8-93.7H340l109.9 74.4V300z"}),a.createElement("path",{fill:"#FFDA44",d:"m719.9 131.6 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zM584 187.7l29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zm30 242.9 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zM488 332l29.4 90.6-77.1-56h95.3l-77.1 56L488 332zm0 132 29.4 90.6-77.1-56h95.3l-77.1 56L488 464z"}))},TW:function(e){var t=e.title,l=af(e,l$);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.337h256V256H0z"}),a.createElement("path",{fill:"#FFF",d:"M186.435 170.669 162.558 181.9l12.714 23.125-25.927-4.961-3.286 26.192L128 206.993l-18.06 19.263-3.285-26.192-25.927 4.96 12.714-23.125-23.877-11.23 23.877-11.231-12.714-23.125 25.927 4.96 3.286-26.192L128 134.344l18.06-19.263 3.285 26.192 25.928-4.96-12.715 23.125z"}),a.createElement("circle",{fill:"#0052B4",cx:128,cy:170.674,r:29.006}),a.createElement("path",{fill:"#FFF",d:"M128 190.06c-10.692 0-19.391-8.7-19.391-19.391 0-10.692 8.7-19.391 19.391-19.391 10.692 0 19.391 8.7 19.391 19.391 0 10.691-8.699 19.391-19.391 19.391z"}))},TZ:function(e){var t=e.title,l=af(e,l1);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 426.663V85.337h512"}),a.createElement("path",{fill:"#FFDA44",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),a.createElement("path",{d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}))},UA:function(e){var t=e.title,l=af(e,l2);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 85.337h512V256H0z"}))},UG:function(e){var t=e.title,l=af(e,l3);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#232323",d:"M0 0h512v341.3H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 56.9h512v56.9H0z"}),a.createElement("path",{fill:"#D32300",d:"M0 113.8h512v56.9H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 227.6h512v56.9H0z"}),a.createElement("path",{fill:"#D32300",d:"M0 284.4h512v56.9H0z"}),a.createElement("circle",{fill:"#FFF",cx:256,cy:170.7,r:80.7}),a.createElement("path",{d:"M234.5 127.5c.9-1.4-19.6-2-19.6-2 1.7-2.5 18.4-10.5 18.4-10.5s-.9-6 2.7-9.8l-4.5-9.8s7-3.4 18.4-3.4 19.9 7 21 13.1l-6.4 3.4c-.1 4.7 1.7 11.6-4.3 17.3-5.9 5.7-8.3 6.9-8.5 18.8 0 3.9 2.3 8.2 8.8 11.7 17.4 9.3 38.6 28.2 44.6 33.9 6.1 5.7 5.1 19.2 2.6 25.2s-12.1 14.3-14.3 13.6c-2.2-.6 1.2-9.2-3.5-11.6 0 0-8.9-7.6-16.8.6s-.2 25.2 3.9 28c4.1 2.8 1.7 5-1.9 5H247c-3.8 0-5.4-2.3-1.9-5 7.6-3.8 12.4-15.3 7.4-20.3-4.9-4.9-18.3 1.5-21.5 6.3-2.8 2.8-8.8 3.6-12.9-1.4s-4.1-10.4-1.1-12.5c7-4.8 0 0 .1-.1 0 0 11.9-8.6 29.9-9 3.9 0 4.8-2.2 2.2-4.8 0 0-30.9-27.4-28.1-44.2 3-18.3 20-26.3 13.4-32.5-1.3-1.8 0 0 0 0z"}))},UM:function(e){var t=e.title,l=af(e,l0);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),a.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},US:function(e){var t=e.title,l=af(e,l4);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),a.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},UY:function(e){var t=e.title,l=af(e,l5);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 38h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z",fill:"#0038a8"}),a.createElement("path",{fill:"#FFF",d:"M0 0h256.5v190H0z"}),a.createElement("path",{fill:"#FED443",d:"m128.3 138.7-15.1 22.6-3.8-26.9L86 148.2l8.2-25.9-27.2 2.2 18.6-19.8L60.3 95l25.4-9.7L67 65.5l27.1 2.3-8.2-25.9 23.4 13.8 3.9-26.9 15.1 22.6 15.1-22.6 3.8 26.9 23.4-13.8-8.2 25.9 27.1-2.2-18.6 19.8 25.4 9.7-25.4 9.7 18.6 19.8-27.1-2.2 8.2 25.9-23.4-13.8-3.9 26.9-15-22.7zm0-.5c23.9.9 44-17.6 44.9-41.5.9-23.9-17.6-44-41.5-44.9h-3.4c-23.9.8-42.6 20.8-41.8 44.6.6 22.8 19 41.1 41.8 41.8zm0-10.6c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.3 34-34 34z"}))},UZ:function(e){var t=e.title,l=af(e,l6);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 322.783h512v103.88H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v104.515H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 210.877h512v89.656H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v104.515H0z"}),a.createElement("path",{d:"M188.688 137.589c0-15.984 11.234-29.339 26.236-32.614a33.531 33.531 0 0 0-7.155-.777c-18.442 0-33.391 14.949-33.391 33.391s14.949 33.391 33.391 33.391c2.458 0 4.85-.273 7.155-.777-15.002-3.275-26.236-16.63-26.236-32.614zm45.97 15.177 2.261 6.957h7.315l-5.918 4.301 2.261 6.956-5.919-4.3-5.918 4.3 2.261-6.956-5.918-4.301h7.315zm23.348 0 2.26 6.957h7.315l-5.918 4.301 2.261 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.917-4.301h7.314zm23.347 0 2.26 6.957h7.315l-5.917 4.301 2.26 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.918-4.301h7.315zm23.347 0 2.262 6.957h7.315l-5.919 4.301 2.261 6.956-5.919-4.3-5.918 4.3 2.262-6.956-5.919-4.301h7.314zm23.348 0 2.26 6.957h7.315l-5.918 4.301 2.261 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.917-4.301h7.314zm-70.042-24.284 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.917-4.3h7.314zm23.347 0 2.26 6.956h7.315l-5.917 4.3 2.26 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.918-4.3h7.315zm23.347 0 2.262 6.956h7.315l-5.919 4.3 2.261 6.957-5.919-4.299-5.918 4.299 2.262-6.957-5.919-4.3h7.314zm23.348 0 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.917-4.3h7.314zm-46.695-24.284 2.26 6.956h7.315l-5.917 4.3 2.26 6.957-5.918-4.3-5.918 4.3 2.26-6.957-5.918-4.3h7.315zm23.347 0 2.262 6.956h7.315l-5.919 4.3 2.261 6.957-5.919-4.3-5.918 4.3 2.262-6.957-5.919-4.3h7.314zm23.348 0 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.3-5.918 4.3 2.26-6.957-5.917-4.3h7.314z",fill:"#FFF"}))},VA:function(e){var t=e.title,l=af(e,l7);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 85.331h256v341.337H256z"}),a.createElement("path",{fill:"#ACABB1",d:"m321.353 233.837 32.073 42.43c-5.053 7.651-5.026 17.961.817 25.692 7.414 9.807 21.374 11.748 31.182 4.335 9.807-7.414 11.748-21.374 4.334-31.182-5.843-7.731-15.756-10.568-24.495-7.795l-49.988-66.129-11.838 8.949-17.759 13.424 17.899 23.677 17.775-13.401zm46.175 48.78a7.421 7.421 0 1 1 8.95 11.84 7.421 7.421 0 0 1-8.95-11.84z"}),a.createElement("path",{fill:"#FFDA44",d:"m376.367 247.24 17.899-23.677-17.759-13.424-11.838-8.949-49.988 66.129c-8.74-2.775-18.651.063-24.495 7.795-7.414 9.808-5.473 23.768 4.334 31.182 9.808 7.414 23.768 5.473 31.182-4.335 5.845-7.731 5.871-18.041.817-25.692l32.073-42.43 17.775 13.401zm-62.504 45.771a7.42 7.42 0 1 1-11.84-8.95 7.42 7.42 0 0 1 11.84 8.95z"}))},VC:function(e){var t=e.title,l=af(e,l8);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 85.331h170.663v341.337H0z"}),a.createElement("path",{d:"M341.337 85.331H512v341.337H341.337zM214.261 283.82l-33.393-50.086 33.392-50.087 33.392 50.087zm83.478 0-33.391-50.086 33.391-50.087 33.393 50.087zM256 350.603l-33.391-50.087L256 250.429l33.391 50.087z",fill:"#6DA544"}))},VE:function(e){var t=e.title,l=af(e,l9);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFCE00",d:"M0 0h22.5v5H0z"}),a.createElement("path",{fill:"#203899",d:"M0 5h22.5v5H0z"}),a.createElement("path",{fill:"#D82B2B",d:"M0 10h22.5v5H0z"}),a.createElement("path",{fill:"#FFF",d:"m12.13 5.38.14.46.45.14-.39.27.01.48-.38-.29-.45.15.15-.44-.28-.38h.47zm-1.77 0 .27.39h.47l-.28.38.15.45-.45-.16-.38.28.01-.47-.39-.28.45-.13zm3.44.56-.01.48.39.27-.46.14-.14.45-.27-.38h-.48l.29-.38-.15-.45.45.16zm-5.11.02.4.27.44-.18-.13.46.3.36-.47.02-.26.4-.16-.44-.46-.12.37-.3zm6.55 1.17-.2.44.25.4-.47-.05-.31.36-.1-.46-.43-.18.41-.24.03-.47.35.31zm.19 1.12.21.43.47.07-.34.33.08.46-.42-.22-.42.22.08-.46-.34-.33.47-.07zM7 8.2l.21.43.47.06-.34.33.08.47L7 9.27l-.42.22.08-.47-.34-.33.47-.06zm.31-1.15.45.14.38-.29v.48l.39.26-.45.15-.13.46-.28-.38-.47.01.27-.38z"}))},VG:function(e){var t=e.title,l=af(e,ae);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 85.334V202.66h-46.069L256 233.38v22.617h-22.628L160 207.078v48.919H96v-48.919l-73.372 48.919H0V233.38l46.069-30.72H0v-64h46.069L0 107.951V85.334h22.628L96 134.241V85.334h64v48.907l73.372-48.907z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 85.33h-32v69.333H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80zm256 0v15.083l-57.377 38.251H176z"})),a.createElement("path",{fill:"#2E52B2",d:"M256 107.951v30.712h-46.069z"}),a.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80zm256 0v15.083l-57.377 38.251H176z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M256 107.951v30.712h-46.069z"}),a.createElement("path",{d:"M0 255.997v-15.082l57.377-38.252H80zm256 0v-15.082l-57.377-38.252H176z",fill:"#D80027"}),a.createElement("path",{fill:"#FFDA44",d:"m384 259.706-46.129 46.129c8.645 16.675 26.051 28.074 46.129 28.074s37.484-11.4 46.129-28.074L384 259.706z"}),a.createElement("path",{fill:"#6DA544",d:"M332.058 178.084v81.624c.001 39.759 51.942 51.941 51.942 51.941s51.941-12.182 51.942-51.942v-81.623H332.058z"}),a.createElement("path",{fill:"#FFF",d:"M372.87 215.181h22.261v59.359H372.87z"}),a.createElement("circle",{fill:"#A2001D",cx:384,cy:215.181,r:11.13}),a.createElement("path",{d:"M346.902 192.92h14.84v14.84h-14.84zm0 33.392h14.84v14.84h-14.84zm0 33.391h14.84v14.84h-14.84zm59.359-66.783h14.84v14.84h-14.84zm0 33.392h14.84v14.84h-14.84zm0 33.391h14.84v14.84h-14.84z",fill:"#FFDA44"}))},VI:function(e){var t=e.title,l=af(e,at);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),a.createElement("path",{fill:"#1583C4",d:"m397.7 166.3-51 97.7c-1.1 2-.3 4.5 1.8 5.6 2 1.1 4.5.3 5.6-1.8l51-97.7c1-2.1.1-4.6-2-5.5-2-.9-4.3-.2-5.4 1.7z"}),a.createElement("path",{fill:"#1583C4",d:"m404.9 188-57.8 75.4c-1.3 1.9-.8 4.5 1.1 5.8 1.7 1.2 4.1.9 5.5-.7l57.8-75.4c1.4-1.8 1.1-4.4-.8-5.8-1.8-1.5-4.4-1.1-5.8.7z"}),a.createElement("path",{fill:"#1583C4",d:"m379 181.3-32.5 83.1c-.8 2.1.2 4.6 2.4 5.4 2.1.8 4.6-.2 5.4-2.4l32.5-83.1c.7-2.2-.4-4.5-2.6-5.3-2.1-.6-4.3.4-5.2 2.3z"}),a.createElement("path",{fill:"#409347",d:"M122.1 171.9c.4 1.7 1.2 4.7 2.2 8.5 1.7 6.4 3.6 12.8 5.6 18.7 2.3 6.9 14.7 31.4 20.2 39.1 6.9 9.7 14.1 19.3 21.5 28.6 1.6 1.9 4.5 2.1 6.4.5 1.8-1.6 2.1-4.3.7-6.2-7.3-9.2-14.4-18.6-21.2-28.2-4.2-5.8-17.2-31.1-19-36.7-2.9-8.7-5.4-17.6-7.6-26.5-.5-2.4-2.9-4-5.3-3.5s-4 2.9-3.5 5.3c-.1.2 0 .3 0 .4z"}),a.createElement("g",{fill:"#FFD836",stroke:"#231F20",strokeMiterlimit:10},a.createElement("path",{d:"M297.1 114.9S279.5 42.8 261 42.8c-6.9 0-11.9-.6-15.4 6.4-.9 1.7-20.7-1.6-19.1 20.8.5 6.9 1.1-9.8 14.9-3.4 6.3 3-16.4 48.2-16.4 48.2h72.1z"}),a.createElement("path",{d:"m466.1 48.4-90.9 22c-75.3 18.3-42.1 44.4-42.1 44.4l-72.1 12-72.1-12s33.2-26.1-42.1-44.4l-90.9-22C43.1 45.3 38.1 51.8 45.3 63c0 0 106.6 104 126.8 112 20.2 8.1 40.8 0 40.8 0s-14.9 8.7-24 24c-9.2 15.3-4.6 34.7-38.9 40.2-5.5 6.6-5 14 2.9 19.9 7.9 5.8 72.1-48.1 72.1-48.1s-24 24.4-24 36.1c0 5.1 44.1 53.8 60.1 53.8s60.1-48.7 60.1-53.8c0-11.7-24-36.1-24-36.1s64.2 53.9 72.1 48.1 11.4-19.3 2.8-19.9c-28-1.8-29.7-24.9-38.9-40.2-9.2-15.3-24-24-24-24s20.6 8.1 40.8 0S476.7 63 476.7 63c7.2-11.2 2.3-17.7-10.6-14.6z"})),a.createElement("path",{fill:"#FFF",stroke:"#231F20",strokeMiterlimit:10,d:"M201.3 111.8v80.3c0 45.7 59.7 59.7 59.7 59.7s59.7-14 59.7-59.7v-80.3H201.3z"}),a.createElement("path",{d:"M225.2 137.7V235c8.2 6 17 10.2 23.9 12.9V137.7h-23.9zm71.6 0V235c-8.2 6-17 10.2-23.9 12.9V137.7h23.9z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M201.3 111.8h119.4v37.9H201.3z"}),a.createElement("path",{fill:"#1583C4",d:"m60.1 210.5-21.9-58.1H15.7l31.8 80.8h25.2l31.5-80.8H81.7zm391.4-58.6h18.9v81.7h-18.9z"}))},VN:function(e){var t=e.title,l=af(e,al);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M196.641 85.337H0v341.326h512V85.337z"}),a.createElement("path",{fill:"#FFDA44",d:"m256 157.279 22.663 69.747H352l-59.332 43.106 22.664 69.749L256 296.774l-59.332 43.107 22.664-69.749L160 227.026h73.337z"}))},VU:function(e){var t=e.title,l=af(e,aa);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M512 256v170.663H0L215.185 256z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.337V256H215.185L0 85.337z"}),a.createElement("path",{d:"M221.001 239.304 26.868 85.337H8.956l208.168 165.098H512v-11.131zM8.956 426.663h17.912l194.133-153.967H512v-11.131H217.124zM0 92.44v14.206L188.317 256 0 405.354v14.205L206.229 256z"}),a.createElement("g",{fill:"#FFDA44"},a.createElement("path",{d:"M8.956 85.337H0v7.103L206.229 256 0 419.559v7.104h8.956l208.168-165.098H512v-11.13H217.124z"}),a.createElement("path",{d:"M63.718 292.382v-14.295c14.265 0 25.87-11.606 25.87-25.869 0-10.092-8.211-18.303-18.304-18.303-6.875 0-12.469 5.593-12.469 12.469 0 4.397 3.577 7.974 7.974 7.974a4.514 4.514 0 0 0 4.508-4.508h14.295c0 10.368-8.435 18.804-18.802 18.804-12.279-.002-22.269-9.993-22.269-22.271 0-14.758 12.006-26.764 26.764-26.764 17.975 0 32.599 14.623 32.599 32.599 0 22.145-18.018 40.164-40.166 40.164z"})))},WF:function(e){var t=e.title,l=af(e,ac);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80B30",d:"M0 0h150v100H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h20v44.33H0z"}),a.createElement("path",{fill:"#FFF",d:"M20 0h20v44.33H20z"}),a.createElement("path",{fill:"none",stroke:"#FFF",strokeWidth:3,d:"M0 44.33h62.75V0"}),a.createElement("path",{fill:"#FFF",d:"M108.08 43.29 87.96 23.17h40.25l-20.13 20.12zm-6.7 6.71L81.25 29.88v40.25L101.38 50zm6.7 6.71L87.96 76.83h40.25l-20.13-20.12zm6.71-6.71 20.13-20.13v40.25L114.79 50z"}))},WS:function(e){var t=e.title,l=af(e,ar);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.331h256v170.663H0z"}),a.createElement("path",{d:"m165.483 181.79 2.764 8.504h8.939l-7.232 5.254 2.763 8.503-7.234-5.255-7.233 5.255 2.763-8.503-7.233-5.254h8.94zm-44.904-66.783 4.606 14.173h14.9l-12.055 8.757 4.605 14.171-12.056-8.758-12.054 8.758 4.605-14.171-12.056-8.757h14.901zm44.522 14.841 4.606 14.172h14.9l-12.055 8.757 4.604 14.173-12.055-8.76-12.054 8.76 4.604-14.173-12.055-8.757h14.9zm-35.192 59.363 4.606 14.172h14.9l-12.055 8.758 4.604 14.171-12.055-8.759-12.054 8.759 4.604-14.171-12.055-8.758h14.9zm-39.01-37.103 4.605 14.173h14.9l-12.055 8.757 4.604 14.173-12.054-8.76-12.055 8.76 4.604-14.173-12.055-8.757h14.9z",fill:"#FFF"}))},XK:function(e){var t=e.title,l=af(e,ah);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.33"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.34H0z"}),a.createElement("path",{d:"m220.72 42.63 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.36-15.9 8.36 3.03-17.7-12.86-12.54 17.78-2.58zm70.56-.06 7.95 16.1 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59zm62.08 11.36 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.87-12.54 17.78-2.58zm63.01 18.3 7.95 16.11 17.77 2.59-12.86 12.53 3.04 17.71-15.9-8.36-15.9 8.36 3.03-17.71-12.86-12.53 17.78-2.59zm-257.73-18.3 7.95 16.11 17.78 2.58-12.87 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.86-12.54 17.77-2.58zm-63.01 18.3 7.95 16.11 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59z",fill:"#FFF"}),a.createElement("path",{fill:"#FFDA44",d:"m217.53 259.33-27.22-13.61-27.22-54.43h27.22l27.22-27.22 13.61-27.22 27.22-13.61 13.61 13.61 27.22 13.61v13.61l13.61 13.61 40.83 27.22L340 245.73l-40.83 40.83-13.61-27.22-40.83 27.22v27.22l-13.61-13.61-13.59-40.84z"}))},YE:function(e){var t=e.title,l=af(e,an);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{d:"M0 312.888h512v113.775H0z"}))},YT:function(e){var t=e.title,l=af(e,am);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h90v60H0z"}),a.createElement("path",{stroke:"#7f7f7f",strokeWidth:.25,fill:"#ABABAB",d:"M75.6 39.6c-1.1.7 0 1.8-.6 1.9-.6.1-1.5-1.4-.2-2.5 1.6-1.5 5.8 0 5.9 4.3 0 2.2-.9 6.8-7.2 6.8-7.6 0-11.4-5.7-11.4-11.4 0-4.8 3.7-13.5 6.5-14.6 3.1-1.2 6.7-3.5 6.8-5 0-.5-1.4-.1-3.3.9-3.1 1.7-6.6 2.5-6.6 1.4s2.9-3.1 4-4.6c1.2-1.6.9-5.5 3-5.5 7.6 0 9.9 7.7 7 11.7-1.9 2.6 4.3 1 4.3 1s0 5.3-3.2 7.3c-3 1.8-4.8 3.9-4.8 3.9s.2-4.6-.5-3.9c-.6.7-11.1 4.5-10.3 12 .3 3 4.5 5.4 8.5 5.2s5.7-2.4 5.8-4.9c.1-3.9-3-4.4-3.7-4zm-64.9 4c.1 2.5 1.8 4.7 5.8 4.9s8.2-2.2 8.5-5.2c.8-7.5-9.7-11.3-10.3-12-.7-.7-.5 3.9-.5 3.9s-1.8-2.1-4.8-3.9c-3.2-2-3.2-7.3-3.2-7.3s6.2 1.6 4.3-1c-2.9-4-.6-11.7 7-11.7 2.1 0 1.8 3.9 3 5.5 1.1 1.5 4 3.5 4 4.6s-3.5.3-6.6-1.4c-1.9-1-3.3-1.4-3.3-.9.1 1.5 3.7 3.8 6.8 5 2.8 1.1 6.5 9.8 6.5 14.6 0 5.7-3.8 11.4-11.4 11.4-6.3 0-7.2-4.6-7.2-6.8.1-4.3 4.3-5.8 5.9-4.3 1.2 1.1.4 2.7-.2 2.5-.6-.1.6-1.2-.6-1.9-.6-.4-3.7.1-3.7 4z"}),a.createElement("path",{fill:"#DE393A",d:"M31 28.8v14c0 1.9 2.1 1.6 2.1 1.6h9.3c1.2 0 2.6 2.3 2.6 2.3s1.4-2.3 2.5-2.3h9.6s2 .2 2-1.8V28.7H31z"}),a.createElement("path",{fill:"#3951A3",d:"M31 13.1h28v15.7H31z"}),a.createElement("path",{fill:"#FFF",d:"M50.1 16.5c-.4 2.4-2.5 4.2-5.1 4.2-2.5 0-4.6-1.8-5.1-4.2-.5.9-.8 1.9-.8 3 0 3.3 2.6 5.9 5.9 5.9 3.3 0 5.9-2.6 5.9-5.9 0-1.1-.3-2.1-.8-3z"}),a.createElement("circle",{fill:"#FEE05F",cx:39.1,cy:36.5,r:3}),a.createElement("circle",{fill:"#FEE05F",cx:50.9,cy:36.5,r:3}))},ZA:function(e){var t=e.title,l=af(e,ai);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M114.024 256.001 0 141.926v228.17z"}),a.createElement("path",{fill:"#ffb915",d:"M161.192 256 0 94.7v47.226l114.024 114.075L0 370.096v47.138z"}),a.createElement("path",{fill:"#007847",d:"M509.833 289.391c.058-.44.804-.878 2.167-1.318v-65.464H222.602L85.33 85.337H0V94.7L161.192 256 0 417.234v9.429h85.33l137.272-137.272h287.231z"}),a.createElement("path",{fill:"#000c8a",d:"M503.181 322.783H236.433l-103.881 103.88H512v-103.88z"}),a.createElement("path",{fill:"#e1392d",d:"M503.181 189.217H512V85.337H132.552l103.881 103.88z"}))},ZM:function(e){var t=e.title,l=af(e,av);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FF9811",d:"M490.668 195.476h-48c0-8.836-7.164-16-16-16s-16 7.164-16 16h-48c0 8.836 7.697 16 16.533 16h-.533c0 8.836 7.162 16 16 16 0 8.836 7.162 16 16 16h32c8.836 0 16-7.164 16-16 8.836 0 16-7.164 16-16h-.533c8.837 0 16.533-7.164 16.533-16z"}),a.createElement("path",{fill:"#D80027",d:"M341.337 255.994h56.888v170.663h-56.888z"}),a.createElement("path",{fill:"#FF9811",d:"M455.112 255.994H512v170.663h-56.888z"}),a.createElement("path",{d:"M398.225 255.994h56.888v170.663h-56.888z"}))},ZW:function(e){var t=e.title,l=af(e,aE);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{d:"M0 134.196h512v48.868H0zm0 195.472h512v48.868H0z",fill:"#FFDA44"}),a.createElement("path",{fill:"#057f44",d:"M0 85.333h512v48.868H0z"}),a.createElement("path",{d:"M0 183.069h512v48.868H0zm0 97.737h512v48.868H0z",fill:"#D80027"}),a.createElement("path",{fill:"#057f44",d:"M0 378.542h512v48.128H0z"}),a.createElement("path",{fill:"#FFF",d:"M276.992 255.996 106.329 426.659H0V85.333h106.329z"}),a.createElement("path",{d:"M256 255.996 85.334 426.662h20.987l170.667-170.666L106.321 85.33H85.334z"}),a.createElement("path",{fill:"#D80027",d:"m102.465 202.57 13.259 40.812h42.917l-34.718 25.226 13.26 40.814-34.718-25.224-34.72 25.224 13.262-40.814-34.718-25.226h42.915z"}),a.createElement("path",{fill:"#FFDA44",d:"m138.94 259.335-34.559-12.243s-2.553-23.955-2.708-24.766c-1.173-6.18-6.603-10.851-13.123-10.851-7.376 0-13.357 5.98-13.357 13.357 0 1.223.178 2.402.486 3.528l-9.689 9.755h17.229c0 17.882-13.344 17.882-13.344 35.691l7.402 17.809h44.522l7.422-17.809h-.004a17.782 17.782 0 0 0 1.381-5.231c6.397-2.589 8.342-9.24 8.342-9.24z"}))}}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1217],{68288:(e,t,l)=>{l.d(t,{Ay:()=>ap});var a=l(20107),c=["title"],r=["title"],h=["title"],n=["title"],m=["title"],i=["title"],v=["title"],E=["title"],z=["title"],f=["title"],p=["title"],w=["title"],s=["title"],d=["title"],M=["title"],F=["title"],H=["title"],o=["title"],g=["title"],u=["title"],x=["title"],D=["title"],B=["title"],L=["title"],V=["title"],A=["title"],y=["title"],C=["title"],k=["title"],S=["title"],W=["title"],b=["title"],G=["title"],T=["title"],N=["title"],O=["title"],R=["title"],I=["title"],P=["title"],K=["title"],U=["title"],Z=["title"],Y=["title"],J=["title"],j=["title"],Q=["title"],_=["title"],X=["title"],q=["title"],$=["title"],ee=["title"],et=["title"],el=["title"],ea=["title"],ec=["title"],er=["title"],eh=["title"],en=["title"],em=["title"],ei=["title"],ev=["title"],eE=["title"],ez=["title"],ef=["title"],ep=["title"],ew=["title"],es=["title"],ed=["title"],eM=["title"],eF=["title"],eH=["title"],eo=["title"],eg=["title"],eu=["title"],ex=["title"],eD=["title"],eB=["title"],eL=["title"],eV=["title"],eA=["title"],ey=["title"],eC=["title"],ek=["title"],eS=["title"],eW=["title"],eb=["title"],eG=["title"],eT=["title"],eN=["title"],eO=["title"],eR=["title"],eI=["title"],eP=["title"],eK=["title"],eU=["title"],eZ=["title"],eY=["title"],eJ=["title"],ej=["title"],eQ=["title"],e_=["title"],eX=["title"],eq=["title"],e$=["title"],e1=["title"],e2=["title"],e3=["title"],e0=["title"],e4=["title"],e5=["title"],e6=["title"],e7=["title"],e8=["title"],e9=["title"],te=["title"],tt=["title"],tl=["title"],ta=["title"],tc=["title"],tr=["title"],th=["title"],tn=["title"],tm=["title"],ti=["title"],tv=["title"],tE=["title"],tz=["title"],tf=["title"],tp=["title"],tw=["title"],ts=["title"],td=["title"],tM=["title"],tF=["title"],tH=["title"],to=["title"],tg=["title"],tu=["title"],tx=["title"],tD=["title"],tB=["title"],tL=["title"],tV=["title"],tA=["title"],ty=["title"],tC=["title"],tk=["title"],tS=["title"],tW=["title"],tb=["title"],tG=["title"],tT=["title"],tN=["title"],tO=["title"],tR=["title"],tI=["title"],tP=["title"],tK=["title"],tU=["title"],tZ=["title"],tY=["title"],tJ=["title"],tj=["title"],tQ=["title"],t_=["title"],tX=["title"],tq=["title"],t$=["title"],t1=["title"],t2=["title"],t3=["title"],t0=["title"],t4=["title"],t5=["title"],t6=["title"],t7=["title"],t8=["title"],t9=["title"],le=["title"],lt=["title"],ll=["title"],la=["title"],lc=["title"],lr=["title"],lh=["title"],ln=["title"],lm=["title"],li=["title"],lv=["title"],lE=["title"],lz=["title"],lf=["title"],lp=["title"],lw=["title"],ls=["title"],ld=["title"],lM=["title"],lF=["title"],lH=["title"],lo=["title"],lg=["title"],lu=["title"],lx=["title"],lD=["title"],lB=["title"],lL=["title"],lV=["title"],lA=["title"],ly=["title"],lC=["title"],lk=["title"],lS=["title"],lW=["title"],lb=["title"],lG=["title"],lT=["title"],lN=["title"],lO=["title"],lR=["title"],lI=["title"],lP=["title"],lK=["title"],lU=["title"],lZ=["title"],lY=["title"],lJ=["title"],lj=["title"],lQ=["title"],l_=["title"],lX=["title"],lq=["title"],l$=["title"],l1=["title"],l2=["title"],l3=["title"],l0=["title"],l4=["title"],l5=["title"],l6=["title"],l7=["title"],l8=["title"],l9=["title"],ae=["title"],at=["title"],al=["title"],aa=["title"],ac=["title"],ar=["title"],ah=["title"],an=["title"],am=["title"],ai=["title"],av=["title"],aE=["title"];function az(){return(az=Object.assign||function(e){for(var t=1;t=0||(c[l]=e[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(c[l]=e[l])}return c}let ap={AC:function(e){var t=e.title,l=af(e,c);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M440.1 181.1c-.1 39.2-6.4 81.4-57.4 101.5-51.1-20.1-57.3-62.3-57.4-101.5h114.8z"}),a.createElement("path",{fill:"#29DBFF",d:"M439.6 197.7c-2.8 34.9-12.4 67.4-57 85-44.4-17.6-54.5-51.2-56.9-84.9"}),a.createElement("path",{fill:"#FFF",d:"M437.8 214.1c-3.2 24.3-16.7 53.5-55.1 68.6-38.4-15.1-50.5-42.5-55.1-68.4"}),a.createElement("path",{fill:"#29DBFF",d:"M434.2 230.3c-5.7 17.7-19.3 39.4-51.3 52.8-32-12.6-45.2-33.8-51.4-53"}),a.createElement("path",{fill:"#FFF",d:"M426.7 246.9c-6.5 11.3-17.7 25.4-44 35.9-27.5-11.5-37.4-25.3-44-36.1"}),a.createElement("path",{fill:"#29DBFF",d:"M412.4 265.1c-8.1 7.2-12 11.2-29.6 17.9-20.1-7.9-22.6-11.6-29.2-17.5"}),a.createElement("path",{fill:"#5CC85C",d:"M383.3 231.6c-.2-.2-27.9 35.7-27.9 35.7-1.8-1.3-10-9.5-13.3-15l41.3-50.1 40.2 49.7c-3.9 6.5-11.4 13.6-13.2 15M382.6 85.3l-26.5 45h53z"}),a.createElement("ellipse",{transform:"rotate(-82.3 291.431 225.686)",fill:"#F7A226",cx:291.4,cy:225.7,rx:48.7,ry:15.7}),a.createElement("ellipse",{transform:"rotate(-68.099 303.087 164.67)",fill:"#DDC7AB",cx:303.1,cy:164.7,rx:11.7,ry:7.2}),a.createElement("ellipse",{transform:"rotate(-81.738 291.697 271.697)",fill:"#DDC7AB",cx:291.7,cy:271.7,rx:11.4,ry:3.3}),a.createElement("ellipse",{transform:"matrix(.9986 -.05353 .05353 .9986 -13.992 16.424)",fill:"#DDC7AB",cx:299.6,cy:269.4,rx:3.3,ry:11}),a.createElement("ellipse",{transform:"rotate(-21.518 314.54 201.06)",fill:"#DDC7AB",cx:314.5,cy:201.1,rx:4.1,ry:13.7}),a.createElement("ellipse",{transform:"rotate(-21.518 317.511 178.077)",fill:"#DDC7AB",cx:317.5,cy:178.1,rx:13.7,ry:4.1}),a.createElement("ellipse",{transform:"rotate(-7.7 473.781 225.857)",fill:"#F7A226",cx:473.6,cy:225.9,rx:15.7,ry:48.7}),a.createElement("ellipse",{transform:"rotate(-21.901 462.057 164.866)",fill:"#DDC7AB",cx:462,cy:164.9,rx:7.2,ry:11.7}),a.createElement("ellipse",{transform:"rotate(-8.27 473.27 271.908)",fill:"#DDC7AB",cx:473.4,cy:271.9,rx:3.3,ry:11.4}),a.createElement("ellipse",{transform:"matrix(.05353 -.9986 .9986 .05353 171.34 719.998)",fill:"#DDC7AB",cx:465.5,cy:269.6,rx:11,ry:3.3}),a.createElement("ellipse",{transform:"rotate(-68.482 450.552 201.247)",fill:"#DDC7AB",cx:450.6,cy:201.2,rx:13.7,ry:4.1}),a.createElement("ellipse",{transform:"rotate(-68.482 447.58 178.265)",fill:"#DDC7AB",cx:447.6,cy:178.3,rx:4.1,ry:13.7}),a.createElement("path",{fill:"#B0C6CC",d:"M373.3 130.3 356.1 155l17.8 26.1H396l4.7-25.4-5.4-25.4z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{fill:"#D80027",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}))},AD:function(e){var t=e.title,l=af(e,r);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342zM198.9 113.6H256v64.8h-57.1z"}),a.createElement("path",{d:"M267.6 113.6v64.7m16.6-64.7v64.7m16.6-64.7v64.7",stroke:"#D80027",strokeWidth:7}),a.createElement("path",{d:"M247.4 178.4v64.7m-13.3-64.7v64.7m-13.3-64.6v53.9m-13.7-53.9v47.1",stroke:"#D80027",strokeWidth:5}),a.createElement("path",{fill:"#FFDA44",d:"m199.9 146 27.6-32.4 28.5 32.3-28.1 32.4z"}),a.createElement("path",{fill:"#BC8B00",d:"M182.2 95.9v92.2c0 34.3 27.3 54.2 48.6 64.5-.8 1.4 25.1 8.3 25.1 8.3s25.9-6.9 25.1-8.3c21.4-10.3 48.6-30.1 48.6-64.5V95.9H182.2zm129.9 92.2c0 16.9-10 29.4-32.8 43.9-8.6 5.5-17.5 9-23.3 11-5.8-2-14.7-5.5-23.3-11-22.8-14.5-32.8-28-32.8-43.9v-74.5h112.2v74.5z"}),a.createElement("path",{fill:"#D80027",d:"M264.4 188.9h29.5v8.6h-29.5zm0 17.6h29.5v8.6h-29.5z"}))},AE:function(e){var t=e.title,l=af(e,h);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#009e49",d:"M0 0h513v114H0z"}),a.createElement("path",{d:"M0 228h513v114H0z"}),a.createElement("path",{fill:"#ce1126",d:"M0 0h171v342H0z"}))},AF:function(e){var t=e.title,l=af(e,n);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#DB3E00",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#479900",d:"M331 0h182v342H331z"}),a.createElement("path",{d:"M0 0h181.8v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 126.7c-19.4 0-35.2 15.8-35.2 35.2v52.8h70.4v-52.8c0-19.5-15.8-35.2-35.2-35.2z"}),a.createElement("path",{fill:"#FFF",d:"M256 84.3c-47.7 0-86.4 38.7-86.4 86.4S208.3 257 256 257s86.4-38.7 86.4-86.4-38.7-86.3-86.4-86.3zm0 157.7c-39.4 0-71.4-32-71.4-71.4 0-39.4 32-71.4 71.4-71.4 39.4 0 71.4 32 71.4 71.4 0 39.5-32 71.4-71.4 71.4z"}))},AG:function(e){var t=e.title,l=af(e,m);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0072c6",d:"M88.8 136.5c-2.2 12.9-3.4 26.2-3.4 39.8 0 13.6 1.2 27 3.4 39.8L256 228.3l167.2-12.1c2.2-12.9 3.4-26.2 3.4-39.8s-1.2-27-3.4-39.8"}),a.createElement("path",{fill:"#FFF",d:"M423.2 219H88.8c15.8 69.8 84.7 122.3 167.2 122.3S407.4 288.8 423.2 219z"}),a.createElement("path",{fill:"#FFDA44",d:"M365.9 136.5H146.1l44.9-21.1-23.9-43.5 48.8 9.4L222 32l34 36.2L290 32l6.1 49.3 48.8-9.4-23.9 43.5z"}),a.createElement("g",{fill:"#ce1126"},a.createElement("path",{d:"M256.5 342 0 0v342z"}),a.createElement("path",{d:"M513 342V0L256 342z"})))},AI:function(e){var t=e.title,l=af(e,i);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#00318b",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M454.8 265.38c7.94-10.93 13.24-24.27 13.24-40.42V104.89a59.754 59.754 0 0 1-36.02 12.01c-19.64 0-37.07-9.43-48.03-24.01-10.95 14.58-28.39 24.01-48.03 24.01-13.52 0-25.99-4.47-36.02-12v120.06c0 16.16 5.3 29.5 13.24 40.42H454.8z"}),a.createElement("path",{fill:"#8DCCFF",d:"M310.23 260.98C332.65 296.96 384 309 384 309s51.35-12.04 73.77-48.02H310.23z"}),a.createElement("path",{fill:"#D87B00",d:"M396.66 172.21c.32 1.42 8.72 10.17 17.56 20.15 1.39 1.57-8.74 12.63-6.91 12.59 4.75-.12 19.27-17.26 19.34 6.65.05 15.94-30 27.51-30 27.51h17.47l.65 14.96s4.97-13.34 7.59-16.57c8.1-9.97 20.18-30.07 34.59-27.1 14.41 2.97-13.66-13.92-13.66-13.92s-5.2-15.19-16.63-16.97c-10.06-1.57-14.29-2.51-26.64-7.3-1.68-.65-3.88-2.32-3.36 0z"}),a.createElement("path",{fill:"#D87B00",d:"M359.69 198.69c1.07-.99 4.46-12.63 8.69-25.28.67-1.99 15.31 1.27 14.35-.3-2.47-4.06-24.58-8.08-3.9-20.08 13.79-8 38.82 12.27 38.82 12.27l-8.72-15.14 12.64-8.03s-14.05 2.35-18.14 1.69c-12.68-2.04-36.13-2.48-40.75-16.45-4.62-13.97-5.25 18.79-5.25 18.79s-10.56 12.08-6.4 22.88c3.66 9.5 4.96 13.64 6.97 26.73.29 1.79-.06 4.53 1.69 2.92z"}),a.createElement("path",{fill:"#D87B00",d:"M395.67 219.87c-1.39-.43-13.16 2.49-26.22 5.18-2.06.42-6.59-13.88-7.47-12.26-2.27 4.17 5.36 25.31-15.41 13.45-13.84-7.91-8.89-39.73-8.89-39.73l-8.71 15.14-13.29-6.9s9.09 10.96 10.57 14.84c4.6 11.99 16 32.49 6.24 43.49-9.76 11.01 18.88-4.9 18.88-4.9s15.76 3.07 23-5.96c6.38-7.94 9.3-11.14 19.61-19.45 1.43-1.12 3.97-2.19 1.69-2.9z"}),a.createElement("path",{fill:"#FFF",d:"M256.5 0h-23.1L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1V171h22.6L96 121.8V171h64v-49.2l73.4 49.2h23.1v-22.9l-46.6-30.7h46.6v-64h-46.6l46.6-30.7z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112V171h32v-69.6h112.5v-32H144z"}),a.createElement("path",{fill:"#D80027",d:"M0 171v-11.3l62.5-42.3h22.6L7.3 171zM7.3.1l77.8 53.2H62.5L0 11.1V.1zm249.2 0v11l-63 42.3h-22.6L248.7.1zM248.7 171l-77.8-53.6h22.6l63 42.3V171z"}))},AL:function(e){var t=e.title,l=af(e,v);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ED2024",d:"M0 0h90v60H0z"}),a.createElement("path",{fill:"#212121",d:"M32.5 12.2v16l7.1 2.5-5 4.9 2.4 3 5.3-5.5 1.2 2.3-3 4.9 3.6 5.6-1.8 2.6 2.8 3.6 2.7-3.7-1.5-2.6 3-5.8-2.7-4.6 1.2-2.3 5.2 5.5 2.5-2.9-5.2-5.1 7.2-2.6V12.2l-5.2 1.9-.1 3.8-3.3.3v-2.6l1.7-2.3 5.6-2.2-2.3-.4 1.4-1.2.9.4-.8-1.4L54 9l-1-1.1L47.5 9l1.4 1.1-3.8 4.9-3.8-4.8 1.3-1.1-5-1.2L36.2 9l-1.5-.4-.8 1.4.9-.6 1.6 1.1-2.3.5 5.5 2 1.6 2.3v2.9l-3.3-.3v-3.6z"}),a.createElement("path",{d:"M26.2 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM57.4 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM53.4 36.1h6.4V38h-6.4zm-23.2 0h6.4V38h-6.4z",fill:"#212121"}))},AM:function(e){var t=e.title,l=af(e,E);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#FF9811",d:"M0 228h513v114H0z"}))},AO:function(e){var t=e.title,l=af(e,z);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 171h513v171H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v171H0z"}),a.createElement("g",{fill:"#FFDA44"},a.createElement("path",{d:"m332.7 135.6 17.5-8.6-7.4-19-18.7 6.2zm-45.6-56 5.5-18.8-19.1-7.2-8 18zm29.4 23.2 12.2-15.3-14.9-13.9-14.2 13.6zm19.4 68.9 19.5-.8v-21.3l-22.9.2zm-12.6 38.1 18.8 5.5 7.3-19-18-8zm-29 32.4 14.9 12.7 14.4-14.4-13.1-14.7zm-47-147.7 9.8 19.9 21.9 3.3-15.9 15.5 3.6 21.9-19.6-10.4-19.7 10.2 3.8-21.9-15.8-15.5 22-3.1z"}),a.createElement("path",{d:"m250.8 61.3-2.7 18.3c43.1 3.2 77 39.2 77 83.1 0 46-37.3 82.9-83.4 83.4-29.2.3-51.3-14.8-67-33.7l-13.9 12.3c15 19 40.8 39.9 80.9 39.9 56.3 0 101.9-45.6 101.9-101.9.1-53.2-40.7-96.9-92.8-101.4z"}),a.createElement("path",{fill:"#000",d:"m291.9 223.4-11.8 14s51.9 38.9 53.6 40.4c1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-2-1.5-51.8-42-51.8-42z"}),a.createElement("path",{d:"M206.1 157.2c-7.7 10.3-7.5 23.1 2.8 30.9 0 0 135.2 101.5 136.9 103 1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-1.9-1.5-149.7-121.5-149.7-121.5zm47.7 99.1 7.3 18.2 19.5-6-4.8-19.1zm-40.4-3.7-2 19.5 20.1 3.6 4.5-19.1zm-35.7-21.2L167.4 248l16.4 12.1 12.5-15.2z"})))},AQ:function(e){var t=e.title,l=af(e,f);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 744 496"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#3A7DCE",d:"M0 0h744v496H0V0z"}),a.createElement("path",{fill:"#fff",d:"m120 125 90 63 54-14 23-81 61-36 92 14 105 55 6 90 34 12v92l-65 115-78 24-72-17 18-30-8-32-10 9-162-25-49-85 20-46-49-62z"}))},AR:function(e){var t=e.title,l=af(e,p);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 0h512v114H0zm0 228h512v114H0z"}),a.createElement("circle",{fill:"#FFDA44",stroke:"#d6ab00",strokeWidth:5,cx:256.5,cy:171,r:40}))},AS:function(e){var t=e.title,l=af(e,w);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M513 33 95.3 171 513 310.76V342L0 171 513 0z"}),a.createElement("path",{fill:"#FFF",d:"M513 287.18v24.58L81.72 171 513 30v24.16"}),a.createElement("path",{fill:"#A2001D",d:"m476.98 140.21-21.89 10.68-3.18-15.32 31.19-29.77s-9.42-40.65-13.75-44.98l-112.32 55.82-6.84 36.76-31.9 28.59-.4 34.2 34.29-22.76 67.23-2.66-1.51 38.11h22.23l11.9-44.64 31.55-24.61-6.6-19.42z"}),a.createElement("path",{fill:"#EFC100",stroke:"#231F20",strokeMiterlimit:10,d:"m317.89 238.41-22.24-11.11 22.24-11.11h144.46v22.22z"}))},AT:function(e){var t=e.title,l=af(e,s);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0zm0 228h513v114H0z"}))},AU:function(e){var t=e.title,l=af(e,d);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M222.2 170.7c.3-.3.5-.6.8-.9-.2.3-.5.6-.8.9zM188 212.6l11 22.9 24.7-5.7-11 22.8 19.9 15.8-24.8 5.6.1 25.4-19.9-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9L332 136zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm42.5 49.7 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.4-7.6-9.5 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zM398 166.5l4.1 12.7h13.3l-10.8 7.8 4.2 12.7-10.8-7.9-10.8 7.9 4.1-12.7-10.7-7.8h13.3z"}),a.createElement("path",{d:"M254.8 0v30.6l-45.1 25.1h45.1V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9H99v-48.6l-87.4 48.6H-1.2v-30.6L44 115H-1.2V55.7h59.1L-1.2 22.8V0h26.7L99 40.8V0h55.6v48.6L242.1 0z"})),a.createElement("path",{fill:"#D80027",d:"M142.8 0h-32v69.3h-112v32h112v69.4h32v-69.4h112v-32h-112z"}),a.createElement("path",{fill:"#0052B4",d:"m154.6 115 100.2 55.7v-15.8L183 115z"}),a.createElement("path",{fill:"#FFF",d:"m154.6 115 100.2 55.7v-15.8L183 115z"}),a.createElement("path",{d:"m154.6 115 100.2 55.7v-15.8L183 115zm-83.9 0-71.9 39.9v15.8L99 115z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M99 55.7-1.2 0v15.7l71.9 40z"}),a.createElement("path",{fill:"#FFF",d:"M99 55.7-1.2 0v15.7l71.9 40z"}),a.createElement("path",{d:"M99 55.7-1.2 0v15.7l71.9 40zm84 0 71.8-40V0L154.6 55.7z",fill:"#D80027"}))},AW:function(e){var t=e.title,l=af(e,M);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 363 242"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 0h363v242H0z"}),a.createElement("path",{fill:"#FFF",d:"M57 96.9 14.7 78.2 57 59.6l18.6-42.2 18.6 42.2 42.3 18.6-42.3 18.7-18.6 42.2z"}),a.createElement("path",{fill:"#f30028",d:"m75.6 40.6 11.5 26.1 26.1 11.5-26.1 11.5-11.5 26.1-11.5-26.1L38 78.2l26.1-11.5z"}),a.createElement("path",{d:"M0 152.2h363v15.7H0zm0 31.4h363v15.7H0z",fill:"#FFDA44"}))},AX:function(e){var t=e.title,l=af(e,F);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M513 210.9H202.2V342h-79.8V210.9H0v-79.8h122.4V0h79.8v131.1H513v61.2z"}),a.createElement("path",{fill:"#D80027",d:"M513 149.7v42.6H183.7V342H141V192.3H0v-42.6h141V0h42.7v149.7z"}))},AZ:function(e){var t=e.title,l=af(e,H);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ef3340",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00b5e2",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#509e2f",d:"M0 228h513v114H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M265.6 212.6c-23 0-41.6-18.6-41.6-41.6s18.6-41.6 41.6-41.6c7.2 0 13.9 1.8 19.8 5-9.2-9-21.9-14.6-35.8-14.6-28.3 0-51.2 22.9-51.2 51.2s22.9 51.2 51.2 51.2c13.9 0 26.6-5.6 35.8-14.6-5.9 3.2-12.6 5-19.8 5z"}),a.createElement("path",{d:"m297.6 142.2 5.5 15.5 14.9-7.1-7.1 14.9 15.5 5.5-15.5 5.5 7.1 14.9-14.9-7.1-5.5 15.5-5.5-15.5-14.9 7.1 7.1-14.9-15.5-5.5 15.5-5.5-7.1-14.9 14.9 7.1z"})))},BA:function(e){var t=e.title,l=af(e,o);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#10338C",d:"M0 0h513.1v342H0z"}),a.createElement("path",{fill:"#F6C500",d:"M99.9 0h342v342"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M19.9 21.1 40.3 6.2 60.9 21 54 0H26.7z"}),a.createElement("path",{d:"M92.3 25.5 84.4 1.3l-7.8 24.2H51.3l20.5 14.8-7.8 24 20.4-14.8L105 64.3l-7.9-24 20.5-14.9z"}),a.createElement("path",{d:"m136.3 69.2-7.8-24-7.8 24H95.5l20.4 14.9-7.8 24 20.4-14.8 20.6 14.8-7.8-24 20.4-14.9z"}),a.createElement("path",{d:"m179.4 112.3-7.8-24.1-7.8 24.1h-25.3l20.5 14.9-7.8 24 20.4-14.8 20.6 14.8-7.9-24 20.5-15z"}),a.createElement("path",{d:"m222.5 155.3-7.8-24-7.8 24h-25.4l20.6 15-7.8 24 20.4-14.9 20.4 14.9-7.8-24 20.6-15z"}),a.createElement("path",{d:"m265.6 198.4-7.8-24-7.8 24h-25.4l20.6 14.9-7.8 24.1 20.4-14.9 20.4 14.9-7.8-24.2 20.5-14.8z"}),a.createElement("path",{d:"m308.7 241.5-7.9-24-7.8 24h-25.3l20.5 14.8-7.9 24.2 20.6-14.9 20.4 14.8-7.8-24.1 20.5-14.8z"}),a.createElement("path",{d:"m351.7 284.6-7.8-24.2-7.8 24.2h-25.3l20.4 14.8-7.8 24.1 20.5-14.9 20.5 14.9-7.8-24.1 20.4-14.8z"}),a.createElement("path",{d:"m387 303.5-7.9 24.1-25.3.1 19.8 14.3h26.6l19.9-14.4h-25.3z"})))},BB:function(e){var t=e.title,l=af(e,g);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ffc726",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#00267f"}),a.createElement("path",{d:"m325.74 101.02-31.97 12.4c-.68 1.35-5.79 7.54-8.18 53.06h-17.05v-60.42L256 78.68l-12.54 27v60.8H226.4c-2.39-45.53-7.8-52.48-8.47-53.84l-31.68-11.63c.15.31 15.4 31.34 15.4 78.01v12.54h41.81v71.07h25.08v-71.07h41.81v-12.54c0-24.13 4.17-44.02 7.68-56.46 3.82-13.57 7.7-21.49 7.74-21.57l-.03.03z"}))},BD:function(e){var t=e.title,l=af(e,u);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#2d6e41",d:"M0 85.331h513v342H0z"}),a.createElement("circle",{fill:"#F40B32",cx:218.902,cy:256.5,r:115}))},BE:function(e){var t=e.title,l=af(e,x);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#fdda25",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#ef3340",d:"M342 0h171v342H342z"}))},BF:function(e){var t=e.title,l=af(e,D);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#3d944f",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#ef2b2d",d:"M0 0h513v171H0z"}),a.createElement("path",{fill:"#FFDA44",d:"m256 102.6 16.9 52h54.7l-44.2 32.2 16.8 52-44.2-32.1-44.2 32.1 16.8-52-44.2-32.2h54.7z"}))},BG:function(e){var t=e.title,l=af(e,B);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#00966e",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#d62612",d:"M0 228h513v114H0z"}))},BH:function(e){var t=e.title,l=af(e,L);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"m222.8 34.3-85.2 34.2 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.8H0V0h137.6z"}))},BI:function(e){var t=e.title,l=af(e,V);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M215.9 170.7 0 314.6V26.8zM513 26.8v287.8L297.1 170.7z",fill:"#47a644"}),a.createElement("path",{fill:"#0052B4",d:"M513 26.8 296.1 170.7 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z"}),a.createElement("path",{fill:"#FFF",d:"M513 26.8 297.1 170.7 513 314.6V342h-40L256 197.4 39 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z"}),a.createElement("circle",{fill:"#FFF",cx:251.6,cy:170.7,r:100.2}),a.createElement("path",{d:"m251.4 103.6 7.4 12.9h14.8l-7.4 12.8 7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8H244zm38.8 66.7 7.4 12.9h14.8L305 196l7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.9l7.4-12.8-7.4-12.8h14.9zm-77.2 0 7.4 12.9h14.9l-7.4 12.8 7.4 12.8h-14.9l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8h14.8z",fill:"#D80027",stroke:"#47a644",strokeWidth:3}))},BJ:function(e){var t=e.title,l=af(e,A);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#008751",d:"M0 85.333h513v342H0z"}),a.createElement("path",{fill:"#fcd116",d:"M196.666 85.333H513v171H196.666z"}),a.createElement("path",{fill:"#e8112d",d:"M196.666 256H513v171H196.666z"}))},BL:function(e){var t=e.title,l=af(e,y);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#E6BC00",d:"M157.31 199.76s-9.04 43.93-19.31 40.39c-10.62-3.54-17.53-18.76-17.53-18.76l-14.52 21.24s38.18 8.48 41.01 5.47c1.22-1.14 8.21-15.1 10.34-26.05v-22.29zm-56.13 60.57s-2.48 20.18-1.06 22.66c1.24 2.3 39.48 11.33 39.48 11.33s-24.96 16.46-29.74 20.54L91.8 284.94l-.71-24.61h10.09zm11.33-165.69s39.65 41.6 40.36 45.5c.71 3.72-4.25 3.19-4.25 3.19s-44.79-37.53-49.92-41.07c-5.31-3.55 13.81-7.62 13.81-7.62z"}),a.createElement("path",{fill:"#ADADAD",d:"M99.41 104.73s16.99-.71 16.64-11.51c-.35-10.62-11.15-14.87-19.12-12.39-7.97 2.3-23.01 13.45-13.63 35.05 9.38 21.42 23.37 29.39 26.2 47.8 0 0-5.46 9.86-19.12.35-16.9-11.77-6.2-38.24-10.44-44.96-4.25-7.08-40.95-38.92-40.95-38.92s-30.24 39.37-18 74.92c16.95 49.21 51.74 31.98 64.61 36.76 0 0-42.13 61.96-49.57 67.09 0 0 24.08 8.32 47.8-18.76 0 0 5.84 9.74 7.08 20.18h10.27c4.78-26.2 51.51-64.26 49.92-82.32-1.77-21.25-49.21-49.39-51.69-73.29z"}),a.createElement("path",{fill:"#E6BC00",d:"M359.17 201.27s8.96 42.43 19.23 38.89c10.62-3.54 17.53-18.76 17.53-18.76l14.52 21.24s-37 8.48-39.83 5.47c-1.21-1.14-9.32-13.79-11.52-24.66l.07-22.18zm56.05 59.06s2.48 20.18 1.06 22.66c-1.24 2.3-39.48 11.33-39.48 11.33s24.96 16.46 29.74 20.54l18.06-29.92.71-24.61h-10.09zM403.89 94.64s-39.65 41.6-40.36 45.5c-.71 3.72 4.25 3.19 4.25 3.19s44.79-37.53 49.92-41.07c5.14-3.55-13.81-7.62-13.81-7.62z"}),a.createElement("path",{fill:"#125ECC",d:"M157.31 87.06H359.1v145.46c0 16.06-9.69 21.39-21.91 31.85l-45.92 39.41c-18.25 15.62-47.91 15.57-66.07 0l-46.01-39.43c-12.08-10.35-21.88-15.71-21.88-31.82V87.06z"}),a.createElement("path",{fill:"#FFE600",d:"M200.55 147.71c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65-3c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65 3c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zM214.96 274.43c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41c.01 7.96-6.45 14.41-14.41 14.41zm43.24 14.42c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41c0 7.95-6.45 14.41-14.41 14.41zm43.24-14.42c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41z"}),a.createElement("path",{fill:"#D60537",d:"M157.31 175.36H359.1v57.65H157.31v-57.65z"}),a.createElement("path",{fill:"#EACE00",d:"M142.9 43.82s57.65-14.41 115.31-14.41 115.31 14.41 115.31 14.41l-14.41 57.65s-50.45-14.41-100.89-14.41-100.89 14.41-100.89 14.41L142.9 43.82z"}),a.createElement("path",{fill:"#7A6920",d:"M258.2 72.65c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65 5c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm-115.3 0c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41z"}),a.createElement("path",{fill:"#ADADAD",d:"M365.08 178.02c-1.59 18.06 45.14 56.12 49.92 82.32h10.27c1.24-10.44 7.08-20.18 7.08-20.18 23.72 27.09 47.8 18.76 47.8 18.76-7.44-5.13-49.57-67.09-49.57-67.09 12.88-4.78 47.67 12.45 64.61-36.76 12.24-35.55-18-74.92-18-74.92s-36.7 31.84-40.95 38.92c-4.25 6.73 6.46 33.2-10.44 44.96-13.66 9.51-19.12-.35-19.12-.35 2.83-18.41 16.82-26.38 26.2-47.8 9.38-21.6-5.66-32.75-13.63-35.05-7.97-2.48-18.76 1.77-19.12 12.39-.35 10.8 16.64 11.51 16.64 11.51-2.48 23.9-49.92 52.04-51.69 73.29z"}),a.createElement("circle",{fill:"#FFF",cx:258.2,cy:204.19,r:16.93}))},BM:function(e){var t=e.title,l=af(e,C);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#c8102e",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#012169",d:"M0 .1h256.5v171H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0h-22.6L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1v22.6h22.6L96 121.8v48.9h64v-48.9l73.4 48.9H256v-22.6l-46.1-30.7H256v-64h-46.1L256 22.7z"}),a.createElement("path",{fill:"#c8102e",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{fill:"#c8102e",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}),a.createElement("g",{transform:"translate(13 5)"},a.createElement("path",{fill:"#fff",d:"M303.9 94.94v99.69c0 59.81 79.75 99.69 79.75 99.69s79.75-39.88 79.75-99.69V94.94H303.9z"}),a.createElement("path",{fill:"#2F8F22",d:"M436.37 254.44H330.93c23.13 25.08 52.72 39.88 52.72 39.88s29.59-14.8 52.72-39.88z"}),a.createElement("circle",{fill:"#65B5D2",cx:383.65,cy:214.56,r:39.88}),a.createElement("circle",{fill:"#c8102e",cx:343.77,cy:194.63,r:19.94}),a.createElement("circle",{fill:"#c8102e",cx:423.52,cy:194.63,r:19.94}),a.createElement("circle",{fill:"#c8102e",cx:383.65,cy:154.75,r:19.94})))},BN:function(e){var t=e.title,l=af(e,k);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"m0 193.74 513 127.19V214.26L0 97.08z"}),a.createElement("path",{fill:"#FFF",d:"M513 234.26v-86.67L0 20.41v86.67"}),a.createElement("g",{fill:"#D80027",stroke:"#231F20",strokeWidth:3,strokeMiterlimit:10},a.createElement("path",{d:"M306.4 134.01a50.28 50.28 0 0 1 6.07 24.02c0 21.55-13.51 39.94-32.52 47.19v-59.51c5.7-1.19 10-6.37 10-12.59 6.9 0 12.5-5.75 12.5-12.85h-.42c6.9 0 12.91-5.75 12.91-12.85h-34.99V76.58l-14.99-27.71-15 27.71v30.84h-34.99c0 7.1 6.01 12.85 12.91 12.85h-.42c0 7.1 5.6 12.85 12.5 12.85 0 6.22 4.29 11.4 9.99 12.59v61.37c-22.09-5.39-38.48-25.3-38.48-49.05 0-8.7 2.2-16.88 6.07-24.02-10.96 11.21-17.72 26.53-17.72 43.44 0 34.32 27.82 62.15 62.15 62.15s62.15-27.83 62.15-62.15c0-16.91-6.77-32.24-17.72-43.44z"}),a.createElement("path",{d:"M198.46 226.81s20.69 27.71 66.5 27.71 66.5-27.71 66.5-27.71l13.47 28.37s-21.03 27.71-79.97 27.71-79.97-27.71-79.97-27.71l13.47-28.37zm-69.22-93.63h20.88l24.93 27.26v73.45h-26.28v-68.37zm270.76 0h-20.88l-24.93 27.26v73.45h26.27v-68.37z"})))},BO:function(e){var t=e.title,l=af(e,S);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#d52b1e",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#f9e300",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#007934",d:"M0 228h513v114H0z"}))},BQ:function(e){var t=e.title,l=af(e,W);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#012a87",d:"M0 342h513V0z"}),a.createElement("path",{fill:"#f9d90f",d:"M250.4 0H0v166.9z"}),a.createElement("path",{fill:"#dc171d",d:"m140.4 118.3 12.2 21.2h24.5l-12.3 21.1 12.3 21.2h-24.5L140.4 203l-12.2-21.2h-24.5l12.3-21.2-12.3-21.1h24.5z"}),a.createElement("circle",{fill:"none",stroke:"#000",strokeWidth:9,strokeMiterlimit:10,cx:140.4,cy:160.6,r:57.7}))},BR:function(e){var t=e.title,l=af(e,b);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#009b3a",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#fedf00",d:"m256.5 19.3 204.9 151.4L256.5 322 50.6 170.7z"}),a.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:80.4}),a.createElement("path",{fill:"#002776",d:"M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z"}))},BS:function(e){var t=e.title,l=af(e,G);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ffc72c",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#00778b"}),a.createElement("path",{d:"M256 171 0 342V0z"}))},BT:function(e){var t=e.title,l=af(e,T);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FF7415",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M513 0H0v342"}),a.createElement("path",{fill:"none",stroke:"#FFF",strokeWidth:42,strokeMiterlimit:10,d:"M128.7 255.5s35 54 67.3 32.4c56.9-37.9-68.9-108.6-2.9-152.6 58.3-38.8 76.6 103.5 137.6 62.8 59-39.3-64.7-111.4-9.2-148.4 33.4-22.2 67.1 32.6 67.1 32.6"}))},BV:function(e){var t=e.title,l=af(e,N);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 33.333 1100 733.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ef2b2d",d:"M0 0h1100v800H0z"}),a.createElement("path",{fill:"#fff",d:"M300 0h200v800H300z"}),a.createElement("path",{fill:"#fff",d:"M0 300h1100v200H0z"}),a.createElement("path",{fill:"#002868",d:"M350 0h100v800H350z"}),a.createElement("path",{fill:"#002868",d:"M0 350h1100v100H0z"}))},BW:function(e){var t=e.title,l=af(e,O);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 238h513v104H0zM0 0h513v104H0z",fill:"#6da9d2"}),a.createElement("path",{d:"M0 125.5h513v89.656H0z"}))},BY:function(e){var t=e.title,l=af(e,R);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#007C30",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#CE1720",d:"M0 230h513V0H0"}),a.createElement("path",{fill:"#FFF",d:"M100 230V0H0v342h513-413z"}),a.createElement("path",{d:"M28 159.6 8.6 128.2 28 97.4l19.3 30.8zm44.6 0-19.3-31.4 19.3-30.8L92 128.2zM28 241.2 8.6 209.8 28 179l19.3 30.8zm44.6 0-19.3-31.4L72.6 179 92 209.8z",fill:"#CE1720"}),a.createElement("path",{d:"m28 73.8-16.1-26L28 22.2l16 25.6zm44.6 0-16-26 16-25.6 16.1 25.6zM28 318l-16.1-26.1L28 266.3l16 25.6zm44.6 0-16-26.1 16-25.6 16.1 25.6z",fill:"none",stroke:"#CE1720",strokeWidth:7}))},BZ:function(e){var t=e.title,l=af(e,I);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#003e87",d:"M0 0h513v342H0z"}),a.createElement("circle",{fill:"#FFF",cx:260.9,cy:170.9,r:118.9}),a.createElement("circle",{fill:"none",stroke:"#6DA544",strokeWidth:18,strokeMiterlimit:10,cx:261.9,cy:173.1,r:94.5}),a.createElement("g",{stroke:"#000"},a.createElement("path",{fill:"#003e87",d:"m261.9 151.5-50.6 23.4v20c0 11.8 6.1 22.8 16.2 28.9L262 239l34.5-15.2c10-6.2 16.2-17.1 16.2-28.9v-20l-50.8-23.4z"}),a.createElement("path",{fill:"#FFDA44",d:"M211.3 128.1h101.3v46.7H211.3z"})),a.createElement("path",{d:"M0 0h513v35H0zm0 306h513v35H0z",fill:"#ce1127"}))},CA:function(e){var t=e.title,l=af(e,P);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h142v342H0zm371 0h142v342H371zm-64.5 206 50.4-25.2-25.2-12.6V143l-50.4 25.2 25.2-50.4h-25.2L256.1 80l-25.2 37.8h-25.2l25.2 50.4-50.4-25.2v25.2l-25.2 12.6 50.4 25.2-12.6 25.2h50.4V269h25.2v-37.8h50.4z",fill:"red"}))},CC:function(e){var t=e.title,l=af(e,K);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"green",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"m422.7 252.4 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.2V301l-11.1-8.9-11.1 8.9v-14.2l-13.8-3.2 11.1-8.8-6.2-12.8 13.9 3.2zm-46.6-136.3 6.2 12.9 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.1v14.3l-11.1-8.9-11.1 8.9.1-14.3-13.9-3.1 11.1-8.8-6.2-12.8L370 129zm37-77.8 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.9-13.9 3.1v14.2L413.1 78 402 86.9l.1-14.2-13.9-3.1 11.1-8.9-6.2-12.8 13.9 3.2zm51.8 58.4 6.2 12.8 13.9-3.2-6.3 12.8 11.2 8.9-13.9 3.1.1 14.2-11.2-8.9-11.1 8.9.1-14.2L440 128l11.2-8.9-6.3-12.8 13.9 3.2zm-28 68.1 4.9 14.8h15.6l-12.6 9.2 4.8 14.9-12.7-9.2-12.6 9.2 4.8-14.9-12.6-9.2h15.6zM306.8 254.7c-49.2 0-89.1-39.9-89.1-89.1s39.9-89.1 89.1-89.1c15.3 0 29.8 3.9 42.4 10.7C329.4 67.9 302.3 56 272.5 56c-60.5 0-109.6 49.1-109.6 109.6S212 275.3 272.5 275.3c29.8 0 56.9-11.9 76.6-31.3-12.6 6.8-27 10.7-42.3 10.7zM140.4 59.5C129.7 41 109.7 28.6 86.8 28.6S44 41 33.3 59.5h107.1zm.2.4-53.8 53.8-53.7-53.8C28 68.9 25 79.3 25 90.5c0 34.2 27.7 61.9 61.9 61.9s61.9-27.7 61.9-61.9c-.1-11.2-3.1-21.6-8.2-30.6z",fill:"#FFDA44"}),a.createElement("path",{fill:"#A2001D",d:"M71.4 98.2v52.2c4.9 1.3 10.1 1.9 15.5 1.9s10.5-.7 15.5-1.9V98.2h-31z"}))},CD:function(e){var t=e.title,l=af(e,U);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M513 66.9V0H411.7L0 274.4V342h100.3z"}),a.createElement("path",{fill:"#D80027",d:"M513 0v40.1L60.2 342H0v-40.8L451.8 0z"}),a.createElement("path",{fill:"#FFDA44",d:"m93.6 31.2 16.3 50.4H163l-42.9 31.2 16.4 50.5-42.9-31.2-43 31.2L67 112.8 24.1 81.6h53.1z"}))},CF:function(e){var t=e.title,l=af(e,Z);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#d21034",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 171h211.5v85.3H0zm300.5 0H512v85.3H300.5z",fill:"#3a9927"}),a.createElement("path",{fill:"#003082",d:"M0 0v85.3h211.5V0h89v85.3H513V0z"}),a.createElement("path",{d:"M300.5 85.3H512v85.3H300.5zM0 85.3h211.5v85.3H0z",fill:"#FFF"}),a.createElement("path",{d:"M300.5 342h-89v-86H0v86h513v-86H300.5zM105.7 8.6l8.6 26.2h27.5L119.5 51l8.6 26.2L105.7 61 83.4 77.2 91.9 51 69.6 34.8h27.6z",fill:"#ffce00"}))},CG:function(e){var t=e.title,l=af(e,Y);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#da1a35",d:"M0 85.331h513v342H0z"}),a.createElement("path",{fill:"#009543",d:"M443.726 85.331 102.4 426.657H0V85.331z"}),a.createElement("path",{fill:"#fbde4a",d:"M500.124 85.331 158.798 426.657H11.876L353.202 85.331z"}))},CH:function(e){var t=e.title,l=af(e,J);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"red",d:"M0 85.337h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M356.174 222.609h-66.783v-66.783h-66.782v66.783h-66.783v66.782h66.783v66.783h66.782v-66.783h66.783z"}))},CI:function(e){var t=e.title,l=af(e,j);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#009e60",d:"M342 0h171v342H342z"}),a.createElement("path",{fill:"#f77f00",d:"M0 0h171v342H0z"}))},CK:function(e){var t=e.title,l=af(e,Q);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#01237a",d:"M0 85.332h513v342H0z"}),a.createElement("path",{d:"m384 156.705 5.283 16.254h17.089l-13.826 10.045 5.281 16.254L384 189.211l-13.825 10.047 5.28-16.254-13.825-10.045h17.089zm-70.209 29.081 15.228 7.758 12.084-12.083-2.673 16.879 15.227 7.759-16.879 2.673-2.674 16.88-7.76-15.227-16.878 2.673 12.086-12.084zm-29.081 70.209 16.254-5.281.001-17.089 10.044 13.825 16.254-5.282-10.046 13.827 10.046 13.826-16.254-5.28-10.044 13.825v-17.09zm29.081 70.209 7.759-15.229-12.084-12.084 16.881 2.674 7.757-15.227 2.674 16.879 16.879 2.672-15.227 7.759 2.673 16.882-12.084-12.087zM384 355.284l-5.281-16.253h-17.091l13.827-10.045-5.28-16.254L384 322.776l13.827-10.044-5.281 16.254 13.826 10.045h-17.089zm70.209-29.08-15.229-7.758-12.083 12.084 2.673-16.882-15.227-7.756 16.879-2.675 2.675-16.879 7.756 15.227 16.881-2.674-12.086 12.085zm29.081-70.209-16.254 5.281v17.09l-10.045-13.826-16.254 5.281 10.046-13.826-10.046-13.827 16.254 5.282 10.045-13.825v17.089zm-29.081-70.207-7.757 15.226 12.082 12.084-16.881-2.673-7.756 15.227-2.675-16.88-16.879-2.675 15.227-7.757-2.673-16.878 12.084 12.082zM0 186.665v16h46.069L0 233.377v7.539l57.377-38.252H80L0 255.998h112v-69.334H0zm96 69.331H22.628L96 207.083v48.913zm80-117.331 80-53.334H144v69.334h112v-16h-46.069L256 107.951v-7.539l-57.377 38.251H176v.002zm-16-53.332h73.372L160 134.246V85.333zm-16 170.665h112l-80-53.334h22.623L256 240.917v-7.539l-46.069-30.713H256v-16H144v69.333zm16-48.915 73.372 48.913H160v-48.913zM112 85.331H0l80 53.334H57.377L0 100.413v7.539l46.069 30.712H0v16h112V85.331zm-16 48.915L22.628 85.333H96v48.913z",fill:"#FFF"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 85.331h-32v69.334H0v32h112v69.333h32v-69.333h112v-32H144z"}),a.createElement("path",{d:"M80 138.665 0 85.331v15.082l57.377 38.252zm96 0h22.623L256 100.413V85.331zm-118.623 64L0 240.917v15.081l80-53.333zm118.623 0 80 53.333v-15.081l-57.377-38.252z"})))},CL:function(e){var t=e.title,l=af(e,_);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M196 0h317v171H196z"}),a.createElement("path",{fill:"#0037A1",d:"M0 0h196v171H0z"}),a.createElement("path",{fill:"#FFF",d:"M98 24.5 113.1 71H162l-39.6 28.7 15.2 46.5L98 117.5l-39.6 28.7 15.2-46.5L34 71h48.9z"}))},CM:function(e){var t=e.title,l=af(e,X);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#ce1126",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#007a5e",d:"M0 0h171v342H0z"}),a.createElement("path",{d:"M342 0h171v342H342zm-86 102.2 17.2 53H329L283.9 188l17.2 53-45.1-32.7-45.1 32.7 17.2-53-45.1-32.8h55.8z",fill:"#fcd116"}))},CN:function(e){var t=e.title,l=af(e,q);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"m226.8 239.2-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z",fill:"#FFDA44"}))},CO:function(e){var t=e.title,l=af(e,$);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 256.5h513V342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 171h513v85.5H0z"}))},CR:function(e){var t=e.title,l=af(e,ee);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 285h513v57H0zM0 0h513v57H0z"}))},CU:function(e){var t=e.title,l=af(e,et);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FF9811",d:"M0-40.8v422.9-211.4z"}),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v68.3H0zm0 136.5h513v68.3H0zm0 136.6h513v68.3H0z",fill:"#0052B4"}),a.createElement("path",{fill:"#D80027",d:"M256 170.7 0 342V0z"}),a.createElement("path",{fill:"#FFF",d:"m86.5 111.4 12.7 39.2h41.3l-33.4 24.2 12.8 39.3-33.4-24.2-33.4 24.2 12.8-39.3-33.4-24.2h41.2z"}))},CV:function(e){var t=e.title,l=af(e,el);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#003893",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#cf2027",d:"M0 182.2h513v41.4H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 140.8h513v41.4H0zm0 82.8h513V265H0z"}),a.createElement("path",{d:"m150.4 70 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13.1-17.9 13.1 6.8-21.1-17.9-13.1h22.2zm0 209.7 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13h22.2zm-97.6-70.9 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13H46zM90.1 91l6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-18-13h22.3zm-66.3 71H46l6.8-21.1 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13-17.9 13 6.8-21.1zm48.4 148.9 6.8-21.1-18-13h22.3l6.8-21.2 6.9 21.2h22.2l-18 13 6.9 21.1-18-13zM248 208.8l-6.9 21.1h-22.2l18 13-6.9 21.2 18-13.1 18 13.1-6.9-21.2 18-13h-22.2zM210.7 91l-6.8 21.1h-22.2l17.9 13-6.8 21.2 17.9-13.1 18 13.1-6.9-21.2 18-13h-22.2zm66.4 71h-22.2l-6.9-21.1-6.9 21.1h-22.2l18 13.1-6.9 21.1 18-13 18 13-6.9-21.1zm-48.4 148.9-6.9-21.1 18-13h-22.2l-6.9-21.2-6.8 21.2h-22.2l17.9 13-6.8 21.1 17.9-13z",fill:"#f7d116",stroke:"#000"}))},CW:function(e){var t=e.title,l=af(e,ea);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#002b7f",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#f9e814",d:"M0 233.5h513v51H0z"}),a.createElement("path",{d:"m168.7 86.5 12.9 39.8h41.8l-33.8 24.5 12.9 39.7-33.8-24.5-33.8 24.5 12.9-39.7-33.8-24.5h41.8zm-83.3-54 7.8 23.9h25L97.9 71.1l7.8 23.8-20.3-14.7-20.3 14.7 7.8-23.8-20.3-14.7h25.1z",fill:"#FFF"}))},CX:function(e){var t=e.title,l=af(e,ec);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0021ad",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#1c8a42",d:"M0 0h513v342"}),a.createElement("path",{d:"m77.6 272 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9V317l-10.3-8.3-10.2 8.3v-13.2l-12.8-2.9 10.3-8.1-5.8-11.9 12.9 3zm-37.1-98.9 5.7 11.9 12.8-3-5.7 11.8 10.3 8.2-12.9 2.9.1 13.2-10.3-8.3-10.3 8.3.1-13.2-12.9-2.9 10.4-8.2L22 182l12.8 3zm37.1-80.9 5.7 11.8 12.8-2.9-5.7 11.8 10.3 8.2-12.8 2.9v13.1l-10.3-8.2-10.2 8.2V124l-12.8-2.9 10.3-8.2-5.8-11.8L72 104zm46.1 62.9 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9v13.2l-10.3-8.2-10.2 8.2v-13.2l-12.8-2.9 10.3-8.1-5.7-11.9 12.8 3zm-32.9 54 4.4 13.7h14.5L98 231.3l4.5 13.7-11.7-8.4-11.7 8.4 4.5-13.7-11.7-8.5h14.4z",fill:"#FFF"}),a.createElement("circle",{fill:"#ffc639",cx:267.1,cy:170.7,r:74.5}),a.createElement("path",{fill:"#1c8a42",d:"M267.1 220.3h24.8s10.8-19 0-37.2l24.8-24.8-12.4-24.8h-12.4s-6.2 18.6-31 18.6-31-18.6-31-18.6h-12.4l12.4 24.8-12.4 24.8 12.4 12.4s12.4-24.8 37.2-12.4c0 0 10.5 15.5 0 37.2z"}),a.createElement("path",{fill:"#ffc639",d:"M464.4 92.2c.6-2.9-.2-17.6-.2-20.7 0-21.3-13.9-39.4-33.2-45.7 5.9 12 9.2 25.4 9.2 39.7 0 4.8-.4 9.5-1.1 14.1-2.9-4.7-6.6-8.9-11.2-12.6-17.1-13.6-40.6-14-57.9-2.5 13.4 2.9 26.3 8.9 37.7 18 9 7.1 16.2 16.8 21.7 26.1 0 0-17.8 10.9-31 15.1s-42.3 7.9-42.3 7.9c72 12 132-36 132-36-6.5-13.4-15.8-4-23.7-3.4z"}))},CY:function(e){var t=e.title,l=af(e,er);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#DB7D00",d:"M141.7 154.7s.2 67.1 74.7 65.3l4.5 13.9h8.9s-7.4-41.1 60.1-41.5c0 0 0-27.6 27.6-27.6H359s-66-51.8 58.9-118l1.8-13.1s-129.9 71-198.9 57.2c0 0 10.7 42.5-10.8 42.5-10.8 0-9.7-8.1-32.3-8.1-18.7 0-17.3 19.7-26.3 19.5-8.9-.2-18.8-12.3-19.6-10.2-.7 2.1 9.9 20.1 9.9 20.1z"}),a.createElement("g",{fill:"#006651"},a.createElement("path",{d:"M237.2 308.1c6.9-5 13-6.6 22.4-8.3s19.4-4.4 24.6-5.8-17.7 6.6-23.5 8.3c-5.8 1.6-23.5 5.8-23.5 5.8zm37.9-14.7c-1.9-11.9 2.8-24.3 13.5-29.3 2.5 8.6-5.2 23.2-13.5 29.3zm18.2-6.2c-5.8-9.8 4-22.6 11.1-28.8 3.3 6-2.5 23.7-11.1 28.8zm16.9-7.6c-6.2-8.4 1.1-23.2 8.8-29 3.1 8.2.1 23.2-8.8 29zm16.9-10.6c-5.6-8-1.7-20.4 6.3-28.4 5.8 6.6.9 21-6.3 28.4zm13.5-10.7c-4.7-7.5 1.1-25.4 8.6-30.4 3.3 6.6.8 25.4-8.6 30.4zm10.8-2.8c-1.4-10.8 17.4-22.7 25.2-22.4-.9 8.9-8.9 18.6-25.2 22.4zm-10.5 12.2c8.8-9.1 26-9.1 32.1-7.2-1.7 5.3-21.9 16.9-32.1 7.2z"}),a.createElement("path",{d:"M328.7 276.8c12.4-3.3 20.5-6.1 27.9 1.7-5.2 6.6-25.4 4.7-27.9-1.7zm-17.7 8c11.9-6.4 26.3 3 28.5 8.6-13.3 5.5-28.7-7.2-28.5-8.6zm-16.3 9.2c10.8-4.1 23.2 1.4 28.2 7.5-5.8 2.7-21 5.7-28.2-7.5zm-14.9 4.7c12.4-1.4 24.4 8 27 13.4-15.9 1.5-22-3.2-27-13.4zm-4 9.4c-6.9-5-13-6.6-22.4-8.3-9.4-1.7-19.4-4.4-24.6-5.8-5.3-1.4 17.7 6.6 23.5 8.3 5.8 1.6 23.5 5.8 23.5 5.8zm-37.9-14.7c1.9-11.9-2.8-24.3-13.5-29.3-2.5 8.6 5.2 23.2 13.5 29.3zm-18.2-6.2c5.8-9.8-4-22.6-11.1-28.8-3.3 6 2.5 23.7 11.1 28.8zm-16.9-7.6c6.2-8.4-1.1-23.2-8.8-29-3.1 8.2-.1 23.2 8.8 29zM185.9 269c5.6-8 1.7-20.4-6.3-28.4-5.8 6.6-.9 21 6.3 28.4zm-13.5-10.7c4.7-7.5-1.1-25.4-8.6-30.4-3.3 6.6-.8 25.4 8.6 30.4zm-10.8-2.8c1.4-10.8-17.4-22.7-25.2-22.4.9 8.9 8.9 18.6 25.2 22.4zm10.5 12.2c-8.8-9.1-26-9.1-32.1-7.2 1.7 5.3 21.9 16.9 32.1 7.2z"}),a.createElement("path",{d:"M184.3 276.8c-12.4-3.3-20.5-6.1-27.9 1.7 5.2 6.6 25.4 4.7 27.9-1.7zm17.7 8c-11.9-6.4-26.3 3-28.5 8.6 13.3 5.5 28.7-7.2 28.5-8.6zm16.3 9.2c-10.8-4.1-23.2 1.4-28.2 7.5 5.8 2.7 21 5.7 28.2-7.5zm14.9 4.7c-12.4-1.4-24.4 8-27 13.4 15.9 1.5 22-3.2 27-13.4z"})))},CZ:function(e){var t=e.title,l=af(e,eh);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#11457e",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#d7141a",d:"M513 171v171H0l215-171z"}),a.createElement("path",{fill:"#FFF",d:"M513 0v171H215.185L0 0z"}))},DE:function(e){var t=e.title,l=af(e,en);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 228h513v114H0z"}))},DJ:function(e){var t=e.title,l=af(e,em);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#12ad2b",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6ab2e7",d:"M513 0v166.7L0 170.8V0z"}),a.createElement("path",{fill:"#FFF",d:"M256 170.7 0 342V0z"}),a.createElement("path",{fill:"#d7141a",d:"m89.8 92.5 17 52.4H162l-44.6 32.5 17 52.4-44.6-32.4-44.6 32.4 17-52.4-44.6-32.5h55.2z"}))},DK:function(e){var t=e.title,l=af(e,ei);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#c60c30",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M190 0h-60v140H0v60h130v142h60V200h323v-60H190z"}))},DM:function(e){var t=e.title,l=af(e,ev);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 110.7v120h513v-120z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 110.7h513v40H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 190.7h513v40H0z"}),a.createElement("path",{d:"M196 0h120v342H196z"}),a.createElement("path",{fill:"#FFDA44",d:"M196 0h40v342h-40z"}),a.createElement("path",{fill:"#FFF",d:"M274.7 0h40v342h-40z"}),a.createElement("circle",{fill:"#D80027",cx:256,cy:170.7,r:123.1}),a.createElement("path",{d:"m256 58.6 4.6 14.2h15l-12.1 8.9 4.6 14.2-12.1-8.8-12.1 8.8 4.6-14.2-12.1-8.9h15zM190.1 80l12.2 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15l-4.6 14.2-4.7-14.2h-15l12.1-8.8zm-40.7 56h15l4.6-14.2 4.7 14.2h15l-12.2 8.8 4.7 14.3-12.2-8.8-12.1 8.8 4.6-14.3zm0 69.3 12.1-8.8-4.6-14.3L169 191l12.2-8.8-4.7 14.3 12.2 8.8h-15l-4.7 14.3-4.6-14.3zm40.7 56.1 4.6-14.3-12.1-8.8h15l4.7-14.3 4.6 14.3h15l-12.1 8.8 4.6 14.3-12.1-8.9zm65.9 21.4-4.6-14.3h-15l12.1-8.8-4.6-14.3 12.1 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15zm65.9-21.4-12.2-8.9-12.1 8.9 4.6-14.3-12.1-8.8h15l4.6-14.3 4.7 14.3h15l-12.1 8.8zm40.7-56.1h-15l-4.6 14.3-4.7-14.3h-15l12.2-8.8-4.7-14.3L343 191l12.1-8.8-4.6 14.3zm0-69.3-12.1 8.8 4.6 14.3-12.1-8.8-12.2 8.8 4.7-14.3-12.2-8.8h15l4.7-14.2 4.6 14.2zm-40.7-56-4.6 14.3 12.1 8.8h-15l-4.7 14.2-4.6-14.2h-15l12.1-8.8-4.6-14.3 12.1 8.8zM279.3 168.7c-11-21.1-14.5-25.1-14.5-25.1s.4-9.7.4-15.6c0-8.8-7.4-15.8-16.5-15.8-8.6 0-15.7 2.9-16.5 11-4.2.9-8.6 4.1-8.6 10.7 0 4.8 1 7.3 5.2 9.3 2.1-4.6 4.3-4.8 9.3-6.4.8.6 1.7 3 2.6 3.4l.3 1s-13.3 6.6-13.3 30.9c0 29.5 22 45.4 22 45.4l-1.8.3-1.9 7.1h22v-7.2l11 17.5c.3-.3 10.2-47.6.3-66.5z",fill:"#496E2D"}))},DO:function(e){var t=e.title,l=af(e,eE);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 215.2h211.5v126.1H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h211.5v126.2H0z"}),a.createElement("path",{fill:"#D80027",d:"M300.5 0H512v126.2H300.5z"}),a.createElement("path",{fill:"#0052B4",d:"M300.5 215.2H512v126.1H300.5z"}),a.createElement("g",{stroke:"#FFF",strokeWidth:5,strokeMiterlimit:10},a.createElement("path",{fill:"#0052B4",d:"M256 130h-49.9v49.4s19.5 6 49.9 6V130z"}),a.createElement("path",{fill:"#D80027",d:"M206.1 179.4v6c0 27.5 22.3 49.9 49.9 49.9v-49.9c-30.4 0-49.9-6-49.9-6z"}),a.createElement("path",{fill:"#0052B4",d:"M256 235.3c27.5 0 49.9-22.3 49.9-49.9v-6s-19.5 6-49.9 6v49.9z"}),a.createElement("path",{fill:"#D80027",d:"M256 130v55.4c30.4 0 49.9-6 49.9-6V130H256z"})))},DZ:function(e){var t=e.title,l=af(e,ez);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#41662E",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M256.5 0H513v342H256.5z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"m341.5 105.3-29.4 40.4-47.5-15.4 29.4 40.4-29.4 40.4 47.5-15.4 29.4 40.4v-50l47.5-15.5-47.5-15.4z"}),a.createElement("path",{d:"M309.9 276.7c-58.5 0-106-47.5-106-106s47.5-106 106-106c18.3 0 35.4 4.6 50.4 12.7-23.5-23-55.7-37.2-91.2-37.2-72 0-130.4 58.4-130.4 130.4S197.1 301 269.1 301c35.5 0 67.7-14.2 91.2-37.2-14.9 8.2-32.1 12.9-50.4 12.9z"})))},EC:function(e){var t=e.title,l=af(e,ef);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 170.7h513V256H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 256h513v85.3H0z"}),a.createElement("circle",{fill:"#FFDA44",cx:256,cy:171,r:60}),a.createElement("path",{fill:"#4C1F00",d:"M369.2 79.9s-27.2-13.8-33.9-16c-6.7-2.2-49.1-13.2-49.1-7 0 10.3-13.5 12-15.5 12s-2-5.3-14.8-5.3-13.7 4.8-15.8 4.8c-2.2 0-14.5-1-14.5-11.5 0-5.2-42.9 4-49.1 7-6.1 3.1-33.9 16-33.9 16s45.8 2.7 53.9 6.2 43.8 16.5 43.8 16.5l-2.8 13.3h37.8l-3.8-13.3s35.1-12.7 43.8-16.5 53.9-6.2 53.9-6.2z"}),a.createElement("path",{fill:"#57BA17",d:"M217.7 171.7c0 21.1 17.2 38.3 38.3 38.3 21.1 0 38.3-17.2 38.3-38.3v-11.5h-76.5v11.5z"}),a.createElement("path",{fill:"#338AF3",d:"M256 110.5c-21.1 0-38.3 17.2-38.3 38.3v11.5h76.5v-11.5c.1-21.1-17.1-38.3-38.2-38.3z"}))},EE:function(e){var t=e.title,l=af(e,ep);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#111",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#368FD8",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 228h513v114H0z"}))},EG:function(e){var t=e.title,l=af(e,ew);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{d:"M0 228h513v114H0z"}),a.createElement("path",{fill:"#C09300",d:"M220.3 204.4s0-58.4 4.5-64.7c3.1-4.3 16.8 5.2 22.7 4.5 0 0 4.2-7.5 4.5-12 .3-4.6-1.1-7.6-4.9-6.2 0 0-1.2-2.1.5-3.3 1.6-1.2 5.6.1 5.6.1s-.5-1 1.6-.9c2.9.2 7.2 1.4 7.4 5.6.2 3.1.3 7.7.4 8.7.7 6.8 2.7 8.7 2.7 8.7s18.4-9.2 22-5.2c3.3 3.8 4.5 64.7 4.5 64.7l-18.1-16.8 12.1 29.5s-14.4 2.4-28.9 2.4c-14.5 0-31.1-4.2-31.1-4.2l13.8-28.2-19.3 17.3z"}))},EH:function(e){var t=e.title,l=af(e,es);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#428823",d:"M0 228h513v114H0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M256 171 0 342V0zm53.1 0c0-22.9 13.1-42.1 34.6-46.8-3.3-.7-6.7-1.1-10.3-1.1-26.4 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9c3.5 0 7-.4 10.3-1.1-21.5-5.1-34.6-24.2-34.6-46.8z"}),a.createElement("path",{d:"m365 129.2 10.3 31.7h33.3l-27 19.6 10.3 31.7-26.9-19.6-27 19.6 10.3-31.7-27-19.6h33.4z"})))},ER:function(e){var t=e.title,l=af(e,ed);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#56AF35",d:"M0 0h513v171H0z"}),a.createElement("path",{fill:"#D80027",d:"m0 342 513-171L0 0v342z"}),a.createElement("g",{fill:"#ffc945"},a.createElement("path",{d:"M134.7 231.5c33.6 0 60.8-27.2 60.8-60.8s-27.2-60.8-60.8-60.8-60.8 27.2-60.8 60.8 27.2 60.8 60.8 60.8zm0 24.3c-47 0-85.2-38.1-85.2-85.2s38.1-85.2 85.2-85.2 85.2 38.1 85.2 85.2-38.2 85.2-85.2 85.2z"}),a.createElement("circle",{cx:119.5,cy:148.3,r:17.5}),a.createElement("circle",{cx:148.9,cy:158.5,r:17.5}),a.createElement("circle",{cx:134.7,cy:135.2,r:17.5}),a.createElement("circle",{cx:119.5,cy:172.7,r:17.5}),a.createElement("circle",{cx:149.9,cy:182.8,r:17.5}),a.createElement("circle",{cx:122.5,cy:198,r:17.5}),a.createElement("circle",{cx:145.9,cy:205.2,r:17.5})))},ES:function(e){var t=e.title,l=af(e,eM);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h22.5v15H0V0z"}),a.createElement("path",{fill:"#D03433",d:"M0 0h22.5v4H0V0zm0 11h22.5v4H0v-4z"}),a.createElement("path",{fill:"#FBCA46",d:"M0 4h22.5v7H0V4z"}),a.createElement("path",{fill:"#FFF",d:"M7.8 7h1v.5h-1V7z"}),a.createElement("path",{fill:"#A41517",d:"M7.2 8.5c0 .3.3.5.6.5s.6-.2.6-.5L8.5 7H7.1l.1 1.5zM6.6 7c0-.3.2-.5.4-.5h1.5c.3 0 .5.2.5.4V7l-.1 1.5c-.1.6-.5 1-1.1 1-.6 0-1-.4-1.1-1L6.6 7z"}),a.createElement("path",{fill:"#A41517",d:"M6.8 7.5h2V8h-.5l-.5 1-.5-1h-.5v-.5zM5.3 6h1v3.5h-1V6zm4 0h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3 0 .5.2.5.5v.2c0 .2-.1.3-.3.3H7c-.1 0-.2-.1-.2-.2v-.3z"}))},ET:function(e){var t=e.title,l=af(e,eF);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#20AA46",d:"M0 0h22.5v5H0V0z"}),a.createElement("path",{fill:"#E92F3B",d:"M0 10h22.5v5H0v-5z"}),a.createElement("path",{fill:"#FADF50",d:"M0 5h22.5v5H0V5z"}),a.createElement("circle",{fill:"#205CCA",cx:11.3,cy:7.5,r:5.2}),a.createElement("g",{stroke:"#FFDB3D",fill:"none"},a.createElement("path",{d:"m11.3 8.8-2.1 1.5.8-2.4-2-1.5h2.5l.8-2.3.8 2.3h2.6l-2.1 1.5.8 2.4-2.1-1.5zm-1-2.4h1.9M9.9 7.8l1.3 1m.8-2.6.7 1.8M10 7.9l.6-1.8M11 9l1.6-1.1",strokeWidth:.5}),a.createElement("path",{d:"m8.7 3.9 1.1 1.6m4-1.7-1 1.6m-1.5 4.7V12M8.9 8.3 7.1 9m8.4 0-1.8-.7",strokeWidth:.25})))},EU:function(e){var t=e.title,l=af(e,eH);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 810 540"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#039",d:"M0 0h810v540H0z"}),a.createElement("path",{fill:"#FC0",d:"m404.951 59.865 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-90 24 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-66 66 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-24 89.999 6.735 20.719h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm24 90.001 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm66 66 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm180-312 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm66 66 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm24 90 6.735 20.718h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm-24 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm-156 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm90-24.001 6.735 20.719h21.894l-17.633 12.812 6.639 20.74-17.635-12.812-17.633 12.812 6.735-20.73-17.633-12.811h21.797z"}))},FI:function(e){var t=e.title,l=af(e,eo);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#2E52B2",d:"M513 129.3V212H203.7v130H121V212H0v-82.7h121V0h82.7v129.3z"}))},FJ:function(e){var t=e.title,l=af(e,eg);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#62B5E5",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#F3F3F3",d:"M307.1 127.1v92c0 61.6 80.5 80.5 80.5 80.5s80.4-19 80.4-80.6v-92l-80.5-23-80.4 23.1z"}),a.createElement("path",{fill:"#D80027",d:"M468 132.8V98.3H307.1v34.5h69v69h-69v23h69V296c6.9 2.5 11.5 3.5 11.5 3.5s4.6-1.1 11.5-3.5v-71.2h69v-23h-69v-69H468z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M0 0h256.5v170.6H0V0z"}),a.createElement("path",{d:"m155.9 115 100.6 55.6v-15.8L184.6 115h-28.7zm-55.7-59.3L0 0v15.8l71.8 39.9h28.4z"})),a.createElement("path",{d:"m196.9 115 59.6 32.9V115h-59.6zm-41 0 100.6 55.6v-15.8L184.6 115h-28.7zm73.4 55.6-73.5-40.9v40.9h73.5zM45.2 115 0 140.1V115h45.2zm55 7.1v48.6H12.8l87.4-48.6zM59.1 55.7 0 22.8v32.8s59.1 0 59.1.1zm41.1 0L0 0v15.8l71.8 39.9h28.4zM26.7 0l73.5 40.8V0H26.7zm184.2 55.7 45.6-25.1v25.1h-45.6zm-55-7.2V0h87.4l-87.4 48.5z",fill:"#0052B4"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144.3-.2h-32.1v69.5H0v32.1h112.2v69.5h32.1v-69.5h112.2V69.3H144.3V-.2z"}),a.createElement("path",{d:"m155.9 115 100.6 55.6v-15.8L184.6 115h-28.7zm-84.1 0L0 154.9v15.8L100.2 115H71.8zm28.4-59.3L0 0v15.8l71.8 39.9h28.4zm83.9 0 72.4-39.9V0L155.9 55.7h28.2z"})))},FK:function(e){var t=e.title,l=af(e,eu);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z",fill:"#D80027"}),a.createElement("path",{fill:"#1F8BDE",d:"M312.2 194.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3z"}),a.createElement("path",{fill:"#FFF",d:"M312.2 194.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3zm79.6 86.3c7.9-4.5 15.9-10 23.2-16.7 20.5-18.5 32.6-41.4 32.6-69.7v-90c0-.3-120.4-.3-120.4-.3v90.3c0 28.3 12.1 51.2 32.6 69.7 8.3 7.5 17.6 13.9 27.6 19 1.4-.6 2.8-1.4 4.4-2.3z"}),a.createElement("path",{fill:"#187536",d:"M347.1 193.4c-2.6-7.9 1.7-14.3 10.1-14.3h60.5c8.2 0 12.8 6.3 10.1 14.3l-5.5 16.5c-2.6 7.9-8.9 9.2-15.8 4 0 0 2.6-4.8-19.1-4.8-21.7 0-19.1 4.8-19.1 4.8-6.1 5.7-13.1 4-15.8-4 .1.1-5.4-16.5-5.4-16.5z"}),a.createElement("path",{fill:"#FFF",d:"M357.4 179.1c8.1 1.6 17.8-15 30.1-15 13.1 0 21.8 17.1 30.1 15 7.4-1.8 15-22.2 15-30.1 0-16.6-20.2-30.1-45.1-30.1-24.9 0-45.1 13.5-45.1 30.1-.1 8.5 6.6 28.5 15 30.1zm-1.4 91.6c6.2.4 12.5-1.8 17.2-6.5l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c4.7 4.7 11 6.9 17.1 6.5 5.3-.3 32.5-33.5 25.7-32.6-4.6.6-9.1 2.8-12.7 6.3l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-3.5-3.5-7.8-5.6-12.3-6.3-6.7-1.1 20.1 32.2 25.3 32.5zM322.1 210c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0 0 0 5.5-14.8 2.5-15.9-7.9-2.9-17.2-1.2-23.5 5.2l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-6.2-6.2-15.1-8-22.8-5.5-3.1 1.1 1.9 16.1 1.9 16.1z"}))},FM:function(e){var t=e.title,l=af(e,ex);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"m256 37.9 10.1 31.2H299l-26.6 19.3 10.2 31.2-26.6-19.3-26.6 19.3 10.2-31.2L213 69.1h32.9zM123.2 170.7l31.2-10.2v-32.8l19.3 26.6 31.2-10.2-19.3 26.6 19.3 26.5-31.2-10.1-19.3 26.5v-32.8zM256 303.5l-10.1-31.2H213l26.6-19.3-10.2-31.3L256 241l26.6-19.3-10.2 31.3 26.6 19.3h-32.9zm132.8-132.8-31.2 10.1v32.8l-19.3-26.5-31.2 10.1 19.3-26.5-19.3-26.6 31.2 10.2 19.3-26.6v32.8z",fill:"#FFF"}))},FO:function(e){var t=e.title,l=af(e,eD);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0F61A5",d:"M513 214.5H206.2V342h-87.8V214.5H0v-87.7h118.4V0h87.8v126.8H513V192z"}),a.createElement("path",{fill:"#E50E3D",d:"M513 149.3V192H183.7v150H141V192H0v-42.7h141V0h42.7v149.3z"}))},FR:function(e){var t=e.title,l=af(e,eB);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},GA:function(e){var t=e.title,l=af(e,eL);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}))},GB:function(e){var t=e.title,l=af(e,eV);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M0 0h513v341.3H0V0z"}),a.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zM200.3 111.3 0 0v31.5l143.7 79.8h56.6z"})),a.createElement("path",{d:"M393.8 230 513 295.7V230H393.8zm-82.1 0L513 341.3v-31.5L369.3 230h-57.6zm146.9 111.3-147-81.7v81.7h147zM90.3 230 0 280.2V230h90.3zm110 14.2v97.2H25.5l174.8-97.2zm-82.1-132.9L0 45.6v65.7h118.2zm82.1 0L0 0v31.5l143.7 79.8h56.6zM53.4 0l147 81.7V0h-147zm368.3 111.3L513 61.1v50.2h-91.3zm-110-14.2V0h174.9L311.7 97.1z",fill:"#0052B4"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M288 0h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z"}),a.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zm-168 0L0 309.9v31.5L200.3 230h-56.6zm56.6-118.7L0 0v31.5l143.7 79.8h56.6zm168 0L513 31.5V0L311.7 111.3h56.6z"})))},GD:function(e){var t=e.title,l=af(e,eA);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#c60a0a",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#3E8446",d:"m256.5 170.7-212 126.1V44.5z"}),a.createElement("path",{d:"m256.5 170.7 211 126.1h-423zm211-126.2-211 126.2-212-126.2z",fill:"#FFDA44"}),a.createElement("path",{fill:"#3E8446",d:"M467.5 44.5v252.3l-211-126.1z"}),a.createElement("path",{d:"m256.5 10.4 2.8 10.2H270l-8.6 6.3 3.3 10.2-8.2-6.3-9.2 6.3 3.3-10.2-8.6-6.3h10.7zm-86.4 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm-85.4 293.8 2.8 10.2H270l-8.6 6.3 3.3 10.2-8.2-6.3-9.2 6.3 3.3-10.2-8.6-6.3h10.7zm-86.4 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7z",fill:"#FFDA44"}),a.createElement("circle",{fill:"#c60a0a",cx:244.5,cy:170.7,r:76.2}),a.createElement("path",{fill:"#FFDA44",d:"m244.5 110.1 13.6 41.8h44l-35.6 25.8 13.6 41.8-35.6-25.8-35.5 25.8 13.6-41.8-35.6-25.8h44zm-136.8 57.7c4.4 6.9 2.3 16.1-4.6 20.5s-16.1 2.3-20.5-4.6c-7.9-12.5-3.3-33-3.3-33s20.4 4.6 28.4 17.1z"}),a.createElement("circle",{fill:"#A2001D",cx:99.1,cy:182.1,r:7.4}))},GE:function(e){var t=e.title,l=af(e,ey);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M.8 0h21v15H.8V0z"}),a.createElement("path",{fill:"#eb000e",d:"M9.8 6H0v3h9.8v6h3V9h9.8V6h-9.8V0h-3v6z"}),a.createElement("path",{fill:"#eb000e",d:"m17.3 2.7-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm-12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm0 9-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2z"}))},GF:function(e){var t=e.title,l=af(e,eC);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FDEB01",d:"m0 0 90 60H0z"}),a.createElement("path",{fill:"#58A846",d:"M90 0v60L0 0z"}),a.createElement("path",{fill:"#ED3D24",d:"m50.7 33.3 9.3-6.7H48.5L45 15.7l-3.5 10.9H30l9.3 6.7-3.6 11 9.3-6.7 9.3 6.7z"}))},GG:function(e){var t=e.title,l=af(e,ek);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M308 0H204v118.7H0v104h204V342h104V222.7h205v-104H308z"}),a.createElement("path",{fill:"#FFDA44",d:"m368.6 188 26 17.3V136l-26 17.3h-95.3V58.1l17.3-26h-69.2l17.3 26v95.2h-95.3l-26-17.3v69.3l26-17.3h95.3v95.2l-17.3 26h69.2l-17.3-26V188z"}))},GH:function(e){var t=e.title,l=af(e,eS);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 228h513v114H0z"}),a.createElement("path",{d:"m255.9 113.8 14.1 43.4 40.4 3.2-37 26.9 19.5 40.3-37-26.9-37 26.9 14.1-43.5-36.9-26.9h45.7z"}))},GI:function(e){var t=e.title,l=af(e,eW);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 230h513v112H0z"}),a.createElement("path",{fill:"#D80027",stroke:"#000",strokeMiterlimit:10,d:"M363.1 131.8V99.1H374V77.3h-21.9v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7h-21.8V55.5h10.9V33.7h-21.8v10.9h-10.9V33.7H254v10.9h-10.9V33.7h-21.8v21.8h10.9v76.3h-21.8V99.1h10.9V77.3h-21.8v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7H145V219h239.9v-87.2z"}),a.createElement("path",{fill:"#FFDA44",stroke:"#000",strokeMiterlimit:10,d:"m264.9 235.5-24.2 18.2 19.1 14.3v31.3h-23.2v9h23v7.9h-23v9.3H270V268l19.1-14.3-24.2-18.2zm0 25.3-10.1-7.1 10.1-7.1 10.1 7.1-10.1 7.1z"}),a.createElement("path",{d:"M239.6 209.7v-27.9s.1-22.3 25-22.3c24.8 0 25.7 22 25.7 22v28.2h-50.7zm-69.1 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8z"}),a.createElement("path",{d:"M169.1 209.7v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm151.8 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm8.4-77.7v-15.7s.1-12.1 11.3-12.1c11.3 0 11.7 11.9 11.7 11.9V132h-23zm-78.8 0v-23.7s.1-18.3 14.3-18.3c14.2 0 14.7 18 14.7 18v24h-29zm-73 0v-15.7s.1-12.1 11.3-12.1 11.7 11.9 11.7 11.9V132h-23z"}))},GL:function(e){var t=e.title,l=af(e,eb);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M513 0v171H0V0z"}),a.createElement("circle",{fill:"#FFF",cx:185.8,cy:171.2,r:117.8}),a.createElement("path",{fill:"#D80027",d:"M68 171c0-65.1 52.8-117.8 117.8-117.8 65.1 0 117.8 52.8 117.8 117.8"}))},GM:function(e){var t=e.title,l=af(e,eG);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#cf0d19",d:"M0 0h513v100H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 121h513v100H0z"}),a.createElement("path",{fill:"#1a7e25",d:"M0 242h513v100H0z"}))},GN:function(e){var t=e.title,l=af(e,eT);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M342 0h171v342H342z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h171v342H0z"}))},GP:function(e){var t=e.title,l=af(e,eN);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},GQ:function(e){var t=e.title,l=af(e,eO);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v113.8H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 227.6h513V342H0z"}),a.createElement("path",{fill:"#0070C8",d:"M126 171 0 342V0z"}),a.createElement("path",{fill:"none",stroke:"#000",strokeMiterlimit:10,d:"M233.8 139.4v40.4c0 35.6 35.6 35.6 35.6 35.6s35.6 0 35.6-35.6v-40.4h-71.2z"}),a.createElement("path",{fill:"#786145",d:"M264.5 179.8h9.8l4 25.8h-17.8z"}),a.createElement("path",{fill:"#6DA544",d:"M287.2 162c0-9.8-8-14.8-17.8-14.8s-17.8 5-17.8 14.8c-4.9 0-8.9 4-8.9 8.9s4 8.9 8.9 8.9h35.6c4.9 0 8.9-4 8.9-8.9s-4-8.9-8.9-8.9z"}),a.createElement("path",{d:"m230.7 120 1.9 3.3h3.8l-1.9 3.3 1.9 3.2h-3.8l-1.9 3.3-1.9-3.3H225l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.8 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H279l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm16 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H295l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm15 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2H310l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8z",fill:"#FFDA00",stroke:"#000",strokeMiterlimit:10}))},GR:function(e){var t=e.title,l=af(e,eR);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("g",{fill:"#0d5eaf"},a.createElement("path",{d:"M0 0h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z"}),a.createElement("path",{d:"M0 0h190v190H0z"})),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M0 76h190v38H0z"}),a.createElement("path",{d:"M76 0h38v190H76z"})))},GS:function(e){var t=e.title,l=af(e,eI);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{fill:"#D80027",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}),a.createElement("ellipse",{fill:"#FFF",cx:443.4,cy:233.6,rx:29,ry:43.5}),a.createElement("ellipse",{fill:"#FFCE00",cx:406.9,cy:317.7,rx:22,ry:9.3}),a.createElement("ellipse",{fill:"#FFCE00",cx:364,cy:317.7,rx:22,ry:9.3}),a.createElement("path",{fill:"#39B200",d:"m342 190.1 43.4 86.9 43.5-86.9z"}),a.createElement("ellipse",{fill:"#9B9B9B",cx:327.5,cy:233.6,rx:29,ry:43.5}),a.createElement("path",{fill:"#757575",d:"m371 175.6-14.5 14.5h57.9l-14.5-14.5 14.5-43.5s-13-29-29-29-29 29-29 29l14.6 43.5z"}),a.createElement("circle",{fill:"#C6B56F",cx:385.4,cy:67,r:29}),a.createElement("circle",{fill:"#A54A00",cx:386,cy:88.7,r:29}),a.createElement("circle",{fill:"#FFF",cx:443.4,cy:117.7,r:29}),a.createElement("circle",{fill:"#0049FF",cx:342.2,cy:146.7,r:29}),a.createElement("circle",{fill:"#0041F9",cx:429.8,cy:146.7,r:29}),a.createElement("circle",{fill:"#F7D71E",cx:386,cy:233.6,r:29}),a.createElement("circle",{fill:"#CEC851",cx:457.9,cy:190.1,r:29}),a.createElement("circle",{fill:"#FFF",cx:385.4,cy:289.5,r:29}),a.createElement("path",{fill:"#7C0B29",d:"m371 135.7 14.5-3.5 14.5 3.5c0 7.5-14.5 11-14.5 11s-14.5-3.5-14.5-11z"}),a.createElement("circle",{fill:"#FFF",cx:327.5,cy:117.4,r:29}))},GT:function(e){var t=e.title,l=af(e,eP);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#338AF3"}),a.createElement("circle",{fill:"#DCC26D",cx:256,cy:155.8,r:25.5}),a.createElement("path",{fill:"#628A40",d:"M194.2 155.9c0 22.1 11.8 42.5 30.8 53.5 5.9 3.4 13.5 1.4 16.9-4.5 3.4-5.9 1.4-13.5-4.5-16.9-11.5-6.6-18.5-18.9-18.5-32.1 0-6.8-5.5-12.4-12.4-12.4s-12.3 5.5-12.3 12.4zm95.1 52.1c17.8-11.4 28.6-31 28.5-52.1 0-6.8-5.5-12.4-12.4-12.4-6.8 0-12.4 5.5-12.4 12.4 0 12.7-6.5 24.5-17.1 31.3-5.8 3.6-7.7 11.2-4.1 17 3.6 5.8 11.2 7.7 17 4.1.2-.1.3-.2.5-.3z"}))},GU:function(e){var t=e.title,l=af(e,eK);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M11.1 11.1h489.7v319.1H11.1z"}),a.createElement("path",{fill:"#7DBEF1",d:"M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z"}),a.createElement("path",{fill:"#1C8AE6",d:"M179.8 180.7h152.6l-29.3 64.9h-95.2z"}),a.createElement("path",{fill:"#FFF042",d:"M192.3 205.9s40.5 38.2 51 38.2c12.4 0 12.6-18.4 25.5-25.5 20.2-11.1 51-12.7 51-12.7L297 248.7l-41 36.6-46.8-39.7-16.9-39.7z"}),a.createElement("path",{fill:"#259C7B",d:"m256 157.5-22.5 15.6 7.9-26.2-21.8-16.5 27.4-.5 9-25.9 9 25.9 27.4.5-21.8 16.6 7.9 26.2-22.5-15.7z"}),a.createElement("path",{fill:"#8E5715",d:"M249.7 144.6c-.9 9.2-1.5 18.4-1.7 27.6-.3 11.9.3 20.7 2 26 2.2 6.6 7.2 12.9 14.2 18.9 5.3 4.6 10.6 8.1 14.2 10.1 3.1 1.7 7 .6 8.7-2.4 1.7-3.1.6-7-2.4-8.7-4.3-2.5-8.4-5.4-12.2-8.7-5.4-4.6-9.1-9.2-10.4-13.3-1.1-3.4-1.6-11.3-1.4-21.7.2-8.9.8-17.8 1.7-26.6.4-3.5-2.2-6.6-5.7-7-3.6-.3-6.7 2.3-7 5.8z"}),a.createElement("path",{fill:"#FFF",d:"m217.8 170.7 25.5 38.2h-25.5v-38.2z"}),a.createElement("path",{fill:"none",stroke:"#D80027",strokeWidth:12,strokeMiterlimit:10,d:"M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z"}))},GW:function(e){var t=e.title,l=af(e,eU);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 0h512v171H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h182v342H0z"}),a.createElement("path",{d:"m98.3 109.8 15.1 46.5h48.9L122.8 185l15.1 46.5-39.6-28.7-39.5 28.7L73.9 185l-39.6-28.7h48.9z"}))},GY:function(e){var t=e.title,l=af(e,eZ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#009E49",d:"M0 0h900v600H0V0z"}),a.createElement("path",{fill:"#FFF",d:"m0 0 947 300L0 600V0z"}),a.createElement("path",{fill:"#FFD00D",d:"M0 26.1 870 300 0 573.9V26.1z"}),a.createElement("path",{fill:"#2D2D2D",d:"m0 0 450 300L0 600V0z"}),a.createElement("path",{fill:"#D3132F",d:"m0 35 397.5 265L0 565V35z"}))},HK:function(e){var t=e.title,l=af(e,eY);return a.createElement("svg",az({viewBox:"0 0.5 21 14",xmlns:"http://www.w3.org/2000/svg"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0z"}),a.createElement("path",{fill:"#ee1c25",d:"M0 0h21v15H0z"}),a.createElement("path",{d:"M12 7.19c-.798-.5-1 .409-1 0 0-.828.895-1.5 2-1.5s2 .672 2 1.5c-.949 0-1.044.5-1.5.5-.56 0-.702 0-1.5-.5zM13.25 7a.25.25 0 1 0 0-.5.25.25 0 0 0 0 .5zm-1.81 1.962c.228-.913-.698-.824-.31-.95.788-.257 1.703.387 2.045 1.438.341 1.05-.021 2.11-.809 2.366-.293-.903-.798-.838-.939-1.272-.173-.533-.217-.668.012-1.582zm.566 1.13a.25.25 0 1 0 .476-.154.25.25 0 0 0-.476.154zM9.58 8.977c.94-.065.57-.919.81-.588.486.67.157 1.74-.737 2.389-.894.65-2.013.632-2.5-.038.768-.558.55-1.018.92-1.286.453-.33.568-.413 1.507-.477zm-.899.888a.25.25 0 1 0 .294.405.25.25 0 0 0-.294-.405zm.312-2.652c.351.874 1.049.258.809.588-.487.67-1.606.687-2.5.038-.894-.65-1.223-1.719-.736-2.39.767.559 1.138.21 1.507.478.453.33.568.413.92 1.286zm-1.124-.58a.25.25 0 1 0-.293.404.25.25 0 0 0 .293-.404zm2.619-.524c-.722.605.08 1.078-.309.951-.788-.256-1.15-1.315-.809-2.365.342-1.05 1.257-1.695 2.045-1.439-.293.903.153 1.147.012 1.581-.173.533-.217.668-.939 1.272zm.205-1.247a.25.25 0 1 0-.475-.155.25.25 0 0 0 .475.155z",fill:"#FFF"})))},HM:function(e){var t=e.title,l=af(e,eJ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M223.4 170.7c.3-.3.5-.6.8-.9-.3.3-.5.6-.8.9zm-34.2 41.9 11 22.9 24.7-5.7-11.1 22.8 19.9 15.8L209 274v25.4l-19.8-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.9-2.6 9.5-7.5-5.3-10.9 11.9 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6v-12.1l-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9 11.9 2.7zm42.4 49.7 5.3 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.5-7.6-9.4 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-30.3 57.9 4.1 12.7h13.3l-10.8 7.8 4.1 12.6-10.7-7.8-10.8 7.8 4.1-12.6-10.7-7.8h13.3z"}),a.createElement("path",{d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"})),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z",fill:"#D80027"}))},HN:function(e){var t=e.title,l=af(e,ej);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0zm203.5-110.1 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zM256 147.6l6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm-52.5 29.7 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1z",fill:"#338AF3"}))},HR:function(e){var t=e.title,l=af(e,eQ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}),a.createElement("path",{d:"M309.3 113.2v-44l17.5-14.4 17.7 14.4v44zm-105.6 0v-44l-17.3-14.4-17.9 14.4v44zm35.2 0v-44l17.6-14.4 17.6 14.4v44z",fill:"#338AF3"}),a.createElement("path",{d:"M309.3 113.2h-35.2v-44l17.5-14.4 17.7 14.4zm-70.4 0h-35.2v-44l17.5-14.4 17.7 14.4z",fill:"#0052B4"}),a.createElement("path",{stroke:"#D80027",fill:"#FFF",d:"M168.5 113.2v101.9c0 24.3 14.4 46.2 35.4 59.4 21.3 13.4 42.1 14.7 52.6 14.7s31.4-1.7 52.6-14.8c21-13 35.4-35.1 35.4-59.3V113.2h-176z"}),a.createElement("path",{d:"M168.5 113.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm35.2 35.2h35.2V254h-35.2zm35.2-35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-35.2 35.2h35.2V254h-35.2zm35.2 55.5c8.6-5.4 16.2-12.3 22-20.3h-22v20.3zM181.7 254c5.8 8 13.3 14.9 22 20.4V254h-22zm57.2 0v33.7c7.2 1.2 13.3 1.5 17.6 1.5 4.3 0 10.4-.3 17.6-1.6V254h-35.2z",fill:"#D80027"}))},HT:function(e){var t=e.title,l=af(e,e_);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#A2001D",d:"M0 0h513v172H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 172h513v172H0z"}),a.createElement("path",{fill:"#FFF",d:"m381.4 251.5-110.7-13.8-110.8 13.8V85.4h221.5z"}),a.createElement("circle",{fill:"#0052B4",cx:270.7,cy:182.3,r:55.4}),a.createElement("circle",{fill:"#A2001D",cx:270.7,cy:182.3,r:27.7}),a.createElement("path",{fill:"#6DA544",d:"M229.1 113.1h83.1l-41.5 41.5z"}),a.createElement("path",{fill:"#FFDA44",d:"M256.8 140.8h27.7v83h-27.7z"}),a.createElement("path",{fill:"#6DA544",d:"M314.9 215.5h-88.5l-66.5 36h221.5z"}))},HU:function(e){var t=e.title,l=af(e,eX);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 228h513v114H0z"}))},IC:function(e){var t=e.title,l=af(e,eq);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 200"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#fc0",d:"M0 0h300v200H0z"}),a.createElement("path",{fill:"#0768a9",d:"M0 0h200v200H0z"}),a.createElement("path",{fill:"#fff",d:"M0 0h100v200H0z"}))},ID:function(e){var t=e.title,l=af(e,e$);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#E00",d:"M0 0h513v171H0z"}))},IE:function(e){var t=e.title,l=af(e,e1);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#FF9811",d:"M342 0h171v342H342z"}))},IL:function(e){var t=e.title,l=af(e,e2);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M340.6 122.4h-56.1l-28-48.6-28 48.6h-56.1l28 48.6-28 48.6h56.1l28 48.6 28-48.6h56.1l-28-48.6 28-48.6zM293.2 171 276 204.2h-38.9L219.8 171l17.2-33.2h38.9l17.3 33.2zm-36.7-71.8 11.9 23.3h-23.9l12-23.3zm-58.3 38.6h23.9l-10.8 21-13.1-21zm0 66.4 13-22.1 11.9 22.1h-24.9zm58.3 37.5-11.9-22.1h23.9l-12 22.1zm59.4-37.5h-25l11.9-22.1 13.1 22.1zm-26.1-66.4h26.1l-13 22.1-13.1-22.1zM0 21.3h512V64H0zm0 256h512V320H0z",fill:"#2E52B2"}))},IM:function(e){var t=e.title,l=af(e,e3);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#E52D42",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M393.3 68.2h-45.8l-33.8 80.2-34.4-22.9s-24.7-59.1-34.4-68.2c-9.7-9.7-18.7-.6-48.9 7.8-29.6 8.4-30.8 18.7-42.2 18.7-4.8 0-19.9-17.5-27.7-22.3-12.1-7.8-16.9-4.2-13.9 7.2 1.2 4.8 10.9 10.9 16.9 19.9 7.8 11.5 12.7 25.9 12.7 25.9s10.9-10.3 16.9-12.1c9-2.4 19.3 1.8 31.4 0 15.1-2.4 31.4-10.9 31.4-10.9l4.2 43.4s-54.3 50.7-49.5 70.6 56.1 44.6 68.2 62.7c12.1 17.5-7.2 24.1-7.2 32.6s-1.8 19.9 7.2 16.3c9-3.6 10.3-18.1 18.7-31.4 6-9 10.3-13.9 11.5-17.5 1.8-9-23.5-32-37.4-48.9-6.6-7.8-19.9-18.7-19.9-18.7l39.2-29.6s67.6 27.7 82.6 18.7c15.1-9 19.3-98.3 19.3-98.3l47-11.5-12.1-11.7z"}),a.createElement("path",{fill:"#F8DD4E",d:"M279.3 262.4c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.8-182.8c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm0 91.1c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6 0 11.5 4.8 11.5 11.5-.6 6.7-5.5 11.5-11.5 11.5zm-136.9 45.8c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.2-136.9c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-4.8 11.5-11.5 11.5zm22.9 91.1c-6 0-11.5-10.3-11.5-22.9s4.8-22.9 11.5-22.9c6 0 11.5 10.3 11.5 22.9s-4.8 22.9-11.5 22.9zm-114-45.2c-6 0-11.5-4.8-11.5-11.5 0-6.6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5 0 6.6-4.8 11.5-11.5 11.5z"}))},IN:function(e){var t=e.title,l=af(e,e0);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#F93",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#fff",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#138808",d:"M0 228h513v114H0z"}),a.createElement("circle",{cx:256.5,cy:171,r:34.2,stroke:"navy",strokeWidth:4,fill:"none"}),a.createElement("circle",{cx:256.5,cy:171,r:3.42,fill:"navy"}),a.createElement("path",{d:"m265.3 138.159-17.6 65.682m17.6-65.682-17.6 65.682m25.8-62.286-34 58.89m41.042-53.487-48.084 48.084M285.945 154l-58.89 34m62.286-25.8-65.682 17.6M290.5 171h-68m66.841 8.8-65.682-17.6m62.286 25.8-58.89-34m53.487 41.042-48.084-48.084m41.042 53.487-34-58.89m25.8 62.286-17.6-65.682M256.5 205v-68m-8.8 66.841 17.6-65.682m-25.8 62.286 34-58.89m-41.042 53.487 48.084-48.084M227.055 188l58.89-34m-62.286 25.8 65.682-17.6M222.5 171h68m-66.841-8.8 65.682 17.6M227.055 154l58.89 34m-53.487-41.042 48.084 48.084M239.5 141.555l34 58.89m-25.8-62.286 17.6 65.682",stroke:"navy",strokeWidth:2}))},IO:function(e){var t=e.title,l=af(e,e4);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0-.3h513V342H0V-.3z"}),a.createElement("path",{fill:"#0052B4",d:"M462.9 198.1c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zM0 31.7l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 1-20 6-30.1 12-7 4-16 9-20 9s-14-5-21-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-11-30.1-12v22zm462.9 55.2c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 3.9-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 1 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-8 19-9v-23zm-50.1 133.3c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 0 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-9 19-9v-23z"}),a.createElement("path",{fill:"#FFF",d:"M0-.3h256v171H0V-.3z"}),a.createElement("path",{d:"M389.8 119.9H408v78.8h-18.3l.1-78.8zm0 117.8H408v75.1h-18.3l.1-75.1z",fill:"#A2001D"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144-.3h-32v70H0v32h112v69h32v-69h112v-32H144v-70z"}),a.createElement("path",{d:"M0-.3v15l57 39h23L0-.3zm256 0v15l-57 39h-23l80-54z"}),a.createElement("path",{d:"M0-.3v15l57 39h23L0-.3zm256 0v15l-57 39h-23l80-54zM0 170.7v-15l57-38h23l-80 53zm256 0v-15l-57-38h-23l80 53z"})),a.createElement("g",{fill:"#2E52B2"},a.createElement("path",{d:"M0 22.7v31h46l-46-31zm96-23v49L23-.3h73zm160 23v31h-46l46-31zm-96-23v49l73-49h-73z"}),a.createElement("path",{d:"M0 22.7v31h46l-46-31zm96-23v49L23-.3h73zm160 23v31h-46l46-31zm-96-23v49l73-49h-73zM0 147.7v-30h46l-46 30zm96 23v-49l-73 49h73zm160-23v-30h-46l46 30zm-96 23v-49l73 49h-73z"})),a.createElement("path",{fill:"#5DA51E",stroke:"#45602C",strokeWidth:4,strokeMiterlimit:10,d:"M462.8 91.5h-29.1l25.7-25.7c4.5-4.4 4.5-11.4 0-15.8l-3.4-3.4c-4.4-4.4-11.4-4.4-15.8 0l-25.9 25.9V37.4c0-6.2-5.1-11.3-11.3-11.3h-4.7c-6.2 0-11.3 5.1-11.3 11.3v31.7l-23.5-23.8c-4.7-4.7-12.2-4.7-16.9 0l-3.6 3.6c-4.7 4.7-4.7 12.4 0 17.2l25 25.4h-30.6c-6 0-10.9 4.9-10.9 10.9v4.6c0 6 4.9 10.9 10.9 10.9H369l-20.7 20.7c-4.4 4.4-4.4 11.4 0 15.8l3.4 3.4c4.4 4.4 11.4 4.4 15.8 0l19.6-19.6V167c0 6.1 5.1 11.1 11.3 11.3h4.7c6.2 0 11.3-5.1 11.3-11.3v-28.3l22.2 22.6c4.7 4.7 12.4 4.7 17.1 0l3.6-3.6c4.7-4.7 4.7-12.4 0-17.2L435.2 118h27.6c5.9 0 10.7-4.9 10.9-10.9v-4.6c0-6.1-4.9-11-10.9-11z"}),a.createElement("path",{fill:"#E2DD24",stroke:"#525625",strokeWidth:4,strokeMiterlimit:10,d:"M439.2 249.1h-79.8s-.9-13.4-6-21.8c-6.2-10.4-13.9-28.1-1.4-36.7 15.9-10.9 33.7.8 48.2.8 11.8.1 26.9-14 45-.8 12.2 8.9 3.9 28.2-1.3 36.7-7 11.5-4.7 21.8-4.7 21.8z"}))},IQ:function(e){var t=e.title,l=af(e,e5);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#CE1126",d:"M0 0h513v114H0z"}),a.createElement("path",{d:"M0 228h513v114H0z"}),a.createElement("path",{d:"M219.2 160.7h-29.3c1.5-5.7 6.6-9.9 12.8-9.9v-19.9c-18.3 0-33.1 14.9-33.1 33.1v16.5h49.6c1.8 0 3.3 1.5 3.3 3.3v6.6h-66.2v19.9h86.1v-26.5c0-12.7-10.4-23.1-23.2-23.1zm49.6 29.8v-59.6H249v79.5h33.1v-19.9zm66.2 0v-59.6h-19.8v59.6h-6.6v-19.8h-19.9v39.7h59.6v-19.9z",fill:"#547C31"}))},IR:function(e){var t=e.title,l=af(e,e6);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),a.createElement("path",{d:"M0 227.9h513v114H0zm278.8-93.1c.1 2 8.7 26.2 4.4 39.4-6.6 20.3-15.8 21.8-19.8 24.5V134l-6.9-4.2-6.9 4.2v64.7c-4-2.7-12.4-2.4-19.8-24.5-4.3-12.7 5.7-37.3 5.8-39.2 0 0-9.5 8.1-15.8 24-5.9 14.8 1.9 49.6 29.5 54.8 2.3.4 4.7 5.6 7.2 5.6 2.1 0 4.1-5.2 6-5.5 28.4-4.6 35-41.7 29.9-55.6-5.4-14.6-13.6-23.5-13.6-23.5z",fill:"#D80027"}),a.createElement("path",{d:"M44.6 98.9h22.3v24.4H44.6zM0 98.9h22.3v24.4H0zm89.2 0h22.3v24.4H89.2zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4H223zm44.7 0H290v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0H513v24.4h-22.3zm-446.1 118h22.3v25.5H44.6zm-44.6 0h22.3v25.5H0zm89.2 0h22.3v25.5H89.2zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5H223zm44.7 0H290v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0H513v25.5h-22.3z",fill:"#FFF",opacity:.5}))},IS:function(e){var t=e.title,l=af(e,e7);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M513 210.6H202.2v130.7h-79.8V210.6H0v-79.8h122.4V0h79.8v130.8H513v18.5l-1 42.7z"}),a.createElement("path",{fill:"#D80027",d:"M513 149.3V192H183.7v149.3H141V192H0v-42.7h141V0h42.7v149.3z"}))},IT:function(e){var t=e.title,l=af(e,e8);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#F4F5F0",d:"M342 0H0v341.3h512V0z"}),a.createElement("path",{fill:"#008C45",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#CD212A",d:"M342 0h171v342H342z"}))},JE:function(e){var t=e.title,l=af(e,e9);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M301.8 171 513 30.2V0h-45.3L256.5 140.8 45.3 0H0v30.2L211.2 171 0 311.8V342h45.3l211.2-140.8L467.7 342H513v-30.2z"}),a.createElement("path",{fill:"#FFDA44",d:"m233.7 44.6 22.3 5.6 22.3-5.6 4-20.9-14.9 6.5L256 14.8l-11.4 15.4-14.9-6.5z"}),a.createElement("path",{fill:"#D80027",d:"M233.7 44.6s-4 12.9-4 29.9c0 27.9 26.3 41.3 26.3 41.3s26.3-15.5 26.3-41.3c0-15.4-4-29.9-4-29.9s-8.1-5-22.3-5-22.3 5-22.3 5z"}))},JM:function(e){var t=e.title,l=af(e,te);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M215.9 171 0 314.6V26.8zM513 26.8v287.8L296.1 171z"}),a.createElement("path",{fill:"#0052B4",d:"M513 26.8 296.1 171 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4L215.9 171 0 26.8V0h40.1L256 143.9 471.9 0H513z"}),a.createElement("path",{fill:"#FFDA44",d:"M513 26.8 296.1 171 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4L215.9 171 0 26.8V0h40.1L256 143.9 471.9 0H513z"}))},JO:function(e){var t=e.title,l=af(e,tt);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 228h513v114H0z"}),a.createElement("path",{fill:"#D80027",d:"M256.5 170.7 0 341.3V0z"}),a.createElement("path",{fill:"#FFF",d:"m77.9 139.5 7.9 16.4 17.8-4.1-8 16.5 14.3 11.3-17.8 4 .1 18.3-14.3-11.5-14.2 11.5v-18.3l-17.8-4 14.3-11.3-7.9-16.5 17.7 4.1z"}))},JP:function(e){var t=e.title,l=af(e,tl);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),a.createElement("circle",{fill:"#D80027",cx:256.5,cy:171,r:96}))},KE:function(e){var t=e.title,l=af(e,ta);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h512v90.579H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 251h513v91H0z"}),a.createElement("path",{fill:"#A2001D",d:"M0 114h513v114H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"m323.3 54.5-25.6-11.8L256 137l-41.7-94.3-25.6 11.8 51.8 116.2-51.8 116.2 25.6 11.8 41.7-94.4 41.7 94.4 25.6-11.8-51.8-116.2z"}),a.createElement("path",{d:"M273.4 65.6c-9.9-10.8-17.4-17-17.4-17s-7.5 6.2-17.4 17v210.1c9.9 10.8 17.4 17 17.4 17s7.5-6.2 17.4-17V65.6z"})),a.createElement("path",{d:"M209 105.9v129.5c10.5 18.5 23.3 33.7 32.9 43.8V62.1c-9.6 10.1-22.4 25.3-32.9 43.8zm94 0c-10.5-18.5-23.3-33.7-32.9-43.8v217.2c9.6-10.1 22.4-25.3 32.9-43.8V105.9z",fill:"#A2001D"}),a.createElement("path",{d:"M303 105.9v129.5c10.6-18.8 18.8-41 18.8-64.8s-8.2-45.9-18.8-64.7zm-94 0v129.5c-10.6-18.8-18.8-41-18.8-64.8s8.2-45.9 18.8-64.7z"}))},KG:function(e){var t=e.title,l=af(e,tc);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 342"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M0 0h513v342H0z"}),a.createElement("circle",{cx:256,cy:170.7,r:170.7})),a.createElement("path",{fill:"#FFDA44",d:"M382.4 170.7 330.8 195l27.5 50-56.1-10.7-7.1 56.6-39.1-41.7-39.1 41.7-7.1-56.6-56.1 10.7 27.5-50-51.6-24.3 51.6-24.3-27.5-50.1 56.1 10.8 7.1-56.7L256 92.1l39.1-41.7 7.1 56.7 56.1-10.8-27.5 50.1z"}),a.createElement("circle",{fill:"#D80027",cx:257.4,cy:170.7,r:71.6}),a.createElement("path",{d:"M214.2 170.7c-2.1 0-4.1.1-6.2.3.1 12 4.4 22.9 11.6 31.5 3.8-10.3 9.5-19.6 16.7-27.7-6.9-2.7-14.3-4.1-22.1-4.1zm26.6 46.5c5.2 1.9 10.8 2.9 16.6 2.9 5.8 0 11.4-1 16.6-2.9-2.8-11.1-8.7-21-16.6-28.8-7.9 7.8-13.8 17.7-16.6 28.8zm59.4-71.2c-8.5-14.8-24.5-24.7-42.8-24.7-18.3 0-34.2 9.9-42.8 24.7 15.6.1 30.2 4.3 42.8 11.6 12.6-7.3 27.2-11.6 42.8-11.6zm-21.7 28.8c7.2 8 12.9 17.4 16.7 27.7 7.2-8.5 11.5-19.5 11.6-31.5-2-.2-4.1-.3-6.2-.3-7.7 0-15.2 1.4-22.1 4.1z",fill:"#FFDA44"}))},KH:function(e){var t=e.title,l=af(e,tr);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#0052B4"}),a.createElement("path",{fill:"#FFF",d:"M303.5 196.6v-17.8h-11.9v-23.7l-11.9-11.9-11.8 11.9v-23.8L256 119.5l-11.9 11.8v23.8l-11.8-11.9-11.9 11.9v23.7h-11.9v17.8h-11.9v17.8h118.8v-17.8z"}))},KI:function(e){var t=e.title,l=af(e,th);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 450 300"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#CE1126",d:"M0 0h450v300H0V0z"}),a.createElement("g",{fill:"#FCD116"},a.createElement("circle",{cx:227.6,cy:161.2,r:56.2}),a.createElement("path",{d:"m254.1 73.4-23.7 26 28.6 6.5zm-51.5.2-4.8 33.1 28.5-8zm94.3 26.7-34.7 8.5 20.1 23.7zm-138.3-1.8 15.5 32.7 20.2-22.7zm159 45.3-34.4-9.9 5.6 29.5zm-182-2.6 31.9 19.8 5.2-27.7z"})),a.createElement("path",{fill:"#003F87",d:"M0 175h450v125H0V175z"}),a.createElement("path",{fill:"#FFF",d:"M0 267c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#FCD116",d:"m183.2 48.3-1.1-5.3 22.4-3.7s-30.1-7.1-40-10.7c-14.3-5.1-16.3-12.1-16.3-12.1s44.7 11 64.8 11c4.3 0 12.8 10.7 12.8 10.7s14.8-14.9 21.9-15.4c32.1-2.3 66.6-6.4 66.6-6.4s-10 6.7-16 8.5c-16.2 4.9-50.6 11.7-50.6 11.7l-4.8 7.5H277l-14.4 4.3 7.4 6.9s-7.8-4.1-18.1-2.1c-7.1 1.3-15.4 6-22.9 8-18.7 4.8-29.9-12.8-29.9-12.8l-15.9-.1z"}))},KM:function(e){var t=e.title,l=af(e,tn);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v85.5H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.5h513V171H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 171h513v85.5H0z"}),a.createElement("path",{fill:"#6DA544",d:"M256.5 171 0 342V0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M68.6 170.7c0-24.9 17.5-45.6 40.8-50.7-3.6-.8-7.3-1.2-11.1-1.2-28.7 0-51.9 23.3-51.9 51.9s23.3 51.9 51.9 51.9c3.8 0 7.5-.4 11.1-1.2-23.3-5.1-40.8-25.9-40.8-50.7z"}),a.createElement("path",{d:"m108.9 126.1 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.2-7.3 5.2 2.8-8.5-7.2-5.3h8.9zm0 22.3 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.3-7.3 5.3 2.8-8.5-7.2-5.3h8.9z"}),a.createElement("path",{d:"m108.9 170.7 2.7 8.5h9l-7.3 5.2 2.8 8.5-7.2-5.2-7.3 5.2 2.8-8.5-7.2-5.2h8.9zm0 22.2 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.3-7.3 5.3 2.8-8.5-7.2-5.3h8.9z"})))},KN:function(e){var t=e.title,l=af(e,tm);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M512 0H0v342"}),a.createElement("path",{fill:"#FFDA44",d:"M307.7 0 0 194.5V342h206.9L513 148.5V0z"}),a.createElement("path",{d:"M513 0H385.2L0 249.4V341l126.2 1L513 91.6z"}),a.createElement("path",{d:"m141.1 187 31.2 24 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.3-22.2zM310.6 70.8l31.2 23.9 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.4-22.2z",fill:"#FFF"}))},KP:function(e){var t=e.title,l=af(e,ti);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#91DC5A",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v57.188H0zm0 284.1h513v57.177H0z",fill:"#0052B4"}),a.createElement("path",{fill:"#D80027",d:"M0 79.9h513v181.582H0z"}),a.createElement("circle",{fill:"#FFF",cx:190.33,cy:171,r:65.668}),a.createElement("path",{fill:"#D80027",d:"m190.3 105 14.8 45.3h47.7l-38.6 28.1 14.8 45.5-38.7-28.2-38.6 28.1 14.8-45.4-38.6-28.1h47.7z"}))},KR:function(e){var t=e.title,l=af(e,tv);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h900v600H0z"}),a.createElement("g",{transform:"rotate(-56.31)"},a.createElement("path",{d:"M-75 228.3H75m-150 37.5H75m-150 37.5H75m-150 475H75m-150 37.5H75m-150 37.5H75",stroke:"#000",strokeWidth:25}),a.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"M0 753.3v125"}),a.createElement("circle",{fill:"#ca163a",cy:540.8,r:150}),a.createElement("path",{fill:"#0e4896",d:"M0 390.8c-41.4 0-75 33.6-75 75s33.6 75 75 75 75 33.6 75 75-33.6 75-75 75c-82.8 0-150-67.2-150-150s67.2-150 150-150z"})),a.createElement("path",{d:"m231.56 535.73-83.205-124.808M262.76 514.928l-83.205-124.807m114.407 104.006-83.205-124.808m478.43-138.675-83.205-124.807M720.39 209.843 637.184 85.036m114.407 104.006L668.386 64.234",stroke:"#000",strokeWidth:25}),a.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"m205.6 462.897 31.202-20.8m389.981-259.989 36.444-24.296m31.202-20.801 31.202-20.801"}))},KW:function(e){var t=e.title,l=af(e,tE);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 228h513v114H0z"}),a.createElement("path",{d:"M167 227.6 0 341.3V0l167 113.8z"}))},KY:function(e){var t=e.title,l=af(e,tz);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("circle",{fill:"#6DA544",cx:384,cy:96.5,r:29.7}),a.createElement("path",{fill:"#D80027",d:"M332.1 89H436v44.5H332.1z"}),a.createElement("path",{fill:"#496E2D",d:"M435.9 170.7z"}),a.createElement("path",{fill:"#FFDA44",d:"M332.1 200.3V230h15.6c9.4 9.2 22.2 14.8 36.3 14.8 14.1 0 27-5.7 36.3-14.8h15.6v-29.7H332.1z"}),a.createElement("path",{fill:"#338AF3",d:"M332.1 126.1v44.5c0 39.8 51.9 51.9 51.9 51.9s51.9-12.2 51.9-51.9v-44.5H332.1z"}),a.createElement("path",{d:"M384 149.9c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9v20.8c13 0 13 11.9 26 11.9s13-11.9 26-11.9 13 11.9 26 11.9 13-11.9 26-11.9v-20.8c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9zm0-41.6c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9v20.8c13 0 13 11.9 26 11.9s13-11.9 26-11.9 13 11.9 26 11.9 13-11.9 26-11.9v-20.8c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9z",fill:"#F3F3F3"}),a.createElement("path",{fill:"#FFF",d:"M256 0v22.6l-46.1 30.7H256v64h-46.1L256 148v22.7h-22.6l-73.4-49v49H96v-49l-73.4 49H0V148l46.1-30.7H0v-64h46.1L0 22.6V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.2H80zm256 0v15.1l-57.4 38.2H176z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.2H80zm256 0v15.1l-57.4 38.2H176zM0 170.7v-15.1l57.4-38.3H80zm256 0v-15.1l-57.4-38.3H176z"})))},KZ:function(e){var t=e.title,l=af(e,tf);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#36B6CC",d:"M0 0h513v342H0V0z"}),a.createElement("circle",{fill:"#FFD400",cx:256.5,cy:170.9,r:68.4}),a.createElement("path",{fill:"#FFD400",d:"m256.5 251.5-27.9 41.7-7.1-49.7-43.2 25.5 15.2-47.8-50 4.2 34.4-36.5-46.9-18 46.8-18-34.4-36.5 50 4.2-15.2-47.8 43.2 25.4 7.1-49.7 27.9 41.7 27.9-41.7 7.1 49.7 43.2-25.4-15.2 47.8 50-4.2-34.3 36.6 46.8 17.9-46.8 18 34.4 36.5-50-4.2 15.2 47.8-43.2-25.4-7.1 49.7c0-.1-27.9-41.8-27.9-41.8zm0-.8c44.1 0 79.9-35.8 79.9-79.9S300.6 91 256.5 91s-79.9 35.8-79.9 79.9 35.8 79.8 79.9 79.8zM22.8 28.3c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V28.3zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V74zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm22.8-22.8c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7V245c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V188zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V96.8zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V51.2z"}))},LA:function(e){var t=e.title,l=af(e,tp);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 .1h513v90.7H0zm0 251.2h513V342H0z",fill:"#D80027"}),a.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:65.9}))},LB:function(e){var t=e.title,l=af(e,tw);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 .2h513v90.7H0zm.5 251.1H513V342H.5z",fill:"#D80027"}),a.createElement("path",{fill:"#6DA544",d:"M290.3 193.5 256 130.7l-34.3 62.8h25.7v17.2h17.2v-17.2z"}),a.createElement("path",{fill:"#14AF5A",d:"M241.3 213.1c4.4-4.4 4.4-11.6-.1-16l4.7 4.7c-5.2-4.7-12.2-6.6-19.1-5.3l-23.5 5.9c-6.1 1.5-6.8-.4-1.8-4.2l27.1-20.3c5.1-3.8 4.2-6.9-2.3-6.9h-11c-6.4 0-7-2.3-1.5-5.1l25.3-12.7c5.6-2.8 5.1-5.1-1.5-5.1h-11c-6.4 0-7.4-3.1-2.3-6.9l27.1-20.3c5.6-3.8 12.9-3.8 18.5 0l27.1 20.3c5.1 3.8 4.2 6.9-2.3 6.9h-11c-6.4 0-7 2.3-1.5 5.1l25.3 12.7c5.6 2.8 5.1 5.1-1.5 5.1h-11c-6.4 0-7.4 3.1-2.3 6.9l27.1 20.3c5.1 3.8 4.4 5.7-1.8 4.2l-23.5-5.9c-6.8-1.3-13.9.6-19.1 5.3l4.7-4.7c-4.4 4.4-4.5 11.5-.1 16l6.8 6.8c4.4 4.4 3.1 8-3.3 8h-45.8c-6.2 0-7.7-3.6-3.3-8 .1.1 6.9-6.8 6.9-6.8z"}))},LC:function(e){var t=e.title,l=af(e,ts);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#55B2FF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#F3F3F3",d:"M148.5 298.1h216l-108-254.2z"}),a.createElement("path",{fill:"#333",d:"m186 272.7 70.5-160.3L327 272.7z"}),a.createElement("path",{fill:"#FFDA44",d:"M148.5 298.1h216l-108-101.7z"}))},LI:function(e){var t=e.title,l=af(e,td);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v171H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M149.3 98.1c0-14-11.3-25.3-25.3-25.3-6.5 0-12.4 2.4-16.9 6.4V64.4h8.4V47.5h-8.4v-8.4H90.3v8.4h-8.4v16.9h8.4v14.9c-4.5-4-10.4-6.4-16.9-6.4-14 0-25.3 11.3-25.3 25.3 0 7.5 3.3 14.2 8.4 18.8v14.9h84.3V117c5.3-4.7 8.5-11.5 8.5-18.9z"}))},LK:function(e){var t=e.title,l=af(e,tM);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#A2001D",d:"M222.6 22.3h267.1v296.8H222.6z"}),a.createElement("path",{fill:"#D80027",d:"M22.3 22.3h200.3v296.8H22.3z"}),a.createElement("path",{fill:"#FFDA44",d:"M200.3 0h22.3v342h-22.3z"}),a.createElement("path",{fill:"#6DA544",d:"M22.3 22.3h89v296.8h-89z"}),a.createElement("path",{fill:"#FF9811",d:"M111.3 22.3h89v296.8h-89z"}),a.createElement("path",{fill:"#FFDA44",d:"M368.2 156.8c-1.4-2 0-37.9 0-37.9.9-7.4.1-8.4 1-11.4.9-2.9 5.4-11.6 5.4-11.6s-6-2.3-10.3-.6c-4.3 1.7-24.7-7.5-31.2 3.4-4.4 7-23.6 16.2-24.6 14-1-2.2-5.9-5-6.9-2.9s-.7 13.9 0 16c.8 2.6 9.8 2 12.3 3.1 3.7 1.8 12.2 8.2 11.9 10.7-.3 2.5-22.5-6-24.2-4.5-1.4 1.2-1.9 13.2-.4 15 1.8 2.1 23.4 5.6 25 7.5 1.6 1.9-13.1 7.4-12.3 25 .7 14.7 8 17.4 8 17.4s-2.4 3.6-7.8 3.1c-6.2-.6-27.4-17.7-27.4-17.7s-3.5-109 3.6-121.4c4.9-8.5-22.7 10.1-22.7 50.8V151c0 6.6-1.4 22.4 2.6 34 0 0-.4 46.9 1.5 49.6s12.7 2.2 14.8 0 0-30 0-30c7.7.2 18.3 17.5 32.5 16.4 20.6-1.6 28.7-9.9 34.3-5 8.1 7.1 5.5 23.2.4 31.5-2.2 3.5-14.3 4.7-15.7 7.6-1.4 2.9.5 5.4.5 5.4h29.7s1.4-20.5 2.7-26.1c1.3-5.7-.6-10.7 5.9-10.4 23.5 1.1 39.8-15.3 45.5-8 3.2 4.1 5.6 29.9 3.3 33.3-2.2 3.4-13.8 2.8-15.2 6.7-1.4 4 .8 4.4.8 4.4h29.7s-.4-21.2 2.5-27.7 4.9-10.4 9.3-17.2c4.4-6.8 11.3-15.7 11.3-36.2 0-14.2-8.1-22.8-8.1-22.8H417c-14.1.2-47.4 2.3-48.8.3zm-136-124.5c10.7-10.6 20.2-2.7 22.2 2.1 1.9 4.8 2.1 8.2 2.8 13.6.9 6.9 4.9 14 4.9 14s-7.1-3.8-14.7-4.2c-4.7-.3-9-.6-13.6-2.5-5.7-2.3-11.7-12.9-1.6-23zm248.4-.1c10.7 10.6 2.8 20.2-2 22.2s-8.2 2.1-13.6 2.8c-6.9.9-14 5-14 5s3.7-7.1 4.2-14.7c.3-4.7.6-9.1 2.4-13.6 2.2-5.7 12.8-11.8 23-1.7zm.1 276.9c-10.7 10.6-20.2 2.6-22.2-2.2-1.9-4.8-2.1-8.2-2.7-13.6-.8-6.9-4.9-14.1-4.9-14.1s7 3.8 14.7 4.3c4.7.3 9 .6 13.6 2.5 5.7 2.4 11.7 13.1 1.5 23.1zm-248.2-.1c-10.6-10.7-2.7-20.2 2.1-22.2 4.8-1.9 8.2-2.1 13.6-2.8 6.9-.9 14-4.9 14-4.9s-3.8 7.1-4.2 14.7c-.3 4.7-.6 9-2.5 13.6-2.3 5.7-12.9 11.8-23 1.6z"}),a.createElement("path",{fill:"none",stroke:"#FFDA44",strokeWidth:6,strokeMiterlimit:10,d:"M446.9 162.4s7.5-2.6 8.4-16.1c.6-8.6-19.8-16-39-11.5-19.7 4.6-34-3.1-34-14.6 0-22.9 29.7-16.2 38.9-11.3 9.1 4.9 29.7 23.5 35.1 9.4"}))},LR:function(e){var t=e.title,l=af(e,tF);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v31.1H0zm0 62.2h513v31.1H0zm0 62.3h513v31.1H0zm0 62.3h513v31.1H0zm0 62.5h513v31.1H0zm0 61.6h513V342H0z",fill:"#bf0a30"}),a.createElement("path",{fill:"#002868",d:"M0 0h155.6v155.6H0z"}),a.createElement("path",{fill:"#FFF",d:"m77.8 30.2 10.7 32.9h34.6l-28 20.4 10.7 32.9-28-20.3-28 20.3 10.7-32.9-28-20.4h34.6z"}))},LS:function(e){var t=e.title,l=af(e,tH);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 227.6h513v114H0z"}),a.createElement("path",{d:"m245.2 171 7.7-23.1c2-5.9 5.1-6 7.1 0l7.7 23.1 19.4 29.1c1.7 2.6 1.3 6.3-1.2 8 0 0-6.9 8-29.5 8s-29.5-8-29.5-8c-2.4-2-2.9-5.4-1.2-8l19.5-29.1z"}),a.createElement("path",{d:"M256.5 171c-12.5 0-22.6-10.1-22.6-22.6 0-12.5 10.1-22.6 22.6-22.6s22.6 10.1 22.6 22.6c0 12.5-10.2 22.6-22.6 22.6zm0 0c6.2 0 11.3-16.3 11.3-22.6 0-6.2-5.1-11.3-11.3-11.3-6.2 0-11.3 5.1-11.3 11.3 0 6.3 5 22.6 11.3 22.6z"}))},LT:function(e){var t=e.title,l=af(e,to);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 228h513v114H0z"}))},LU:function(e){var t=e.title,l=af(e,tg);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 228h513v114H0z"}))},LV:function(e){var t=e.title,l=af(e,tu);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{className:"prefix__st1",d:"M0 0h513v127.6H0zm0 214.4h513V342H0z",fill:"#A2001D"}))},LY:function(e){var t=e.title,l=af(e,tx);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 228h513v114H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"m281.4 150.7 9 12.3 14.5-4.7-9 12.4 9 12.3-14.5-4.7-9 12.3v-15.2l-14.5-4.7 14.5-4.7z"}),a.createElement("path",{d:"M257 201.5c-17 0-30.9-13.8-30.9-30.9s13.8-30.9 30.9-30.9c5.3 0 10.3 1.3 14.7 3.7-6.9-6.7-16.2-10.8-26.6-10.8-21 0-38 17-38 38s17 38 38 38c10.3 0 19.7-4.1 26.6-10.8-4.4 2.4-9.4 3.7-14.7 3.7z"})))},MA:function(e){var t=e.title,l=af(e,tD);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 .3V342h513V.3z"}),a.createElement("path",{fill:"#20661B",d:"M359.8 148.9h-73.3l-22.7-69.7-22.7 69.7h-73.3l59.3 43.1-22.7 69.7 59.3-43.1 59.3 43.1-22.5-69.7 59.3-43.1zm-116.1 37.7 7.7-23.6h24.8l7.7 23.6-20.1 14.6-20.1-14.6zm27.9-37.7H256l7.8-24 7.8 24zm24.3 29-4.8-14.9h25.3l-20.5 14.9zM236.6 163l-4.8 14.9-20.5-14.9h25.3zm-5.3 61.8 7.8-24 12.6 9.2-20.4 14.8zm44.5-14.9 12.6-9.2 7.8 24-20.4-14.8z"}))},MC:function(e){var t=e.title,l=af(e,tB);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.333h512v341.333H0z"}),a.createElement("path",{fill:"#c70000",d:"M0 85.333h512V256H0z"}))},MD:function(e){var t=e.title,l=af(e,tL);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}),a.createElement("path",{fill:"#0052B4",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#AF7F59",d:"M206.2 129.1h33.2L256 79.3l16.6 49.8h33.2v99.6L256 262l-49.8-33.2v-99.7zm33.2 33.3v49.8h33.2v-49.8h-33.2z"}))},ME:function(e){var t=e.title,l=af(e,tV);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#E6BE53",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#E01D24",d:"M20 20h473v302H20z"}),a.createElement("path",{fill:"#E6BE53",d:"M248.5 112.9c4.4 4.4 11.6 4.4 16 0l-4.7 4.7 22.7-22.7c4.9-4.5 12.1-5.6 18.2-2.8l2.1 1c5.7 2.9 6.7 8.7 2.3 13.1l4.7-4.7-22.8 22.8c-4.5 4.9-5.6 12.1-2.8 18.2l1 2.1c2.9 5.7 5.1 15.4 5.1 21.6v-11.3c0 6.2 4.4 9.1 10.2 6.2l2.1-1c5.7-2.9 6.7-8.7 2.3-13.1l4.7 4.7c-4.4-4.4-4.4-11.6 0-16l-4.7 4.7c5.2-5.5 9.6-11.6 13.1-18.2l1-2.1c2.9-5.7 6.3-15.1 7.9-21.2l5.8-23.3c1.5-6 5.9-6.8 9.6-1.8l20.2 26.9c3.8 5.1 6.9 14 6.9 20.6v22.4c0 6.3-2.2 15.8-5.1 21.7l-1 2.1c-3.5 6.6-7.9 12.7-13.1 18.2l-6.8 6.8c-5.4 5.2-11.5 9.6-18.2 13.1l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.2 0-6.9 2.2-1.1 5.1l2.1 1c5.7 2.9 13.8 8.7 18.2 13.1l-4.7-4.7c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L339 226c4.6 4.9 5.7 12.1 2.9 18.2l-1 2.1c-2.9 5.7-10.4 10.2-16.4 10.2-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.5-3.6-11.8-8.9-15.4-15.4l-1-2.1c-2.9-5.7-8.7-6.7-13.1-2.3l4.7-4.7c-4.4 4.7-5.2 11.8-1.8 17.3l10.3 15.4c3.4 5.1 2 12.1-3.1 15.5L266 284.4c-5.7 3.4-12.8 3.4-18.6 0L232 274.1c-5.1-3.4-6.5-10.3-3.1-15.5l10.3-15.4c3.4-5.5 2.6-12.6-1.8-17.3l4.7 4.7c-4.4-4.4-10.2-3.6-13.1 2.3l-1 2.1c-2.9 5.7-9.5 12.4-15.4 15.4l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.9-.3-13.1-4.2-16.4-10.2l-1-2.1c-2.8-6.1-1.6-13.3 2.9-18.2l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L181 226c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c5.5-5.2 11.6-9.6 18.2-13.1l2.1-1c5.7-2.9 5-5.1-1.1-5.1-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.6-3.5-12.7-7.9-18.2-13.1l-6.8-6.8c-5.2-5.4-9.6-11.5-13.1-18.2l-1-2.1c-3.1-6.8-4.9-14.2-5.1-21.7V121c0-6.3 3.1-15.6 6.9-20.6l20.2-26.9c3.8-5.1 8.1-4.3 9.6 1.8l5.8 23.3c2 7.3 4.6 14.4 7.9 21.2l1 2.1c2.9 5.7 8.7 13.8 13.1 18.2l-4.7-4.7c4.4 4.4 4.4 11.6 0 16l4.7-4.7c-4.4 4.4-3.6 10.2 2.3 13.1l2.1 1c5.7 2.9 10.2 0 10.2-6.2v11.3c0-6.2 2.2-15.7 5.1-21.6l1-2.1c2.8-6.1 1.7-13.2-2.8-18.2l-22.7-22.7 4.7 4.7c-4.4-4.4-3.6-10.2 2.3-13.1l2.1-1c6.1-2.8 13.2-1.7 18.2 2.8l22.7 22.7-4.8-4.5zm-18-40.7c-4.4-4.4-3.2-9.5 2.8-11.5l12.4-4.2c6-2 15.5-2 21.5 0l12.4 4.2c6 2 7.2 7.1 2.8 11.5l-6.8 6.8c-5.3 4.7-12.1 7.5-19.2 7.9-6.2 0-14.8-3.5-19.2-7.9.1 0-6.7-6.8-6.7-6.8z"}),a.createElement("path",{fill:"#215F90",d:"M233.9 200.2c0 6.2 1.7 6.4 4.2.5 0 0 7.1-23.2 18.4-23.2 11.3 0 18.6 23.6 18.6 23.6 2.2 5.7 4 5.3 4-1.1v-11.2c0-18.7-10.1-33.9-22.6-33.9-12.5 0-22.6 15.2-22.6 33.9v11.4z"}))},MF:function(e){var t=e.title,l=af(e,tA);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 108 72"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 0h108v72H0z",fill:"#003787"}),a.createElement("path",{d:"M0 0h108L60 48v24H48V48z",fill:"#fff"}),a.createElement("circle",{cx:54,cy:30,r:8,fill:"#f9d90f"}),a.createElement("path",{d:"M44 30h20L54 48z",fill:"#fff"}),a.createElement("path",{d:"M54 48 38 33h32z",fill:"#cf142b"}))},MG:function(e){var t=e.title,l=af(e,ty);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M512 426.666V85.329H0v341.337h512z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.331H0v170.666h512V85.331z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.334h181.793v341.337H0z"}))},MH:function(e){var t=e.title,l=af(e,tC);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#1E509C",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M513 176.1V81.3L0 342l513-165.9z"}),a.createElement("path",{fill:"#F18D36",d:"M513 0v81.3L0 342 513 0z"}),a.createElement("path",{fill:"#FFF",d:"m126.7 99.3-7.8-54.1-7.7 54.1-20.8-23.7 10.7 31.6-31.5-10.7 23.6 20.8-54.1 7.7 54.1 7.7-23.6 20.8 31.5-10.7-10.7 31.6 20.8-23.7 7.7 54.1 7.8-54.1 20.7 23.7-10.6-31.6 31.5 10.7-23.6-20.8 54-7.7-54-7.7 23.6-20.8-31.5 10.7 10.6-31.6z"}))},MK:function(e){var t=e.title,l=af(e,tk);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.333h512V426.67H0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M383.875 426.662 256 252.286l26.827 174.376zM133.565 85.33 256 252.286 230.314 85.33zm95.606 341.332L256 252.286 128.124 426.662zM0 85.33V212.9l256 39.386L28.333 85.33zm0 341.332h18.212L256 252.286 0 291.67zm256-174.376L512 212.9V85.33h-28.331zM281.686 85.33 256 252.286 378.434 85.33zM512 426.662V291.671l-256-39.385 237.787 174.376z"}),a.createElement("circle",{cx:256,cy:252.29,r:59.359})),a.createElement("circle",{fill:"#FFDA44",cx:256,cy:252.29,r:44.522}))},ML:function(e){var t=e.title,l=af(e,tS);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 85.331h170.663v341.337H0z"}),a.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},MM:function(e){var t=e.title,l=af(e,tW);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#FFF",d:"M384 227.261h-97.783L256 134.265l-30.217 92.997H128l79.108 57.475-30.217 92.998L256 320.925l79.108 56.81-30.217-92.998L384 227.261z"}))},MN:function(e){var t=e.title,l=af(e,tb);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#095FAD",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M342 0h171v342H342zM0 0h171v342H0z",fill:"#BE1229"}),a.createElement("g",{fill:"#FFDA44"},a.createElement("path",{d:"M108.3 166.3h14.8v74.2h-14.8zm-59.4 0h14.8v74.2H48.9z"}),a.createElement("circle",{cx:86,cy:203.4,r:14.8}),a.createElement("path",{d:"M71.2 225.7h29.7v14.8H71.2zm0-59.4h29.7v14.8H71.2z"}),a.createElement("circle",{cx:86,cy:144,r:14.8}),a.createElement("path",{d:"M76.3 123.9h19.5L86 108.3z"})))},MO:function(e){var t=e.title,l=af(e,tG);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#00745a",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M285.682 248.878c-4.19 0-8.166.836-11.861 2.164 2.023-4.509 3.379-9.527 3.379-14.885 0-21.201-21.201-37.101-21.201-37.101s-21.201 15.901-21.201 37.101c0 5.357 1.356 10.375 3.379 14.885-3.693-1.328-7.671-2.164-11.861-2.164-21.201 0-37.101 21.201-37.101 21.201s15.901 21.201 37.101 21.201c12.429 0 23.031-7.286 29.682-13.315 6.65 6.03 17.251 13.315 29.682 13.315 21.201 0 37.101-21.201 37.101-21.201s-15.899-21.201-37.099-21.201z"}),a.createElement("path",{d:"m256 152.111 4.38 13.476h14.171l-11.464 8.332 4.376 13.476-11.463-8.33-11.463 8.33 4.376-13.476-11.464-8.332h14.171zm-53.888 23.572 8.425 7.585 9.818-5.667-4.61 10.355 8.423 7.588-11.274-1.185-4.611 10.355-2.358-11.088-11.275-1.185 9.818-5.669zm-39.45 39.449 11.09 2.358 5.668-9.818 1.186 11.274 11.089 2.358-10.357 4.61 1.186 11.274-7.587-8.423-10.357 4.61 5.669-9.818zm147.227-39.449-8.425 7.585-9.818-5.667 4.611 10.355-8.425 7.588 11.275-1.185 4.61 10.355 2.359-11.088 11.275-1.185-9.818-5.669zm39.449 39.449-11.089 2.358-5.669-9.818-1.186 11.274-11.088 2.358 10.357 4.61-1.185 11.274 7.586-8.423 10.357 4.61-5.669-9.818z",fill:"#FFDA44"}),a.createElement("path",{d:"M256 350.642c16.84 0 32.363-5.619 44.816-15.073h-89.63c12.451 9.454 27.974 15.073 44.814 15.073zm-68.023-44.522a74.138 74.138 0 0 0 8.85 15.073h118.345a74.13 74.13 0 0 0 8.85-15.073H187.977z",fill:"#FFF"}))},MP:function(e){var t=e.title,l=af(e,tT);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 750 500"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0071BC",d:"M0 0h750v500H0V0z"}),a.createElement("g",{fill:"#FFF",stroke:"#000",strokeWidth:1.9},a.createElement("circle",{cx:375,cy:245,r:225,fill:"#fff"}),a.createElement("circle",{cx:375,cy:245,r:165,fill:"#0071BC"})),a.createElement("g",{stroke:"#000"},a.createElement("path",{fill:"#8C8A8C",strokeWidth:1.9,d:"M444.7 450c.7 11-7.8 20-18.8 20H323.6c-11 0-19.5-9-19-20l16.7-325c.6-11 10-20 21-20h61.4c11 0 20.5 9 21.2 20l19.8 325z"}),a.createElement("path",{fill:"#FFF",strokeWidth:2,strokeLinejoin:"round",d:"m373 114 30 93h97l-78 56 29 92-78-56-78 57 30-93-79-57h97l30-92z"})))},MQ:function(e){var t=e.title,l=af(e,tN);return a.createElement("svg",az({viewBox:"0 0 900 600",xmlns:"http://www.w3.org/2000/svg"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#231f1e",d:"M0 0h900v600H0z"}),a.createElement("path",{fill:"#00a650",d:"M0 0h900v300H0z"}),a.createElement("path",{fill:"#ef1923",d:"m0 0 450 300L0 600z"}))},MR:function(e){var t=e.title,l=af(e,tO);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 100 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#006233",d:"M0 100h513v342H0z"}),a.createElement("path",{fill:"#cd2a3e",d:"M0 100h513v46H0zm0 296h513v46H0z"}),a.createElement("path",{fill:"#ffc400",d:"M256 298.851c-45.956 0-84.348-32.298-93.767-75.429A96.288 96.288 0 0 0 160 243.994c0 53.02 42.979 96 96 96s96-42.98 96-96c0-7.066-.785-13.942-2.233-20.572-9.419 43.131-47.811 75.429-93.767 75.429z"}),a.createElement("path",{fill:"#ffc400",d:"m255.999 171.994 8.935 27.502h28.918l-23.394 16.996 8.936 27.503-23.395-16.998-23.394 16.998 8.937-27.503-23.394-16.996h28.915z"}))},MS:function(e){var t=e.title,l=af(e,tR);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#1B4991",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00A2B8",stroke:"#FFF",strokeWidth:3,d:"M318.2 106.7v106.5c0 51.9 67.8 67.8 67.8 67.8s67.8-15.9 67.8-67.8V106.7H318.2z"}),a.createElement("path",{fill:"#A35023",d:"M319.7 212.7c0 50.8 66.3 66.3 66.3 66.3s66.3-15.6 66.3-66.3H319.7z"}),a.createElement("path",{d:"M415.1 155.1h-19.4v-19.4h-19.4v19.4H357v19.4h19.3v58.1h19.4v-58.1h19.4z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"}),a.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),a.createElement("path",{fill:"#D80027",d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z"}),a.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),a.createElement("path",{fill:"#D80027",d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z"}))},MT:function(e){var t=e.title,l=af(e,tI);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#C31B28",d:"M256 0h256.5v342H256z"}),a.createElement("path",{fill:"#ACABB1",stroke:"#C31B28",strokeWidth:2,d:"M101.2 68.2V33H66v35.2H30.8v35.2H66v35.2h35.2v-35.2h35.2V68.2z"}))},MU:function(e){var t=e.title,l=af(e,tP);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#f7ce00",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{fill:"#e32737",d:"M0 85.331h512v85.337H0z"}),a.createElement("path",{fill:"#191f6a",d:"M0 170.657h512v85.337H0z"}),a.createElement("path",{fill:"#00a04e",d:"M0 341.331h512v85.337H0z"}))},MV:function(e){var t=e.title,l=af(e,tK);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#d01920",d:"M0 85.331h512v341.333H0z"}),a.createElement("path",{fill:"#017c3b",d:"M144.696 174.375h222.609v163.25H144.696z"}),a.createElement("path",{fill:"#FFF",d:"M283.484 304.226c-26.637 0-48.232-21.594-48.232-48.232s21.594-48.232 48.232-48.232c8.306 0 16.12 2.1 22.943 5.797-10.703-10.467-25.341-16.927-41.494-16.927-32.784 0-59.362 26.577-59.362 59.362s26.578 59.362 59.362 59.362c16.154 0 30.791-6.461 41.494-16.927-6.822 3.698-14.636 5.797-22.943 5.797z"}))},MW:function(e){var t=e.title,l=af(e,tU);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#272727",d:"M0 0h512v114H0z"}),a.createElement("path",{fill:"#e40112",d:"M0 114h512v114H0z"}),a.createElement("path",{fill:"#07893f",d:"M0 228h512v114H0z"}),a.createElement("circle",{fill:"#e40112",cx:256,cy:125,r:95}))},MX:function(e){var t=e.title,l=af(e,tZ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#dc2339",d:"M342 0H0v341.3h513V0z"}),a.createElement("path",{fill:"#11865d",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M171 0h171v342H171z"}),a.createElement("path",{fill:"#8C9157",d:"M195.8 171.2c0 21.6 11.5 41.7 30.3 52.5 5.8 3.4 13.2 1.4 16.6-4.4 3.4-5.8 1.4-13.2-4.4-16.6-11.3-6.5-18.2-18.5-18.2-31.5 0-6.7-5.4-12.1-12.1-12.1-6.7 0-12.2 5.4-12.2 12.1zm93.4 51.1c17.5-11.1 28-30.4 28-51.1 0-6.7-5.4-12.1-12.1-12.1s-12.1 5.4-12.1 12.1c0 12.4-6.3 24-16.8 30.7-5.7 3.5-7.5 10.9-4.1 16.7s10.9 7.5 16.7 4.1c0-.2.2-.3.4-.4z"}),a.createElement("ellipse",{fill:"#C59262",cx:256.5,cy:159.1,rx:24.3,ry:36.4}))},MY:function(e){var t=e.title,l=af(e,tY);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0zm0 48.9h513V171H0zm0 48.8h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0z",fill:"#c00"}),a.createElement("path",{fill:"#006",d:"M0 0h256.5v195.4H0z"}),a.createElement("path",{d:"M153.3 42.1C122.6 30.7 88.5 46.3 77.1 77s4.2 64.8 34.9 76.2c13.3 5 28 5 41.4 0-30.7 24.5-75.4 19.6-100-11.1s-19.6-75.4 11.1-100c26-20.7 62.9-20.7 88.8 0zm26.7 75-20.6 23.3 5.4-30.6-31-1.6 27.3-14.9L143 68l28.6 12 8.4-29.9 8.4 29.9L217 68l-18 25.4 27.3 14.9-31 1.6 5.4 30.6-20.7-23.4z",fill:"#fc0"}))},MZ:function(e){var t=e.title,l=af(e,tJ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.333h513v342H0z"}),a.createElement("path",{fill:"#f4d900",d:"M0 323.333h513v104H0z"}),a.createElement("path",{fill:"#006d66",d:"M0 85.333h513v104H0z"}),a.createElement("path",{d:"M0 204.333h513v104H0z"}),a.createElement("path",{fill:"#cb0f31",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("path",{fill:"#f4d900",d:"m83.477 195.132 15.107 46.498h48.894l-39.554 28.739 15.107 46.499-39.554-28.738-39.555 28.738 15.11-46.499-39.554-28.739H68.37z"}))},NA:function(e){var t=e.title,l=af(e,tj);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.337h512"}),a.createElement("path",{fill:"#FFF",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),a.createElement("path",{fill:"#A2001D",d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}),a.createElement("path",{fill:"#FFDA44",d:"m187.737 189.212-22.741 10.696 12.11 22.024-24.693-4.724-3.129 24.945-17.199-18.347-17.2 18.347-3.129-24.945-24.693 4.723 12.109-22.023-22.739-10.696 22.74-10.697-12.11-22.022 24.693 4.722 3.13-24.944 17.199 18.347 17.2-18.347 3.128 24.944 24.693-4.722-12.108 22.024z"}))},NC:function(e){var t=e.title,l=af(e,tQ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 426.7"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#009543",d:"M0 293h640v133.7H0V293z"}),a.createElement("path",{fill:"#ED4135",d:"M0 132h640v161.3H0V132z"}),a.createElement("path",{fill:"#0035AD",d:"M0 0h640v133.3H0V0z"}),a.createElement("circle",{fill:"#FAE600",stroke:"#000",strokeWidth:5.3,cx:240,cy:213.3,r:157.3}),a.createElement("path",{d:"m307.9 354.5-31.8 12-36.1 4.2-37.8-2.4-35.9-15.5s28.6-29.3 40.7-33.5c8.6-3 22.4-3.7 22.4-3.7V122l-.3-66H246l-.5 67.5v191.7s15.3 1.2 22.1 4.1c11.3 4.9 40.3 35.2 40.3 35.2z"}),a.createElement("path",{d:"m212.727 102.375 42.955-21.418 5.577 11.187-42.955 21.417z"}),a.createElement("ellipse",{cx:237.8,cy:280.5,rx:16.8,ry:26.5}),a.createElement("circle",{cx:237.4,cy:143.4,r:20.9}),a.createElement("ellipse",{cx:238.4,cy:211.1,rx:19.9,ry:12.1}),a.createElement("path",{d:"M213.8 177h47v10h-47zm0 57h47v10h-47z"}))},NE:function(e){var t=e.title,l=af(e,t_);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#e05206",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#0db02b",d:"M0 312.888h512v113.775H0z"}),a.createElement("circle",{fill:"#e05206",cx:256,cy:256,r:32}))},NF:function(e){var t=e.title,l=af(e,tX);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.5 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.5h513v342H0z"}),a.createElement("path",{d:"M0 85.5h171v342H0zm342 0h171v342H342zm-38 226.495-48-152.001-48 152.001h36v39.999h24v-39.999z",fill:"#007b23"}))},NG:function(e){var t=e.title,l=af(e,tq);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.5 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.5h513v342H0z"}),a.createElement("path",{d:"M0 85.5h171v342H0zm342 0h171v342H342z",fill:"#007b23"}))},NI:function(e){var t=e.title,l=af(e,t$);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#338AF3"}),a.createElement("path",{fill:"#FFDA44",d:"M256 214.447c-22.949 0-41.553 18.603-41.553 41.553S233.05 297.553 256 297.553c22.949 0 41.553-18.603 41.553-41.553S278.949 214.447 256 214.447zm0 65.298c-13.114 0-23.745-10.631-23.745-23.745s10.631-23.745 23.745-23.745 23.745 10.631 23.745 23.745-10.631 23.745-23.745 23.745z"}),a.createElement("path",{fill:"#0052B4",d:"M276.563 261.936 256 256l-20.563 5.936-6.855 11.873h54.836z"}),a.createElement("path",{fill:"#338AF3",d:"m256 226.32-13.709 23.744L256 256l13.709-5.936z"}),a.createElement("path",{fill:"#6DA544",d:"M235.437 261.936h41.126l-6.854-11.872h-27.418z"}))},NL:function(e){var t=e.title,l=af(e,t1);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),a.createElement("path",{fill:"#cd1f2a",d:"M0 0h513v114H0z"}),a.createElement("path",{fill:"#1d4185",d:"M0 228h513v114H0z"}))},NO:function(e){var t=e.title,l=af(e,t2);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),a.createElement("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},NP:function(e){var t=e.title,l=af(e,t3);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.337l280.419 174.75H87.61l183.576 166.576z"}),a.createElement("path",{fill:"#D80027",d:"M244.769 249.888 10.199 103.71v312.754h234.57L61.193 249.888z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"m98.003 324.433-14.589-6.863 7.77-14.13-15.844 3.03-2.008-16.005-11.035 11.772-11.036-11.772-2.008 16.005-15.843-3.031 7.77 14.131-14.591 6.863 14.591 6.862-7.77 14.13 15.844-3.029 2.007 16.004 11.036-11.772L73.332 358.4l2.008-16.004 15.843 3.03-7.769-14.13zm-9.735-132.771-10.612-4.991 5.651-10.278-11.523 2.205-1.461-11.641-8.026 8.561-8.026-8.561-1.46 11.641-11.525-2.205 5.652 10.278-10.613 4.991 25.972 5.194z"}),a.createElement("path",{d:"M93.462 191.662c0 17.212-13.953 31.165-31.165 31.165s-31.165-13.953-31.165-31.165"})))},NR:function(e){var t=e.title,l=af(e,t0);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 239.994h512v32H0z"}),a.createElement("path",{fill:"#FFF",d:"m174.802 341.329-19.124 8.996 10.184 18.521-20.767-3.973-2.631 20.978L128 370.422l-14.465 15.429-2.63-20.978-20.767 3.973 10.183-18.521-19.123-8.996 19.124-8.995-10.184-18.52 20.766 3.971 2.632-20.978L128 312.236l14.465-15.429 2.63 20.978 20.767-3.971-10.183 18.521z"}))},NU:function(e){var t=e.title,l=af(e,t4);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.334h256v170.663H0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 85.33h-32v69.333H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80z"})),a.createElement("path",{d:"M0 107.951v30.712h46.069zm96-22.62v48.913L22.628 85.331z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M256 85.329v15.083l-57.377 38.251H176z"}),a.createElement("path",{d:"M256 107.951v30.712h-46.069zm-96-22.62v48.913l73.372-48.913z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M0 85.329v15.083l57.377 38.251H80z"}),a.createElement("path",{d:"M0 107.951v30.712h46.069zm96-22.62v48.913L22.628 85.331z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M256 85.329v15.083l-57.377 38.251H176z"}),a.createElement("path",{d:"M256 107.951v30.712h-46.069zm-96-22.62v48.913l73.372-48.913z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M0 255.997v-15.082l57.377-38.252H80z"}),a.createElement("path",{d:"M0 233.376v-30.713h46.069zm96 22.618v-48.912l-73.372 48.912z",fill:"#2E52B2"}),a.createElement("path",{fill:"#D80027",d:"M256 255.997v-15.082l-57.377-38.252H176z"}),a.createElement("g",{fill:"#2E52B2"},a.createElement("path",{d:"M256 233.376v-30.713h-46.069zm-96 22.618v-48.912l73.372 48.912z"}),a.createElement("circle",{cx:128,cy:170.66,r:22.627})),a.createElement("path",{d:"m128 154.663 3.97 12.222h12.854l-10.398 7.556 3.971 12.222L128 179.109l-10.398 7.554 3.972-12.222-10.398-7.556h12.853zm0 65.14 2.364 7.278h7.653l-6.19 4.498 2.364 7.278-6.191-4.498-6.191 4.498 2.364-7.278-6.19-4.498h7.652zm0-117.334 2.364 7.278h7.653l-6.19 4.498 2.364 7.278-6.191-4.498-6.191 4.498 2.364-7.278-6.19-4.498h7.652zm69.931 58.667 2.365 7.277h7.653l-6.192 4.499 2.365 7.279-6.191-4.498-6.191 4.498 2.365-7.279-6.191-4.499h7.652zm-139.862 0 2.364 7.277h7.653l-6.191 4.499 2.364 7.279-6.19-4.498-6.191 4.498 2.365-7.279-6.192-4.499h7.653z",fill:"#FFDA44"}))},NZ:function(e){var t=e.title,l=af(e,t5);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{d:"m425.301 233.745 3.388 10.428h10.963l-8.87 6.444 3.388 10.427-8.869-6.444-8.871 6.444 3.388-10.427-8.87-6.444h10.963zm-39.194 75.072 5.083 15.642h16.445l-13.305 9.667 5.082 15.64-13.305-9.667-13.305 9.667 5.083-15.64-13.305-9.667h16.445zm1.481-122.846 4.236 13.036h13.704l-11.088 8.054 4.235 13.034-11.087-8.056-11.088 8.056 4.235-13.034-11.087-8.054h13.704zm-37.712 47.32 5.082 15.641h16.446l-13.306 9.666 5.084 15.641-13.306-9.666-13.305 9.666 5.082-15.641-13.305-9.666h16.445z",fill:"#D80027"}),a.createElement("path",{fill:"#FFF",d:"M256.003 85.329v30.564l-45.178 25.088h45.178v59.359H196.89l59.113 32.846v22.806h-26.69l-73.484-40.826v40.826h-55.652v-48.573l-87.429 48.573H.003v-30.553l45.168-25.099H.003v-59.359h59.103L.003 108.147V85.329h26.68l73.494 40.838V85.329h55.652v48.573l87.43-48.573z"}),a.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.334H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915z"}),a.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915z"}),a.createElement("path",{d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915zm-83.98 0L0 240.259v15.739l100.174-55.654z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.174 140.983 0 85.33v15.738l71.847 39.915z"}),a.createElement("path",{fill:"#FFF",d:"M100.174 140.983 0 85.33v15.738l71.847 39.915z"}),a.createElement("path",{d:"M100.174 140.983 0 85.33v15.738l71.847 39.915zm83.98 0L256 101.068V85.33l-100.174 55.653z",fill:"#D80027"}))},OM:function(e){var t=e.title,l=af(e,t6);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M138 0h377v114H138z"}),a.createElement("path",{fill:"#4A7C3A",d:"M138 230h377v114H138z"}),a.createElement("g",{fill:"none",stroke:"#FFF",strokeWidth:10,strokeMiterlimit:2},a.createElement("path",{d:"M40.3 35.2s37.1 48 50.8 54.5c13.7 6.5 17.1 5.7 17.1 5.7"}),a.createElement("path",{d:"M100 35.2S62.9 80.6 53.3 87.6c-9.6 7-18.7 7.8-18.7 7.8m17.1-30.1h37.9M70.7 35.2v30.1"})))},PA:function(e){var t=e.title,l=af(e,t7);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M256 256v170.663H0V256h256z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.337V256H256V85.337h256z"}),a.createElement("path",{fill:"#0052B4",d:"m128 123.034 11.824 36.389h38.263l-30.955 22.491 11.823 36.389L128 195.813l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}),a.createElement("path",{fill:"#D80027",d:"m384 293.697 11.824 36.389h38.263l-30.955 22.491 11.823 36.389L384 366.476l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}))},PE:function(e){var t=e.title,l=af(e,t8);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{d:"M0 85.331h170.663v341.337H0zm341.337 0H512v341.337H341.337z",fill:"#D80027"}))},PF:function(e){var t=e.title,l=af(e,t9);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#D80027"}),a.createElement("path",{fill:"#FFDA44",d:"M293.991 256c0 20.982-17.01 33.243-37.992 33.243S218.008 276.982 218.008 256s17.01-37.992 37.992-37.992 37.991 17.01 37.991 37.992z"}),a.createElement("path",{fill:"#0052B4",d:"M293.991 256c0 20.982-17.01 37.992-37.992 37.992s-37.992-17.01-37.992-37.992"}),a.createElement("path",{d:"M232.259 246.506h9.498v19h-9.498zm37.988 0h9.498v19h-9.498zm-19-14.247h9.498v33.243h-9.498z",fill:"#D80027"}))},PG:function(e){var t=e.title,l=af(e,le);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#A2001D",d:"M0 85.33h512v341.332"}),a.createElement("path",{d:"m204.631 326.488 2.762 8.504h8.941l-7.233 5.255 2.763 8.502-7.233-5.254-7.233 5.254 2.762-8.502-7.233-5.255h8.94zm-22.834-81.622 4.605 14.172h14.901l-12.056 8.757 4.605 14.172-12.055-8.759-12.055 8.759 4.606-14.172-12.056-8.757h14.901zm0 103.883 4.604 14.173h14.902l-12.057 8.757 4.606 14.173-12.055-8.759-12.055 8.759 4.604-14.173-12.054-8.757h14.899zm43.566-66.782 4.606 14.172h14.901l-12.056 8.758 4.605 14.172-12.056-8.759-12.054 8.759 4.606-14.172-12.056-8.758h14.901zm-87.133 0 4.606 14.172h14.899l-12.054 8.758 4.603 14.172-12.054-8.759-12.055 8.759 4.605-14.172-12.055-8.758h14.9z",fill:"#FFF"}),a.createElement("path",{fill:"#FFDA44",d:"M376.526 204.163c-7.628-7.628-17.538-12.133-28.189-12.908l31.88-24.795c-12.698-12.698-29.714-18.431-46.319-17.218a44.31 44.31 0 0 0-11.396-19.511l-12.593 25.186a18.47 18.47 0 0 0-3.148-4.197c-7.245-7.245-18.991-7.244-26.234 0s-7.245 18.99 0 26.234a18.536 18.536 0 0 0 4.197 3.148l-25.186 12.593a44.303 44.303 0 0 0 19.519 11.399c-1.217 16.606 4.511 33.619 17.209 46.317L324.12 214.6a11.053 11.053 0 0 1 7.807-3.202c2.973 0 5.768 1.158 7.87 3.26a11.055 11.055 0 0 1 3.26 7.87c0 2.974-1.158 5.768-3.26 7.87l10.494 10.494c4.905-4.905 7.607-11.428 7.607-18.364 0-5.675-1.81-11.071-5.153-15.534a29.492 29.492 0 0 1 13.288 7.662c11.573 11.572 11.573 30.403 0 41.975l10.494 10.494c8.409-8.409 13.039-19.59 13.039-31.481-.001-11.892-4.632-23.072-13.04-31.481z"}))},PH:function(e){var t=e.title,l=af(e,lt);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M512 85.337V256H256L0 85.337z"}),a.createElement("path",{fill:"#D80027",d:"M512 256v170.663H0L256 256z"}),a.createElement("path",{d:"m161.908 256-27.288-12.835 14.532-26.428-29.632 5.668-3.755-29.933-20.64 22.015-20.639-22.015-3.755 29.933-29.631-5.669 14.531 26.428L28.343 256l27.288 12.835L41.1 295.263l29.633-5.668 3.753 29.933 20.639-22.015 20.64 22.015 3.755-29.933 29.631 5.669-14.532-26.427zM21.789 117.607l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.694-14.809-4.932-9.268 12.559.117-15.608-14.809-4.934 14.88-4.712zm0 235.923 9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.695-14.809-4.933-9.268 12.558.117-15.607-14.809-4.934 14.88-4.712zm188.606-117.961-9.081 12.695-14.879-4.713 9.268 12.559-9.081 12.696 14.809-4.933 9.268 12.558-.117-15.607 14.809-4.934-14.88-4.713z",fill:"#FFDA44"}))},PK:function(e){var t=e.title,l=af(e,ll);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"m393.508 170.516 17.512 18.875 23.363-10.821-12.541 22.487 17.513 18.876-25.263-4.978-12.539 22.488-3.073-25.564-25.263-4.978 23.363-10.82z"}),a.createElement("path",{d:"M0 85.343h512v341.326H0z"})),a.createElement("path",{fill:"#01411c",d:"M128 85.331h384v341.337H128z"}),a.createElement("path",{d:"M361.909 298.793c-31.037 22.426-74.378 15.446-96.804-15.592-22.427-31.038-15.446-74.379 15.593-96.804 9.677-6.992 20.55-11.125 31.613-12.563-21.283-3.183-43.777 1.613-62.598 15.211-38.2 27.602-46.792 80.944-19.191 119.145 27.601 38.199 80.944 46.792 119.145 19.189 18.82-13.598 30.436-33.448 34.096-54.655-4.839 10.05-12.176 19.076-21.854 26.069zm-1.329-125.904 17.484 18.842 23.322-10.802-12.519 22.447 17.483 18.844-25.219-4.968-12.519 22.45-3.067-25.521-25.22-4.969 23.323-10.802z",fill:"#FFF"}))},PL:function(e){var t=e.title,l=af(e,la);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512V256H0z"})),a.createElement("path",{fill:"#D80027",d:"M0 256h512v170.663H0z"}))},PM:function(e){var t=e.title,l=af(e,lc);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},PN:function(e){var t=e.title,l=af(e,lr);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#ACABB1",d:"M400.696 219.822 384 225.387l-16.696-5.565-5.565-13.913 5.565-13.913h33.392l-5.566 13.913z"}),a.createElement("path",{fill:"#338AF3",d:"M345.043 219.822v61.217c0 29.821 38.957 38.957 38.957 38.957s38.957-9.137 38.957-38.957v-61.217h-77.914z"}),a.createElement("path",{fill:"#6DA544",d:"M348.555 295.541C358.131 313.927 384 319.996 384 319.996s25.869-6.069 35.445-24.455L384 236.518l-35.445 59.023z"}),a.createElement("path",{fill:"#FFDA44",d:"M422.957 280.421 384 219.822l-38.957 60.599v.618c0 5.518 1.337 10.328 3.512 14.503L384 240.405l35.445 55.137c2.175-4.175 3.512-8.983 3.512-14.503v-.618z"}),a.createElement("path",{fill:"#FFF",d:"M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.554l45.167-25.098H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.825V85.333h55.652v48.572l87.43-48.572z"}),a.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),a.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),a.createElement("path",{d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),a.createElement("path",{fill:"#FFF",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),a.createElement("path",{d:"M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z",fill:"#D80027"}))},PR:function(e){var t=e.title,l=af(e,lh);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512V153.6H0zm0 136.526h512v68.263H0zM0 358.4h512v68.263H0z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("path",{fill:"#FFF",d:"m83.477 195.132 15.107 46.498h48.894l-39.554 28.739 15.107 46.499-39.554-28.738-39.555 28.738 15.11-46.499-39.554-28.739H68.37z"}))},PS:function(e){var t=e.title,l=af(e,ln);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#268024",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#e4312b",d:"M256 256.006 0 426.668V85.331z"}))},PT:function(e){var t=e.title,l=af(e,lm);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M196.641 85.337v341.326H0V85.337z"}),a.createElement("circle",{fill:"#FFDA44",cx:196.641,cy:256,r:64}),a.createElement("path",{fill:"#D80027",d:"M160.638 224v40.001c0 19.882 16.118 36 36 36s36-16.118 36-36V224h-72z"}),a.createElement("path",{fill:"#FFF",d:"M196.638 276c-6.617 0-12-5.383-12-12v-16h24.001v16c-.001 6.616-5.385 12-12.001 12z"}))},PW:function(e){var t=e.title,l=af(e,li);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),a.createElement("circle",{fill:"#FFDA44",cx:218.902,cy:255.994,r:74.207}))},PY:function(e){var t=e.title,l=af(e,lv);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#6DA544",d:"m289.579 216.738-12.592 12.592c5.37 5.372 8.693 12.792 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.112-5.316-24.985-13.91-33.579z"}),a.createElement("path",{fill:"#FFDA44",d:"m256 232.51 4.421 13.605h14.304l-11.573 8.408 4.421 13.604L256 259.719l-11.573 8.408 4.421-13.604-11.573-8.408h14.304z"}))},QA:function(e){var t=e.title,l=af(e,lE);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#751A46",d:"M0 0h512v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 0v342h150.3l37.7-19.6-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19 37.7-18.9-37.7-19 37.7-19-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19L188 57l-37.7-19L188 19.1 150.3 0z"}))},RE:function(e){var t=e.title,l=af(e,lz);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),a.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},RO:function(e){var t=e.title,l=af(e,lf);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),a.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},RS:function(e){var t=e.title,l=af(e,lp);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.331h512v113.775H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 312.882h512v113.775H0z"}),a.createElement("path",{fill:"#D80027",d:"M129.468 181.793v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.356 256 266.929v-85.136H129.468z"}),a.createElement("path",{d:"M155.634 196.634h74.201v-29.681l-14.841 7.42-22.261-22.26-22.259 22.26-14.84-7.42zm85.526 82.148-48.231-48.231-48.231 48.231 15.741 15.74 32.49-32.49 32.49 32.49z",fill:"#FFDA44"}),a.createElement("path",{fill:"#FFF",d:"M241.16 233.734h-22.504a14.74 14.74 0 0 0 2.001-7.418c0-8.196-6.645-14.84-14.84-14.84-5.663 0-10.581 3.172-13.083 7.836-2.502-4.663-7.421-7.836-13.083-7.836-8.195 0-14.84 6.644-14.84 14.84 0 2.706.736 5.235 2.001 7.418h-22.114c0 8.196 7.139 14.84 15.334 14.84h-.494c0 8.196 6.644 14.84 14.84 14.84 0 7.257 5.211 13.286 12.094 14.576l-11.694 26.401a48.075 48.075 0 0 0 18.149 3.544 48.079 48.079 0 0 0 18.149-3.544l-11.694-26.401c6.883-1.29 12.094-7.319 12.094-14.576 8.196 0 14.84-6.644 14.84-14.84h-.494c8.199 0 15.338-6.644 15.338-14.84z"}))},RU:function(e){var t=e.title,l=af(e,lw);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.33v341.332h512V85.33z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.333h512v113.775H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 312.884h512v113.775H0z"}))},RW:function(e){var t=e.title,l=af(e,ls);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 255.994h512v81.619H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 337.614h512v89.043H0z"}),a.createElement("path",{fill:"#FFDA44",d:"m278.261 185.209 20.844 9.804-11.099 20.186 22.632-4.33 2.868 22.865 15.765-16.816 15.766 16.816 2.867-22.865 22.633 4.33-11.099-20.186 20.843-9.804-20.844-9.805 11.1-20.185-22.633 4.329-2.868-22.864-15.765 16.816-15.766-16.816-2.867 22.864-22.634-4.329 11.1 20.187z"}))},SA:function(e){var t=e.title,l=af(e,ld);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#055e1c",d:"M0 85.333h512v341.333H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M183.548 289.386c0 12.295 9.731 22.261 21.736 22.261h65.208c0 10.244 8.11 18.551 18.114 18.551h21.736c10.004 0 18.114-8.306 18.114-18.551v-22.261H183.548zm146.716-107.595v51.942c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942h-21.735zm-155.773 51.943c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942H174.49v51.942z"}),a.createElement("path",{d:"M297.661 181.788h21.736v51.942h-21.736zm-32.604 29.685c0 2.046-1.625 3.71-3.623 3.71-1.998 0-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 2.046-1.625 3.71-3.623 3.71s-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 14.32 11.376 25.971 25.358 25.971 5.385 0 10.38-1.733 14.491-4.677 4.11 2.944 9.106 4.677 14.491 4.677 1.084 0 2.15-.078 3.2-.215-1.54 6.499-7.255 11.345-14.068 11.345v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.943h-21.736l.002 29.682z"}),a.createElement("path",{d:"M207.093 248.57h32.601v22.261h-32.601z"})))},SB:function(e){var t=e.title,l=af(e,lM);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.329h512"}),a.createElement("path",{fill:"#FFDA44",d:"M0 396.494v30.169h45.255L512 115.499v-30.17h-45.255z"}),a.createElement("path",{d:"m85.688 108.787 5.12 15.756h16.566l-13.403 9.737 5.12 15.757-13.403-9.738-13.405 9.738 5.12-15.757L64 124.543h16.567zm84.624 0 5.121 15.756H192l-13.403 9.737 5.12 15.757-13.405-9.738-13.403 9.738 5.12-15.757-13.403-9.737h16.566zm-84.624 82.502 5.12 15.756h16.566l-13.403 9.738 5.12 15.757-13.403-9.739-13.405 9.739 5.12-15.757L64 207.045h16.567zm84.624 0 5.121 15.756H192l-13.403 9.738 5.12 15.757-13.405-9.739-13.403 9.739 5.12-15.757-13.403-9.738h16.566zM128 150.037l5.12 15.756h16.568l-13.405 9.738 5.12 15.758L128 181.55l-13.403 9.739 5.12-15.758-13.405-9.738h16.568z",fill:"#FFF"}))},SC:function(e){var t=e.title,l=af(e,lF);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M235.454 85.337 0 426.663 427.345 85.337z"}),a.createElement("path",{fill:"#6DA544",d:"M512 329.393 0 426.663h512z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.337h-84.655L0 426.663l512-204.512z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.337v341.326L235.454 85.337z"}))},SD:function(e){var t=e.title,l=af(e,lH);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 426.668V85.331l256 170.675z"}))},SE:function(e){var t=e.title,l=af(e,lo);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M192 85.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z"}))},SG:function(e){var t=e.title,l=af(e,lg);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512V256H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M83.478 170.666c0-24.865 17.476-45.637 40.812-50.734a52.059 52.059 0 0 0-11.13-1.208c-28.688 0-51.942 23.254-51.942 51.941s23.255 51.942 51.942 51.942c3.822 0 7.543-.425 11.13-1.208-23.336-5.095-40.812-25.867-40.812-50.733zm66.783-48.231 3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921z"}),a.createElement("path",{d:"m121.344 144.696 3.683 11.337h11.921l-9.645 7.007 3.684 11.337-9.643-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921zm57.834 0 3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.685-11.337-9.645-7.007h11.921zm-11.131 33.391 3.684 11.337h11.921l-9.644 7.007 3.684 11.337-9.645-7.006-9.643 7.006 3.684-11.337-9.644-7.007h11.92zm-35.573 0 3.683 11.337h11.921l-9.644 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.684-11.337-9.644-7.007h11.92z"})))},SH:function(e){var t=e.title,l=af(e,lu);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.3H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z"})),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{d:"M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z",fill:"#D80027"}),a.createElement("path",{fill:"#29DBFF",d:"M449 139.7c-.1 44.4-7.2 92.1-65 114.9-57.8-22.8-64.9-70.5-65-114.9h130z"}),a.createElement("path",{fill:"#ffda44",d:"M449 139.7c0-16.7-.9-32.9-.5-47.1C426.9 83 398.4 81 383.9 81s-42.9 2-64.6 11.6c.4 14.2-.5 30.4-.5 47.1H449z"}),a.createElement("path",{fill:"#BF521B",d:"m369.5 204.5.3 10.3-12.8.2 4.9 13.2h-17.3c-18-20.2-23.4-42.4-24.9-68.1l9.1-9.7 8.3 14.3 10.8-12.8 7 7.8.8 15.7 13.8 29.1z"}),a.createElement("path",{fill:"#474747",d:"m436.6 192.5-8.6 18.3h-47l-29.2-19.5 25.7 10.5h25.1l3.7-6.5 7.2.2 2-3z"}))},SI:function(e){var t=e.title,l=af(e,lx);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 199.112h512v113.775H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{fill:"#FFF",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l-.145-44.188 89.043-.266.146 44.454z"}),a.createElement("path",{fill:"#0052B4",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l-.145-44.188 89.043-.266.146 44.454z"}),a.createElement("path",{fill:"#FFF",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l14.848 14.837 29.674-22.261 29.685 22.261 14.837-14.837z"}))},SJ:function(e){var t=e.title,l=af(e,lD);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),a.createElement("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},SK:function(e){var t=e.title,l=af(e,lB);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 196.641h512v118.717H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 315.359h512v111.304H0z"}),a.createElement("path",{fill:"#FFF",d:"M129.468 181.799v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.362 256 266.935v-85.136H129.468z"}),a.createElement("path",{fill:"#D80027",d:"M146.126 184.294v81.941c0 5.472 1.215 10.64 3.623 15.485h85.97c2.408-4.844 3.623-10.012 3.623-15.485v-81.941h-93.216z"}),a.createElement("path",{fill:"#FFF",d:"M221.301 241.427h-21.425v-14.283h14.284v-14.283h-14.284v-14.284h-14.283v14.284h-14.282v14.283h14.282v14.283h-21.426v14.284h21.426v14.283h14.283v-14.283h21.425z"}),a.createElement("path",{fill:"#0052B4",d:"M169.232 301.658c9.204 5.783 18.66 9.143 23.502 10.636 4.842-1.494 14.298-4.852 23.502-10.636 9.282-5.833 15.79-12.506 19.484-19.939a24.878 24.878 0 0 0-14.418-4.583c-1.956 0-3.856.232-5.682.657-3.871-8.796-12.658-14.94-22.884-14.94-10.227 0-19.013 6.144-22.884 14.94a25.048 25.048 0 0 0-5.682-.657 24.88 24.88 0 0 0-14.418 4.583c3.691 7.433 10.198 14.106 19.48 19.939z"}))},SL:function(e){var t=e.title,l=af(e,lL);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 312.888h512v113.775H0z"}))},SM:function(e){var t=e.title,l=af(e,lV);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.34h512v341.326H0z"}),a.createElement("path",{fill:"#FFF",d:"M512 85.334v166.69L0 256.175V85.334z"}),a.createElement("path",{fill:"#6DA544",d:"M323.744 203.099 256 270.843l-67.744-67.744a81.156 81.156 0 0 0-13.879 45.483v22.261c0 35.744 23.097 66.193 55.148 77.213-4.277 8.385-3.556 18.848 2.712 26.671l24.258-19.439 24.258 19.439c6.342-7.915 7.011-18.534 2.564-26.968 31.614-11.261 54.308-41.485 54.308-76.916v-22.261a81.174 81.174 0 0 0-13.881-45.483z"}),a.createElement("path",{fill:"#FFDA44",d:"M256 330.206c-32.732 0-59.362-26.63-59.362-59.362v-22.261c0-32.733 26.63-59.363 59.362-59.363s59.362 26.63 59.362 59.362v22.261c0 32.733-26.63 59.363-59.362 59.363z"}),a.createElement("path",{fill:"#338AF3",d:"M293.101 270.843v-22.261c0-20.458-16.643-37.101-37.101-37.101s-37.101 16.643-37.101 37.101v22.261L256 278.264l37.101-7.421z"}),a.createElement("path",{fill:"#6DA544",d:"M218.899 270.843c0 20.458 16.643 37.101 37.101 37.101s37.101-16.643 37.101-37.101h-74.202z"}),a.createElement("path",{fill:"#FFDA44",d:"M300.522 189.22c0-12.295-9.966-22.261-22.261-22.261a22.173 22.173 0 0 0-14.84 5.672v-13.093h7.421v-14.84h-7.421v-7.421h-14.84v7.421h-7.421v14.84h7.421v13.093a22.177 22.177 0 0 0-14.841-5.672c-12.295 0-22.261 9.966-22.261 22.261 0 6.591 2.867 12.512 7.421 16.589v13.093h74.203v-13.093c4.552-4.077 7.419-9.997 7.419-16.589z"}))},SN:function(e){var t=e.title,l=af(e,lA);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M330.207 85.331H512v341.337H330.207z"}),a.createElement("path",{d:"M0 85.331h181.793v341.337H0zm255.999 111.301 14.733 45.347h47.685l-38.576 28.029 14.734 45.348-38.576-28.026-38.577 28.026 14.737-45.348-38.576-28.029h47.681z",fill:"#496E2D"}))},SO:function(e){var t=e.title,l=af(e,ly);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"m256 157.273 22.663 69.748H352l-59.332 43.106 22.664 69.749L256 296.769l-59.332 43.107 22.664-69.749L160 227.021h73.337z"}))},SR:function(e){var t=e.title,l=af(e,lC);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#A2001D",d:"M0 196.636h512v118.728H0z"}),a.createElement("path",{d:"M0 352.462h512v74.207H0zM0 85.331h512v74.207H0z",fill:"#6DA544"}),a.createElement("path",{fill:"#FFDA44",d:"m256.742 218.003 9.43 29.021h30.518L272 264.963l9.431 29.023-24.689-17.937-24.689 17.937 9.431-29.023-24.69-17.939h30.518z"}))},SS:function(e){var t=e.title,l=af(e,lk);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#496E2D",d:"M0 322.783h512v103.88H0z"}),a.createElement("path",{d:"M0 85.337h512v104.515H0z"}),a.createElement("path",{fill:"#A2001D",d:"M0 210.877h512v89.656H0z"}),a.createElement("path",{fill:"#0052B4",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("path",{fill:"#FFDA44",d:"m73.178 209.188 20.831 29.067 34.084-10.83-21.207 28.795 20.83 29.069-33.939-11.271-21.208 28.794.234-35.762-33.94-11.273 34.083-10.83z"}))},ST:function(e){var t=e.title,l=af(e,lS);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#6DA544"}),a.createElement("path",{fill:"#D80027",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("path",{d:"m302.049 226.318 7.368 22.674h23.842l-19.288 14.016 7.366 22.674-19.288-14.015-19.287 14.015 7.366-22.674-19.288-14.016h23.842zm74.203 0 7.367 22.674h23.842l-19.288 14.016 7.367 22.674-19.288-14.015-19.288 14.015 7.367-22.674-19.288-14.016h23.842z"}))},SV:function(e){var t=e.title,l=af(e,lW);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#0052B4"}),a.createElement("path",{fill:"#FFDA44",d:"M228.582 261.936 256 214.447l27.418 47.489z"}),a.createElement("path",{fill:"#6DA544",d:"M291.616 277.616 256 295.425l-35.616-17.809v-23.744h71.232z"}),a.createElement("path",{fill:"#FFDA44",d:"m289.579 216.485-12.592 12.592c5.37 5.372 8.693 12.791 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.114-5.316-24.987-13.91-33.579z"}))},SX:function(e){var t=e.title,l=af(e,lb);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.331v166.69L0 256.173V85.331z"}),a.createElement("path",{fill:"#FFF",d:"M256 256.006 0 426.668V85.331z"}),a.createElement("g",{fill:"#FFDA44"},a.createElement("path",{d:"M59.621 256a59.546 59.546 0 0 0-.193 4.57c0 32.821 26.607 59.429 59.429 59.429s59.429-26.607 59.429-59.429c0-1.539-.078-3.061-.193-4.57H59.621z"}),a.createElement("circle",{cx:118.862,cy:210.287,r:18.286})),a.createElement("path",{fill:"#D80027",d:"M77.715 205.714v59.429c0 31.494 41.144 41.143 41.144 41.143s41.144-9.649 41.144-41.143v-59.429H77.715z"}),a.createElement("path",{fill:"#338AF3",d:"M118.877 287.148c-7.632-2.746-22.876-9.767-22.876-22.006v-41.144h45.715v41.144c-.001 12.28-15.244 19.283-22.839 22.006z"}),a.createElement("path",{fill:"#F3F3F3",d:"M128.001 246.856v-9.142l-9.144-4.571-9.142 4.571v9.142l-4.571 4.573v18.285h27.428v-18.285z"}))},SY:function(e){var t=e.title,l=af(e,lG);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 0h900v600H0z",fill:"#0f0f0f"}),a.createElement("path",{d:"M0 0h900v400H0z",fill:"#fff"}),a.createElement("path",{d:"M0 0h900v200H0z",fill:"#047a3f"}),a.createElement("path",{d:"m176.26 375 48.738-150 48.738 150-127.6-92.705h157.72M626.256 375l48.738-150 48.738 150-127.6-92.705h157.72M401.252 375l48.738-150 48.738 150-127.6-92.705h157.72",fill:"#ce1126"}))},SZ:function(e){var t=e.title,l=af(e,lT);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#2B5DEA",d:"M0 0h900v600H0V0z"}),a.createElement("path",{fill:"#FFDF29",d:"M0 100h900v400H0V100z"}),a.createElement("path",{fill:"#D70000",d:"M0 150h900v300H0V150z"}),a.createElement("path",{fill:"#FFF",d:"M450 171.4v257.2c114.3 0 171.4-85.7 214.3-128.6-42.9-42.9-100-128.6-214.3-128.6z"}),a.createElement("path",{d:"M450 171.4c-100 0-171.4 85.7-214.3 128.6C278.6 342.9 350 428.6 450 428.6V171.4z"}),a.createElement("path",{fill:"#FFF",d:"M346.3 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z"}),a.createElement("path",{d:"M477.8 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z"}))},TA:function(e){var t=e.title,l=af(e,lN);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.3H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z"})),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),a.createElement("path",{d:"M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z",fill:"#D80027"}),a.createElement("path",{fill:"#29DBFF",d:"M448.9 169.5c0 9.6-.3 29.6-1.4 39.2-4.1 34.9-23.5 68.8-62.1 85.9-45.3-17.9-60.8-51-64.9-85.9-1.1-9.6-1.5-19.4-1.5-29l.3-47.1h129.2l.4 36.9z"}),a.createElement("path",{fill:"#FFF",d:"M447.5 208.7c-.2 1.6-.4 3.3-.6 4.9-4.8 33.1-22.9 65.4-61.5 81-43.2-17-59.4-47.9-64.2-81-.2-1.6-.4-3.2-.6-4.9"}),a.createElement("path",{fill:"#29DBFF",d:"m385.4 251.7-22.9-43h45.8z"}),a.createElement("path",{fill:"#FFF",d:"m385.4 165.8-22.9 42.9h45.8z"}),a.createElement("ellipse",{fill:"#FFBE57",cx:474.8,cy:236.8,rx:16.8,ry:43.3}),a.createElement("ellipse",{fill:"#FFBE57",cx:295.3,cy:236.8,rx:16.8,ry:43.3}),a.createElement("path",{fill:"#FFF",d:"m385.4 31.5-33.4 44h68.5zM315.5 280s33.8 29.5 69.9 29.5 67.1-29.5 67.1-29.5l8.5 14.6S439.2 326 385.4 326 307 294.6 307 294.6l8.5-14.6z"}),a.createElement("ellipse",{fill:"#A5A5A5",cx:386.3,cy:104.3,rx:34.3,ry:23.3}))},TC:function(e){var t=e.title,l=af(e,lO);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M332.058 191.996v78.221c0 38.103 51.942 49.779 51.942 49.779s51.942-11.675 51.942-49.779v-78.221H332.058z"}),a.createElement("path",{fill:"#FF9811",d:"M376.579 220.44c0 7.855-6.644 28.445-14.84 28.445s-14.84-20.589-14.84-28.445c0-7.856 14.84-14.222 14.84-14.222s14.84 6.367 14.84 14.222z"}),a.createElement("path",{fill:"#A2001D",d:"M415.961 235.93c2.394-5.6 4.257-13.785 4.257-17.86 0-6.546-8.904-11.852-8.904-11.852s-8.904 5.306-8.904 11.852c0 4.075 1.862 12.26 4.257 17.86l-5.141 11.123a26.898 26.898 0 0 0 9.788 1.831c3.463 0 6.766-.654 9.788-1.831l-5.141-11.123z"}),a.createElement("path",{fill:"#6DA544",d:"M372.87 270.217s-7.421 14.222-7.421 28.445h37.101c0-14.222-7.421-28.445-7.421-28.445l-11.13-7.111-11.129 7.111z"}),a.createElement("path",{fill:"#D80027",d:"M395.13 270.217v-3.555c0-5.891-4.983-10.666-11.13-10.666-6.147 0-11.13 4.776-11.13 10.666v3.555h22.26z"}),a.createElement("path",{fill:"#FFF",d:"M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.554l45.167-25.098H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.825V85.333h55.652v48.572l87.43-48.572z"}),a.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),a.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),a.createElement("path",{d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),a.createElement("path",{fill:"#FFF",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),a.createElement("path",{d:"M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z",fill:"#D80027"}))},TD:function(e){var t=e.title,l=af(e,lR);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),a.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},TF:function(e){var t=e.title,l=af(e,lI);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0V0z"}),a.createElement("path",{fill:"#0A388A",d:"M0 0h22.5v15H0V0z"}),a.createElement("path",{fill:"#FFF",d:"M0 0h11.3v7.5H0V0z"}),a.createElement("path",{fill:"#D80027",d:"M7.1 0h3.6v7H7.1V0z"}),a.createElement("path",{fill:"#0A388A",d:"M0 0h3.6v7H0V0z"}),a.createElement("path",{fill:"#FFF",d:"M3.6 0h3.6v7H3.6V0zm10.9 6h5L19 7h-1.5v.5h1l-.5 1h-.5V10h-1V7H15l-.5-1zm4 2.5 1 1.5h-2l1-1.5zm-3 0 1 1.5h-2l1-1.5zm1.5 3L16 10h2l-1 1.5zM20 8c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-6 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm1 4c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm4 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-2 1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5z"}))},TG:function(e){var t=e.title,l=af(e,lP);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M0 85.337h512V153.6H0zM0 358.4h512v68.263H0zm0-136.537h512v68.263H0z",fill:"#496E2D"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h204.054v204.054H0z"}),a.createElement("path",{fill:"#FFF",d:"m102.026 133.938 13.26 40.812h42.916l-34.718 25.226 13.26 40.814-34.718-25.224-34.719 25.224 13.263-40.814-34.718-25.226h42.913z"}))},TH:function(e){var t=e.title,l=af(e,lK);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.334h512V426.66H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 194.056h512v123.882H0z"}),a.createElement("path",{d:"M0 85.334h512v54.522H0zm0 286.809h512v54.522H0z",fill:"#D80027"}))},TJ:function(e){var t=e.title,l=af(e,lU);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 312.888h512v113.775H0z"}),a.createElement("path",{d:"M226.318 300.522h59.364v-25.23l-11.873 5.937L256 263.421l-17.809 17.808-11.873-5.937zm-33.963-29.682 2.763 8.504h8.94l-7.233 5.255 2.763 8.502-7.233-5.255-7.234 5.255 2.763-8.502-7.233-5.255h8.94zm8.566-29.68 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm24.488-22.261 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm94.236 51.941-2.763 8.504h-8.94l7.233 5.255-2.763 8.502 7.233-5.255 7.234 5.255-2.763-8.502 7.233-5.255h-8.94zm-8.566-29.68-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zm-24.488-22.261-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zM256 207.767l2.763 8.503h8.941l-7.234 5.256 2.763 8.502-7.233-5.254-7.233 5.254 2.763-8.502-7.234-5.256h8.941z",fill:"#FFDA44"}))},TK:function(e){var t=e.title,l=af(e,lZ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"m210.715 174.377 3.684 11.338h11.919l-9.643 7.006 3.684 11.337-9.644-7.007-9.644 7.007 3.684-11.337-9.645-7.006h11.921zm-93.899 107.594 4.605 14.172h14.9l-12.055 8.757 4.606 14.173-12.056-8.76-12.055 8.76 4.604-14.173-12.054-8.757h14.899zm27.88-162.292 4.604 14.172h14.901l-12.056 8.758 4.606 14.171-12.055-8.759-12.056 8.759 4.606-14.171-12.055-8.758h14.9zm-75.157 55.652 4.604 14.172h14.9l-12.055 8.758 4.606 14.171-12.055-8.758-12.056 8.758 4.606-14.171-12.055-8.758h14.9z",fill:"#FFF"}),a.createElement("path",{d:"M483.386 354.503H117.801s109.234-88.562 310.593-220.938c.001 0-88.443 128.935 54.992 220.938zm-365.585 11.586c-11.177 0-11.195 17.37 0 17.37h365.585c11.177 0 11.195-17.37 0-17.37H117.801z",fill:"#FFDA44"}))},TL:function(e){var t=e.title,l=af(e,lY);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M256 256 0 90.691v44.242L155.826 256 0 377.067v44.242z"}),a.createElement("path",{d:"M0 90.691v330.618L189.217 256z"}),a.createElement("path",{fill:"#FFF",d:"m44.184 213.36 24.912 23.577 30.121-16.41-14.723 30.98 24.911 23.575-34.012-4.43L60.67 301.63l-6.296-33.716-34.012-4.43 30.119-16.408z"}))},TM:function(e){var t=e.title,l=af(e,lJ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),a.createElement("g",{fill:"#FFF"},a.createElement("path",{d:"M357.208 183.679c8.397-23.404-1.036-48.858-21.281-61.536a52.131 52.131 0 0 1 10.884 2.621c27.002 9.688 41.038 39.428 31.35 66.431s-39.428 41.038-66.431 31.35a52.182 52.182 0 0 1-10.069-4.895c23.686 3.084 47.15-10.566 55.547-33.971zm-46.571-67.95-7.297 9.427-11.22-4.026 6.712 9.852-7.296 9.427 11.443-3.338 6.712 9.852.361-11.914 11.444-3.339-11.221-4.025z"}),a.createElement("path",{d:"m330.338 146.448-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.443-3.339 6.712 9.853.36-11.915 11.445-3.34-11.221-4.024zM275.9 126.916l-7.296 9.427-11.219-4.024 6.711 9.851-7.296 9.426 11.443-3.338 6.712 9.852.361-11.915 11.444-3.337-11.221-4.027zm-.799 35.189-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.444-3.338 6.711 9.852.362-11.915 11.443-3.338-11.22-4.026zm33.484 12.013-7.296 9.427-11.22-4.026 6.712 9.853-7.297 9.426 11.444-3.338 6.712 9.852.36-11.915 11.443-3.338-11.219-4.025z"})),a.createElement("path",{fill:"#D80027",d:"M83.478 85.337h89.043v341.326H83.478z"}),a.createElement("path",{fill:"#FFF",d:"m117.458 175.191-14.908-11.105v-15.705l14.908-11.105h21.084l14.908 11.105v15.705l-14.908 11.105z"}),a.createElement("path",{d:"M128 137.276h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.105v-8.012H128z",fill:"#FF9811"}),a.createElement("path",{fill:"#FFF",d:"m117.458 374.725-14.908-11.106v-15.704l14.908-11.105h21.084l14.908 11.105v15.704l-14.908 11.106z"}),a.createElement("path",{d:"M128 336.81h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.106v-8.011H128z",fill:"#FF9811"}),a.createElement("path",{d:"m117.458 274.957-14.908-11.105v-15.703l14.908-11.106h21.084l14.908 11.106v15.703l-14.908 11.105zm36.513 24.434h-6.493v-6.493h-11.411l-8.068-8.068-8.067 8.068h-11.41v6.493h-6.493v12.986h6.493v6.492h11.41l8.068 8.069 8.068-8.069h11.41v-6.492h6.493zm0-99.768h-6.493v-6.492h-11.411l-8.068-8.069-8.067 8.069h-11.41v6.492h-6.493v12.986h6.493v6.492h11.41l8.068 8.07 8.068-8.07h11.41v-6.492h6.493z",fill:"#496E2D"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M120.576 248.576h14.84v14.84h-14.84z"}),a.createElement("circle",{cx:128,cy:206.113,r:7.421}),a.createElement("circle",{cx:128,cy:305.887,r:7.421})))},TN:function(e){var t=e.title,l=af(e,lj);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),a.createElement("circle",{fill:"#FFF",cx:256,cy:255.994,r:96}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"m267.826 219.291 16.47 22.695 26.673-8.649-16.496 22.676 16.468 22.695-26.664-8.681-16.495 22.676.017-28.04-26.664-8.682 26.674-8.648z"}),a.createElement("path",{d:"M277.818 312.724c-31.33 0-56.727-25.397-56.727-56.727s25.397-56.727 56.727-56.727c9.769 0 18.96 2.47 26.985 6.819-12.589-12.31-29.804-19.909-48.803-19.909-38.558 0-69.818 31.259-69.818 69.818s31.26 69.818 69.818 69.818c18.999 0 36.215-7.599 48.803-19.909-8.026 4.347-17.216 6.817-26.985 6.817z"})))},TO:function(e){var t=e.title,l=af(e,lQ);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 85.331h256v170.663H0z"}),a.createElement("path",{fill:"#D80027",d:"M141.357 157.303V130.59h-26.714v26.713H87.93v26.713h26.713v26.713h26.714v-26.713h26.713v-26.713z"}))},TR:function(e){var t=e.title,l=af(e,l_);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#E30A17",d:"M0 0h513v342H0z"}),a.createElement("path",{fill:"#FFF",d:"M259.7 118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8 0-73.8 30.8-73.8 68.9s33.1 68.9 73.8 68.9c17.1 0 32.9-5.4 45.3-14.5-30 38.6-85.7 45.6-124.3 15.5s-45.6-85.7-15.5-124.3 85.7-45.6 124.3-15.5c5.8 4.5 11 9.8 15.5 15.5zm39.9 65.8-18.1 21.9 1.2-28.4-26.4-10.4 27.3-7.6 1.8-28.3 15.6 23.7 27.5-7.1-17.5 22 15.3 23.9-26.7-9.7z"}))},TT:function(e){var t=e.title,l=af(e,lX);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#FFF",d:"m6.066 85.337 207.961 212.636 131.584 128.69h160.323L297.973 214.027 166.389 85.337z"}),a.createElement("path",{d:"M43.364 85.337 384.69 426.663h83.946L127.31 85.337z"}))},TV:function(e){var t=e.title,l=af(e,lq);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h900v600H0z"}),a.createElement("path",{fill:"#00B2EE",d:"M0 300h450V0h450v600H0V300z"}),a.createElement("path",{fill:"#FFDA44",d:"m345.3 480.9 29.4 90.6-77.1-56H393l-77.1 56 29.4-90.6zM706.4 340l29.4 90.6-77.1-56H754l-77.1 56 29.5-90.6zm106.4-78.5 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zm0-224.1 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6z"}),a.createElement("path",{fill:"#FFF",d:"M449.9 0v206.3h-81l81 54V300h-39.7l-129-85.9V300H168.7v-85.9L39.7 300H0v-39.7l81-54H0V93.8h81L0 39.9V0h39.7l129 85.9V0h112.5v85.9L410.2 0z"}),a.createElement("path",{fill:"#D80027",d:"M253.1 0h-56.3v122H0v56.2h196.8V300h56.3V178.2h196.8V122H253.1z"}),a.createElement("path",{fill:"#2E52B2",d:"M449.9 39.9v53.9h-81z"}),a.createElement("path",{fill:"#D80027",d:"M0 300v-19.3l109.9-74.4h39.7L12.8 300zM12.8.1l136.8 93.7h-39.7L0 19.4V.1zm437.1.1v19.3L340 93.8h-39.7L437.1.2zM437.1 300l-136.8-93.7H340l109.9 74.4V300z"}),a.createElement("path",{fill:"#FFDA44",d:"m719.9 131.6 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zM584 187.7l29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zm30 242.9 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zM488 332l29.4 90.6-77.1-56h95.3l-77.1 56L488 332zm0 132 29.4 90.6-77.1-56h95.3l-77.1 56L488 464z"}))},TW:function(e){var t=e.title,l=af(e,l$);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.337h256V256H0z"}),a.createElement("path",{fill:"#FFF",d:"M186.435 170.669 162.558 181.9l12.714 23.125-25.927-4.961-3.286 26.192L128 206.993l-18.06 19.263-3.285-26.192-25.927 4.96 12.714-23.125-23.877-11.23 23.877-11.231-12.714-23.125 25.927 4.96 3.286-26.192L128 134.344l18.06-19.263 3.285 26.192 25.928-4.96-12.715 23.125z"}),a.createElement("circle",{fill:"#0052B4",cx:128,cy:170.674,r:29.006}),a.createElement("path",{fill:"#FFF",d:"M128 190.06c-10.692 0-19.391-8.7-19.391-19.391 0-10.692 8.7-19.391 19.391-19.391 10.692 0 19.391 8.7 19.391 19.391 0 10.691-8.699 19.391-19.391 19.391z"}))},TZ:function(e){var t=e.title,l=af(e,l1);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 426.663V85.337h512"}),a.createElement("path",{fill:"#FFDA44",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),a.createElement("path",{d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}))},UA:function(e){var t=e.title,l=af(e,l2);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 85.337h512V256H0z"}))},UG:function(e){var t=e.title,l=af(e,l3);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#232323",d:"M0 0h512v341.3H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 56.9h512v56.9H0z"}),a.createElement("path",{fill:"#D32300",d:"M0 113.8h512v56.9H0z"}),a.createElement("path",{fill:"#FFDA44",d:"M0 227.6h512v56.9H0z"}),a.createElement("path",{fill:"#D32300",d:"M0 284.4h512v56.9H0z"}),a.createElement("circle",{fill:"#FFF",cx:256,cy:170.7,r:80.7}),a.createElement("path",{d:"M234.5 127.5c.9-1.4-19.6-2-19.6-2 1.7-2.5 18.4-10.5 18.4-10.5s-.9-6 2.7-9.8l-4.5-9.8s7-3.4 18.4-3.4 19.9 7 21 13.1l-6.4 3.4c-.1 4.7 1.7 11.6-4.3 17.3-5.9 5.7-8.3 6.9-8.5 18.8 0 3.9 2.3 8.2 8.8 11.7 17.4 9.3 38.6 28.2 44.6 33.9 6.1 5.7 5.1 19.2 2.6 25.2s-12.1 14.3-14.3 13.6c-2.2-.6 1.2-9.2-3.5-11.6 0 0-8.9-7.6-16.8.6s-.2 25.2 3.9 28c4.1 2.8 1.7 5-1.9 5H247c-3.8 0-5.4-2.3-1.9-5 7.6-3.8 12.4-15.3 7.4-20.3-4.9-4.9-18.3 1.5-21.5 6.3-2.8 2.8-8.8 3.6-12.9-1.4s-4.1-10.4-1.1-12.5c7-4.8 0 0 .1-.1 0 0 11.9-8.6 29.9-9 3.9 0 4.8-2.2 2.2-4.8 0 0-30.9-27.4-28.1-44.2 3-18.3 20-26.3 13.4-32.5-1.3-1.8 0 0 0 0z"}))},UM:function(e){var t=e.title,l=af(e,l0);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),a.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},US:function(e){var t=e.title,l=af(e,l4);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),a.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},UY:function(e){var t=e.title,l=af(e,l5);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),a.createElement("path",{d:"M0 38h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z",fill:"#0038a8"}),a.createElement("path",{fill:"#FFF",d:"M0 0h256.5v190H0z"}),a.createElement("path",{fill:"#FED443",d:"m128.3 138.7-15.1 22.6-3.8-26.9L86 148.2l8.2-25.9-27.2 2.2 18.6-19.8L60.3 95l25.4-9.7L67 65.5l27.1 2.3-8.2-25.9 23.4 13.8 3.9-26.9 15.1 22.6 15.1-22.6 3.8 26.9 23.4-13.8-8.2 25.9 27.1-2.2-18.6 19.8 25.4 9.7-25.4 9.7 18.6 19.8-27.1-2.2 8.2 25.9-23.4-13.8-3.9 26.9-15-22.7zm0-.5c23.9.9 44-17.6 44.9-41.5.9-23.9-17.6-44-41.5-44.9h-3.4c-23.9.8-42.6 20.8-41.8 44.6.6 22.8 19 41.1 41.8 41.8zm0-10.6c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.3 34-34 34z"}))},UZ:function(e){var t=e.title,l=af(e,l6);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M0 322.783h512v103.88H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v104.515H0z"}),a.createElement("path",{fill:"#FFF",d:"M0 210.877h512v89.656H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v104.515H0z"}),a.createElement("path",{d:"M188.688 137.589c0-15.984 11.234-29.339 26.236-32.614a33.531 33.531 0 0 0-7.155-.777c-18.442 0-33.391 14.949-33.391 33.391s14.949 33.391 33.391 33.391c2.458 0 4.85-.273 7.155-.777-15.002-3.275-26.236-16.63-26.236-32.614zm45.97 15.177 2.261 6.957h7.315l-5.918 4.301 2.261 6.956-5.919-4.3-5.918 4.3 2.261-6.956-5.918-4.301h7.315zm23.348 0 2.26 6.957h7.315l-5.918 4.301 2.261 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.917-4.301h7.314zm23.347 0 2.26 6.957h7.315l-5.917 4.301 2.26 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.918-4.301h7.315zm23.347 0 2.262 6.957h7.315l-5.919 4.301 2.261 6.956-5.919-4.3-5.918 4.3 2.262-6.956-5.919-4.301h7.314zm23.348 0 2.26 6.957h7.315l-5.918 4.301 2.261 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.917-4.301h7.314zm-70.042-24.284 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.917-4.3h7.314zm23.347 0 2.26 6.956h7.315l-5.917 4.3 2.26 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.918-4.3h7.315zm23.347 0 2.262 6.956h7.315l-5.919 4.3 2.261 6.957-5.919-4.299-5.918 4.299 2.262-6.957-5.919-4.3h7.314zm23.348 0 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.917-4.3h7.314zm-46.695-24.284 2.26 6.956h7.315l-5.917 4.3 2.26 6.957-5.918-4.3-5.918 4.3 2.26-6.957-5.918-4.3h7.315zm23.347 0 2.262 6.956h7.315l-5.919 4.3 2.261 6.957-5.919-4.3-5.918 4.3 2.262-6.957-5.919-4.3h7.314zm23.348 0 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.3-5.918 4.3 2.26-6.957-5.917-4.3h7.314z",fill:"#FFF"}))},VA:function(e){var t=e.title,l=af(e,l7);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 85.331h256v341.337H256z"}),a.createElement("path",{fill:"#ACABB1",d:"m321.353 233.837 32.073 42.43c-5.053 7.651-5.026 17.961.817 25.692 7.414 9.807 21.374 11.748 31.182 4.335 9.807-7.414 11.748-21.374 4.334-31.182-5.843-7.731-15.756-10.568-24.495-7.795l-49.988-66.129-11.838 8.949-17.759 13.424 17.899 23.677 17.775-13.401zm46.175 48.78a7.421 7.421 0 1 1 8.95 11.84 7.421 7.421 0 0 1-8.95-11.84z"}),a.createElement("path",{fill:"#FFDA44",d:"m376.367 247.24 17.899-23.677-17.759-13.424-11.838-8.949-49.988 66.129c-8.74-2.775-18.651.063-24.495 7.795-7.414 9.808-5.473 23.768 4.334 31.182 9.808 7.414 23.768 5.473 31.182-4.335 5.845-7.731 5.871-18.041.817-25.692l32.073-42.43 17.775 13.401zm-62.504 45.771a7.42 7.42 0 1 1-11.84-8.95 7.42 7.42 0 0 1 11.84 8.95z"}))},VC:function(e){var t=e.title,l=af(e,l8);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#338AF3",d:"M0 85.331h170.663v341.337H0z"}),a.createElement("path",{d:"M341.337 85.331H512v341.337H341.337zM214.261 283.82l-33.393-50.086 33.392-50.087 33.392 50.087zm83.478 0-33.391-50.086 33.391-50.087 33.393 50.087zM256 350.603l-33.391-50.087L256 250.429l33.391 50.087z",fill:"#6DA544"}))},VE:function(e){var t=e.title,l=af(e,l9);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFCE00",d:"M0 0h22.5v5H0z"}),a.createElement("path",{fill:"#203899",d:"M0 5h22.5v5H0z"}),a.createElement("path",{fill:"#D82B2B",d:"M0 10h22.5v5H0z"}),a.createElement("path",{fill:"#FFF",d:"m12.13 5.38.14.46.45.14-.39.27.01.48-.38-.29-.45.15.15-.44-.28-.38h.47zm-1.77 0 .27.39h.47l-.28.38.15.45-.45-.16-.38.28.01-.47-.39-.28.45-.13zm3.44.56-.01.48.39.27-.46.14-.14.45-.27-.38h-.48l.29-.38-.15-.45.45.16zm-5.11.02.4.27.44-.18-.13.46.3.36-.47.02-.26.4-.16-.44-.46-.12.37-.3zm6.55 1.17-.2.44.25.4-.47-.05-.31.36-.1-.46-.43-.18.41-.24.03-.47.35.31zm.19 1.12.21.43.47.07-.34.33.08.46-.42-.22-.42.22.08-.46-.34-.33.47-.07zM7 8.2l.21.43.47.06-.34.33.08.47L7 9.27l-.42.22.08-.47-.34-.33.47-.06zm.31-1.15.45.14.38-.29v.48l.39.26-.45.15-.13.46-.28-.38-.47.01.27-.38z"}))},VG:function(e){var t=e.title,l=af(e,ae);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),a.createElement("path",{fill:"#FFF",d:"M256 85.334V202.66h-46.069L256 233.38v22.617h-22.628L160 207.078v48.919H96v-48.919l-73.372 48.919H0V233.38l46.069-30.72H0v-64h46.069L0 107.951V85.334h22.628L96 134.241V85.334h64v48.907l73.372-48.907z"}),a.createElement("g",{fill:"#D80027"},a.createElement("path",{d:"M144 85.33h-32v69.333H0v32h112v69.334h32v-69.334h112v-32H144z"}),a.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80zm256 0v15.083l-57.377 38.251H176z"})),a.createElement("path",{fill:"#2E52B2",d:"M256 107.951v30.712h-46.069z"}),a.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80zm256 0v15.083l-57.377 38.251H176z",fill:"#D80027"}),a.createElement("path",{fill:"#2E52B2",d:"M256 107.951v30.712h-46.069z"}),a.createElement("path",{d:"M0 255.997v-15.082l57.377-38.252H80zm256 0v-15.082l-57.377-38.252H176z",fill:"#D80027"}),a.createElement("path",{fill:"#FFDA44",d:"m384 259.706-46.129 46.129c8.645 16.675 26.051 28.074 46.129 28.074s37.484-11.4 46.129-28.074L384 259.706z"}),a.createElement("path",{fill:"#6DA544",d:"M332.058 178.084v81.624c.001 39.759 51.942 51.941 51.942 51.941s51.941-12.182 51.942-51.942v-81.623H332.058z"}),a.createElement("path",{fill:"#FFF",d:"M372.87 215.181h22.261v59.359H372.87z"}),a.createElement("circle",{fill:"#A2001D",cx:384,cy:215.181,r:11.13}),a.createElement("path",{d:"M346.902 192.92h14.84v14.84h-14.84zm0 33.392h14.84v14.84h-14.84zm0 33.391h14.84v14.84h-14.84zm59.359-66.783h14.84v14.84h-14.84zm0 33.392h14.84v14.84h-14.84zm0 33.391h14.84v14.84h-14.84z",fill:"#FFDA44"}))},VI:function(e){var t=e.title,l=af(e,at);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),a.createElement("path",{fill:"#1583C4",d:"m397.7 166.3-51 97.7c-1.1 2-.3 4.5 1.8 5.6 2 1.1 4.5.3 5.6-1.8l51-97.7c1-2.1.1-4.6-2-5.5-2-.9-4.3-.2-5.4 1.7z"}),a.createElement("path",{fill:"#1583C4",d:"m404.9 188-57.8 75.4c-1.3 1.9-.8 4.5 1.1 5.8 1.7 1.2 4.1.9 5.5-.7l57.8-75.4c1.4-1.8 1.1-4.4-.8-5.8-1.8-1.5-4.4-1.1-5.8.7z"}),a.createElement("path",{fill:"#1583C4",d:"m379 181.3-32.5 83.1c-.8 2.1.2 4.6 2.4 5.4 2.1.8 4.6-.2 5.4-2.4l32.5-83.1c.7-2.2-.4-4.5-2.6-5.3-2.1-.6-4.3.4-5.2 2.3z"}),a.createElement("path",{fill:"#409347",d:"M122.1 171.9c.4 1.7 1.2 4.7 2.2 8.5 1.7 6.4 3.6 12.8 5.6 18.7 2.3 6.9 14.7 31.4 20.2 39.1 6.9 9.7 14.1 19.3 21.5 28.6 1.6 1.9 4.5 2.1 6.4.5 1.8-1.6 2.1-4.3.7-6.2-7.3-9.2-14.4-18.6-21.2-28.2-4.2-5.8-17.2-31.1-19-36.7-2.9-8.7-5.4-17.6-7.6-26.5-.5-2.4-2.9-4-5.3-3.5s-4 2.9-3.5 5.3c-.1.2 0 .3 0 .4z"}),a.createElement("g",{fill:"#FFD836",stroke:"#231F20",strokeMiterlimit:10},a.createElement("path",{d:"M297.1 114.9S279.5 42.8 261 42.8c-6.9 0-11.9-.6-15.4 6.4-.9 1.7-20.7-1.6-19.1 20.8.5 6.9 1.1-9.8 14.9-3.4 6.3 3-16.4 48.2-16.4 48.2h72.1z"}),a.createElement("path",{d:"m466.1 48.4-90.9 22c-75.3 18.3-42.1 44.4-42.1 44.4l-72.1 12-72.1-12s33.2-26.1-42.1-44.4l-90.9-22C43.1 45.3 38.1 51.8 45.3 63c0 0 106.6 104 126.8 112 20.2 8.1 40.8 0 40.8 0s-14.9 8.7-24 24c-9.2 15.3-4.6 34.7-38.9 40.2-5.5 6.6-5 14 2.9 19.9 7.9 5.8 72.1-48.1 72.1-48.1s-24 24.4-24 36.1c0 5.1 44.1 53.8 60.1 53.8s60.1-48.7 60.1-53.8c0-11.7-24-36.1-24-36.1s64.2 53.9 72.1 48.1 11.4-19.3 2.8-19.9c-28-1.8-29.7-24.9-38.9-40.2-9.2-15.3-24-24-24-24s20.6 8.1 40.8 0S476.7 63 476.7 63c7.2-11.2 2.3-17.7-10.6-14.6z"})),a.createElement("path",{fill:"#FFF",stroke:"#231F20",strokeMiterlimit:10,d:"M201.3 111.8v80.3c0 45.7 59.7 59.7 59.7 59.7s59.7-14 59.7-59.7v-80.3H201.3z"}),a.createElement("path",{d:"M225.2 137.7V235c8.2 6 17 10.2 23.9 12.9V137.7h-23.9zm71.6 0V235c-8.2 6-17 10.2-23.9 12.9V137.7h23.9z",fill:"#D80027"}),a.createElement("path",{fill:"#0052B4",d:"M201.3 111.8h119.4v37.9H201.3z"}),a.createElement("path",{fill:"#1583C4",d:"m60.1 210.5-21.9-58.1H15.7l31.8 80.8h25.2l31.5-80.8H81.7zm391.4-58.6h18.9v81.7h-18.9z"}))},VN:function(e){var t=e.title,l=af(e,al);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M196.641 85.337H0v341.326h512V85.337z"}),a.createElement("path",{fill:"#FFDA44",d:"m256 157.279 22.663 69.747H352l-59.332 43.106 22.664 69.749L256 296.774l-59.332 43.107 22.664-69.749L160 227.026h73.337z"}))},VU:function(e){var t=e.title,l=af(e,aa);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#6DA544",d:"M512 256v170.663H0L215.185 256z"}),a.createElement("path",{fill:"#D80027",d:"M512 85.337V256H215.185L0 85.337z"}),a.createElement("path",{d:"M221.001 239.304 26.868 85.337H8.956l208.168 165.098H512v-11.131zM8.956 426.663h17.912l194.133-153.967H512v-11.131H217.124zM0 92.44v14.206L188.317 256 0 405.354v14.205L206.229 256z"}),a.createElement("g",{fill:"#FFDA44"},a.createElement("path",{d:"M8.956 85.337H0v7.103L206.229 256 0 419.559v7.104h8.956l208.168-165.098H512v-11.13H217.124z"}),a.createElement("path",{d:"M63.718 292.382v-14.295c14.265 0 25.87-11.606 25.87-25.869 0-10.092-8.211-18.303-18.304-18.303-6.875 0-12.469 5.593-12.469 12.469 0 4.397 3.577 7.974 7.974 7.974a4.514 4.514 0 0 0 4.508-4.508h14.295c0 10.368-8.435 18.804-18.802 18.804-12.279-.002-22.269-9.993-22.269-22.271 0-14.758 12.006-26.764 26.764-26.764 17.975 0 32.599 14.623 32.599 32.599 0 22.145-18.018 40.164-40.166 40.164z"})))},WF:function(e){var t=e.title,l=af(e,ac);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80B30",d:"M0 0h150v100H0z"}),a.createElement("path",{fill:"#00318A",d:"M0 0h20v44.33H0z"}),a.createElement("path",{fill:"#FFF",d:"M20 0h20v44.33H20z"}),a.createElement("path",{fill:"none",stroke:"#FFF",strokeWidth:3,d:"M0 44.33h62.75V0"}),a.createElement("path",{fill:"#FFF",d:"M108.08 43.29 87.96 23.17h40.25l-20.13 20.12zm-6.7 6.71L81.25 29.88v40.25L101.38 50zm6.7 6.71L87.96 76.83h40.25l-20.13-20.12zm6.71-6.71 20.13-20.13v40.25L114.79 50z"}))},WS:function(e){var t=e.title,l=af(e,ar);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#0052B4",d:"M0 85.331h256v170.663H0z"}),a.createElement("path",{d:"m165.483 181.79 2.764 8.504h8.939l-7.232 5.254 2.763 8.503-7.234-5.255-7.233 5.255 2.763-8.503-7.233-5.254h8.94zm-44.904-66.783 4.606 14.173h14.9l-12.055 8.757 4.605 14.171-12.056-8.758-12.054 8.758 4.605-14.171-12.056-8.757h14.901zm44.522 14.841 4.606 14.172h14.9l-12.055 8.757 4.604 14.173-12.055-8.76-12.054 8.76 4.604-14.173-12.055-8.757h14.9zm-35.192 59.363 4.606 14.172h14.9l-12.055 8.758 4.604 14.171-12.055-8.759-12.054 8.759 4.604-14.171-12.055-8.758h14.9zm-39.01-37.103 4.605 14.173h14.9l-12.055 8.757 4.604 14.173-12.054-8.76-12.055 8.76 4.604-14.173-12.055-8.757h14.9z",fill:"#FFF"}))},XK:function(e){var t=e.title,l=af(e,ah);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.33"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.34H0z"}),a.createElement("path",{d:"m220.72 42.63 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.36-15.9 8.36 3.03-17.7-12.86-12.54 17.78-2.58zm70.56-.06 7.95 16.1 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59zm62.08 11.36 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.87-12.54 17.78-2.58zm63.01 18.3 7.95 16.11 17.77 2.59-12.86 12.53 3.04 17.71-15.9-8.36-15.9 8.36 3.03-17.71-12.86-12.53 17.78-2.59zm-257.73-18.3 7.95 16.11 17.78 2.58-12.87 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.86-12.54 17.77-2.58zm-63.01 18.3 7.95 16.11 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59z",fill:"#FFF"}),a.createElement("path",{fill:"#FFDA44",d:"m217.53 259.33-27.22-13.61-27.22-54.43h27.22l27.22-27.22 13.61-27.22 27.22-13.61 13.61 13.61 27.22 13.61v13.61l13.61 13.61 40.83 27.22L340 245.73l-40.83 40.83-13.61-27.22-40.83 27.22v27.22l-13.61-13.61-13.59-40.84z"}))},YE:function(e){var t=e.title,l=af(e,an);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),a.createElement("path",{d:"M0 312.888h512v113.775H0z"}))},YT:function(e){var t=e.title,l=af(e,am);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 0h90v60H0z"}),a.createElement("path",{stroke:"#7f7f7f",strokeWidth:.25,fill:"#ABABAB",d:"M75.6 39.6c-1.1.7 0 1.8-.6 1.9-.6.1-1.5-1.4-.2-2.5 1.6-1.5 5.8 0 5.9 4.3 0 2.2-.9 6.8-7.2 6.8-7.6 0-11.4-5.7-11.4-11.4 0-4.8 3.7-13.5 6.5-14.6 3.1-1.2 6.7-3.5 6.8-5 0-.5-1.4-.1-3.3.9-3.1 1.7-6.6 2.5-6.6 1.4s2.9-3.1 4-4.6c1.2-1.6.9-5.5 3-5.5 7.6 0 9.9 7.7 7 11.7-1.9 2.6 4.3 1 4.3 1s0 5.3-3.2 7.3c-3 1.8-4.8 3.9-4.8 3.9s.2-4.6-.5-3.9c-.6.7-11.1 4.5-10.3 12 .3 3 4.5 5.4 8.5 5.2s5.7-2.4 5.8-4.9c.1-3.9-3-4.4-3.7-4zm-64.9 4c.1 2.5 1.8 4.7 5.8 4.9s8.2-2.2 8.5-5.2c.8-7.5-9.7-11.3-10.3-12-.7-.7-.5 3.9-.5 3.9s-1.8-2.1-4.8-3.9c-3.2-2-3.2-7.3-3.2-7.3s6.2 1.6 4.3-1c-2.9-4-.6-11.7 7-11.7 2.1 0 1.8 3.9 3 5.5 1.1 1.5 4 3.5 4 4.6s-3.5.3-6.6-1.4c-1.9-1-3.3-1.4-3.3-.9.1 1.5 3.7 3.8 6.8 5 2.8 1.1 6.5 9.8 6.5 14.6 0 5.7-3.8 11.4-11.4 11.4-6.3 0-7.2-4.6-7.2-6.8.1-4.3 4.3-5.8 5.9-4.3 1.2 1.1.4 2.7-.2 2.5-.6-.1.6-1.2-.6-1.9-.6-.4-3.7.1-3.7 4z"}),a.createElement("path",{fill:"#DE393A",d:"M31 28.8v14c0 1.9 2.1 1.6 2.1 1.6h9.3c1.2 0 2.6 2.3 2.6 2.3s1.4-2.3 2.5-2.3h9.6s2 .2 2-1.8V28.7H31z"}),a.createElement("path",{fill:"#3951A3",d:"M31 13.1h28v15.7H31z"}),a.createElement("path",{fill:"#FFF",d:"M50.1 16.5c-.4 2.4-2.5 4.2-5.1 4.2-2.5 0-4.6-1.8-5.1-4.2-.5.9-.8 1.9-.8 3 0 3.3 2.6 5.9 5.9 5.9 3.3 0 5.9-2.6 5.9-5.9 0-1.1-.3-2.1-.8-3z"}),a.createElement("circle",{fill:"#FEE05F",cx:39.1,cy:36.5,r:3}),a.createElement("circle",{fill:"#FEE05F",cx:50.9,cy:36.5,r:3}))},ZA:function(e){var t=e.title,l=af(e,ai);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),a.createElement("path",{d:"M114.024 256.001 0 141.926v228.17z"}),a.createElement("path",{fill:"#ffb915",d:"M161.192 256 0 94.7v47.226l114.024 114.075L0 370.096v47.138z"}),a.createElement("path",{fill:"#007847",d:"M509.833 289.391c.058-.44.804-.878 2.167-1.318v-65.464H222.602L85.33 85.337H0V94.7L161.192 256 0 417.234v9.429h85.33l137.272-137.272h287.231z"}),a.createElement("path",{fill:"#000c8a",d:"M503.181 322.783H236.433l-103.881 103.88H512v-103.88z"}),a.createElement("path",{fill:"#e1392d",d:"M503.181 189.217H512V85.337H132.552l103.881 103.88z"}))},ZM:function(e){var t=e.title,l=af(e,av);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{fill:"#496E2D",d:"M0 85.331h512v341.337H0z"}),a.createElement("path",{fill:"#FF9811",d:"M490.668 195.476h-48c0-8.836-7.164-16-16-16s-16 7.164-16 16h-48c0 8.836 7.697 16 16.533 16h-.533c0 8.836 7.162 16 16 16 0 8.836 7.162 16 16 16h32c8.836 0 16-7.164 16-16 8.836 0 16-7.164 16-16h-.533c8.837 0 16.533-7.164 16.533-16z"}),a.createElement("path",{fill:"#D80027",d:"M341.337 255.994h56.888v170.663h-56.888z"}),a.createElement("path",{fill:"#FF9811",d:"M455.112 255.994H512v170.663h-56.888z"}),a.createElement("path",{d:"M398.225 255.994h56.888v170.663h-56.888z"}))},ZW:function(e){var t=e.title,l=af(e,aE);return a.createElement("svg",az({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},l),t&&a.createElement("title",null,t),a.createElement("path",{d:"M0 85.333h512V426.67H0z"}),a.createElement("path",{d:"M0 134.196h512v48.868H0zm0 195.472h512v48.868H0z",fill:"#FFDA44"}),a.createElement("path",{fill:"#057f44",d:"M0 85.333h512v48.868H0z"}),a.createElement("path",{d:"M0 183.069h512v48.868H0zm0 97.737h512v48.868H0z",fill:"#D80027"}),a.createElement("path",{fill:"#057f44",d:"M0 378.542h512v48.128H0z"}),a.createElement("path",{fill:"#FFF",d:"M276.992 255.996 106.329 426.659H0V85.333h106.329z"}),a.createElement("path",{d:"M256 255.996 85.334 426.662h20.987l170.667-170.666L106.321 85.33H85.334z"}),a.createElement("path",{fill:"#D80027",d:"m102.465 202.57 13.259 40.812h42.917l-34.718 25.226 13.26 40.814-34.718-25.224-34.72 25.224 13.262-40.814-34.718-25.226h42.915z"}),a.createElement("path",{fill:"#FFDA44",d:"m138.94 259.335-34.559-12.243s-2.553-23.955-2.708-24.766c-1.173-6.18-6.603-10.851-13.123-10.851-7.376 0-13.357 5.98-13.357 13.357 0 1.223.178 2.402.486 3.528l-9.689 9.755h17.229c0 17.882-13.344 17.882-13.344 35.691l7.402 17.809h44.522l7.422-17.809h-.004a17.782 17.782 0 0 0 1.381-5.231c6.397-2.589 8.342-9.24 8.342-9.24z"}))}}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0e5ce63c-2ce3ef687d86baae.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0e5ce63c-2ce3ef687d86baae.js deleted file mode 100644 index 8990100..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0e5ce63c-2ce3ef687d86baae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5105],{87365:(e,C,l)=>{l.d(C,{$p$:()=>H,A60:()=>n,D3D:()=>a,ERf:()=>Z,MKb:()=>m,Mtm:()=>g,RiX:()=>E,Srz:()=>w,TBE:()=>f,flY:()=>c,gLX:()=>j,rRK:()=>V,vKP:()=>u});var r=l(12115);function o(e,C){if(null==e)return{};var l,r,o={},t=Object.keys(e);for(r=0;r=0||(o[l]=e[l]);return o}var t=["color"],n=(0,r.forwardRef)(function(e,C){var l=e.color,n=o(e,t);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:C}),(0,r.createElement)("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),i=["color"],c=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,i);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),d=["color"],f=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,d);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),v=["color"],w=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,v);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),L=["color"],a=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,L);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),s=["color"],u=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,s);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),h=["color"],g=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,h);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),p=["color"],m=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,p);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),R=["color"],E=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,R);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:void 0===l?"currentColor":l}))}),M=["color"],Z=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,M);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),x=["color"],H=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,x);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),b=["color"],V=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,b);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),O=["color"],j=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,O);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1028-d49624a1d63e734e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1028-d49624a1d63e734e.js deleted file mode 100644 index 30ddad3..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1028-d49624a1d63e734e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1028],{76046:(e,t,n)=>{var r=n(66658);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},48173:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(60306),o=n(95155),u=r._(n(12115)),a=n(70180),l=n(71394),f=n(64116),i=n(4445),c=n(45353),s=n(12170),d=n(49544);function p(e,t,n){"undefined"!=typeof window&&(async()=>e.prefetch(t,n))().catch(e=>{})}function h(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}n(42363);let y=u.default.forwardRef(function(e,t){let n,r;let{href:a,as:y,children:g,prefetch:b=null,passHref:m,replace:P,shallow:_,scroll:v,onClick:E,onMouseEnter:j,onTouchStart:O,legacyBehavior:M=!1,...C}=e;n=g,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=u.default.useContext(l.AppRouterContext),w=!1!==b,I=null===b?i.PrefetchKind.AUTO:i.PrefetchKind.FULL,{href:x,as:R}=u.default.useMemo(()=>{let e=h(a);return{href:e,as:y?h(y):e}},[a,y]),S=u.default.useRef(x),T=u.default.useRef(R);M&&(r=u.default.Children.only(n));let N=M?r&&"object"==typeof r&&r.ref:t,[A,U,F]=(0,f.useIntersection)({rootMargin:"200px"}),L=u.default.useCallback(e=>{(T.current!==R||S.current!==x)&&(F(),T.current=R,S.current=x),A(e)},[R,x,F,A]),K=(0,c.useMergedRef)(L,N);u.default.useEffect(()=>{k&&U&&w&&p(k,x,{kind:I})},[R,x,U,w,k,I]);let q={ref:K,onClick(e){M||"function"!=typeof E||E(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),k&&!e.defaultPrevented&&function(e,t,n,r,o,a,l){let{nodeName:f}=e.currentTarget;"A"===f.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||(e.preventDefault(),u.default.startTransition(()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})}))}(e,k,x,R,P,_,v)},onMouseEnter(e){M||"function"!=typeof j||j(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),k&&w&&p(k,x,{kind:I})},onTouchStart:function(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),k&&w&&p(k,x,{kind:I})}};return(0,s.isAbsoluteUrl)(R)?q.href=R:M&&!m&&("a"!==r.type||"href"in r.props)||(q.href=(0,d.addBasePath)(R)),M?u.default.cloneElement(r,q):(0,o.jsx)("a",{...C,...q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68571:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64116:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return f}});let r=n(12115),o=n(68571),u="function"==typeof IntersectionObserver,a=new Map,l=[];function f(e){let{rootRef:t,rootMargin:n,disabled:f}=e,i=f||!u,[c,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(u){if(i||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:u}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),a.set(n,t),t}(n);return u.set(e,t),o.observe(e),function(){if(u.delete(e),o.unobserve(e),0===u.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>s(!0));return()=>(0,o.cancelIdleCallback)(e)}},[i,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{s(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45353:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let r=n(12115);function o(e,t){let n=(0,r.useRef)(()=>{}),o=(0,r.useRef)(()=>{});return(0,r.useMemo)(()=>e&&t?r=>{null===r?(n.current(),o.current()):(n.current=u(e,r),o.current=u(t,r))}:e||t,[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70180:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return u},formatWithValidation:function(){return l},urlObjectKeys:function(){return a}});let r=n(29955)._(n(54156)),o=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:n}=e,u=e.protocol||"",a=e.pathname||"",l=e.hash||"",f=e.query||"",i=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?i=t+e.host:n&&(i=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(i+=":"+e.port)),f&&"object"==typeof f&&(f=String(r.urlQueryToSearchParams(f)));let c=e.search||f&&"?"+f||"";return u&&!u.endsWith(":")&&(u+=":"),e.slashes||(!u||o.test(u))&&!1!==i?(i="//"+(i||""),a&&"/"!==a[0]&&(a="/"+a)):i||(i=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+u+i+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return u(e)}},54156:(e,t)=>{function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return u},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},12170:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return m},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return f},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return i},loadGetInitialProps:function(){return s},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return P}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),u=0;uo.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function i(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function s(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await s(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&i(n))return r;if(!r)throw Error('"'+f(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class b extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class m extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1048-02abb75f177dd0fa.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1048-02abb75f177dd0fa.js deleted file mode 100644 index ff82d1e..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1048-02abb75f177dd0fa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1048],{5565:(e,t,r)=>{r.d(t,{default:()=>i.a});var n=r(4146),i=r.n(n)},76046:(e,t,r)=>{var n=r(66658);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},87970:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let n=r(60306),i=r(29955),o=r(95155),a=i._(r(12115)),l=n._(r(47650)),u=n._(r(36107)),s=r(40666),d=r(41159),f=r(83621);r(42363);let c=r(63576),p=n._(r(65514)),m=r(45353),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function h(e,t,r,n,i,o,a){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:l,width:u,decoding:s,className:d,style:f,fetchPriority:c,placeholder:p,loading:g,unoptimized:y,fill:b,onLoadRef:_,onLoadingCompleteRef:w,setBlurComplete:j,setShowAltText:P,sizesInput:x,onLoad:S,onError:C,...O}=e,M=(0,a.useCallback)(e=>{e&&(C&&(e.src=e.src),e.complete&&h(e,p,_,w,j,y,x))},[r,p,_,w,j,C,y,x]),E=(0,m.useMergedRef)(t,M);return(0,o.jsx)("img",{...O,...v(c),loading:g,width:u,height:l,decoding:s,"data-nimg":b?"fill":"1",className:d,style:f,sizes:i,srcSet:n,src:r,ref:E,onLoad:e=>{h(e.currentTarget,p,_,w,j,y,x)},onError:e=>{P(!0),"empty"!==p&&j(!0),C&&C(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&l.default.preload?(l.default.preload(r.src,n),null):(0,o.jsx)(u.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(c.RouterContext),n=(0,a.useContext)(f.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=g||n||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:l,onLoadingComplete:u}=e,m=(0,a.useRef)(l);(0,a.useEffect)(()=>{m.current=l},[l]);let h=(0,a.useRef)(u);(0,a.useEffect)(()=>{h.current=u},[u]);let[v,_]=(0,a.useState)(!1),[w,j]=(0,a.useState)(!1),{props:P,meta:x}=(0,s.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:v,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...P,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:_,setShowAltText:j,sizesInput:e.sizes,ref:t}),x.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:P}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45353:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(12115);function i(e,t){let r=(0,n.useRef)(()=>{}),i=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>e&&t?n=>{null===n?(r.current(),i.current()):(r.current=o(e,n),i.current=o(t,n))}:e||t,[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53003:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(60306)._(r(12115)).default.createContext({})},675:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},40666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(42363);let n=r(35859),i=r(41159);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r;let l,u,s,{src:d,sizes:f,unoptimized:c=!1,priority:p=!1,loading:m,className:g,quality:h,width:v,height:y,fill:b=!1,style:_,overrideSrc:w,onLoad:j,onLoadingComplete:P,placeholder:x="empty",blurDataURL:S,fetchPriority:C,decoding:O="async",layout:M,objectFit:E,objectPosition:z,lazyBoundary:I,lazyRoot:R,...k}=e,{imgConf:A,showAltText:D,blurComplete:N,defaultLoader:T}=t,L=A||i.imageConfigDefault;if("allSizes"in L)l=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);l={...L,allSizes:e,deviceSizes:t}}if(void 0===T)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let G=k.loader||T;delete k.loader,delete k.srcSet;let U="__next_img_default"in G;if(U){if("custom"===l.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=G;G=t=>{let{config:r,...n}=t;return e(n)}}if(M){"fill"===M&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!f&&(f=t)}let F="",B=a(v),W=a(y);if((r=d)&&"object"==typeof r&&(o(r)||void 0!==r.src)){let e=o(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,s=e.blurHeight,S=S||e.blurDataURL,F=e.src,!b){if(B||W){if(B&&!W){let t=B/e.width;W=Math.round(e.height*t)}else if(!B&&W){let t=W/e.height;B=Math.round(e.width*t)}}else B=e.width,W=e.height}}let V=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:F)||d.startsWith("data:")||d.startsWith("blob:"))&&(c=!0,V=!1),l.unoptimized&&(c=!0),U&&!l.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(c=!0);let $=a(h),H=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:z}:{},D?{}:{color:"transparent"},_),q=N||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:W,blurWidth:u,blurHeight:s,blurDataURL:S||"",objectFit:H.objectFit})+'")':'url("'+x+'")',J=q?{backgroundSize:H.objectFit||"cover",backgroundPosition:H.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},X=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),d=u.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:u.map((e,n)=>l({config:t,src:r,quality:o,width:e})+" "+("w"===s?e:n+1)+s).join(", "),src:l({config:t,src:r,quality:o,width:u[d]})}}({config:l,src:d,unoptimized:c,width:B,quality:$,sizes:f,loader:G});return{props:{...k,loading:V?"lazy":m,fetchPriority:C,width:B,height:W,decoding:O,className:g,style:{...H,...J},sizes:X.sizes,srcSet:X.srcSet,src:w||X.src},meta:{unoptimized:c,priority:p,placeholder:x,fill:b}}}},36107:(e,t,r)=>{var n=r(2818);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return h},defaultHead:function(){return c}});let i=r(60306),o=r(29955),a=r(95155),l=o._(r(12115)),u=i._(r(8791)),s=r(53003),d=r(81147),f=r(675);function c(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(42363);let m=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(c(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=m.length;e{let i=e.key||t;if(n.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:i})})}let h=function(e){let{children:t}=e,r=(0,l.useContext)(s.AmpStateContext),n=(0,l.useContext)(d.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,f.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35859:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,l=n?40*n:t,u=i?40*i:r,s=l&&u?"viewBox='0 0 "+l+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+s+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(s?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},83621:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(60306)._(r(12115)),i=r(41159),o=n.default.createContext(i.imageConfigDefault)},41159:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},4146:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getImageProps:function(){return l}});let n=r(60306),i=r(40666),o=r(87970),a=n._(r(65514));function l(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=o.Image},65514:(e,t)=>{function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)+(r.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},63576:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(60306)._(r(12115)).default.createContext(null)},8791:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(12115),i="undefined"==typeof window,o=i?()=>{}:n.useLayoutEffect,a=i?()=>{}:n.useEffect;function l(e){let{headManager:t,reduceComponentsToState:r}=e;function l(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}if(i){var u;null==t||null==(u=t.mountedInstances)||u.add(e.children),l()}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},46195:(e,t,r)=>{r.d(t,{b:()=>l});var n=r(12115),i=r(23360),o=r(95155),a=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var l=a},23360:(e,t,r)=>{r.d(t,{hO:()=>u,sG:()=>l});var n=r(12115),i=r(47650),o=r(12317),a=r(95155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,o.TL)(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...o}=e,l=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(l,{...o,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function u(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1074-a3cc46aa8592f7b2.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1074-a3cc46aa8592f7b2.js new file mode 100644 index 0000000..f75d8ad --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1074-a3cc46aa8592f7b2.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1074],{4e3:function(t,e,r){var n;!function(o){"use strict";var i,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",s=c+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=f(1286742750677284.5),y={};function v(t,e){var r,n,o,i,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?E(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=s.length):(n=s,o=a,c=l.length),i>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=s.length)<0&&(i=c,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/1e7|0,l[i]%=1e7;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=o,u?E(e,p):e}function b(t,e,r){if(t!==~~t||tr)throw Error(l+t)}function m(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;et.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(o=t.d.length)?n:o;et.d[e]^this.s<0?1:-1;return n===o?0:n>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return g(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return E(g(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,r=this.constructor,n=r.precision,o=n+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(c+"NaN");if(this.s<1)throw Error(c+(this.s?"NaN":"-Infinity"));return this.eq(i)?new r(0):(u=!1,e=g(S(this,o),S(t,o),o),u=!0,E(e,n))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?A(this,t):v(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(c+"NaN");return this.s?(u=!1,e=g(this,t,0,1).times(t),u=!0,this.minus(e)):E(new r(this),n)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?v(this,t):A(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=O(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},y.squareRoot=y.sqrt=function(){var t,e,r,n,o,i,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(c+"NaN")}for(t=O(this),u=!1,0==(o=Math.sqrt(+this))||o==1/0?(((e=m(this.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new l(o.toString()),o=a=(r=l.precision)+3;;)if(n=(i=n).plus(g(this,i,a+2)).times(.5),m(i.d).slice(0,a)===(e=m(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(E(i,r+1,0),i.times(i).eq(this)){n=i;break}}else if("9999"!=e)break;a+=4}return u=!0,E(n,r)},y.times=y.mul=function(t){var e,r,n,o,i,a,c,l,s,f=this.constructor,p=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(l=p.length)<(s=h.length)&&(i=p,p=h,h=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)c=i[o]+h[n]*p[o-n-1]+e,i[o--]=c%1e7|0,e=c/1e7|0;i[o]=(i[o]+e)%1e7|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,u?E(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var r=this,n=r.constructor;return(r=new n(r),void 0===t)?r:(b(t,0,1e9),void 0===e?e=n.rounding:b(e,0,8),E(r,t+O(r)+1,e))},y.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=k(n,!0):(b(t,0,1e9),void 0===e?e=o.rounding:b(e,0,8),r=k(n=E(new o(n),t+1,e),!0,t+1)),r},y.toFixed=function(t,e){var r,n,o=this.constructor;return void 0===t?k(this):(b(t,0,1e9),void 0===e?e=o.rounding:b(e,0,8),r=k((n=E(new o(this),t+O(this)+1,e)).abs(),!1,t+O(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var t=this.constructor;return E(new t(this),O(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,r,n,o,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(i);if(!(s=new p(s)).s){if(t.s<1)throw Error(c+"Infinity");return s}if(s.eq(i))return s;if(n=p.precision,t.eq(i))return E(s,n);if(l=(e=t.e)>=(r=t.d.length-1),a=s.s,l){if((r=h<0?-h:h)<=0x1fffffffffffff){for(o=new p(i),e=Math.ceil(n/7+4),u=!1;r%2&&M((o=o.times(s)).d,e),0!==(r=f(r/2));)M((s=s.times(s)).d,e);return u=!0,t.s<0?new p(i).div(o):E(o,n)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,u=!1,o=t.times(S(s,n+12)),u=!0,(o=x(o)).s=a,o},y.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?(r=O(o),n=k(o,r<=i.toExpNeg||r>=i.toExpPos)):(b(t,1,1e9),void 0===e?e=i.rounding:b(e,0,8),r=O(o=E(new i(o),t,e)),n=k(o,t<=r||r<=i.toExpNeg,t)),n},y.toSignificantDigits=y.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(b(t,1,1e9),void 0===e?e=r.rounding:b(e,0,8)),E(new r(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=O(this),e=this.constructor;return k(this,t<=e.toExpNeg||t>=e.toExpPos)};var g=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;oe[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]1;)t.shift()}return function(n,o,i,a){var u,l,s,f,p,h,d,y,v,b,m,g,x,w,j,S,P,A,k=n.constructor,M=n.s==o.s?1:-1,_=n.d,T=o.d;if(!n.s)return new k(n);if(!o.s)throw Error(c+"Division by zero");for(s=0,l=n.e-o.e,P=T.length,j=_.length,y=(d=new k(M)).d=[];T[s]==(_[s]||0);)++s;if(T[s]>(_[s]||0)&&--l,(g=null==i?i=k.precision:a?i+(O(n)-O(o))+1:i)<0)return new k(0);if(g=g/7+2|0,s=0,1==P)for(f=0,T=T[0],g++;(s1&&(T=t(T,f),_=t(_,f),P=T.length,j=_.length),w=P,b=(v=_.slice(0,P)).length;b=1e7/2&&++S;do f=0,(u=e(T,v,P,b))<0?(m=v[0],P!=b&&(m=1e7*m+(v[1]||0)),(f=m/S|0)>1?(f>=1e7&&(f=1e7-1),h=(p=t(T,f)).length,b=v.length,1==(u=e(p,v,h,b))&&(f--,r(p,P16)throw Error(s+O(t));if(!t.s)return new h(i);for(null==e?(u=!1,c=d):c=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=o=new h(i),h.precision=c;;){if(n=E(n.times(t),c),r=r.times(++l),m((a=o.plus(g(n,r,c))).d).slice(0,c)===m(o.d).slice(0,c)){for(;f--;)o=E(o.times(o),c);return h.precision=d,null==e?(u=!0,E(o,d)):o}o=a}}function O(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function w(t,e,r){if(e>t.LN10.sd())throw u=!0,r&&(t.precision=r),Error(c+"LN10 precision limit exceeded");return E(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function S(t,e){var r,n,o,a,l,s,f,p,h,d=1,y=t,v=y.d,b=y.constructor,x=b.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new b(0);if(null==e?(u=!1,p=x):p=e,y.eq(10))return null==e&&(u=!0),w(b,p);if(p+=10,b.precision=p,n=(r=m(v)).charAt(0),!(15e14>Math.abs(a=O(y))))return f=w(b,p+2,x).times(a+""),y=S(new b(n+"."+r.slice(1)),p-10).plus(f),b.precision=x,null==e?(u=!0,E(y,x)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=m((y=y.times(t)).d)).charAt(0),d++;for(a=O(y),n>1?(y=new b("0."+r),a++):y=new b(n+"."+r.slice(1)),s=l=y=g(y.minus(i),y.plus(i),p),h=E(y.times(y),p),o=3;;){if(l=E(l.times(h),p),m((f=s.plus(g(l,new b(o),p))).d).slice(0,p)===m(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(w(b,p+2,x).times(a+""))),s=g(s,new b(d),p),b.precision=x,null==e?(u=!0,E(s,x)):s;s=f,o+=2}}function P(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=f(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),nd||t.e<-d))throw Error(s+r)}else t.s=0,t.e=0,t.d=[0];return t}function E(t,e,r){var n,o,i,a,c,l,h,y,v=t.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,h=v[y=0];else{if((y=Math.ceil((n+1)/7))>=(i=v.length))return t;for(a=1,h=i=v[y];i>=10;i/=10)a++;n%=7,o=n-7+a}if(void 0!==r&&(c=h/(i=p(10,a-o-1))%10|0,l=e<0||void 0!==v[y+1]||h%i,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?h/p(10,a-o):0:v[y-1])%10&1||r==(t.s<0?8:7))),e<1||!v[0])return l?(i=O(t),v.length=1,e=e-i-1,v[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==n?(v.length=y,i=1,y--):(v.length=y+1,i=p(10,7-n),v[y]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==y){1e7==(v[0]+=i)&&(v[0]=1,++t.e);break}if(v[y]+=i,1e7!=v[y])break;v[y--]=0,i=1}for(n=v.length;0===v[--n];)v.pop();if(u&&(t.e>d||t.e<-d))throw Error(s+O(t));return t}function A(t,e){var r,n,o,i,a,c,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?E(e,d):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,c=p.length):(r=p,n=s,c=l.length),a>(o=Math.max(Math.ceil(d/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(c=p.length))&&(c=o),o=0;o0;--o)l[c++]=0;for(o=p.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+j(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,r&&(n=r-a)>0&&(i+=j(n))):o>=a?(i+=j(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+j(n))):((n=o+1)0&&(o+1===a&&(i+="."),i+=j(n))),t.s<0?"-"+i:i}function M(t,e){if(t.length>e)return t.length=e,!0}function _(t){if(!t||"object"!=typeof t)throw Error(c+"Object expected");var e,r,n,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=o[e+1]&&n<=o[e+2])this[r]=n;else throw Error(l+r+": "+n)}if(void 0!==(n=t[r="LN10"])){if(n==Math.LN10)this[r]=new this(n);else throw Error(l+r+": "+n)}return this}(a=function t(e){var r,n,o;function i(t){if(!(this instanceof i))return new i(t);if(this.constructor=i,t instanceof i){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return P(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))P(this,t);else throw Error(l+t)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=_,void 0===e&&(e={}),e)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];r{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=Array(i);o{var n=r(2748)(r(74421),"DataView");t.exports=n},10801:(t,e,r)=>{var n=r(15066),o=r(15638),i=r(8183),a=r(59659),u=r(71619);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(64598),o=r(44602),i=r(54299),a=r(49911),u=r(17039);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(2748)(r(74421),"Map");t.exports=n},15933:(t,e,r)=>{var n=r(21470),o=r(9330),i=r(58963),a=r(735),u=r(20135);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(2748)(r(74421),"Promise");t.exports=n},46083:(t,e,r)=>{var n=r(2748)(r(74421),"Set");t.exports=n},93395:(t,e,r)=>{var n=r(15933),o=r(50350),i=r(81773);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e{var n=r(6965),o=r(85868),i=r(40036),a=r(88365),u=r(18913),c=r(40305);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=c,t.exports=l},35329:(t,e,r)=>{var n=r(74421).Symbol;t.exports=n},252:(t,e,r)=>{var n=r(74421).Uint8Array;t.exports=n},32901:(t,e,r)=>{var n=r(2748)(r(74421),"WeakMap");t.exports=n},46879:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},41129:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r{var n=r(26513);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},58515:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n{var n=r(76346),o=r(3108),i=r(55649),a=r(91050),u=r(86887),c=r(20897),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&c(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)(e||l.call(t,v))&&!(h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y)))&&d.push(v);return d}},3184:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t){return t.split("")}},42489:(t,e,r)=>{var n=r(93126);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},79514:(t,e,r)=>{var n=r(3779);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},30865:(t,e,r)=>{var n=r(16101),o=r(30433)(n);t.exports=o},41111:(t,e,r)=>{var n=r(30865);t.exports=function(t,e){var r=!0;return n(t,function(t,n,o){return r=!!e(t,n,o)}),r}},89691:(t,e,r)=>{var n=r(8700);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i{var n=r(82794),o=r(70713);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},82783:(t,e,r)=>{var n=r(72463)();t.exports=n},16101:(t,e,r)=>{var n=r(82783),o=r(74092);t.exports=function(t,e){return t&&n(t,e,o)}},58180:(t,e,r)=>{var n=r(81881),o=r(26767);t.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r{var n=r(82794),o=r(55649);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},89212:(t,e,r)=>{var n=r(35329),o=r(71957),i=r(19914),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},57991:t=>{t.exports=function(t,e){return t>e}},11971:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},26513:(t,e,r)=>{var n=r(73461),o=r(57201),i=r(38225);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},71940:(t,e,r)=>{var n=r(89212),o=r(22964);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},86696:(t,e,r)=>{var n=r(59578),o=r(22964);t.exports=function t(e,r,i,a,u){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,a,t,u):e!=e&&r!=r)}},59578:(t,e,r)=>{var n=r(62863),o=r(9617),i=r(24366),a=r(89589),u=r(30393),c=r(55649),l=r(91050),s=r(20897),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,b){var m=c(t),g=c(e),x=m?p:u(t),O=g?p:u(e);x=x==f?h:x,O=O==f?h:O;var w=x==h,j=O==h,S=x==O;if(S&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(S&&!w)return b||(b=new n),m||s(t)?o(t,e,r,y,v,b):i(t,e,x,r,y,v,b);if(!(1&r)){var P=w&&d.call(t,"__wrapped__"),E=j&&d.call(e,"__wrapped__");if(P||E){var A=P?t.value():t,k=E?e.value():e;return b||(b=new n),v(A,k,r,y,b)}}return!!S&&(b||(b=new n),a(t,e,r,y,v,b))}},12657:(t,e,r)=>{var n=r(62863),o=r(86696);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a{t.exports=function(t){return t!=t}},75895:(t,e,r)=>{var n=r(14632),o=r(51164),i=r(50683),a=r(81745),u=/^\[object .+?Constructor\]$/,c=Object.prototype,l=Function.prototype.toString,s=c.hasOwnProperty,f=RegExp("^"+l.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:u).test(a(t))}},80193:(t,e,r)=>{var n=r(89212),o=r(40312),i=r(22964),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},15717:(t,e,r)=>{var n=r(30197),o=r(23536),i=r(2586),a=r(55649),u=r(84169);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},70636:(t,e,r)=>{var n=r(44329),o=r(55410),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},49064:t=>{t.exports=function(t,e){return t{var n=r(30865),o=r(74934);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,function(t,n,o){i[++r]=e(t,n,o)}),i}},30197:(t,e,r)=>{var n=r(12657),o=r(24304),i=r(48939);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},23536:(t,e,r)=>{var n=r(86696),o=r(32292),i=r(60419),a=r(26192),u=r(29604),c=r(48939),l=r(26767);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},20789:(t,e,r)=>{var n=r(3184),o=r(58180),i=r(15717),a=r(13134),u=r(69197),c=r(82451),l=r(38688),s=r(2586),f=r(55649);t.exports=function(t,e,r){e=e.length?n(e,function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t}):[s];var p=-1;return e=n(e,c(i)),u(a(t,function(t,r,o){return{criteria:n(e,function(e){return e(t)}),index:++p,value:t}}),function(t,e){return l(t,e,r)})}},61097:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},37487:(t,e,r)=>{var n=r(58180);t.exports=function(t){return function(e){return n(e,t)}}},87817:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,u=r(e((n-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},4090:(t,e,r)=>{var n=r(2586),o=r(58353),i=r(69595);t.exports=function(t,e){return i(o(t,e,n),t+"")}},15344:(t,e,r)=>{var n=r(73928),o=r(3779),i=r(2586),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},13850:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n{var n=r(30865);t.exports=function(t,e){var r;return n(t,function(t,n,o){return!(r=e(t,n,o))}),!!r}},69197:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},76346:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{var n=r(35329),o=r(3184),i=r(55649),a=r(8700),u=1/0,c=n?n.prototype:void 0,l=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return l?l.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},95680:(t,e,r)=>{var n=r(53434),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},82451:t=>{t.exports=function(t){return function(e){return t(e)}}},26349:(t,e,r)=>{var n=r(93395),o=r(24919),i=r(58515),a=r(25327),u=r(82483),c=r(11671);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l{t.exports=function(t,e){return t.has(e)}},81881:(t,e,r)=>{var n=r(55649),o=r(26192),i=r(80314),a=r(55656);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},35e3:(t,e,r)=>{var n=r(13850);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},13410:(t,e,r)=>{var n=r(8700);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,c=null===e,l=e==e,s=n(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t{var n=r(13410);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=r.length;++o=c)return l;return l*("desc"==r[o]?-1:1)}}return t.index-e.index}},13325:(t,e,r)=>{var n=r(74421)["__core-js_shared__"];t.exports=n},30433:(t,e,r)=>{var n=r(74934);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},78265:(t,e,r)=>{var n=r(35e3),o=r(68018),i=r(74662),a=r(55656);t.exports=function(t){return function(e){var r=o(e=a(e))?i(e):void 0,u=r?r[0]:e.charAt(0),c=r?n(r,1).join(""):e.slice(1);return u[t]()+c}}},4598:(t,e,r)=>{var n=r(15717),o=r(74934),i=r(74092);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},61102:(t,e,r)=>{var n=r(87817),o=r(91276),i=r(54962);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e{var n=r(46083),o=r(27964),i=r(11671),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},3779:(t,e,r)=>{var n=r(2748),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},9617:(t,e,r)=>{var n=r(93395),o=r(89686),i=r(25327);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++d{var n=r(35329),o=r(252),i=r(93126),a=r(9617),u=r(49773),c=r(11671),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=u;case"[object Set]":var d=1&n;if(h||(h=c),t.size!=e.size&&!d)break;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},89589:(t,e,r)=>{var n=r(97038),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},97038:(t,e,r)=>{var n=r(50963),o=r(20768),i=r(74092);t.exports=function(t){return n(t,i,o)}},7819:(t,e,r)=>{var n=r(11884);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},24304:(t,e,r)=>{var n=r(29604),o=r(74092);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},2748:(t,e,r)=>{var n=r(75895),o=r(13372);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},95459:(t,e,r)=>{var n=r(76945)(Object.getPrototypeOf,Object);t.exports=n},71957:(t,e,r)=>{var n=r(35329),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},20768:(t,e,r)=>{var n=r(11588),o=r(25297),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:n(a(t=Object(t)),function(e){return i.call(t,e)})}:o;t.exports=u},30393:(t,e,r)=>{var n=r(19120),o=r(46817),i=r(14006),a=r(46083),u=r(32901),c=r(89212),l=r(81745),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),b=l(i),m=l(a),g=l(u),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=h)&&(x=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case b:return f;case m:return p;case g:return h}return e}),t.exports=x},13372:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},4012:(t,e,r)=>{var n=r(81881),o=r(3108),i=r(55649),a=r(86887),u=r(40312),c=r(26767);t.exports=function(t,e,r){e=n(e,t);for(var l=-1,s=e.length,f=!1;++l{var e=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},15066:(t,e,r)=>{var n=r(3474);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},15638:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},8183:(t,e,r)=>{var n=r(3474),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},59659:(t,e,r)=>{var n=r(3474),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},71619:(t,e,r)=>{var n=r(3474);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},70713:(t,e,r)=>{var n=r(35329),o=r(3108),i=r(55649),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},86887:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{var n=r(93126),o=r(74934),i=r(86887),a=r(50683);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return("number"==u?!!(o(r)&&i(e,r.length)):"string"==u&&e in r)&&n(r[e],t)}},26192:(t,e,r)=>{var n=r(55649),o=r(8700),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},11884:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},51164:(t,e,r)=>{var n=r(13325),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},44329:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},29604:(t,e,r)=>{var n=r(50683);t.exports=function(t){return t==t&&!n(t)}},64598:t=>{t.exports=function(){this.__data__=[],this.size=0}},44602:(t,e,r)=>{var n=r(42489),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},54299:(t,e,r)=>{var n=r(42489);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},49911:(t,e,r)=>{var n=r(42489);t.exports=function(t){return n(this.__data__,t)>-1}},17039:(t,e,r)=>{var n=r(42489);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},21470:(t,e,r)=>{var n=r(10801),o=r(6965),i=r(46817);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},9330:(t,e,r)=>{var n=r(7819);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},58963:(t,e,r)=>{var n=r(7819);t.exports=function(t){return n(this,t).get(t)}},735:(t,e,r)=>{var n=r(7819);t.exports=function(t){return n(this,t).has(t)}},20135:(t,e,r)=>{var n=r(7819);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},49773:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},48939:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},73646:(t,e,r)=>{var n=r(80480);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},3474:(t,e,r)=>{var n=r(2748)(Object,"create");t.exports=n},55410:(t,e,r)=>{var n=r(76945)(Object.keys,Object);t.exports=n},3469:(t,e,r)=>{t=r.nmd(t);var n=r(54956),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},19914:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},76945:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},58353:(t,e,r)=>{var n=r(46879),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a{var n=r(54956),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},50350:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},81773:t=>{t.exports=function(t){return this.__data__.has(t)}},11671:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},69595:(t,e,r)=>{var n=r(15344),o=r(64559)(n);t.exports=o},64559:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},85868:(t,e,r)=>{var n=r(6965);t.exports=function(){this.__data__=new n,this.size=0}},40036:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},88365:t=>{t.exports=function(t){return this.__data__.get(t)}},18913:t=>{t.exports=function(t){return this.__data__.has(t)}},40305:(t,e,r)=>{var n=r(6965),o=r(46817),i=r(15933);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},38225:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n{var n=r(13706),o=r(68018),i=r(60342);t.exports=function(t){return o(t)?i(t):n(t)}},80314:(t,e,r)=>{var n=r(73646),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e});t.exports=a},26767:(t,e,r)=>{var n=r(8700),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},81745:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},53434:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},60342:t=>{var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",o="[^"+e+"]",i="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+r+"|"+n+")?",c="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[o,i,a].join("|")+")"+c+u+")*",s=RegExp(n+"(?="+n+")|(?:"+[o+r+"?",r,i,a,"["+e+"]"].join("|")+")"+(c+u+l),"g");t.exports=function(t){return t.match(s)||[]}},73928:t=>{t.exports=function(t){return function(){return t}}},59243:(t,e,r)=>{var n=r(50683),o=r(92816),i=r(82524),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,h,d=0,y=!1,v=!1,b=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,d=e,f=t.apply(n,r)}function g(t){var r=t-h,n=t-d;return void 0===h||r>=e||r<0||v&&n>=s}function x(){var t,r,n,i=o();if(g(i))return O(i);p=setTimeout(x,(t=i-h,r=i-d,n=e-t,v?u(n,s-r):n))}function O(t){return(p=void 0,b&&c)?m(t):(c=l=void 0,f)}function w(){var t,r=o(),n=g(r);if(c=arguments,l=this,h=r,n){if(void 0===p)return d=t=h,p=setTimeout(x,e),y?m(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),m(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},w.flush=function(){return void 0===p?f:O(o())},w}},93126:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},83191:(t,e,r)=>{var n=r(41129),o=r(41111),i=r(15717),a=r(55649),u=r(91276);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(t,i(e,3))}},1339:(t,e,r)=>{var n=r(4598)(r(17621));t.exports=n},17621:(t,e,r)=>{var n=r(73461),o=r(15717),i=r(41265),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return -1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},14607:(t,e,r)=>{var n=r(85646),o=r(18190);t.exports=function(t,e){return n(o(t,e),1)}},32292:(t,e,r)=>{var n=r(58180);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},60419:(t,e,r)=>{var n=r(11971),o=r(4012);t.exports=function(t,e){return null!=t&&o(t,e,n)}},2586:t=>{t.exports=function(t){return t}},3108:(t,e,r)=>{var n=r(71940),o=r(22964),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},55649:t=>{var e=Array.isArray;t.exports=e},74934:(t,e,r)=>{var n=r(14632),o=r(40312);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},46420:(t,e,r)=>{var n=r(89212),o=r(22964);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},91050:(t,e,r)=>{t=r.nmd(t);var n=r(74421),o=r(44731),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,c=u?u.isBuffer:void 0;t.exports=c||o},6440:(t,e,r)=>{var n=r(86696);t.exports=function(t,e){return n(t,e)}},14632:(t,e,r)=>{var n=r(89212),o=r(50683);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},40312:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},50801:(t,e,r)=>{var n=r(45493);t.exports=function(t){return n(t)&&t!=+t}},87107:t=>{t.exports=function(t){return null==t}},45493:(t,e,r)=>{var n=r(89212),o=r(22964);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},50683:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},22964:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},55519:(t,e,r)=>{var n=r(89212),o=r(95459),i=r(22964),a=Object.prototype,u=Function.prototype.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},24665:(t,e,r)=>{var n=r(89212),o=r(55649),i=r(22964);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},8700:(t,e,r)=>{var n=r(89212),o=r(22964);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},20897:(t,e,r)=>{var n=r(80193),o=r(82451),i=r(3469),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},74092:(t,e,r)=>{var n=r(4241),o=r(70636),i=r(74934);t.exports=function(t){return i(t)?n(t):o(t)}},21836:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},18190:(t,e,r)=>{var n=r(3184),o=r(15717),i=r(13134),a=r(55649);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},86992:(t,e,r)=>{var n=r(79514),o=r(16101),i=r(15717);t.exports=function(t,e){var r={};return e=i(e,3),o(t,function(t,o,i){n(r,o,e(t,o,i))}),r}},12838:(t,e,r)=>{var n=r(89691),o=r(57991),i=r(2586);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},80480:(t,e,r)=>{var n=r(15933);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},45652:(t,e,r)=>{var n=r(89691),o=r(49064),i=r(2586);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},27964:t=>{t.exports=function(){}},92816:(t,e,r)=>{var n=r(74421);t.exports=function(){return n.Date.now()}},84169:(t,e,r)=>{var n=r(61097),o=r(37487),i=r(26192),a=r(26767);t.exports=function(t){return i(t)?n(a(t)):o(t)}},4009:(t,e,r)=>{var n=r(61102)();t.exports=n},88448:(t,e,r)=>{var n=r(89686),o=r(15717),i=r(63872),a=r(55649),u=r(91276);t.exports=function(t,e,r){var c=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),c(t,o(e,3))}},67501:(t,e,r)=>{var n=r(85646),o=r(20789),i=r(4090),a=r(91276),u=i(function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])});t.exports=u},25297:t=>{t.exports=function(){return[]}},44731:t=>{t.exports=function(){return!1}},54636:(t,e,r)=>{var n=r(59243),o=r(50683);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},54962:(t,e,r)=>{var n=r(82524),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-o?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},41265:(t,e,r)=>{var n=r(54962);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},82524:(t,e,r)=>{var n=r(95680),o=r(50683),i=r(8700),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=c.test(t);return r||l.test(t)?s(t.slice(2),r?2:8):u.test(t)?a:+t}},55656:(t,e,r)=>{var n=r(51688);t.exports=function(t){return null==t?"":n(t)}},79948:(t,e,r)=>{var n=r(15717),o=r(26349);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},76158:(t,e,r)=>{var n=r(78265)("toUpperCase");t.exports=n},546:(t,e,r)=>{"use strict";var n=r(57213);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},83318:(t,e,r)=>{t.exports=r(546)()},57213:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55473:(t,e)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),e.vq=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.zv=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case o:case a:case i:case s:case f:return t;default:switch(t=t&&t.$$typeof){case c:case l:case h:case p:case u:return t;default:return e}}case n:return e}}}(t)===o}},61075:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>tZ});var n=r(20107),o=r(83318),i=r.n(o),a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty;function l(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function s(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var u=t(e,r,n);return o.delete(e),o.delete(r),u}}function f(t){return a(t).concat(u(t))}var p=Object.hasOwn||function(t,e){return c.call(t,e)};function h(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var d="_owner",y=Object.getOwnPropertyDescriptor,v=Object.keys;function b(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function m(t,e){return h(t.getTime(),e.getTime())}function g(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),u=0;(n=a.next())&&!n.done;){for(var c=e.entries(),l=!1,s=0;(o=c.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],d=o.value,y=d[0],v=d[1];!l&&!i[s]&&(l=r.equals(p,y,u,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))&&(i[s]=!0),s++}if(!l)return!1;u++}return!0}function x(t,e,r){var n,o=v(t),i=o.length;if(v(e).length!==i)return!1;for(;i-- >0;)if((n=o[i])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!p(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function O(t,e,r){var n,o,i,a=f(t),u=a.length;if(f(e).length!==u)return!1;for(;u-- >0;)if((n=a[u])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!p(e,n)||!r.equals(t[n],e[n],n,n,t,e,r)||(o=y(t,n),i=y(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function w(t,e){return h(t.valueOf(),e.valueOf())}function j(t,e){return t.source===e.source&&t.flags===e.flags}function S(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var u=e.values(),c=!1,l=0;(o=u.next())&&!o.done;)!c&&!i[l]&&(c=r.equals(n.value,o.value,n.value,o.value,t,e,r))&&(i[l]=!0),l++;if(!c)return!1}return!0}function P(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var E=Array.isArray,A="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,k=Object.assign,M=Object.prototype.toString.call.bind(Object.prototype.toString),_=T();function T(t){void 0===t&&(t={});var e,r,n,o,i,a,u,c,f,p=t.circular,h=t.createInternalComparator,d=t.createState,y=t.strict,v=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?O:b,areDatesEqual:m,areMapsEqual:n?l(g,O):g,areObjectsEqual:n?O:x,arePrimitiveWrappersEqual:w,areRegExpsEqual:j,areSetsEqual:n?l(S,O):S,areTypedArraysEqual:n?O:P};if(r&&(o=k({},o,r(o))),e){var i=s(o.areArraysEqual),a=s(o.areMapsEqual),u=s(o.areObjectsEqual),c=s(o.areSetsEqual);o=k({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return o}(t)).areArraysEqual,n=e.areDatesEqual,o=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,function(t,e,l){if(t===e)return!0;if(null==t||null==e||"object"!=typeof t||"object"!=typeof e)return t!=t&&e!=e;var s=t.constructor;if(s!==e.constructor)return!1;if(s===Object)return i(t,e,l);if(E(t))return r(t,e,l);if(null!=A&&A(t))return f(t,e,l);if(s===Date)return n(t,e,l);if(s===RegExp)return u(t,e,l);if(s===Map)return o(t,e,l);if(s===Set)return c(t,e,l);var p=M(t);return"[object Date]"===p?n(t,e,l):"[object RegExp]"===p?u(t,e,l):"[object Map]"===p?o(t,e,l):"[object Set]"===p?c(t,e,l):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof e.then&&i(t,e,l):"[object Arguments]"===p?i(t,e,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(t,e,l)}),_=h?h(v):function(t,e,r,n,o,i,a){return v(t,e,a)};return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var u=n(),c=u.cache;return r(t,a,{cache:void 0===c?e?new WeakMap:void 0:c,equals:o,meta:u.meta,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:void 0!==p&&p,comparator:v,createState:d,equals:_,strict:void 0!==y&&y})}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(o){if(r<0&&(r=o),o-r>e)t(o),r=-1;else{var i;i=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=V(i,u),h=V(a,c),d=(t=i,e=u,function(r){var n;return H([].concat(function(t){if(Array.isArray(t))return q(t)}(n=X(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||W(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o,i=p(r)-e,a=d(r);if(1e-4>Math.abs(i-e)||a<1e-4)break;r=(o=r-i/a)>1?1:o<0?0:o}return h(r)};return y.isStepper=!1,y},Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return 1e-4>Math.abs(u-e)&&1e-4>Math.abs(i)?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u},K=function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r0?r[o-1]:n,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(ts(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=$(p,i,u),d=th(th(th({},f.style),c),{},{transition:h});return[].concat(ts(t),[d,i,s]).filter(z)},[a,Math.max(void 0===u?0:u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){if(!this.manager){var e,r,n;this.manager=(e=function(){return null},r=!1,n=function t(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var o=function(t){if(Array.isArray(t))return t}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return D(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(t,void 0)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);if("number"==typeof i){C(t.bind(null,a),i);return}t(i),C(t.bind(null,a));return}"object"===I(n)&&e(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(t){r=!1,n(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}})}var o=t.begin,i=t.duration,a=t.attributeName,u=t.to,c=t.easing,l=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof p||"spring"===c){this.runJSAnimation(t);return}if(f.length>1){this.runStepAnimation(t);return}var d=a?td({},a,u):u,y=$(Object.keys(d),i,c);h.start([l,o,th(th({},d),{},{transition:y}),i,s])}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),o=(t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,tl)),a=n.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!o||0===a||r<=0)return e;var c=function(t){var e=t.props,r=e.style,o=e.className;return(0,n.cloneElement)(t,th(th({},i),{},{style:th(th({},void 0===r?{}:r),u),className:o}))};return 1===a?c(n.Children.only(e)):n.createElement("div",null,n.Children.map(e,function(t){return c(t)}))}}],function(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(r)?r:0},tK=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tq(t,e)}(i,t);var e,r,o=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=tH(i);return t=e?Reflect.construct(r,arguments,tH(this).constructor):r.apply(this,arguments),function(t,e){if(e&&("object"===tU(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return tX(t)}(this,t)});function i(){var t;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),tV(tX(t=o.call(this)),"handleEnter",function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)}),tV(tX(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(tW(tW({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return tY(e)+tY(r)+tY(n)}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,o=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,tz));return n.createElement(tR,t$({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return n.createElement(tx,t.state,n.Children.only(r))})}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{y:()=>U});var n=r(20107),o=r(64901),i=r(61075),a=r(6440),u=r.n(a),c=r(87107),l=r.n(c),s=r(37819),f=r(73678),p=function(t){return null};p.displayName="Cell";var h=r(58864),d=r(89952),y=r(61211),v=r(95392),b=r(95492),m=r(35956),g=r(45082),x=r(82372),O=["x","y"];function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,O),i=parseInt("".concat(r),10),a=parseInt("".concat(n),10),u=parseInt("".concat(e.height||o.height),10),c=parseInt("".concat(e.width||o.width),10);return P(P(P(P(P({},e),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:u,width:c,name:e.name,radius:e.radius})}function A(t){return n.createElement(x.yp,j({shapeType:"rectangle",propTransformer:E,activeClassName:"recharts-active-bar"},t))}var k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||(0,g.A)(!1),e)}},M=["value","background"];function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(){return(T=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,M);if(!u)return null;var l=I(I(I(I(I({},c),{},{fill:"#eee"},u),a),(0,m.XC)(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:o,index:r,className:"recharts-bar-background-rectangle"});return n.createElement(A,T({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,u=r.layout,c=r.children,l=(0,y.aS)(c,f.u);if(!l)return null;var p="vertical"===u?o[0].height/2:o[0].width/2,h=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:(0,b.kr)(t,e)}};return n.createElement(s.W,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return n.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:u,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,i=t.className,a=t.xAxis,u=t.yAxis,c=t.left,f=t.top,p=t.width,d=t.height,y=t.isAnimationActive,v=t.background,b=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,g=(0,o.A)("recharts-bar",i),x=a&&a.allowDataOverflow,O=u&&u.allowDataOverflow,w=x||O,j=l()(b)?this.id:b;return n.createElement(s.W,{className:g},x||O?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(j)},n.createElement("rect",{x:x?c:c-p/2,y:O?f:f-d/2,width:x?p:2*p,height:O?d:2*d}))):null,n.createElement(s.W,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(j,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,j),(!y||m)&&h.Z.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&D(a.prototype,e),r&&D(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);L(U,"displayName","Bar"),L(U,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!v.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),L(U,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,v=(0,b.xi)(n,r);if(!v)return null;var m=e.layout,g=r.type.defaultProps,x=void 0!==g?I(I({},g),r.props):r.props,O=x.dataKey,w=x.children,j=x.minPointSize,S="horizontal"===m?a:i,P=l?S.scale.domain():null,E=(0,b.DW)({numericAxis:S}),A=(0,y.aS)(w,p),M=f.map(function(t,e){l?f=(0,b._f)(l[s+e],P):Array.isArray(f=(0,b.kr)(t,O))||(f=[E,f]);var n=k(j,U.defaultProps.minPointSize)(f[1],e);if("horizontal"===m){var f,p,h,y,g,x,w,S=[a.scale(f[0]),a.scale(f[1])],M=S[0],_=S[1];p=(0,b.y2)({axis:i,ticks:u,bandSize:o,offset:v.offset,entry:t,index:e}),h=null!==(w=null!=_?_:M)&&void 0!==w?w:void 0,y=v.size;var T=M-_;if(g=Number.isNaN(T)?0:T,x={x:p,y:a.y,width:y,height:a.height},Math.abs(n)>0&&Math.abs(g)0&&Math.abs(y){"use strict";r.d(e,{u:()=>T});var n=r(20107),o=r(14632),i=r.n(o),a=r(32292),u=r.n(a),c=r(64901),l=r(45707),s=r(37819),f=r(77431),p=r(94348),h=r(89952),d=r(35956),y=r(61211),v=r(62882),b=["viewBox"],m=["viewBox"],g=["ticks"];function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function P(t,e){for(var r=0;r0?this.props:d)),o<=0||a<=0||!y||!y.length)?null:n.createElement(s.W,{className:(0,c.A)("recharts-cartesian-axis",l),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p.J.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,r){return n.isValidElement(t)?n.cloneElement(t,e):i()(t)?t(e):n.createElement(f.E,O({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],e&&P(o.prototype,e),r&&P(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.Component);M(T,"displayName","CartesianAxis"),M(T,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},73678:(t,e,r)=>{"use strict";r.d(e,{u:()=>v});var n=r(20107),o=r(45082),i=r(37819),a=r(61211),u=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),b=(0,a.J9)(v,!1);"x"===this.props.direction&&"number"!==d.type&&(0,o.A)(!1);var m=p.map(function(t){var o,a,u=h(t,f),p=u.x,v=u.y,m=u.value,g=u.errorVal;if(!g)return null;var x=[];if(Array.isArray(g)){var O=function(t){if(Array.isArray(t))return t}(g)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{for(i=(r=r.call(t)).next;!(c=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(g,2)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,2)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=O[0],a=O[1]}else o=a=g;if("vertical"===r){var w=d.scale,j=v+e,S=j+c,P=j-c,E=w(m-o),A=w(m+a);x.push({x1:A,y1:S,x2:A,y2:P}),x.push({x1:E,y1:j,x2:A,y2:j}),x.push({x1:E,y1:S,x2:E,y2:P})}else if("horizontal"===r){var k=y.scale,M=p+e,_=M-c,T=M+c,C=k(m-o),I=k(m+a);x.push({x1:_,y1:I,x2:T,y2:I}),x.push({x1:M,y1:C,x2:M,y2:I}),x.push({x1:_,y1:C,x2:T,y2:C})}return n.createElement(i.W,l({className:"recharts-errorBar",key:"bar-".concat(x.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},b),x.map(function(t){return n.createElement("line",l({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return n.createElement(i.W,{className:"recharts-errorBars"},m)}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{W:()=>v});var n=r(20107),o=r(64901),i=r(25161),a=r(67064),u=r(95492);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function d(){return(d=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{h:()=>v});var n=r(20107),o=r(64901),i=r(25161),a=r(67064),u=r(95492);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function d(){return(d=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{f:()=>d});var n=r(14632),o=r.n(n),i=r(89952),a=r(56594),u=r(95392),c=r(98456);function l(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;ot*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e=2?(0,i.sA)(b[1].coordinate-b[0].coordinate):1,M=(n="width"===P,f=m.x,p=m.y,d=m.width,y=m.height,1===k?{start:n?f:p,end:n?f+d:p+y}:{start:n?f+d:p+y,end:n?f:p});return"equidistantPreserveStart"===O?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),u=e.start,c=e.end,f=0,p=1,h=u;p<=a.length;)if(i=function(){var e,i=null==n?void 0:n[f];if(void 0===i)return{v:l(n,p)};var a=f,d=function(){return void 0===e&&(e=r(i,a)),e},y=i.coordinate,v=0===f||s(t,y,d,h,c);v||(f=0,h=u,p+=1),v&&(h=y+t*(d()/2+o),f+=p)}())return i.v;return[]}(k,M,A,b,g):("preserveStart"===O||"preserveStartEnd"===O?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,c=e.start,l=e.end;if(i){var f=n[u-1],p=r(f,u-1),d=t*(f.coordinate+t*p/2-l);a[u-1]=f=h(h({},f),{},{tickCoord:d>0?f.coordinate-d*t:f.coordinate}),s(t,f.tickCoord,function(){return p},c,l)&&(l=f.tickCoord-t*(p/2+o),a[u-1]=h(h({},f),{},{isShow:!0}))}for(var y=i?u-1:u,v=function(e){var n,i=a[e],u=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var f=t*(i.coordinate-t*u()/2-c);a[e]=i=h(h({},i),{},{tickCoord:f<0?i.coordinate-f*t:i.coordinate})}else a[e]=i=h(h({},i),{},{tickCoord:i.coordinate});s(t,i.tickCoord,u,c,l)&&(c=i.tickCoord+t*(u()/2+o),a[e]=h(h({},i),{},{isShow:!0}))},b=0;b0?l.coordinate-p*t:l.coordinate})}else i[e]=l=h(h({},l),{},{tickCoord:l.coordinate});s(t,l.tickCoord,f,u,c)&&(c=l.tickCoord-t*(f()/2+o),i[e]=h(h({},l),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return i}(k,M,A,b,g)).filter(function(t){return t.isShow})}},90805:(t,e,r)=>{"use strict";r.d(e,{gu:()=>eC});var n=r(20107),o=r(87107),i=r.n(o),a=r(14632),u=r.n(a),c=r(4009),l=r.n(c),s=r(32292),f=r.n(s),p=r(67501),h=r.n(p),d=r(54636),y=r.n(d),v=r(64901),b=r(45082),m=r(6701),g=r(37819),x=r(58601),O=r(58736),w=r(42555),j=r(2721),S=r(61211),P=r(63949),E=r(77431),A=r(95492),k=r(89952);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0&&e.handleDrag(t.changedTouches[0])}),W(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})}),e.detachDragEndListener()}),W(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),W(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),W(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),W(e,"handleSlideDragStart",function(t){var r=H(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(o,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,i=this.props,a=i.gap,u=i.data.length-1,c=Math.min(e,r),l=Math.max(e,r),s=o.getIndexInRange(n,c),f=o.getIndexInRange(n,l);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=(0,A.kr)(r[t],o,t);return u()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});(h.startIndex!==l||h.endIndex!==s)&&f&&f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=H(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[n]=a+y;var v=this.getIndex(d),b=v.startIndex,m=v.endIndex,g=function(){var t=h.length-1;return"startX"===n&&(o>i?b%p==0:m%p==0)||oi?m%p==0:b%p==0)||o>i&&m===t};this.setState(W(W({},n,a+y),"brushMoveStartX",t.pageX),function(){f&&g()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var l=c+t;if(-1!==l&&!(l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(W({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,o=t.width,i=t.height,a=t.fill,u=t.stroke;return n.createElement("rect",{stroke:u,fill:a,x:e,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,o=t.width,i=t.height,a=t.data,u=t.children,c=t.padding,l=n.Children.only(u);return l?n.cloneElement(l,{x:e,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var r,i,a=this,u=this.props,c=u.y,l=u.travellerWidth,s=u.height,f=u.traveller,p=u.ariaLabel,h=u.data,d=u.startIndex,y=u.endIndex,v=Math.max(t,this.props.x),b=L(L({},(0,S.J9)(this.props,!1)),{},{x:v,y:c,width:l,height:s}),m=p||"Min value: ".concat(null===(r=h[d])||void 0===r?void 0:r.name,", Max value: ").concat(null===(i=h[y])||void 0===i?void 0:i.name);return n.createElement(g.W,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},o.renderTraveller(f,b))}},{key:"renderSlide",value:function(t,e){var r=this.props,o=r.y,i=r.height,a=r.stroke,u=r.travellerWidth,c=Math.min(t,e)+u,l=Math.max(Math.abs(e-t)-u,0);return n.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,o=t.y,i=t.height,a=t.travellerWidth,u=t.stroke,c=this.state,l=c.startX,s=c.endX,f={pointerEvents:"none",fill:u};return n.createElement(g.W,{className:"recharts-brush-texts"},n.createElement(E.E,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(e)),n.createElement(E.E,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,o=t.children,i=t.x,a=t.y,u=t.width,c=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,d=s.isSlideMoving,y=s.isTravellerMoving,b=s.isTravellerFocused;if(!e||!e.length||!(0,k.Et)(i)||!(0,k.Et)(a)||!(0,k.Et)(u)||!(0,k.Et)(c)||u<=0||c<=0)return null;var m=(0,v.A)("recharts-brush",r),x=1===n.Children.count(o),O=D("userSelect","none");return n.createElement(g.W,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||y||b||l)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,o=t.width,i=t.height,a=t.stroke,u=Math.floor(r+i/2)-1;return n.createElement(n.Fragment,null,n.createElement("rect",{x:e,y:r,width:o,height:i,fill:a,stroke:"none"}),n.createElement("line",{x1:e+1,y1:u,x2:e+o-1,y2:u,fill:"none",stroke:"#fff"}),n.createElement("line",{x1:e+1,y1:u+2,x2:e+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return n.isValidElement(t)?n.cloneElement(t,e):u()(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return L({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?X({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,o=r-1;o-n>1;){var i=Math.floor((n+o)/2);t[i]>e?o=i:n=i}return e>=t[o]?o:n}}],e&&z(o.prototype,e),r&&z(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);W(V,"displayName","Brush"),W(V,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var G=r(56594),Y=r(20618),K=r(94348),J=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},Z=r(98456),Q=r(42228);function tt(){return(tt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,t0));return(0,k.Et)(r)&&(0,k.Et)(i)&&(0,k.Et)(f)&&(0,k.Et)(h)&&(0,k.Et)(u)&&(0,k.Et)(l)?n.createElement("path",t1({},(0,S.J9)(y,!0),{className:(0,v.A)("recharts-cross",d),d:"M".concat(r,",").concat(u,"v").concat(h,"M").concat(l,",").concat(i,"h").concat(f)})):null};function t3(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[(0,t$.IZ)(e,r,n,o),(0,t$.IZ)(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}var t6=r(3730);function t4(t){return(t4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function t8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function t9(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ea(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ea=function(){return!!t})()}function eu(t){return(eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ec(t,e){return(ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function el(t){return function(t){if(Array.isArray(t))return ef(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||es(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function es(t,e){if(t){if("string"==typeof t)return ef(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ef(t,e)}}function ef(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?i:t&&t.length&&(0,k.Et)(n)&&(0,k.Et)(o)?t.slice(n,o+1):[]};function ew(t){return"number"===t?[0,"auto"]:void 0}var ej=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=eO(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,u){var c,l,s=null!==(c=u.props.data)&&void 0!==c?c:e;if(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===s?a:s;l=(0,k.eP)(f,i.dataKey,n)}else l=s&&s[r]||a[r];return l?[].concat(el(o),[(0,A.zb)(u,l)]):o},[])},eS=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=(0,A.gH)(i,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=ej(t,e,l,s),p=ex(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},eP=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,a=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,f=t.layout,p=t.children,h=t.stackOffset,d=(0,A._L)(f,o);return r.reduce(function(e,r){var y=void 0!==r.type.defaultProps?eh(eh({},r.type.defaultProps),r.props):r.props,v=y.type,b=y.dataKey,m=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,w=y.includeHidden,j=y[a];if(e[j])return e;var S=eO(t.data,{graphicalItems:n.filter(function(t){var e;return(a in t.props?t.props[a]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[a])===j}),dataStartIndex:c,dataEndIndex:s}),P=S.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&(0,k.Et)(n)&&(0,k.Et)(o))return!0}return!1})(y.domain,m,v)&&(_=(0,A.AQ)(y.domain,null,m),d&&("number"===v||"auto"!==x)&&(C=(0,A.Ay)(S,b,"category")));var E=ew(v);if(!_||0===_.length){var M,_,T,C,I,D=null!==(I=y.domain)&&void 0!==I?I:E;if(b){if(_=(0,A.Ay)(S,b,v),"category"===v&&d){var N=(0,k.CG)(_);g&&N?(T=_,_=l()(0,P)):g||(_=(0,A.KC)(D,_,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(el(t),[e])},[]))}else if("category"===v)_=g?_.filter(function(t){return""!==t&&!i()(t)}):(0,A.KC)(D,_,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||i()(e)?t:[].concat(el(t),[e])},[]);else if("number"===v){var B=(0,A.A1)(S,n.filter(function(t){var e,r,n=a in t.props?t.props[a]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[a],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===j&&(w||!o)}),b,o,f);B&&(_=B)}d&&("number"===v||"auto"!==x)&&(C=(0,A.Ay)(S,b,"category"))}else _=d?l()(0,P):u&&u[j]&&u[j].hasStack&&"number"===v?"expand"===h?[0,1]:(0,A.Mk)(u[j].stackGroups,c,s):(0,A.vf)(S,n.filter(function(t){var e=a in t.props?t.props[a]:t.type.defaultProps[a],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===j&&(w||!r)}),v,f,!0);"number"===v?(_=tU(p,_,j,o,O),D&&(_=(0,A.AQ)(D,_,m))):"category"===v&&D&&_.every(function(t){return D.indexOf(t)>=0})&&(_=D)}return eh(eh({},e),{},ed({},j,eh(eh({},y),{},{axisType:o,domain:_,categoricalDomain:C,duplicateDomain:T,originalDomain:null!==(M=y.domain)&&void 0!==M?M:E,isCategorical:d,layout:f})))},{})},eE=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,p=t.children,h=eO(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),d=h.length,y=(0,A._L)(s,o),v=-1;return r.reduce(function(t,e){var b,m=(void 0!==e.type.defaultProps?eh(eh({},e.type.defaultProps),e.props):e.props)[i],g=ew("number");return t[m]?t:(v++,b=y?l()(0,d):a&&a[m]&&a[m].hasStack?tU(p,b=(0,A.Mk)(a[m].stackGroups,u,c),m,o):tU(p,b=(0,A.AQ)(g,(0,A.vf)(h,r.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===m&&!o}),"number",s),n.defaultProps.allowDataOverflow),m,o),eh(eh({},t),{},ed({},m,eh(eh({axisType:o},n.defaultProps),{},{hide:!0,orientation:f()(ev,"".concat(o,".").concat(v%2),null),domain:b,originalDomain:g,isCategorical:y,layout:s}))))},{})},eA=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=(0,S.aS)(l,o),p={};return f&&f.length?p=eP(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=eE(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},ek=function(t){var e=(0,k.lX)(t),r=(0,A.Rh)(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:h()(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,A.Hj)(e,r)}},eM=function(t){var e=t.children,r=t.defaultShowTooltip,n=(0,S.BU)(e,V),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!r}},e_=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},eT=function(t,e){var r=t.props,n=t.graphicalItems,o=t.xAxisMap,i=void 0===o?{}:o,a=t.yAxisMap,u=void 0===a?{}:a,c=r.width,l=r.height,s=r.children,p=r.margin||{},h=(0,S.BU)(s,V),d=(0,S.BU)(s,O.s),y=Object.keys(u).reduce(function(t,e){var r=u[e],n=r.orientation;return r.mirror||r.hide?t:eh(eh({},t),{},ed({},n,t[n]+r.width))},{left:p.left||0,right:p.right||0}),v=Object.keys(i).reduce(function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:eh(eh({},t),{},ed({},n,f()(t,"".concat(n))+r.height))},{top:p.top||0,bottom:p.bottom||0}),b=eh(eh({},v),y),m=b.bottom;h&&(b.bottom+=h.props.height||V.defaultProps.height),d&&e&&(b=(0,A.s0)(b,n,r,e));var g=c-b.left-b.right,x=l-b.top-b.bottom;return eh(eh({brushBottom:m},b),{},{width:Math.max(g,0),height:Math.max(x,0)})},eC=function(t){var e=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,a=void 0===o?"axis":o,c=t.validateTooltipEventTypes,l=void 0===c?["axis"]:c,s=t.axisComponents,p=t.legendContent,h=t.formatAxisMap,d=t.defaultProps,O=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,a=e.updateId,u=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,f=t.layout,p=t.barGap,h=t.barCategoryGap,d=t.maxBarSize,y=e_(f),v=y.numericAxisName,m=y.cateAxisName,g=!!r&&!!r.length&&r.some(function(t){var e=(0,S.Mn)(t&&t.type);return e&&e.indexOf("Bar")>=0}),x=[];return r.forEach(function(r,y){var O=eO(t.data,{graphicalItems:[r],dataStartIndex:u,dataEndIndex:c}),w=void 0!==r.type.defaultProps?eh(eh({},r.type.defaultProps),r.props):r.props,j=w.dataKey,P=w.maxBarSize,E=w["".concat(v,"Id")],k=w["".concat(m,"Id")],M=s.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],o=w["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||(0,b.A)(!1);var i=n[o];return eh(eh({},t),{},ed(ed({},r.axisType,i),"".concat(r.axisType,"Ticks"),(0,A.Rh)(i)))},{}),_=M[m],T=M["".concat(m,"Ticks")],C=n&&n[E]&&n[E].hasStack&&(0,A.kA)(r,n[E].stackGroups),I=(0,S.Mn)(r.type).indexOf("Bar")>=0,D=(0,A.Hj)(_,T),N=[],B=g&&(0,A.tA)({barSize:l,stackGroups:n,totalSize:"xAxis"===m?M[m].width:"yAxis"===m?M[m].height:void 0});if(I){var R,L,z=i()(P)?d:P,U=null!==(R=null!==(L=(0,A.Hj)(_,T,!0))&&void 0!==L?L:z)&&void 0!==R?R:0;N=(0,A.BX)({barGap:p,barCategoryGap:h,bandSize:U!==D?U:D,sizeList:B[k],maxBarSize:z}),U!==D&&(N=N.map(function(t){return eh(eh({},t),{},{position:eh(eh({},t.position),{},{offset:t.position.offset-U/2})})}))}var $=r&&r.type&&r.type.getComposedData;$&&x.push({props:eh(eh({},$(eh(eh({},M),{},{displayedData:O,props:t,dataKey:j,item:r,bandSize:D,barPosition:N,offset:o,stackedData:C,layout:f,dataStartIndex:u,dataEndIndex:c}))),{},ed(ed(ed({key:r.key||"item-".concat(y)},v,M[v]),m,M[m]),"animationId",a)),childIndex:(0,S.AW)(r,t.children),item:r})}),x},P=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!(0,S.Me)({props:o}))return null;var c=o.children,l=o.layout,f=o.stackOffset,p=o.data,d=o.reverseStackOrder,y=e_(l),v=y.numericAxisName,b=y.cateAxisName,m=(0,S.aS)(c,r),g=(0,A.Mn)(p,m,"".concat(v,"Id"),"".concat(b,"Id"),f,d),x=s.reduce(function(t,e){var r="".concat(e.axisType,"Map");return eh(eh({},t),{},ed({},r,eA(o,eh(eh({},e),{},{graphicalItems:m,stackGroups:e.axisType===v&&g,dataStartIndex:i,dataEndIndex:a}))))},{}),w=eT(eh(eh({},x),{},{props:o,graphicalItems:m}),null==n?void 0:n.legendBBox);Object.keys(x).forEach(function(t){x[t]=h(o,x[t],w,t.replace("Map",""),e)});var j=ek(x["".concat(b,"Map")]),P=O(o,eh(eh({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:m,stackGroups:g,offset:w}));return eh(eh({formattedGraphicalItems:P,graphicalItems:m,offset:w,stackGroups:g},j),x)},E=function(t){var r;function o(t){var r,a,c,l,s;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),l=o,s=[t],l=eu(l),ed(c=function(t,e){if(e&&("object"===er(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,ea()?Reflect.construct(l,s||[],eu(this).constructor):l.apply(this,s)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ed(c,"accessibilityManager",new tK),ed(c,"handleLegendBBoxUpdate",function(t){if(t){var e=c.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;c.setState(eh({legendBBox:t},P({props:c.props,dataStartIndex:r,dataEndIndex:n,updateId:o},eh(eh({},c.state),{},{legendBBox:t}))))}}),ed(c,"handleReceiveSyncEvent",function(t,e,r){c.props.syncId===t&&(r!==c.eventEmitterSymbol||"function"==typeof c.props.syncMethod)&&c.applySyncEvent(e)}),ed(c,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==c.state.dataStartIndex||r!==c.state.dataEndIndex){var n=c.state.updateId;c.setState(function(){return eh({dataStartIndex:e,dataEndIndex:r},P({props:c.props,dataStartIndex:e,dataEndIndex:r,updateId:n},c.state))}),c.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),ed(c,"handleMouseEnter",function(t){var e=c.getMouseInfo(t);if(e){var r=eh(eh({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseEnter;u()(n)&&n(r,t)}}),ed(c,"triggeredAfterMouseMove",function(t){var e=c.getMouseInfo(t),r=e?eh(eh({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseMove;u()(n)&&n(r,t)}),ed(c,"handleItemMouseEnter",function(t){c.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),ed(c,"handleItemMouseLeave",function(){c.setState(function(){return{isTooltipActive:!1}})}),ed(c,"handleMouseMove",function(t){t.persist(),c.throttleTriggeredAfterMouseMove(t)}),ed(c,"handleMouseLeave",function(t){c.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};c.setState(e),c.triggerSyncEvent(e);var r=c.props.onMouseLeave;u()(r)&&r(e,t)}),ed(c,"handleOuterEvent",function(t){var e,r=(0,S.X_)(t),n=f()(c.props,"".concat(r));r&&u()(n)&&n(null!==(e=/.*touch.*/i.test(r)?c.getMouseInfo(t.changedTouches[0]):c.getMouseInfo(t))&&void 0!==e?e:{},t)}),ed(c,"handleClick",function(t){var e=c.getMouseInfo(t);if(e){var r=eh(eh({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onClick;u()(n)&&n(r,t)}}),ed(c,"handleMouseDown",function(t){var e=c.props.onMouseDown;u()(e)&&e(c.getMouseInfo(t),t)}),ed(c,"handleMouseUp",function(t){var e=c.props.onMouseUp;u()(e)&&e(c.getMouseInfo(t),t)}),ed(c,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),ed(c,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseDown(t.changedTouches[0])}),ed(c,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseUp(t.changedTouches[0])}),ed(c,"triggerSyncEvent",function(t){void 0!==c.props.syncId&&tq.emit(tX,c.props.syncId,t,c.eventEmitterSymbol)}),ed(c,"applySyncEvent",function(t){var e=c.props,r=e.layout,n=e.syncMethod,o=c.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)c.setState(eh({dataStartIndex:i,dataEndIndex:a},P({props:c.props,dataStartIndex:i,dataEndIndex:a,updateId:o},c.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=c.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var d=0;d=0){if(s.dataKey&&!s.allowDuplicatedCategory){var T="function"==typeof s.dataKey?function(t){return"function"==typeof s.dataKey?s.dataKey(t.payload):null}:"payload.".concat(s.dataKey.toString());I=(0,k.eP)(v,T,p),D=b&&m&&(0,k.eP)(m,T,p)}else I=null==v?void 0:v[f],D=b&&m&&m[f];if(P||j){var C=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,n.cloneElement)(t,eh(eh(eh({},o.props),M),{},{activeIndex:C})),null,null]}if(!i()(I))return[_].concat(el(c.renderActivePoints({item:o,activePoint:I,basePoint:D,childIndex:f,isRange:b})))}else{var I,D,N,B=(null!==(N=c.getItemByXY(c.state.activeCoordinate))&&void 0!==N?N:{graphicalItem:_}).graphicalItem,R=B.item,L=void 0===R?t:R,z=B.childIndex,U=eh(eh(eh({},o.props),M),{},{activeIndex:z});return[(0,n.cloneElement)(L,U),null,null]}}return b?[_,null,null]:[_,null]}),ed(c,"renderCustomized",function(t,e,r){return(0,n.cloneElement)(t,eh(eh({key:"recharts-customized-".concat(r)},c.props),c.state))}),ed(c,"renderMap",{CartesianGrid:{handler:eg,once:!0},ReferenceArea:{handler:c.renderReferenceElement},ReferenceLine:{handler:eg},ReferenceDot:{handler:c.renderReferenceElement},XAxis:{handler:eg},YAxis:{handler:eg},Brush:{handler:c.renderBrush,once:!0},Bar:{handler:c.renderGraphicChild},Line:{handler:c.renderGraphicChild},Area:{handler:c.renderGraphicChild},Radar:{handler:c.renderGraphicChild},RadialBar:{handler:c.renderGraphicChild},Scatter:{handler:c.renderGraphicChild},Pie:{handler:c.renderGraphicChild},Funnel:{handler:c.renderGraphicChild},Tooltip:{handler:c.renderCursor,once:!0},PolarGrid:{handler:c.renderPolarGrid,once:!0},PolarAngleAxis:{handler:c.renderPolarAxis},PolarRadiusAxis:{handler:c.renderPolarAxis},Customized:{handler:c.renderCustomized}}),c.clipPathId="".concat(null!==(r=t.id)&&void 0!==r?r:(0,k.NF)("recharts"),"-clip"),c.throttleTriggeredAfterMouseMove=y()(c.triggeredAfterMouseMove,null!==(a=t.throttleDelay)&&void 0!==a?a:1e3/60),c.state={},c}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ec(t,e)}(o,t),r=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=(0,S.BU)(e,x.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=ej(this.state,r,a,u),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=eh(eh({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,S.OV)([(0,S.BU)(t.children,x.m)],[(0,S.BU)(this.props.children,x.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,S.BU)(this.props.children,x.m);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:a}return a}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n=(0,G.A3)(r),o={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},i=r.width/e.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var u=this.state,c=u.xAxisMap,l=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&l){var s=(0,k.lX)(c).scale,f=(0,k.lX)(l).scale,p=s&&s.invert?s.invert(o.chartX):null,h=f&&f.invert?f.invert(o.chartY):null;return eh(eh({},o),{},{xValue:p,yValue:h})}var d=eS(this.state,this.props.data,this.props.layout,a);return d?eh(eh({},o),d):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=(0,k.lX)(c);return(0,t$.yy)({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=(0,S.BU)(t,x.m),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),eh(eh({},(0,tH._U)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){tq.on(tX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tq.removeListener(tX,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o{"use strict";r.d(e,{J:()=>P});var n=r(20107),o=r(87107),i=r.n(o),a=r(14632),u=r.n(a),c=r(50683),l=r.n(c),s=r(64901),f=r(77431),p=r(61211),h=r(89952),d=r(92742);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var v=["offset"];function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1;"insideStart"===u?(o=m+S*l,a=O):"insideEnd"===u?(o=g-S*l,a=!O):"end"===u&&(o=g+S*l,a=O),a=j<=0?a:!a;var P=(0,d.IZ)(p,y,w,o),E=(0,d.IZ)(p,y,w,o+(a?1:-1)*359),A="M".concat(P.x,",").concat(P.y,"\n A").concat(w,",").concat(w,",0,1,").concat(a?0:1,",\n ").concat(E.x,",").concat(E.y),k=i()(t.id)?(0,h.NF)("recharts-radial-line-"):t.id;return n.createElement("text",x({},r,{dominantBaseline:"central",className:(0,s.A)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:k,d:A})),n.createElement("textPath",{xlinkHref:"#".concat(k)},e))},j=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e.cx,i=e.cy,a=e.innerRadius,u=e.outerRadius,c=(e.startAngle+e.endAngle)/2;if("outside"===n){var l=(0,d.IZ)(o,i,u+r,c),s=l.x;return{x:s,y:l.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(0,d.IZ)(o,i,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e.x,a=e.y,u=e.width,c=e.height,s=c>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",y=u>=0?1:-1,v=y*n,b=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return g(g({},{x:i+u/2,y:a-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(a-r.y,0),width:u}:{});if("bottom"===o)return g(g({},{x:i+u/2,y:a+c+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(a+c),0),width:u}:{});if("left"===o){var x={x:i-v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"};return g(g({},x),r?{width:Math.max(x.x-r.x,0),height:c}:{})}if("right"===o){var O={x:i+u+v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"};return g(g({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:c}:{})}var w=r?{width:u,height:c}:{};return"insideLeft"===o?g({x:i+v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?g({x:i+u-v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"},w):"insideTop"===o?g({x:i+u/2,y:a+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?g({x:i+u/2,y:a+c-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?g({x:i+v,y:a+f,textAnchor:m,verticalAnchor:d},w):"insideTopRight"===o?g({x:i+u-v,y:a+f,textAnchor:b,verticalAnchor:d},w):"insideBottomLeft"===o?g({x:i+v,y:a+c-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?g({x:i+u-v,y:a+c-f,textAnchor:b,verticalAnchor:p},w):l()(o)&&((0,h.Et)(o.x)||(0,h._3)(o.x))&&((0,h.Et)(o.y)||(0,h._3)(o.y))?g({x:i+(0,h.F4)(o.x,u),y:a+(0,h.F4)(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):g({x:i+u/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)};function P(t){var e,r=t.offset,o=g({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,v)),a=o.viewBox,c=o.position,l=o.value,d=o.children,y=o.content,b=o.className,m=o.textBreakAll;if(!a||i()(l)&&i()(d)&&!(0,n.isValidElement)(y)&&!u()(y))return null;if((0,n.isValidElement)(y))return(0,n.cloneElement)(y,o);if(u()(y)){if(e=(0,n.createElement)(y,o),(0,n.isValidElement)(e))return e}else e=O(o);var P="cx"in a&&(0,h.Et)(a.cx),E=(0,p.J9)(o,!0);if(P&&("insideStart"===c||"insideEnd"===c||"end"===c))return w(o,e,E);var A=P?j(o):S(o);return n.createElement(f.E,x({className:(0,s.A)("recharts-label",void 0===b?"":b)},E,A,{breakAll:m}),e)}P.displayName="Label";var E=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,y=t.width,v=t.height,b=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,h.Et)(y)&&(0,h.Et)(v)){if((0,h.Et)(s)&&(0,h.Et)(f))return{x:s,y:f,width:y,height:v};if((0,h.Et)(p)&&(0,h.Et)(d))return{x:p,y:d,width:y,height:v}}return(0,h.Et)(s)&&(0,h.Et)(f)?{x:s,y:f,width:0,height:0}:(0,h.Et)(e)&&(0,h.Et)(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:b}:t.viewBox?t.viewBox:{}};P.parseViewBox=E,P.renderCallByParent=function(t,e){var r,o,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var a=t.children,c=E(t),s=(0,p.aS)(a,P).map(function(t,r){return(0,n.cloneElement)(t,{viewBox:e||c,key:"label-".concat(r)})});return i?[(r=t.label,o=e||c,r?!0===r?n.createElement(P,{key:"label-implicit",viewBox:o}):(0,h.vh)(r)?n.createElement(P,{key:"label-implicit",viewBox:o,value:r}):(0,n.isValidElement)(r)?r.type===P?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:o}):n.createElement(P,{key:"label-implicit",content:r,viewBox:o}):u()(r)?n.createElement(P,{key:"label-implicit",content:r,viewBox:o}):l()(r)?n.createElement(P,x({viewBox:o},r,{key:"label-implicit"})):null:null)].concat(function(t){if(Array.isArray(t))return b(t)}(s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return b(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(t,void 0)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):s}},58864:(t,e,r)=>{"use strict";r.d(e,{Z:()=>P});var n=r(20107),o=r(87107),i=r.n(o),a=r(50683),u=r.n(a),c=r(14632),l=r.n(c),s=r(21836),f=r.n(s),p=r(94348),h=r(37819),d=r(61211),y=r(95492);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var b=["valueAccessor"],m=["data","dataKey","clockWise","id","textBreakAll"];function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var S=function(t){return Array.isArray(t.value)?f()(t.value):t.value};function P(t){var e=t.valueAccessor,r=void 0===e?S:e,o=j(t,b),a=o.data,u=o.dataKey,c=o.clockWise,l=o.id,s=o.textBreakAll,f=j(o,m);return a&&a.length?n.createElement(h.W,{className:"recharts-label-list"},a.map(function(t,e){var o=i()(u)?r(t,e):(0,y.kr)(t&&t.payload,u),a=i()(l)?{}:{id:"".concat(l,"-").concat(e)};return n.createElement(p.J,x({},(0,d.J9)(t,!0),f,a,{parentViewBox:t.parentViewBox,value:o,textBreakAll:s,viewBox:p.J.parseViewBox(i()(c)?t:w(w({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))})):null}P.displayName="LabelList",P.renderCallByParent=function(t,e){var r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=(0,d.aS)(i,P).map(function(t,r){return(0,n.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return o?[(r=t.label)?!0===r?n.createElement(P,{key:"labelList-implicit",data:e}):n.isValidElement(r)||l()(r)?n.createElement(P,{key:"labelList-implicit",data:e,content:r}):u()(r)?n.createElement(P,x({data:e},r,{key:"labelList-implicit"})):null:null].concat(function(t){if(Array.isArray(t))return g(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return g(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},58736:(t,e,r)=>{"use strict";r.d(e,{s:()=>I});var n=r(20107),o=r(14632),i=r.n(o),a=r(64901),u=r(42228),c=r(6701),l=r(92824),s=r(35956);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var x=e.inactive?h:e.color;return n.createElement("li",p({className:m,style:y,key:"legend-item-".concat(r)},(0,s.XC)(t.props,e,r)),n.createElement(c.u,{width:o,height:o,viewBox:d,style:v},t.renderIcon(e)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},l?l(g,e,r):g))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,o=t.align;return e&&e.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?o:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?P({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,c=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),P(P({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,o=e.width,i=e.height,a=e.wrapperStyle,u=e.payloadUniqBy,c=e.payload,l=P(P({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return n.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(n.isValidElement(t))return n.cloneElement(t,e);if("function"==typeof t)return n.createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,j);return n.createElement(g,r)}(r,P(P({},this.props),{},{payload:(0,O.s)(c,u,C)})))}}],r=[{key:"getWithHeight",value:function(t,e){var r=P(P({},this.defaultProps),t.props).layout;return"vertical"===r&&(0,x.Et)(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],e&&E(o.prototype,e),r&&E(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);_(I,"displayName","Legend"),_(I,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},81155:(t,e,r)=>{"use strict";r.d(e,{u:()=>y});var n=r(64901),o=r(20107),i=r(54636),a=r.n(i),u=r(55473),c=r(89952),l=r(42228),s=r(61211);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&(t=a()(t,P,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=_.current.getBoundingClientRect();return N(r.width,r.height),e.observe(_.current),function(){e.disconnect()}},[N,P]);var B=(0,o.useMemo)(function(){var t=I.containerWidth,e=I.containerHeight;if(t<0||e<0)return null;(0,l.R)((0,c._3)(v)||(0,c._3)(m),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",v,m),(0,l.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var r=(0,c._3)(v)?t:v,n=(0,c._3)(m)?e:m;i&&i>0&&(r?n=r/i:n&&(r=n*i),w&&n>w&&(n=w)),(0,l.R)(r>0||n>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,n,v,m,x,O,i);var a=!Array.isArray(j)&&(0,s.Mn)(j.type).endsWith("Chart");return o.Children.map(j,function(t){return(0,u.vq)(t)?(0,o.cloneElement)(t,h({width:r,height:n},a?{style:h({height:"100%",width:"100%",maxHeight:n,maxWidth:r},t.props.style)}:{})):t})},[i,j,m,w,O,x,I,v]);return o.createElement("div",{id:E?"".concat(E):void 0,className:(0,n.A)("recharts-responsive-container",A),style:h(h({},void 0===M?{}:M),{},{width:v,height:m,minWidth:x,minHeight:O,maxHeight:w}),ref:_},B)})},77431:(t,e,r)=>{"use strict";r.d(e,{E:()=>R});var n=r(20107),o=r(87107),i=r.n(o),a=r(64901),u=r(89952),c=r(95392),l=r(61211),s=r(56594);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var i=e.word,a=e.width,u=t[t.length-1];return u&&(null==n||o||u.width+a+ra||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},y=0,v=c.length-1,b=0;y<=v&&b<=c.length-1;){var m=Math.floor((y+v)/2),g=M(d(m-1),2),x=g[0],O=g[1],w=M(d(m),1)[0];if(x||w||(y=m+1),x&&w&&(v=m-1),!x&&w){i=O;break}b++}return i||h},D=function(t){return[{words:i()(t)?[]:t.toString().split(T)}]},N=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!c.m.isSsr){var u=C({breakAll:i,children:n,style:o});return u?I({breakAll:i,children:n,maxLines:a,style:o},u.wordsWithComputedWidth,u.spaceWidth,e,r):D(n)}return D(n)},B="#808080",R=function(t){var e,r=t.x,o=void 0===r?0:r,i=t.y,c=void 0===i?0:i,s=t.lineHeight,f=void 0===s?"1em":s,p=t.capHeight,h=void 0===p?"0.71em":p,d=t.scaleToFit,y=void 0!==d&&d,v=t.textAnchor,b=t.verticalAnchor,m=t.fill,g=void 0===m?B:m,x=k(t,P),O=(0,n.useMemo)(function(){return N({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),w=x.dx,j=x.dy,M=x.angle,_=x.className,T=x.breakAll,C=k(x,E);if(!(0,u.vh)(o)||!(0,u.vh)(c))return null;var I=o+((0,u.Et)(w)?w:0),D=c+((0,u.Et)(j)?j:0);switch(void 0===b?"end":b){case"start":e=S("calc(".concat(h,")"));break;case"middle":e=S("calc(".concat((O.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:e=S("calc(".concat(O.length-1," * -").concat(f,")"))}var R=[];if(y){var L=O[0].width,z=x.width;R.push("scale(".concat(((0,u.Et)(z)?z/L:1)/L,")"))}return M&&R.push("rotate(".concat(M,", ").concat(I,", ").concat(D,")")),R.length&&(C.transform=R.join(" ")),n.createElement("text",A({},(0,l.J9)(C,!0),{x:I,y:D,className:(0,a.A)("recharts-text",_),textAnchor:void 0===v?"start":v,fill:g.includes("url")?B:g}),O.map(function(t,r){var o=t.words.join(T?"":" ");return n.createElement("tspan",{x:I,dy:0===r?e:f,key:"".concat(o,"-").concat(r)},o)}))}},58601:(t,e,r)=>{"use strict";r.d(e,{m:()=>F});var n=r(20107),o=r(67501),i=r.n(o),a=r(87107),u=r.n(a),c=r(64901),l=r(89952);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rc[n]+s?Math.max(f,c[n]):Math.max(p,c[n])}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function S(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,r,o,i,a,u,s,f,p,h,d,y,v,b,w,j,P,E,A=this,k=this.props,M=k.active,_=k.allowEscapeViewBox,T=k.animationDuration,C=k.animationEasing,I=k.children,D=k.coordinate,N=k.hasPayload,B=k.isAnimationActive,R=k.offset,L=k.position,z=k.reverseDirection,U=k.useTranslate3d,$=k.viewBox,F=k.wrapperStyle,W=(d=(t={allowEscapeViewBox:_,coordinate:D,offsetTopLeft:R,position:L,reverseDirection:z,tooltipBox:this.state.lastBoundingBox,useTranslate3d:U,viewBox:$}).allowEscapeViewBox,y=t.coordinate,v=t.offsetTopLeft,b=t.position,w=t.reverseDirection,j=t.tooltipBox,P=t.useTranslate3d,E=t.viewBox,j.height>0&&j.width>0&&y?(r=(e={translateX:p=O({allowEscapeViewBox:d,coordinate:y,key:"x",offsetTopLeft:v,position:b,reverseDirection:w,tooltipDimension:j.width,viewBox:E,viewBoxDimension:E.width}),translateY:h=O({allowEscapeViewBox:d,coordinate:y,key:"y",offsetTopLeft:v,position:b,reverseDirection:w,tooltipDimension:j.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:P}).translateX,o=e.translateY,f={transform:e.useTranslate3d?"translate3d(".concat(r,"px, ").concat(o,"px, 0)"):"translate(".concat(r,"px, ").concat(o,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(i={translateX:p,translateY:h,coordinate:y}).coordinate,u=i.translateX,s=i.translateY,(0,c.A)(g,m(m(m(m({},"".concat(g,"-right"),(0,l.Et)(u)&&a&&(0,l.Et)(a.x)&&u>=a.x),"".concat(g,"-left"),(0,l.Et)(u)&&a&&(0,l.Et)(a.x)&&u=a.y),"".concat(g,"-top"),(0,l.Et)(s)&&a&&(0,l.Et)(a.y)&&s0;return n.createElement(_,{allowEscapeViewBox:i,animationDuration:a,animationEasing:u,isAnimationActive:f,active:o,coordinate:l,hasPayload:w,offset:p,position:y,reverseDirection:b,useTranslate3d:m,viewBox:g,wrapperStyle:x},(t=N(N({},this.props),{},{payload:O}),n.isValidElement(c)?n.cloneElement(c,t):"function"==typeof c?n.createElement(c,t):n.createElement(v,t)))}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{W:()=>c});var n=r(20107),o=r(64901),i=r(61211),a=["children","className"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a),s=(0,o.A)("recharts-layer",c);return n.createElement("g",u({className:s},(0,i.J9)(l,!0),{ref:e}),r)})},6701:(t,e,r)=>{"use strict";r.d(e,{u:()=>c});var n=r(20107),o=r(64901),i=r(61211),a=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a),y=l||{width:r,height:c,x:0,y:0},v=(0,o.A)("recharts-surface",s);return n.createElement("svg",u({},(0,i.J9)(d,!0,"svg"),{className:v,width:r,height:c,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,p),n.createElement("desc",null,h),e)}},25161:(t,e,r)=>{"use strict";r.d(e,{DR:()=>g,pj:()=>w,rY:()=>k,yi:()=>A,Yp:()=>x,hj:()=>E,sk:()=>P,AF:()=>O,Nk:()=>S,$G:()=>j});var n=r(20107),o=r(45082),i=r(1339),a=r.n(i),u=r(83191),c=r.n(u),l=r(80480),s=r.n(l)()(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),f=r(89952),p=(0,n.createContext)(void 0),h=(0,n.createContext)(void 0),d=(0,n.createContext)(void 0),y=(0,n.createContext)({}),v=(0,n.createContext)(void 0),b=(0,n.createContext)(0),m=(0,n.createContext)(0),g=function(t){var e=t.state,r=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=t.clipPathId,u=t.children,c=t.width,l=t.height,f=s(i);return n.createElement(p.Provider,{value:r},n.createElement(h.Provider,{value:o},n.createElement(y.Provider,{value:i},n.createElement(d.Provider,{value:f},n.createElement(v.Provider,{value:a},n.createElement(b.Provider,{value:l},n.createElement(m.Provider,{value:c},u)))))))},x=function(){return(0,n.useContext)(v)},O=function(t){var e=(0,n.useContext)(p);null!=e||(0,o.A)(!1);var r=e[t];return null!=r||(0,o.A)(!1),r},w=function(){var t=(0,n.useContext)(p);return(0,f.lX)(t)},j=function(){var t=(0,n.useContext)(h);return a()(t,function(t){return c()(t.domain,Number.isFinite)})||(0,f.lX)(t)},S=function(t){var e=(0,n.useContext)(h);null!=e||(0,o.A)(!1);var r=e[t];return null!=r||(0,o.A)(!1),r},P=function(){return(0,n.useContext)(d)},E=function(){return(0,n.useContext)(y)},A=function(){return(0,n.useContext)(m)},k=function(){return(0,n.useContext)(b)}},60992:(t,e,r)=>{"use strict";r.d(e,{I:()=>V});var n=r(20107);function o(){}function i(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function a(t){this._context=t}function u(t){this._context=t}function c(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function s(t){this._context=t}function f(t){this._context=t}function p(t){return new f(t)}function h(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*n)/(n+o)))||0}function d(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function y(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function v(t){this._context=t}function b(t){this._context=new m(t)}function m(t){this._context=t}function g(t){this._context=t}function x(t){var e,r,n=t.length-1,o=Array(n),i=Array(n),a=Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(e=0,i[n-1]=(t[n]+o[n-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var w=r(58492),j=r(51139),S=r(95327);function P(t){return t[0]}function E(t){return t[1]}function A(t,e){var r=(0,j.A)(!0),n=null,o=p,i=null,a=(0,S.i)(u);function u(u){var c,l,s,f=(u=(0,w.A)(u)).length,p=!1;for(null==n&&(i=o(s=a())),c=0;c<=f;++c)!(c=f;--p)u.point(b[p],m[p]);u.lineEnd(),u.areaEnd()}}v&&(b[s]=+t(h,s,l),m[s]=+e(h,s,l),u.point(n?+n(h,s,l):b[s],r?+r(h,s,l):m[s]))}if(d)return u=null,d+""||null}function s(){return A().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?P:(0,j.A)(+t),e="function"==typeof e?e:void 0===e?(0,j.A)(0):(0,j.A)(+e),r="function"==typeof r?r:void 0===r?E:(0,j.A)(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.A)(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.A)(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,j.A)(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.A)(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.A)(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,j.A)(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:(0,j.A)(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),l):i},l}var M=r(76158),_=r.n(M),T=r(14632),C=r.n(T),I=r(64901),D=r(35956),N=r(61211),B=r(89952);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(){return(L=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{c:()=>c});var n=r(20107),o=r(64901),i=r(35956),a=r(61211);function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{J:()=>h,M:()=>y});var n=r(20107),o=r(64901),i=r(61075),a=r(61211);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1,c=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),i+="L ".concat(t+r-c*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-c*s[2],",").concat(e+n)),i+="L ".concat(t+c*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+r-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-c*p,",").concat(e+n,"\n L ").concat(t+c*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},h=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},d={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,r=f(f({},d),t),u=(0,n.useRef)(),s=function(t){if(Array.isArray(t))return t}(e=(0,n.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{for(i=(r=r.call(t)).next;!(c=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=s[0],y=s[1];(0,n.useEffect)(function(){if(u.current&&u.current.getTotalLength)try{var t=u.current.getTotalLength();t&&y(t)}catch(t){}},[]);var v=r.x,b=r.y,m=r.width,g=r.height,x=r.radius,O=r.className,w=r.animationEasing,j=r.animationDuration,S=r.animationBegin,P=r.isAnimationActive,E=r.isUpdateAnimationActive;if(v!==+v||b!==+b||m!==+m||g!==+g||0===m||0===g)return null;var A=(0,o.A)("recharts-rectangle",O);return E?n.createElement(i.Ay,{canBegin:h>0,from:{width:m,height:g,x:v,y:b},to:{width:m,height:g,x:v,y:b},duration:j,animationEasing:w,isActive:E},function(t){var e=t.width,o=t.height,l=t.x,s=t.y;return n.createElement(i.Ay,{canBegin:h>0,from:"0px ".concat(-1===h?1:h,"px"),to:"".concat(h,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,isActive:P,easing:w},n.createElement("path",c({},(0,a.J9)(r,!0),{className:A,d:p(l,s,e,o,x),ref:u})))}):n.createElement("path",c({},(0,a.J9)(r,!0),{className:A,d:p(v,b,m,g,x)}))}},3730:(t,e,r)=>{"use strict";r.d(e,{h:()=>v});var n=r(20107),o=r(64901),i=r(61211),a=r(92742),u=r(89952);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(i>s),",\n ").concat(p.x,",").concat(p.y,"\n ");if(n>0){var d=(0,a.IZ)(e,r,n,i),y=(0,a.IZ)(e,r,n,s);h+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(e,",").concat(r," Z");return h},d=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,s=t.endAngle,f=(0,u.sA)(s-l),d=p({cx:e,cy:r,radius:o,angle:l,sign:f,cornerRadius:i,cornerIsExternal:c}),y=d.circleTangency,v=d.lineTangency,b=d.theta,m=p({cx:e,cy:r,radius:o,angle:s,sign:-f,cornerRadius:i,cornerIsExternal:c}),g=m.circleTangency,x=m.lineTangency,O=m.theta,w=c?Math.abs(l-s):Math.abs(l-s)-b-O;if(w<0)return a?"M ".concat(v.x,",").concat(v.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(-(2*i),",0\n "):h({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:s});var j="M ".concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(n>0){var S=p({cx:e,cy:r,radius:n,angle:l,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),P=S.circleTangency,E=S.lineTangency,A=S.theta,k=p({cx:e,cy:r,radius:n,angle:s,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),M=k.circleTangency,_=k.lineTangency,T=k.theta,C=c?Math.abs(l-s):Math.abs(l-s)-A-T;if(C<0&&0===i)return"".concat(j,"L").concat(e,",").concat(r,"Z");j+="L".concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"\n A").concat(n,",").concat(n,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else j+="L".concat(e,",").concat(r,"Z");return j},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(t){var e,r=f(f({},y),t),a=r.cx,c=r.cy,s=r.innerRadius,p=r.outerRadius,v=r.cornerRadius,b=r.forceCornerRadius,m=r.cornerIsExternal,g=r.startAngle,x=r.endAngle,O=r.className;if(p0&&360>Math.abs(g-x)?d({cx:a,cy:c,innerRadius:s,outerRadius:p,cornerRadius:Math.min(S,j/2),forceCornerRadius:b,cornerIsExternal:m,startAngle:g,endAngle:x}):h({cx:a,cy:c,innerRadius:s,outerRadius:p,startAngle:g,endAngle:x}),n.createElement("path",l({},(0,i.J9)(r,!0),{className:w,d:e,role:"img"}))}},92824:(t,e,r)=>{"use strict";r.d(e,{i:()=>I});var n=r(20107),o=r(76158),i=r.n(o);let a=Math.cos,u=Math.sin,c=Math.sqrt,l=Math.PI,s=2*l,f={draw(t,e){let r=c(e/l);t.moveTo(r,0),t.arc(0,0,r,0,s)}},p=c(1/3),h=2*p,d=u(l/10)/u(7*l/10),y=u(s/10)*d,v=-a(s/10)*d,b=c(3),m=c(3)/2,g=1/c(12),x=(g/2+1)*3;var O=r(51139),w=r(95327);c(3),c(3);var j=r(64901),S=r(61211);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var E=["type","size","sizeType"];function A(){return(A=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,E)),{},{type:o,size:u,sizeType:l}),p=s.className,h=s.cx,d=s.cy,y=(0,S.J9)(s,!0);return h===+h&&d===+d&&u===+u?n.createElement("path",A({},y,{className:(0,j.A)("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(d,")"),d:(e=_["symbol".concat(i()(o))]||f,(function(t,e){let r=null,n=(0,w.i)(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:(0,O.A)(t||f),e="function"==typeof e?e:(0,O.A)(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.A)(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.A)(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o})().type(e).size(C(u,l,o))())})):null};I.registerSymbol=function(t,e){_["symbol".concat(i()(t))]=e}},82372:(t,e,r)=>{"use strict";r.d(e,{yp:()=>C,GG:()=>z,NE:()=>I,nZ:()=>D,xQ:()=>N});var n=r(20107),o=r(14632),i=r.n(o),a=r(55519),u=r.n(a),c=r(46420),l=r.n(c),s=r(6440),f=r.n(s),p=r(2721),h=r(64901),d=r(61075),y=r(61211);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(){return(b=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:s,lowerWidth:f,height:p,x:c,y:l},duration:j,animationEasing:g,isActive:P},function(t){var e=t.upperWidth,i=t.lowerWidth,u=t.height,c=t.x,l=t.y;return n.createElement(d.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,easing:g},n.createElement("path",b({},(0,y.J9)(r,!0),{className:E,d:O(c,l,e,i,u),ref:o})))}):n.createElement("g",null,n.createElement("path",b({},(0,y.J9)(r,!0),{className:E,d:O(c,l,s,f,p)})))},S=r(3730),P=r(37819),E=r(92824),A=["option","shapeType","propTransformer","activeClassName","isActive"];function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,A);if((0,n.isValidElement)(r))e=(0,n.cloneElement)(r,_(_({},f),(0,n.isValidElement)(r)?r.props:r));else if(i()(r))e=r(f);else if(u()(r)&&!l()(r)){var p=(void 0===a?function(t,e){return _(_({},e),t)}:a)(r,f);e=n.createElement(T,{shapeType:o,elementProps:p})}else e=n.createElement(T,{shapeType:o,elementProps:f});return s?n.createElement(P.W,{className:void 0===c?"recharts-active-shape":c},e):e}function I(t,e){return null!=e&&"trapezoids"in t.props}function D(t,e){return null!=e&&"sectors"in t.props}function N(t,e){return null!=e&&"points"in t.props}function B(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function R(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function L(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function z(t){var e,r,n,o=t.activeTooltipItem,i=t.graphicalItem,a=t.itemData,u=(I(i,o)?e="trapezoids":D(i,o)?e="sectors":N(i,o)&&(e="points"),e),c=I(i,o)?null===(r=o.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:D(i,o)?null===(n=o.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:N(i,o)?o.payload:{},l=a.filter(function(t,e){var r=f()(c,t),n=i.props[u].filter(function(t){var e;return(I(i,o)?e=B:D(i,o)?e=R:N(i,o)&&(e=L),e)(t,o)}),a=i.props[u].indexOf(n[n.length-1]);return r&&e===a});return a.indexOf(l[l.length-1])}},98456:(t,e,r)=>{"use strict";r.d(e,{P2:()=>O,bx:()=>w,pr:()=>b,sl:()=>m,vh:()=>g});var n=r(86992),o=r.n(n),i=r(83191),a=r.n(i),u=r(95492),c=r(61211),l=r(89952),s=r(17255);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var r=0;r0&&(k=Math.min((t||0)-(M[e-1]||0),k))}),Number.isFinite(k)){var _=k/A,T="vertical"===g.layout?r.height:r.width;if("gap"===g.padding&&(c=_*T/2),"no-gap"===g.padding){var C=(0,l.F4)(t.barCategoryGap,_*T),I=_*T/2;c=I-C-(I-C)/T*C}}}s="xAxis"===n?[r.left+(j.left||0)+(c||0),r.left+r.width-(j.right||0)-(c||0)]:"yAxis"===n?"horizontal"===f?[r.top+r.height-(j.bottom||0),r.top+(j.top||0)]:[r.top+(j.top||0)+(c||0),r.top+r.height-(j.bottom||0)-(c||0)]:g.range,P&&(s=[s[1],s[0]]);var D=(0,u.W7)(g,o,b),N=D.scale,B=D.realScaleType;N.domain(O).range(s),(0,u.YB)(N);var R=(0,u.w7)(N,d(d({},g),{},{realScaleType:B}));"xAxis"===n?(m="top"===x&&!S||"bottom"===x&&S,p=r.left,h=v[E]-m*g.height):"yAxis"===n&&(m="left"===x&&!S||"right"===x&&S,p=v[E]-m*g.width,h=r.top);var L=d(d(d({},g),R),{},{realScaleType:B,x:p,y:h,scale:N,width:"xAxis"===n?r.width:g.width,height:"yAxis"===n?r.height:g.height});return L.bandSize=(0,u.Hj)(L,R),g.hide||"xAxis"!==n?g.hide||(v[E]+=(m?-1:1)*L.width):v[E]+=(m?-1:1)*L.height,d(d({},i),{},y({},a,L))},{})},m=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},g=function(t){return m({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},x=function(){var t,e;function r(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&p(r.prototype,t),e&&p(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();y(x,"EPS",1e-4);var O=function(t){var e=Object.keys(t).reduce(function(e,r){return d(d({},e),{},y({},r,x.create(t[r])))},{});return d(d({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return o()(t,function(t,r){return e[r].apply(t,{bandAware:n,position:i})})},isInRange:function(t){return a()(t,function(t,r){return e[r].isInRange(t)})}})},w=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(n%180+180)%180*Math.PI/180,i=Math.atan(r/e);return Math.abs(o>i&&o{"use strict";r.d(e,{s0:()=>n3,gH:()=>n0,YB:()=>oo,HQ:()=>or,xi:()=>oi,Hj:()=>og,BX:()=>n5,tA:()=>n2,DW:()=>oh,y2:()=>op,nb:()=>of,PW:()=>n7,Ay:()=>nQ,vf:()=>n8,Mk:()=>oy,Ps:()=>n1,Mn:()=>ol,kA:()=>od,Rh:()=>ot,w7:()=>os,zb:()=>oO,kr:()=>nZ,_L:()=>n9,KC:()=>ox,A1:()=>n4,W7:()=>on,AQ:()=>om,_f:()=>oa});var n,o,i,a,u,c,l,s={};r.r(s),r.d(s,{scaleBand:()=>f.A,scaleDiverging:()=>function t(){var e=tN(rZ()(tv));return e.copy=function(){return rY(e,t())},tj.K.apply(e,arguments)},scaleDivergingLog:()=>function t(){var e=tq(rZ()).domain([.1,1,10]);return e.copy=function(){return rY(e,t()).base(e.base())},tj.K.apply(e,arguments)},scaleDivergingPow:()=>rQ,scaleDivergingSqrt:()=>r0,scaleDivergingSymlog:()=>function t(){var e=tV(rZ());return e.copy=function(){return rY(e,t()).constant(e.constant())},tj.K.apply(e,arguments)},scaleIdentity:()=>function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,td),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,td):[0,1],tN(n)},scaleImplicit:()=>tG.h,scaleLinear:()=>tB,scaleLog:()=>function t(){let e=tq(tO()).domain([1,10]);return e.copy=()=>tx(e,t()).base(e.base()),tj.C.apply(e,arguments),e},scaleOrdinal:()=>tG.A,scalePoint:()=>f.z,scalePow:()=>tQ,scaleQuantile:()=>function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=Array(e-1);++t=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[P(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],efunction t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function u(t){return null!=t&&t<=t?a[P(i,t,0,o)]:e}function c(){var t=-1;for(i=Array(o);++t=o?[i[o-1],n]:[i[e-1],i[e]]},u.unknown=function(t){return arguments.length&&(e=t),u},u.thresholds=function(){return i.slice()},u.copy=function(){return t().domain([r,n]).range(a).unknown(e)},tj.C.apply(tN(u),arguments)},scaleRadial:()=>function t(){var e,r=tw(),n=[0,1],o=!1;function i(t){var n,i=Math.sign(n=r(t))*Math.sqrt(Math.abs(n));return isNaN(i)?e:o?Math.round(i):i}return i.invert=function(t){return r.invert(t1(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,td)).map(t1)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},tj.C.apply(i,arguments),tN(i)},scaleSequential:()=>function t(){var e=tN(rG()(tv));return e.copy=function(){return rY(e,t())},tj.K.apply(e,arguments)},scaleSequentialLog:()=>function t(){var e=tq(rG()).domain([1,10]);return e.copy=function(){return rY(e,t()).base(e.base())},tj.K.apply(e,arguments)},scaleSequentialPow:()=>rK,scaleSequentialQuantile:()=>function t(){var e=[],r=tv;function n(t){if(null!=t&&!isNaN(t=+t))return r((P(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r=+r)||e.push(r);return e.sort(g),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e=+e))){if(e<=0||n<2)return t5(t);if(e>=1)return t2(t);var n,o=(n-1)*e,i=Math.floor(o),a=t2((function t(e,r,n=0,o=1/0,i){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),o=Math.floor(Math.min(e.length-1,o)),!(n<=r&&r<=o))return e;for(i=void 0===i?t3:function(t=g){if(t===g)return t3;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);o>n;){if(o-n>600){let a=o-n+1,u=r-n+1,c=Math.log(a),l=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1),f=Math.max(n,Math.floor(r-u*l/a+s)),p=Math.min(o,Math.floor(r+(a-u)*l/a+s));t(e,r,f,p,i)}let a=e[r],u=n,c=o;for(t6(e,n,r),i(e[o],a)>0&&t6(e,n,o);ui(e[u],a);)++u;for(;i(e[c],a)>0;)--c}0===i(e[n],a)?t6(e,n,c):t6(e,++c,o),c<=r&&(n=c+1),r<=c&&(o=c-1)}return e})(t,i).subarray(0,i+1));return a+(t5(t.subarray(i+1))-a)*(o-i)}})(e,n/t))},n.copy=function(){return t(r).domain(e)},tj.K.apply(n,arguments)},scaleSequentialSqrt:()=>rJ,scaleSequentialSymlog:()=>function t(){var e=tV(rG());return e.copy=function(){return rY(e,t()).constant(e.constant())},tj.K.apply(e,arguments)},scaleSqrt:()=>t0,scaleSymlog:()=>function t(){var e=tV(tO());return e.copy=function(){return tx(e,t()).constant(e.constant())},tj.C.apply(e,arguments)},scaleThreshold:()=>function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[P(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(o=Math.min((r=Array.from(t)).length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},tj.C.apply(i,arguments)},scaleTime:()=>rH,scaleUtc:()=>rV,tickFormat:()=>tD});var f=r(63949);let p=Math.sqrt(50),h=Math.sqrt(10),d=Math.sqrt(2);function y(t,e,r){let n,o,i;let a=(e-t)/Math.max(0,r),u=Math.floor(Math.log10(a)),c=a/Math.pow(10,u),l=c>=p?10:c>=h?5:c>=d?2:1;return(u<0?(n=Math.round(t*(i=Math.pow(10,-u)/l)),o=Math.round(e*i),n/ie&&--o,i=-i):(n=Math.round(t/(i=Math.pow(10,u)*l)),o=Math.round(e/i),n*ie&&--o),o0))return[];if(t===e)return[t];let n=e=o))return[];let u=i-o+1,c=Array(u);if(n){if(a<0)for(let t=0;te?1:t>=e?0:NaN}function x(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function O(t){let e,r,n;function o(t,n,i=0,a=t.length){if(i>>1;0>r(t[e],n)?i=e+1:a=e}while(ig(t(e),r),n=(e,r)=>t(e)-r):(e=t===g||t===x?t:w,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){let a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o>>1;0>=r(t[e],n)?o=e+1:i=e}while(o>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?q(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?q(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=I.exec(t))?new H(e[1],e[2],e[3],1):(e=D.exec(t))?new H(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?q(e[1],e[2],e[3],e[4]):(e=B.exec(t))?q(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=R.exec(t))?Z(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?Z(e[1],e[2]/100,e[3]/100,e[4]):z.hasOwnProperty(t)?W(z[t]):"transparent"===t?new H(NaN,NaN,NaN,0):null}function W(t){return new H(t>>16&255,t>>8&255,255&t,1)}function q(t,e,r,n){return n<=0&&(t=e=r=NaN),new H(t,e,r,n)}function X(t,e,r,n){var o;return 1==arguments.length?((o=t)instanceof k||(o=F(o)),o)?new H((o=o.rgb()).r,o.g,o.b,o.opacity):new H:new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function V(){return`#${J(this.r)}${J(this.g)}${J(this.b)}`}function G(){let t=Y(this.opacity);return`${1===t?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===t?")":`, ${t})`}`}function Y(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function K(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function J(t){return((t=K(t))<16?"0":"")+t.toString(16)}function Z(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new tt(t,e,r,n)}function Q(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);if(t instanceof k||(t=F(t)),!t)return new tt;if(t instanceof tt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+(r0&&c<1?0:a,new tt(a,u,c,t.opacity)}function tt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function te(t){return(t=(t||0)%360)<0?t+360:t}function tr(t){return Math.max(0,Math.min(1,t||0))}function tn(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function to(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}E(k,F,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Q(this).formatHsl()},formatRgb:$,toString:$}),E(H,X,A(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new H(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new H(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new H(K(this.r),K(this.g),K(this.b),Y(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatHex8:function(){return`#${J(this.r)}${J(this.g)}${J(this.b)}${J((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:G,toString:G})),E(tt,function(t,e,r,n){return 1==arguments.length?Q(t):new tt(t,e,r,null==n?1:n)},A(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new H(tn(t>=240?t-240:t+120,o,n),tn(t,o,n),tn(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new tt(te(this.h),tr(this.s),tr(this.l),Y(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Y(this.opacity);return`${1===t?"hsl(":"hsla("}${te(this.h)}, ${100*tr(this.s)}%, ${100*tr(this.l)}%${1===t?")":`, ${t})`}`}}));let ti=t=>()=>t;function ta(t,e){var r=e-t;return r?function(e){return t+e*r}:ti(isNaN(t)?e:t)}let tu=function t(e){var r,n=1==(r=+(r=e))?ta:function(t,e){var n,o,i;return e-t?(n=t,o=e,n=Math.pow(n,i=r),o=Math.pow(o,i)-n,i=1/i,function(t){return Math.pow(n+t*o,i)}):ti(isNaN(t)?e:t)};function o(t,e){var r=n((t=X(t)).r,(e=X(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return o.gamma=t,o}(1);function tc(t){return function(e){var r,n,o=e.length,i=Array(o),a=Array(o),u=Array(o);for(r=0;r=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,u=nu&&(a=e.slice(u,a),l[c]?l[c]+=a:l[++c]=a),(o=o[0])===(i=i[0])?l[c]?l[c]+=i:l[++c]=i:(l[++c]=null,s.push({i:c,x:tl(o,i)})),u=tf.lastIndex;return ue&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=c>2?tg:tm,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(u,a.map(t),tl)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,td),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=th,s()},f.clamp=function(t){return arguments.length?(l=!!t||tv,s()):l!==tv},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function tw(){return tO()(tv,tv)}var tj=r(87982),tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tP(t){var e;if(!(e=tS.exec(t)))throw Error("invalid format: "+t);return new tE({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tE(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tA(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function tk(t){return(t=tA(Math.abs(t)))?t[1]:NaN}function tM(t,e){var r=tA(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}tP.prototype=tE.prototype,tE.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let t_={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tM(100*t,e),r:tM,s:function(t,e){var r=tA(t,e);if(!r)return t+"";var o=r[0],i=r[1],a=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=o.length;return a===u?o:a>u?o+Array(a-u+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+tA(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tT(t){return t}var tC=Array.prototype.map,tI=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tD(t,e,r,n){var o,u,c=m(t,e,r);switch((n=tP(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tk(l)/3)))-tk(Math.abs(c))))||(n.precision=u),a(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(u=Math.max(0,tk(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(o=Math.abs(o=c)))-tk(o))+1)||(n.precision=u-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(u=Math.max(0,-tk(Math.abs(c))))||(n.precision=u-("%"===n.type)*2)}return i(n)}function tN(t){var e=t.domain;return t.ticks=function(t){var r=e();return v(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return tD(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l0;){if((o=b(c,l,r))===n)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else if(o<0)c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o;else break;n=o}return t},t}function tB(){var t=tw();return t.copy=function(){return tx(t,tB())},tj.C.apply(t,arguments),tN(t)}function tR(t,e){t=t.slice();var r,n=0,o=t.length-1,i=t[n],a=t[o];return a-t(-e,r)}function tq(t){let e,r;let n=t(tL,tz),o=n.domain,a=10;function u(){var i,u;return e=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),t=>Math.log(t)/i),r=10===(u=a)?tF:u===Math.E?Math.exp:t=>Math.pow(u,t),o()[0]<0?(e=tW(e),r=tW(r),t(tU,t$)):t(tL,tz),n}return n.base=function(t){return arguments.length?(a=+t,u()):a},n.domain=function(t){return arguments.length?(o(t),u()):o()},n.ticks=t=>{let n,i;let u=o(),c=u[0],l=u[u.length-1],s=l0){for(;f<=p;++f)for(n=1;nl)break;d.push(i)}}else for(;f<=p;++f)for(n=a-1;n>=1;--n)if(!((i=f>0?n/r(-f):n*r(f))l)break;d.push(i)}2*d.length{if(null==t&&(t=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=tP(o)).precision||(o.trim=!0),o=i(o)),t===1/0)return o;let u=Math.max(1,a*t/n.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*ao(tR(o(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),n}function tX(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tH(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tV(t){var e=1,r=t(tX(1),tH(e));return r.constant=function(r){return arguments.length?t(tX(e=+r),tH(e)):e},tN(r)}i=(o=function(t){var e,r,o,i=void 0===t.grouping||void 0===t.thousands?tT:(e=tC.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return i.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?tT:(o=tC.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return o[+t]})}),s=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",p=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=tP(t)).fill,r=t.align,o=t.sign,h=t.symbol,d=t.zero,y=t.width,v=t.comma,b=t.precision,m=t.trim,g=t.type;"n"===g?(v=!0,g="g"):t_[g]||(void 0===b&&(b=12),m=!0,g="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var x="$"===h?a:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",O="$"===h?u:/[%p]/.test(g)?s:"",w=t_[g],j=/[defgprs%]/.test(g);function S(t){var a,u,s,h=x,S=O;if("c"===g)S=w(t)+S,t="";else{var P=(t=+t)<0||1/t<0;if(t=isNaN(t)?p:w(Math.abs(t),b),m&&(t=function(t){e:for(var e,r=t.length,n=1,o=-1;n0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),P&&0==+t&&"+"!==o&&(P=!1),h=(P?"("===o?o:f:"-"===o||"("===o?"":o)+h,S=("s"===g?tI[8+n/3]:"")+S+(P&&"("===o?")":""),j){for(a=-1,u=t.length;++a(s=t.charCodeAt(a))||s>57){S=(46===s?c+t.slice(a+1):t.slice(a))+S,t=t.slice(0,a);break}}}v&&!d&&(t=i(t,1/0));var E=h.length+t.length+S.length,A=E>1)+h+t+S+A.slice(E);break;default:t=A+h+t+S}return l(t)}return b=void 0===b?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var r=h(((t=tP(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(tk(e)/3))),o=Math.pow(10,-n),i=tI[8+n/3];return function(t){return r(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;var tG=r(68399);function tY(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tK(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tJ(t){return t<0?-t*t:t*t}function tZ(t){var e=t(tv,tv),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(tv,tv):.5===r?t(tK,tJ):t(tY(r),tY(1/r)):r},tN(e)}function tQ(){var t=tZ(tO());return t.copy=function(){return tx(t,tQ()).exponent(t.exponent())},tj.C.apply(t,arguments),t}function t0(){return tQ.apply(null,arguments).exponent(.5)}function t1(t){return Math.sign(t)*t*t}function t2(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r=o)&&(r=o)}return r}function t5(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function t3(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function t6(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}let t4=new Date,t8=new Date;function t9(t,e,r,n){function o(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{let e=o(t),r=o.ceil(t);return t-e(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{let a;let u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r0))return u;do u.push(a=new Date(+r)),e(r,i),t(r);while(at9(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t){if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}}),r&&(o.count=(e,n)=>(t4.setTime(+e),t8.setTime(+n),t(t4),t(t8),Math.floor(r(t4,t8))),o.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null),o}let t7=t9(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);t7.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?t9(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):t7:null,t7.range;let et=t9(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());et.range;let ee=t9(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());ee.range;let er=t9(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());er.range;let en=t9(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());en.range;let eo=t9(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());eo.range;let ei=t9(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);ei.range;let ea=t9(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);ea.range;let eu=t9(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function ec(t){return t9(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}eu.range;let el=ec(0),es=ec(1),ef=ec(2),ep=ec(3),eh=ec(4),ed=ec(5),ey=ec(6);function ev(t){return t9(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}el.range,es.range,ef.range,ep.range,eh.range,ed.range,ey.range;let eb=ev(0),em=ev(1),eg=ev(2),ex=ev(3),eO=ev(4),ew=ev(5),ej=ev(6);eb.range,em.range,eg.range,ex.range,eO.range,ew.range,ej.range;let eS=t9(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());eS.range;let eP=t9(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());eP.range;let eE=t9(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());eE.every=t=>isFinite(t=Math.floor(t))&&t>0?t9(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,eE.range;let eA=t9(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ek(t,e,r,n,o,i){let a=[[et,1,1e3],[et,5,5e3],[et,15,15e3],[et,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function u(e,r,n){let o=Math.abs(r-e)/n,i=O(([,,t])=>t).right(a,o);if(i===a.length)return t.every(m(e/31536e6,r/31536e6,n));if(0===i)return t7.every(Math.max(m(e,r,n),1));let[u,c]=a[o/a[i-1][2]isFinite(t=Math.floor(t))&&t>0?t9(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,eA.range;let[eM,e_]=ek(eA,eP,eb,eu,eo,er),[eT,eC]=ek(eE,eS,el,ei,en,ee);function eI(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function eD(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eN(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var eB={"-":"",_:" ",0:"0"},eR=/^\s*\d+/,eL=/^%/,ez=/[\\^$*+?|[\]().{}]/g;function eU(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i[t.toLowerCase(),e]))}function eq(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function eX(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eH(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eV(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function eG(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function eY(t,e,r){var n=eR.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function eK(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eJ(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function eZ(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function eQ(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function e0(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function e1(t,e,r){var n=eR.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function e2(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function e5(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function e3(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function e6(t,e,r){var n=eR.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function e4(t,e,r){var n=eR.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function e8(t,e,r){var n=eL.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function e9(t,e,r){var n=eR.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function e7(t,e,r){var n=eR.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function rt(t,e){return eU(t.getDate(),e,2)}function re(t,e){return eU(t.getHours(),e,2)}function rr(t,e){return eU(t.getHours()%12||12,e,2)}function rn(t,e){return eU(1+ei.count(eE(t),t),e,3)}function ro(t,e){return eU(t.getMilliseconds(),e,3)}function ri(t,e){return ro(t,e)+"000"}function ra(t,e){return eU(t.getMonth()+1,e,2)}function ru(t,e){return eU(t.getMinutes(),e,2)}function rc(t,e){return eU(t.getSeconds(),e,2)}function rl(t){var e=t.getDay();return 0===e?7:e}function rs(t,e){return eU(el.count(eE(t)-1,t),e,2)}function rf(t){var e=t.getDay();return e>=4||0===e?eh(t):eh.ceil(t)}function rp(t,e){return t=rf(t),eU(eh.count(eE(t),t)+(4===eE(t).getDay()),e,2)}function rh(t){return t.getDay()}function rd(t,e){return eU(es.count(eE(t)-1,t),e,2)}function ry(t,e){return eU(t.getFullYear()%100,e,2)}function rv(t,e){return eU((t=rf(t)).getFullYear()%100,e,2)}function rb(t,e){return eU(t.getFullYear()%1e4,e,4)}function rm(t,e){var r=t.getDay();return eU((t=r>=4||0===r?eh(t):eh.ceil(t)).getFullYear()%1e4,e,4)}function rg(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+eU(e/60|0,"0",2)+eU(e%60,"0",2)}function rx(t,e){return eU(t.getUTCDate(),e,2)}function rO(t,e){return eU(t.getUTCHours(),e,2)}function rw(t,e){return eU(t.getUTCHours()%12||12,e,2)}function rj(t,e){return eU(1+ea.count(eA(t),t),e,3)}function rS(t,e){return eU(t.getUTCMilliseconds(),e,3)}function rP(t,e){return rS(t,e)+"000"}function rE(t,e){return eU(t.getUTCMonth()+1,e,2)}function rA(t,e){return eU(t.getUTCMinutes(),e,2)}function rk(t,e){return eU(t.getUTCSeconds(),e,2)}function rM(t){var e=t.getUTCDay();return 0===e?7:e}function r_(t,e){return eU(eb.count(eA(t)-1,t),e,2)}function rT(t){var e=t.getUTCDay();return e>=4||0===e?eO(t):eO.ceil(t)}function rC(t,e){return t=rT(t),eU(eO.count(eA(t),t)+(4===eA(t).getUTCDay()),e,2)}function rI(t){return t.getUTCDay()}function rD(t,e){return eU(em.count(eA(t)-1,t),e,2)}function rN(t,e){return eU(t.getUTCFullYear()%100,e,2)}function rB(t,e){return eU((t=rT(t)).getUTCFullYear()%100,e,2)}function rR(t,e){return eU(t.getUTCFullYear()%1e4,e,4)}function rL(t,e){var r=t.getUTCDay();return eU((t=r>=4||0===r?eO(t):eO.ceil(t)).getUTCFullYear()%1e4,e,4)}function rz(){return"+0000"}function rU(){return"%"}function r$(t){return+t}function rF(t){return Math.floor(+t/1e3)}function rW(t){return new Date(t)}function rq(t){return t instanceof Date?+t:+new Date(+t)}function rX(t,e,r,n,o,i,a,u,c,l){var s=tw(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),b=l("%a %d"),m=l("%b %d"),g=l("%B"),x=l("%Y");function O(t){return(c(t)1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:r$,s:rF,S:rc,u:rl,U:rs,V:rp,w:rh,W:rd,x:null,X:null,y:ry,Y:rb,Z:rg,"%":rU},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:rx,e:rx,f:rP,g:rB,G:rL,H:rO,I:rw,j:rj,L:rS,m:rE,M:rA,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:r$,s:rF,S:rk,u:rM,U:r_,V:rC,w:rI,W:rD,x:null,X:null,y:rN,Y:rR,Z:rz,"%":rU},O={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=b.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:e0,e:e0,f:e4,g:eK,G:eY,H:e2,I:e2,j:e1,L:e6,m:eQ,M:e5,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:eZ,Q:e9,s:e7,S:e3,u:eX,U:eH,V:eV,w:eq,W:eG,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:eK,Y:eY,Z:eJ,"%":e8};function w(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++u53)return null;"w"in i||(i.w=1),"Z"in i?(n=(o=(n=eD(eN(i.y,0,1))).getUTCDay())>4||0===o?em.ceil(n):em(n),n=ea.offset(n,(i.V-1)*7),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(n=(o=(n=eI(eN(i.y,0,1))).getDay())>4||0===o?es.ceil(n):es(n),n=ei.offset(n,(i.V-1)*7),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?eD(eN(i.y,0,1)).getUTCDay():eI(eN(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,eD(i)):eI(i)}}function S(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a=c)return -1;if(37===(o=e.charCodeAt(a++))){if(!(i=O[(o=e.charAt(a++))in eB?e.charAt(a++):o])||(n=i(t,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}return g.x=w(r,g),g.X=w(n,g),g.c=w(e,g),x.x=w(r,x),x.X=w(n,x),x.c=w(e,x),{format:function(t){var e=w(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,u.parse,l=u.utcFormat,u.utcParse;var r2=r(58492),r5=r(51139);function r3(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function r6(t,e){return t[e]}function r4(t){let e=[];return e.key=t,e}var r8=r(12838),r9=r.n(r8),r7=r(45652),nt=r.n(r7),ne=r(87107),nr=r.n(ne),nn=r(14632),no=r.n(nn),ni=r(24665),na=r.n(ni),nu=r(32292),nc=r.n(nu),nl=r(14607),ns=r.n(nl),nf=r(50801),np=r.n(nf),nh=r(76158),nd=r.n(nh),ny=r(6440),nv=r.n(ny),nb=r(67501),nm=r.n(nb),ng=r(4e3),nx=r.n(ng);function nO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=e?r.apply(void 0,o):t(e-a,nP(function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var r=0,n=Array(e);rn&&(o=n,i=r),[o,i]}function nL(t,e,r){if(t.lte(0))return new(nx())(0);var n=nC.getDigitCount(t.toNumber()),o=new(nx())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new(nx())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new(nx())(Math.ceil(u))}function nz(t,e,r){var n=1,o=new(nx())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(nx())(10).pow(nC.getDigitCount(t)-1),o=new(nx())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(nx())(Math.floor(t)))}else 0===t?o=new(nx())(Math.floor((e-1)/2)):r||(o=new(nx())(Math.floor(t)));var a=Math.floor((e-1)/2);return nM(nk(function(t){return o.add(new(nx())(t-a).mul(n)).toNumber()}),nA)(0,e)}var nU=nT(function(t){var e=nD(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=nD(nR([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(nI(nA(0,o-1).map(function(){return 1/0}))):[].concat(nI(nA(0,o-1).map(function(){return-1/0})),[l]);return r>n?n_(s):s}if(c===l)return nz(c,o,i);var f=function t(e,r,n,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new(nx())(0),tickMin:new(nx())(0),tickMax:new(nx())(0)};var u=nL(new(nx())(r).sub(e).div(n-1),o,a),c=Math.ceil((i=e<=0&&r>=0?new(nx())(0):(i=new(nx())(e).add(r).div(2)).sub(new(nx())(i).mod(u))).sub(e).div(u).toNumber()),l=Math.ceil(new(nx())(r).sub(i).div(u).toNumber()),s=c+l+1;return s>n?t(e,r,n,o,a+1):(s0?l+(n-s):l,c=r>0?c:c+(n-s)),{step:u,tickMin:i.sub(new(nx())(c).mul(u)),tickMax:i.add(new(nx())(l).mul(u))})}(c,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=nC.rangeStep(h,d.add(new(nx())(.1).mul(p)),p);return r>n?n_(y):y});nT(function(t){var e=nD(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=nD(nR([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[r,n];if(c===l)return nz(c,o,i);var s=nL(new(nx())(l).sub(c).div(a-1),i,0),f=nM(nk(function(t){return new(nx())(c).add(new(nx())(t).mul(s)).toNumber()}),nA)(0,a).filter(function(t){return t>=c&&t<=l});return r>n?n_(f):f});var n$=nT(function(t,e){var r=nD(t,2),n=r[0],o=r[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=nD(nR([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var l=Math.max(e,2),s=nL(new(nx())(c).sub(u).div(l-1),i,0),f=[].concat(nI(nC.rangeStep(new(nx())(u),new(nx())(c).sub(new(nx())(.99).mul(s)),s)),[c]);return n>o?n_(f):f}),nF=r(73678),nW=r(89952),nq=r(61211),nX=r(20618);function nH(t){return(nH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nV(t){return function(t){if(Array.isArray(t))return nG(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return nG(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nG(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nG(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var u=o.range,c=0;c0?n[c-1].coordinate:n[a-1].coordinate,s=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if((0,nW.sA)(s-l)!==(0,nW.sA)(f-s)){var h=[];if((0,nW.sA)(f-s)===(0,nW.sA)(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[c].index;break}}else{var b=Math.min(l,f),m=Math.max(l,f);if(t>(b+s)/2&&t<=(m+s)/2){i=n[c].index;break}}}else for(var g=0;g0&&g(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i},n1=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?nK(nK({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},n2=function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),u=0,c=a.length;u=0});if(v&&v.length){var b=v[0].type.defaultProps,m=void 0!==b?nK(nK({},b),v[0].props):v[0].props,g=m.barSize,x=m[y];i[x]||(i[x]=[]);var O=nr()(g)?e:g;i[x].push({item:v[0],stackList:v.slice(1),barSize:nr()(O)?void 0:(0,nW.F4)(O,r,0)})}}return i},n5=function(t){var e,r=t.barGap,n=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=void 0===i?[]:i,u=t.maxBarSize,c=a.length;if(c<1)return null;var l=(0,nW.F4)(r,o,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/c,h=a.reduce(function(t,e){return t+e.barSize||0},0);(h+=(c-1)*l)>=o&&(h-=(c-1)*l,l=0),h>=o&&p>0&&(f=!0,p*=.9,h=c*p);var d={offset:((o-h)/2>>0)-l,size:0};e=a.reduce(function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(nV(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:d})}),n},s)}else{var y=(0,nW.F4)(n,o,0,!0);o-2*y-(c-1)*l<=0&&(l=0);var v=(o-2*y-(c-1)*l)/c;v>1&&(v>>=0);var b=u===+u?Math.min(v,u):v;e=a.reduce(function(t,e,r){var n=[].concat(nV(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-b)/2,size:b}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},s)}return e},n3=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=(0,nX.g)({children:o,legendWidth:u});if(c){var l=n||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&(0,nW.Et)(t[p]))return nK(nK({},t),{},nJ({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&(0,nW.Et)(t[h]))return nK(nK({},t),{},nJ({},h,t[h]+(f||0)))}return t},n6=function(t,e,r,n,o){var i=e.props.children,a=(0,nq.aS)(i,nF.u).filter(function(t){var e;return e=t.props.direction,!!nr()(o)||("horizontal"===n?"yAxis"===o:"vertical"===n||"x"===e?"xAxis"===o:"y"!==e||"yAxis"===o)});if(a&&a.length){var u=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=nZ(e,r);if(nr()(n))return t;var o=Array.isArray(n)?[nt()(n),r9()(n)]:[n,n],i=u.reduce(function(t,r){var n=nZ(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]},[1/0,-1/0])}return null},n4=function(t,e,r,n,o){var i=e.map(function(e){return n6(t,e,r,o,n)}).filter(function(t){return!nr()(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},n8=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&n6(t,e,i,n)||nQ(t,i,r,o)});if("number"===r)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return i.reduce(function(t,e){for(var r=0,n=e.length;r=2?2*(0,nW.sA)(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(o?o.indexOf(t):t)+c,value:t,offset:c}}).filter(function(t){return!np()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+c,value:t,offset:c}}):n.domain().map(function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}})},oe=new WeakMap,or=function(t,e){if("function"!=typeof e)return t;oe.has(t)||oe.set(t,new WeakMap);var r=oe.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},on=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:tB(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:tB(),realScaleType:"linear"};if(na()(n)){var u="scale".concat(nd()(n));return{scale:(s[u]||f.z)(),realScaleType:s[u]?u:"point"}}return no()(n)?{scale:n}:{scale:f.z(),realScaleType:"point"}},oo=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-1e-4,i=Math.max(n[0],n[1])+1e-4,a=t(e[0]),u=t(e[r-1]);(ai||ui)&&t.domain([e[0],e[r-1]])}},oi=function(t,e){if(!t)return null;for(var r=0,n=t.length;rn)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i0){for(var r,n=0,o=t[e[0]],i=o.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},oc=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=ou[r];return(function(){var t=(0,r5.A)([]),e=r3,r=r1,n=r6;function o(o){var i,a,u=Array.from(t.apply(this,arguments),r4),c=u.length,l=-1;for(let t of o)for(i=0,++l;i=0?0:o<0?o:n}return r[0]},od=function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?nK(nK({},t.type.defaultProps),t.props):t.props).stackId;if((0,nW.vh)(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null},oy=function(t,e,r){return Object.keys(t).reduce(function(n,o){var i=t[o].stackedData.reduce(function(t,n){var o=n.slice(e,r+1).reduce(function(t,e){return[nt()(e.concat([t[0]]).filter(nW.Et)),r9()(e.concat([t[1]]).filter(nW.Et))]},[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},ov=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ob=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,om=function(t,e,r){if(no()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if((0,nW.Et)(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(ov.test(t[0])){var o=+ov.exec(t[0])[1];n[0]=e[0]-o}else no()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if((0,nW.Et)(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(ob.test(t[1])){var i=+ob.exec(t[1])[1];n[1]=e[1]+i}else no()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},og=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=nm()(e,function(t){return t.coordinate}),i=1/0,a=1,u=o.length;a{"use strict";r.d(e,{A3:()=>f,Pu:()=>s});var n=r(95392);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||n.m.isSsr)return{width:0,height:0};var o=(Object.keys(e=a({},r)).forEach(function(t){e[t]||delete e[t]}),e),i=JSON.stringify({text:t,copyStyle:o});if(u.widthCache[i])return u.widthCache[i];try{var s=document.getElementById(l);s||((s=document.createElement("span")).setAttribute("id",l),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=a(a({},c),o);Object.assign(s.style,f),s.textContent="".concat(t);var p=s.getBoundingClientRect(),h={width:p.width,height:p.height};return u.widthCache[i]=h,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),h}catch(t){return{width:0,height:0}}},f=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},89952:(t,e,r)=>{"use strict";r.d(e,{CG:()=>g,Dj:()=>x,Et:()=>h,F4:()=>b,NF:()=>v,_3:()=>p,eP:()=>O,lX:()=>m,sA:()=>f,vh:()=>d});var n=r(24665),o=r.n(n),i=r(50801),a=r.n(i),u=r(32292),c=r.n(u),l=r(45493),s=r.n(l),f=function(t){return 0===t?0:t>0?1:-1},p=function(t){return o()(t)&&t.indexOf("%")===t.length-1},h=function(t){return s()(t)&&!a()(t)},d=function(t){return h(t)||o()(t)},y=0,v=function(t){var e=++y;return"".concat(t||"").concat(e)},b=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(t)&&!o()(t))return n;if(p(t)){var u=t.indexOf("%");r=e*parseFloat(t.slice(0,u))/100}else r=+t;return a()(r)&&(r=n),i&&r>e&&(r=e),r},m=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},g=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n{"use strict";r.d(e,{m:()=>n});var n={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return n[t]},set:function(t,e){if("string"==typeof t)n[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){n[e]=t[e]})}}}},42228:(t,e,r)=>{"use strict";r.d(e,{R:()=>n});var n=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;eu,Kg:()=>a,yy:()=>f}),r(87107),r(20107),r(14632);var a=Math.PI/180,u=function(t,e,r,n){return{x:t+Math.cos(-a*n)*r,y:e+Math.sin(-a*n)*r}},c=function(t,e){var r=t.x,n=t.y;return Math.sqrt(Math.pow(r-e.x,2)+Math.pow(n-e.y,2))},l=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=c({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var u=Math.acos((r-o)/a);return n>i&&(u=2*Math.PI-u),{radius:a,angle:180*u/Math.PI,angleInRadian:u}},s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.min(Math.floor(e/360),Math.floor(r/360));return{startAngle:e-360*n,endAngle:r-360*n}},f=function(t,e){var r,n=l({x:t.x,y:t.y},e),o=n.radius,a=n.angle,u=e.innerRadius,c=e.outerRadius;if(oc)return!1;if(0===o)return!0;var f=s(e),p=f.startAngle,h=f.endAngle,d=a;if(p<=h){for(;d>h;)d-=360;for(;d=p&&d<=h}else{for(;d>p;)d-=360;for(;d=h&&d<=p}return r?i(i({},e),{},{radius:o,angle:d+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null}},61211:(t,e,r)=>{"use strict";r.d(e,{AW:()=>L,BU:()=>k,J9:()=>I,Me:()=>M,Mn:()=>j,OV:()=>D,X_:()=>R,aS:()=>A,ee:()=>B,sT:()=>T});var n=r(32292),o=r.n(n),i=r(87107),a=r.n(i),u=r(24665),c=r.n(u),l=r(14632),s=r.n(l),f=r(50683),p=r.n(f),h=r(20107),d=r(55473),y=r(89952),v=r(45707),b=r(35956),m=["children"],g=["children"];function x(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},j=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,P=null,E=function t(e){if(e===S&&Array.isArray(P))return P;var r=[];return h.Children.forEach(e,function(e){a()(e)||((0,d.zv)(e)?r=r.concat(t(e.props.children)):r.push(e))}),P=r,S=e,r};function A(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return j(t)}):[j(e)],E(t).forEach(function(t){var e=o()(t,"type.displayName")||o()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function k(t,e){var r=A(t,e);return r&&r[0]}var M=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!!(0,y.Et)(r)&&!(r<=0)&&!!(0,y.Et)(n)&&!(n<=0)},_=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],T=function(t){return t&&"object"===O(t)&&"clipDot"in t},C=function(t,e,r,n){var o,i=null!==(o=null===b.VU||void 0===b.VU?void 0:b.VU[n])&&void 0!==o?o:[];return!s()(t)&&(n&&i.includes(e)||b.QQ.includes(e))||r&&b.j2.includes(e)},I=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,h.isValidElement)(t)&&(n=t.props),!p()(n))return null;var o={};return Object.keys(n).forEach(function(t){var i;C(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])}),o},D=function t(e,r){if(e===r)return!0;var n=h.Children.count(e);if(n!==h.Children.count(r))return!1;if(0===n)return!0;if(1===n)return N(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o=0)r.push(t);else if(t){var i=j(t.type),a=e[i]||{},u=a.handler,l=a.once;if(u&&(!l||!n[i])){var s=u(t,i,o);r.push(s),n[i]=!0}}}),r},R=function(t){var e=t&&t.type;return e&&w[e]?w[e]:null},L=function(t,e){return E(e).indexOf(t)}},45707:(t,e,r)=>{"use strict";function n(t,e){for(var r in t)if(({}).hasOwnProperty.call(t,r)&&(!({}).hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if(({}).hasOwnProperty.call(e,n)&&!({}).hasOwnProperty.call(t,n))return!1;return!0}r.d(e,{b:()=>n})},20618:(t,e,r)=>{"use strict";r.d(e,{g:()=>l});var n=r(58736),o=r(95492),i=r(61211);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e{"use strict";r.d(e,{s:()=>u});var n=r(79948),o=r.n(n),i=r(14632),a=r.n(i);function u(t,e,r){return!0===e?o()(t,r):a()(e)?o()(t,e):t}},35956:(t,e,r)=>{"use strict";r.d(e,{QQ:()=>u,VU:()=>l,XC:()=>p,_U:()=>f,j2:()=>s});var n=r(20107),o=r(50683),i=r.n(o);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],c=["points","pathLength"],l={svg:["viewBox","children"],polygon:c,polyline:c},s=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,n.isValidElement)(t)&&(r=t.props),!i()(r))return null;var o={};return Object.keys(r).forEach(function(t){s.includes(t)&&(o[t]=e||function(e){return r[t](r,e)})}),o},p=function(t,e,r){if(!i()(t)||"object"!==a(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];s.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t){return i(e,r,t),null})}),n}},63949:(t,e,r)=>{"use strict";r.d(e,{A:()=>i,z:()=>a});var n=r(87982),o=r(68399);function i(){var t,e,r=(0,o.A)().unknown(void 0),a=r.domain,u=r.range,c=0,l=1,s=!1,f=0,p=0,h=.5;function d(){var r=a().length,n=l{"use strict";function n(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}r.d(e,{C:()=>n,K:()=>o})},68399:(t,e,r)=>{"use strict";r.d(e,{A:()=>function t(){var e=new n,r=[],o=[],i=u;function c(t){let n=e.get(t);if(void 0===n){if(i!==u)return i;e.set(t,n=r.push(t)-1)}return o[n%o.length]}return c.domain=function(t){if(!arguments.length)return r.slice();for(let o of(r=[],e=new n,t))e.has(o)||e.set(o,r.push(o)-1);return c},c.range=function(t){return arguments.length?(o=Array.from(t),c):o.slice()},c.unknown=function(t){return arguments.length?(i=t,c):i},c.copy=function(){return t(r,o).unknown(i)},a.C.apply(c,arguments),c},h:()=>u});class n extends Map{constructor(t,e=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function o({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function i(t){return null!==t&&"object"==typeof t?t.valueOf():t}var a=r(87982);let u=Symbol("implicit")},58492:(t,e,r)=>{"use strict";function n(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}r.d(e,{A:()=>n}),Array.prototype.slice},51139:(t,e,r)=>{"use strict";function n(t){return function(){return t}}r.d(e,{A:()=>n})},95327:(t,e,r)=>{"use strict";r.d(e,{i:()=>c});let n=Math.PI,o=2*n,i=o-1e-6;function a(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return a;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e1e-6){if(Math.abs(f*c-l*s)>1e-6&&i){let h=r-a,d=o-u,y=c*c+l*l,v=Math.sqrt(y),b=Math.sqrt(p),m=i*Math.tan((n-Math.acos((y+p-(h*h+d*d))/(2*v*b)))/2),g=m/b,x=m/v;Math.abs(g-1)>1e-6&&this._append`L${t+g*s},${e+g*f}`,this._append`A${i},${i},0,0,${+(f*h>s*d)},${this._x1=t+x*c},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,r,a,u,c){if(t=+t,e=+e,c=!!c,(r=+r)<0)throw Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),f=t+l,p=e+s,h=1^c,d=c?a-u:u-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,r&&(d<0&&(d=d%o+o),d>i?this._append`A${r},${r},0,1,${h},${t-l},${e-s}A${r},${r},0,1,${h},${this._x1=f},${this._y1=p}`:d>1e-6&&this._append`A${r},${r},0,${+(d>=n)},${h},${this._x1=t+r*Math.cos(u)},${this._y1=e+r*Math.sin(u)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new u(e)}u.prototype},45082:(t,e,r)=>{"use strict";function n(t,e){if(!t)throw Error("Invariant failed")}r.d(e,{A:()=>n})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1074-d79f1d7c29de56fa.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1074-d79f1d7c29de56fa.js new file mode 100644 index 0000000..f75d8ad --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1074-d79f1d7c29de56fa.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1074],{4e3:function(t,e,r){var n;!function(o){"use strict";var i,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",s=c+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=f(1286742750677284.5),y={};function v(t,e){var r,n,o,i,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?E(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=s.length):(n=s,o=a,c=l.length),i>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=s.length)<0&&(i=c,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/1e7|0,l[i]%=1e7;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=o,u?E(e,p):e}function b(t,e,r){if(t!==~~t||tr)throw Error(l+t)}function m(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;et.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(o=t.d.length)?n:o;et.d[e]^this.s<0?1:-1;return n===o?0:n>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return g(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return E(g(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,r=this.constructor,n=r.precision,o=n+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(c+"NaN");if(this.s<1)throw Error(c+(this.s?"NaN":"-Infinity"));return this.eq(i)?new r(0):(u=!1,e=g(S(this,o),S(t,o),o),u=!0,E(e,n))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?A(this,t):v(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(c+"NaN");return this.s?(u=!1,e=g(this,t,0,1).times(t),u=!0,this.minus(e)):E(new r(this),n)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?v(this,t):A(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=O(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},y.squareRoot=y.sqrt=function(){var t,e,r,n,o,i,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(c+"NaN")}for(t=O(this),u=!1,0==(o=Math.sqrt(+this))||o==1/0?(((e=m(this.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new l(o.toString()),o=a=(r=l.precision)+3;;)if(n=(i=n).plus(g(this,i,a+2)).times(.5),m(i.d).slice(0,a)===(e=m(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(E(i,r+1,0),i.times(i).eq(this)){n=i;break}}else if("9999"!=e)break;a+=4}return u=!0,E(n,r)},y.times=y.mul=function(t){var e,r,n,o,i,a,c,l,s,f=this.constructor,p=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(l=p.length)<(s=h.length)&&(i=p,p=h,h=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)c=i[o]+h[n]*p[o-n-1]+e,i[o--]=c%1e7|0,e=c/1e7|0;i[o]=(i[o]+e)%1e7|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,u?E(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var r=this,n=r.constructor;return(r=new n(r),void 0===t)?r:(b(t,0,1e9),void 0===e?e=n.rounding:b(e,0,8),E(r,t+O(r)+1,e))},y.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=k(n,!0):(b(t,0,1e9),void 0===e?e=o.rounding:b(e,0,8),r=k(n=E(new o(n),t+1,e),!0,t+1)),r},y.toFixed=function(t,e){var r,n,o=this.constructor;return void 0===t?k(this):(b(t,0,1e9),void 0===e?e=o.rounding:b(e,0,8),r=k((n=E(new o(this),t+O(this)+1,e)).abs(),!1,t+O(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var t=this.constructor;return E(new t(this),O(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,r,n,o,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(i);if(!(s=new p(s)).s){if(t.s<1)throw Error(c+"Infinity");return s}if(s.eq(i))return s;if(n=p.precision,t.eq(i))return E(s,n);if(l=(e=t.e)>=(r=t.d.length-1),a=s.s,l){if((r=h<0?-h:h)<=0x1fffffffffffff){for(o=new p(i),e=Math.ceil(n/7+4),u=!1;r%2&&M((o=o.times(s)).d,e),0!==(r=f(r/2));)M((s=s.times(s)).d,e);return u=!0,t.s<0?new p(i).div(o):E(o,n)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,u=!1,o=t.times(S(s,n+12)),u=!0,(o=x(o)).s=a,o},y.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?(r=O(o),n=k(o,r<=i.toExpNeg||r>=i.toExpPos)):(b(t,1,1e9),void 0===e?e=i.rounding:b(e,0,8),r=O(o=E(new i(o),t,e)),n=k(o,t<=r||r<=i.toExpNeg,t)),n},y.toSignificantDigits=y.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(b(t,1,1e9),void 0===e?e=r.rounding:b(e,0,8)),E(new r(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=O(this),e=this.constructor;return k(this,t<=e.toExpNeg||t>=e.toExpPos)};var g=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;oe[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]1;)t.shift()}return function(n,o,i,a){var u,l,s,f,p,h,d,y,v,b,m,g,x,w,j,S,P,A,k=n.constructor,M=n.s==o.s?1:-1,_=n.d,T=o.d;if(!n.s)return new k(n);if(!o.s)throw Error(c+"Division by zero");for(s=0,l=n.e-o.e,P=T.length,j=_.length,y=(d=new k(M)).d=[];T[s]==(_[s]||0);)++s;if(T[s]>(_[s]||0)&&--l,(g=null==i?i=k.precision:a?i+(O(n)-O(o))+1:i)<0)return new k(0);if(g=g/7+2|0,s=0,1==P)for(f=0,T=T[0],g++;(s1&&(T=t(T,f),_=t(_,f),P=T.length,j=_.length),w=P,b=(v=_.slice(0,P)).length;b=1e7/2&&++S;do f=0,(u=e(T,v,P,b))<0?(m=v[0],P!=b&&(m=1e7*m+(v[1]||0)),(f=m/S|0)>1?(f>=1e7&&(f=1e7-1),h=(p=t(T,f)).length,b=v.length,1==(u=e(p,v,h,b))&&(f--,r(p,P16)throw Error(s+O(t));if(!t.s)return new h(i);for(null==e?(u=!1,c=d):c=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=o=new h(i),h.precision=c;;){if(n=E(n.times(t),c),r=r.times(++l),m((a=o.plus(g(n,r,c))).d).slice(0,c)===m(o.d).slice(0,c)){for(;f--;)o=E(o.times(o),c);return h.precision=d,null==e?(u=!0,E(o,d)):o}o=a}}function O(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function w(t,e,r){if(e>t.LN10.sd())throw u=!0,r&&(t.precision=r),Error(c+"LN10 precision limit exceeded");return E(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function S(t,e){var r,n,o,a,l,s,f,p,h,d=1,y=t,v=y.d,b=y.constructor,x=b.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new b(0);if(null==e?(u=!1,p=x):p=e,y.eq(10))return null==e&&(u=!0),w(b,p);if(p+=10,b.precision=p,n=(r=m(v)).charAt(0),!(15e14>Math.abs(a=O(y))))return f=w(b,p+2,x).times(a+""),y=S(new b(n+"."+r.slice(1)),p-10).plus(f),b.precision=x,null==e?(u=!0,E(y,x)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=m((y=y.times(t)).d)).charAt(0),d++;for(a=O(y),n>1?(y=new b("0."+r),a++):y=new b(n+"."+r.slice(1)),s=l=y=g(y.minus(i),y.plus(i),p),h=E(y.times(y),p),o=3;;){if(l=E(l.times(h),p),m((f=s.plus(g(l,new b(o),p))).d).slice(0,p)===m(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(w(b,p+2,x).times(a+""))),s=g(s,new b(d),p),b.precision=x,null==e?(u=!0,E(s,x)):s;s=f,o+=2}}function P(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=f(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),nd||t.e<-d))throw Error(s+r)}else t.s=0,t.e=0,t.d=[0];return t}function E(t,e,r){var n,o,i,a,c,l,h,y,v=t.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,h=v[y=0];else{if((y=Math.ceil((n+1)/7))>=(i=v.length))return t;for(a=1,h=i=v[y];i>=10;i/=10)a++;n%=7,o=n-7+a}if(void 0!==r&&(c=h/(i=p(10,a-o-1))%10|0,l=e<0||void 0!==v[y+1]||h%i,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?h/p(10,a-o):0:v[y-1])%10&1||r==(t.s<0?8:7))),e<1||!v[0])return l?(i=O(t),v.length=1,e=e-i-1,v[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==n?(v.length=y,i=1,y--):(v.length=y+1,i=p(10,7-n),v[y]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==y){1e7==(v[0]+=i)&&(v[0]=1,++t.e);break}if(v[y]+=i,1e7!=v[y])break;v[y--]=0,i=1}for(n=v.length;0===v[--n];)v.pop();if(u&&(t.e>d||t.e<-d))throw Error(s+O(t));return t}function A(t,e){var r,n,o,i,a,c,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?E(e,d):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,c=p.length):(r=p,n=s,c=l.length),a>(o=Math.max(Math.ceil(d/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(c=p.length))&&(c=o),o=0;o0;--o)l[c++]=0;for(o=p.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+j(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,r&&(n=r-a)>0&&(i+=j(n))):o>=a?(i+=j(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+j(n))):((n=o+1)0&&(o+1===a&&(i+="."),i+=j(n))),t.s<0?"-"+i:i}function M(t,e){if(t.length>e)return t.length=e,!0}function _(t){if(!t||"object"!=typeof t)throw Error(c+"Object expected");var e,r,n,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=o[e+1]&&n<=o[e+2])this[r]=n;else throw Error(l+r+": "+n)}if(void 0!==(n=t[r="LN10"])){if(n==Math.LN10)this[r]=new this(n);else throw Error(l+r+": "+n)}return this}(a=function t(e){var r,n,o;function i(t){if(!(this instanceof i))return new i(t);if(this.constructor=i,t instanceof i){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return P(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))P(this,t);else throw Error(l+t)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=_,void 0===e&&(e={}),e)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];r{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=Array(i);o{var n=r(2748)(r(74421),"DataView");t.exports=n},10801:(t,e,r)=>{var n=r(15066),o=r(15638),i=r(8183),a=r(59659),u=r(71619);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(64598),o=r(44602),i=r(54299),a=r(49911),u=r(17039);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(2748)(r(74421),"Map");t.exports=n},15933:(t,e,r)=>{var n=r(21470),o=r(9330),i=r(58963),a=r(735),u=r(20135);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(2748)(r(74421),"Promise");t.exports=n},46083:(t,e,r)=>{var n=r(2748)(r(74421),"Set");t.exports=n},93395:(t,e,r)=>{var n=r(15933),o=r(50350),i=r(81773);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e{var n=r(6965),o=r(85868),i=r(40036),a=r(88365),u=r(18913),c=r(40305);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=c,t.exports=l},35329:(t,e,r)=>{var n=r(74421).Symbol;t.exports=n},252:(t,e,r)=>{var n=r(74421).Uint8Array;t.exports=n},32901:(t,e,r)=>{var n=r(2748)(r(74421),"WeakMap");t.exports=n},46879:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},41129:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r{var n=r(26513);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},58515:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n{var n=r(76346),o=r(3108),i=r(55649),a=r(91050),u=r(86887),c=r(20897),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&c(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)(e||l.call(t,v))&&!(h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y)))&&d.push(v);return d}},3184:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t){return t.split("")}},42489:(t,e,r)=>{var n=r(93126);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},79514:(t,e,r)=>{var n=r(3779);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},30865:(t,e,r)=>{var n=r(16101),o=r(30433)(n);t.exports=o},41111:(t,e,r)=>{var n=r(30865);t.exports=function(t,e){var r=!0;return n(t,function(t,n,o){return r=!!e(t,n,o)}),r}},89691:(t,e,r)=>{var n=r(8700);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i{var n=r(82794),o=r(70713);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},82783:(t,e,r)=>{var n=r(72463)();t.exports=n},16101:(t,e,r)=>{var n=r(82783),o=r(74092);t.exports=function(t,e){return t&&n(t,e,o)}},58180:(t,e,r)=>{var n=r(81881),o=r(26767);t.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r{var n=r(82794),o=r(55649);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},89212:(t,e,r)=>{var n=r(35329),o=r(71957),i=r(19914),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},57991:t=>{t.exports=function(t,e){return t>e}},11971:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},26513:(t,e,r)=>{var n=r(73461),o=r(57201),i=r(38225);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},71940:(t,e,r)=>{var n=r(89212),o=r(22964);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},86696:(t,e,r)=>{var n=r(59578),o=r(22964);t.exports=function t(e,r,i,a,u){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,a,t,u):e!=e&&r!=r)}},59578:(t,e,r)=>{var n=r(62863),o=r(9617),i=r(24366),a=r(89589),u=r(30393),c=r(55649),l=r(91050),s=r(20897),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,b){var m=c(t),g=c(e),x=m?p:u(t),O=g?p:u(e);x=x==f?h:x,O=O==f?h:O;var w=x==h,j=O==h,S=x==O;if(S&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(S&&!w)return b||(b=new n),m||s(t)?o(t,e,r,y,v,b):i(t,e,x,r,y,v,b);if(!(1&r)){var P=w&&d.call(t,"__wrapped__"),E=j&&d.call(e,"__wrapped__");if(P||E){var A=P?t.value():t,k=E?e.value():e;return b||(b=new n),v(A,k,r,y,b)}}return!!S&&(b||(b=new n),a(t,e,r,y,v,b))}},12657:(t,e,r)=>{var n=r(62863),o=r(86696);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a{t.exports=function(t){return t!=t}},75895:(t,e,r)=>{var n=r(14632),o=r(51164),i=r(50683),a=r(81745),u=/^\[object .+?Constructor\]$/,c=Object.prototype,l=Function.prototype.toString,s=c.hasOwnProperty,f=RegExp("^"+l.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:u).test(a(t))}},80193:(t,e,r)=>{var n=r(89212),o=r(40312),i=r(22964),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},15717:(t,e,r)=>{var n=r(30197),o=r(23536),i=r(2586),a=r(55649),u=r(84169);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},70636:(t,e,r)=>{var n=r(44329),o=r(55410),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},49064:t=>{t.exports=function(t,e){return t{var n=r(30865),o=r(74934);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,function(t,n,o){i[++r]=e(t,n,o)}),i}},30197:(t,e,r)=>{var n=r(12657),o=r(24304),i=r(48939);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},23536:(t,e,r)=>{var n=r(86696),o=r(32292),i=r(60419),a=r(26192),u=r(29604),c=r(48939),l=r(26767);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},20789:(t,e,r)=>{var n=r(3184),o=r(58180),i=r(15717),a=r(13134),u=r(69197),c=r(82451),l=r(38688),s=r(2586),f=r(55649);t.exports=function(t,e,r){e=e.length?n(e,function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t}):[s];var p=-1;return e=n(e,c(i)),u(a(t,function(t,r,o){return{criteria:n(e,function(e){return e(t)}),index:++p,value:t}}),function(t,e){return l(t,e,r)})}},61097:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},37487:(t,e,r)=>{var n=r(58180);t.exports=function(t){return function(e){return n(e,t)}}},87817:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,u=r(e((n-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},4090:(t,e,r)=>{var n=r(2586),o=r(58353),i=r(69595);t.exports=function(t,e){return i(o(t,e,n),t+"")}},15344:(t,e,r)=>{var n=r(73928),o=r(3779),i=r(2586),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},13850:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n{var n=r(30865);t.exports=function(t,e){var r;return n(t,function(t,n,o){return!(r=e(t,n,o))}),!!r}},69197:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},76346:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{var n=r(35329),o=r(3184),i=r(55649),a=r(8700),u=1/0,c=n?n.prototype:void 0,l=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return l?l.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},95680:(t,e,r)=>{var n=r(53434),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},82451:t=>{t.exports=function(t){return function(e){return t(e)}}},26349:(t,e,r)=>{var n=r(93395),o=r(24919),i=r(58515),a=r(25327),u=r(82483),c=r(11671);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l{t.exports=function(t,e){return t.has(e)}},81881:(t,e,r)=>{var n=r(55649),o=r(26192),i=r(80314),a=r(55656);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},35e3:(t,e,r)=>{var n=r(13850);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},13410:(t,e,r)=>{var n=r(8700);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,c=null===e,l=e==e,s=n(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t{var n=r(13410);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=r.length;++o=c)return l;return l*("desc"==r[o]?-1:1)}}return t.index-e.index}},13325:(t,e,r)=>{var n=r(74421)["__core-js_shared__"];t.exports=n},30433:(t,e,r)=>{var n=r(74934);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},78265:(t,e,r)=>{var n=r(35e3),o=r(68018),i=r(74662),a=r(55656);t.exports=function(t){return function(e){var r=o(e=a(e))?i(e):void 0,u=r?r[0]:e.charAt(0),c=r?n(r,1).join(""):e.slice(1);return u[t]()+c}}},4598:(t,e,r)=>{var n=r(15717),o=r(74934),i=r(74092);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},61102:(t,e,r)=>{var n=r(87817),o=r(91276),i=r(54962);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e{var n=r(46083),o=r(27964),i=r(11671),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},3779:(t,e,r)=>{var n=r(2748),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},9617:(t,e,r)=>{var n=r(93395),o=r(89686),i=r(25327);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++d{var n=r(35329),o=r(252),i=r(93126),a=r(9617),u=r(49773),c=r(11671),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=u;case"[object Set]":var d=1&n;if(h||(h=c),t.size!=e.size&&!d)break;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},89589:(t,e,r)=>{var n=r(97038),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},97038:(t,e,r)=>{var n=r(50963),o=r(20768),i=r(74092);t.exports=function(t){return n(t,i,o)}},7819:(t,e,r)=>{var n=r(11884);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},24304:(t,e,r)=>{var n=r(29604),o=r(74092);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},2748:(t,e,r)=>{var n=r(75895),o=r(13372);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},95459:(t,e,r)=>{var n=r(76945)(Object.getPrototypeOf,Object);t.exports=n},71957:(t,e,r)=>{var n=r(35329),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},20768:(t,e,r)=>{var n=r(11588),o=r(25297),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:n(a(t=Object(t)),function(e){return i.call(t,e)})}:o;t.exports=u},30393:(t,e,r)=>{var n=r(19120),o=r(46817),i=r(14006),a=r(46083),u=r(32901),c=r(89212),l=r(81745),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),b=l(i),m=l(a),g=l(u),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=h)&&(x=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case b:return f;case m:return p;case g:return h}return e}),t.exports=x},13372:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},4012:(t,e,r)=>{var n=r(81881),o=r(3108),i=r(55649),a=r(86887),u=r(40312),c=r(26767);t.exports=function(t,e,r){e=n(e,t);for(var l=-1,s=e.length,f=!1;++l{var e=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},15066:(t,e,r)=>{var n=r(3474);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},15638:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},8183:(t,e,r)=>{var n=r(3474),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},59659:(t,e,r)=>{var n=r(3474),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},71619:(t,e,r)=>{var n=r(3474);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},70713:(t,e,r)=>{var n=r(35329),o=r(3108),i=r(55649),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},86887:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{var n=r(93126),o=r(74934),i=r(86887),a=r(50683);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return("number"==u?!!(o(r)&&i(e,r.length)):"string"==u&&e in r)&&n(r[e],t)}},26192:(t,e,r)=>{var n=r(55649),o=r(8700),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},11884:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},51164:(t,e,r)=>{var n=r(13325),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},44329:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},29604:(t,e,r)=>{var n=r(50683);t.exports=function(t){return t==t&&!n(t)}},64598:t=>{t.exports=function(){this.__data__=[],this.size=0}},44602:(t,e,r)=>{var n=r(42489),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},54299:(t,e,r)=>{var n=r(42489);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},49911:(t,e,r)=>{var n=r(42489);t.exports=function(t){return n(this.__data__,t)>-1}},17039:(t,e,r)=>{var n=r(42489);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},21470:(t,e,r)=>{var n=r(10801),o=r(6965),i=r(46817);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},9330:(t,e,r)=>{var n=r(7819);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},58963:(t,e,r)=>{var n=r(7819);t.exports=function(t){return n(this,t).get(t)}},735:(t,e,r)=>{var n=r(7819);t.exports=function(t){return n(this,t).has(t)}},20135:(t,e,r)=>{var n=r(7819);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},49773:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},48939:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},73646:(t,e,r)=>{var n=r(80480);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},3474:(t,e,r)=>{var n=r(2748)(Object,"create");t.exports=n},55410:(t,e,r)=>{var n=r(76945)(Object.keys,Object);t.exports=n},3469:(t,e,r)=>{t=r.nmd(t);var n=r(54956),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},19914:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},76945:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},58353:(t,e,r)=>{var n=r(46879),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a{var n=r(54956),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},50350:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},81773:t=>{t.exports=function(t){return this.__data__.has(t)}},11671:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},69595:(t,e,r)=>{var n=r(15344),o=r(64559)(n);t.exports=o},64559:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},85868:(t,e,r)=>{var n=r(6965);t.exports=function(){this.__data__=new n,this.size=0}},40036:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},88365:t=>{t.exports=function(t){return this.__data__.get(t)}},18913:t=>{t.exports=function(t){return this.__data__.has(t)}},40305:(t,e,r)=>{var n=r(6965),o=r(46817),i=r(15933);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},38225:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n{var n=r(13706),o=r(68018),i=r(60342);t.exports=function(t){return o(t)?i(t):n(t)}},80314:(t,e,r)=>{var n=r(73646),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e});t.exports=a},26767:(t,e,r)=>{var n=r(8700),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},81745:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},53434:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},60342:t=>{var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",o="[^"+e+"]",i="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+r+"|"+n+")?",c="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[o,i,a].join("|")+")"+c+u+")*",s=RegExp(n+"(?="+n+")|(?:"+[o+r+"?",r,i,a,"["+e+"]"].join("|")+")"+(c+u+l),"g");t.exports=function(t){return t.match(s)||[]}},73928:t=>{t.exports=function(t){return function(){return t}}},59243:(t,e,r)=>{var n=r(50683),o=r(92816),i=r(82524),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,h,d=0,y=!1,v=!1,b=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,d=e,f=t.apply(n,r)}function g(t){var r=t-h,n=t-d;return void 0===h||r>=e||r<0||v&&n>=s}function x(){var t,r,n,i=o();if(g(i))return O(i);p=setTimeout(x,(t=i-h,r=i-d,n=e-t,v?u(n,s-r):n))}function O(t){return(p=void 0,b&&c)?m(t):(c=l=void 0,f)}function w(){var t,r=o(),n=g(r);if(c=arguments,l=this,h=r,n){if(void 0===p)return d=t=h,p=setTimeout(x,e),y?m(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),m(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},w.flush=function(){return void 0===p?f:O(o())},w}},93126:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},83191:(t,e,r)=>{var n=r(41129),o=r(41111),i=r(15717),a=r(55649),u=r(91276);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(t,i(e,3))}},1339:(t,e,r)=>{var n=r(4598)(r(17621));t.exports=n},17621:(t,e,r)=>{var n=r(73461),o=r(15717),i=r(41265),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return -1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},14607:(t,e,r)=>{var n=r(85646),o=r(18190);t.exports=function(t,e){return n(o(t,e),1)}},32292:(t,e,r)=>{var n=r(58180);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},60419:(t,e,r)=>{var n=r(11971),o=r(4012);t.exports=function(t,e){return null!=t&&o(t,e,n)}},2586:t=>{t.exports=function(t){return t}},3108:(t,e,r)=>{var n=r(71940),o=r(22964),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},55649:t=>{var e=Array.isArray;t.exports=e},74934:(t,e,r)=>{var n=r(14632),o=r(40312);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},46420:(t,e,r)=>{var n=r(89212),o=r(22964);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},91050:(t,e,r)=>{t=r.nmd(t);var n=r(74421),o=r(44731),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,c=u?u.isBuffer:void 0;t.exports=c||o},6440:(t,e,r)=>{var n=r(86696);t.exports=function(t,e){return n(t,e)}},14632:(t,e,r)=>{var n=r(89212),o=r(50683);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},40312:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},50801:(t,e,r)=>{var n=r(45493);t.exports=function(t){return n(t)&&t!=+t}},87107:t=>{t.exports=function(t){return null==t}},45493:(t,e,r)=>{var n=r(89212),o=r(22964);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},50683:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},22964:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},55519:(t,e,r)=>{var n=r(89212),o=r(95459),i=r(22964),a=Object.prototype,u=Function.prototype.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},24665:(t,e,r)=>{var n=r(89212),o=r(55649),i=r(22964);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},8700:(t,e,r)=>{var n=r(89212),o=r(22964);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},20897:(t,e,r)=>{var n=r(80193),o=r(82451),i=r(3469),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},74092:(t,e,r)=>{var n=r(4241),o=r(70636),i=r(74934);t.exports=function(t){return i(t)?n(t):o(t)}},21836:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},18190:(t,e,r)=>{var n=r(3184),o=r(15717),i=r(13134),a=r(55649);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},86992:(t,e,r)=>{var n=r(79514),o=r(16101),i=r(15717);t.exports=function(t,e){var r={};return e=i(e,3),o(t,function(t,o,i){n(r,o,e(t,o,i))}),r}},12838:(t,e,r)=>{var n=r(89691),o=r(57991),i=r(2586);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},80480:(t,e,r)=>{var n=r(15933);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},45652:(t,e,r)=>{var n=r(89691),o=r(49064),i=r(2586);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},27964:t=>{t.exports=function(){}},92816:(t,e,r)=>{var n=r(74421);t.exports=function(){return n.Date.now()}},84169:(t,e,r)=>{var n=r(61097),o=r(37487),i=r(26192),a=r(26767);t.exports=function(t){return i(t)?n(a(t)):o(t)}},4009:(t,e,r)=>{var n=r(61102)();t.exports=n},88448:(t,e,r)=>{var n=r(89686),o=r(15717),i=r(63872),a=r(55649),u=r(91276);t.exports=function(t,e,r){var c=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),c(t,o(e,3))}},67501:(t,e,r)=>{var n=r(85646),o=r(20789),i=r(4090),a=r(91276),u=i(function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])});t.exports=u},25297:t=>{t.exports=function(){return[]}},44731:t=>{t.exports=function(){return!1}},54636:(t,e,r)=>{var n=r(59243),o=r(50683);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},54962:(t,e,r)=>{var n=r(82524),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-o?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},41265:(t,e,r)=>{var n=r(54962);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},82524:(t,e,r)=>{var n=r(95680),o=r(50683),i=r(8700),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=c.test(t);return r||l.test(t)?s(t.slice(2),r?2:8):u.test(t)?a:+t}},55656:(t,e,r)=>{var n=r(51688);t.exports=function(t){return null==t?"":n(t)}},79948:(t,e,r)=>{var n=r(15717),o=r(26349);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},76158:(t,e,r)=>{var n=r(78265)("toUpperCase");t.exports=n},546:(t,e,r)=>{"use strict";var n=r(57213);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},83318:(t,e,r)=>{t.exports=r(546)()},57213:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55473:(t,e)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),e.vq=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.zv=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case o:case a:case i:case s:case f:return t;default:switch(t=t&&t.$$typeof){case c:case l:case h:case p:case u:return t;default:return e}}case n:return e}}}(t)===o}},61075:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>tZ});var n=r(20107),o=r(83318),i=r.n(o),a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty;function l(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function s(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var u=t(e,r,n);return o.delete(e),o.delete(r),u}}function f(t){return a(t).concat(u(t))}var p=Object.hasOwn||function(t,e){return c.call(t,e)};function h(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var d="_owner",y=Object.getOwnPropertyDescriptor,v=Object.keys;function b(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function m(t,e){return h(t.getTime(),e.getTime())}function g(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),u=0;(n=a.next())&&!n.done;){for(var c=e.entries(),l=!1,s=0;(o=c.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],d=o.value,y=d[0],v=d[1];!l&&!i[s]&&(l=r.equals(p,y,u,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))&&(i[s]=!0),s++}if(!l)return!1;u++}return!0}function x(t,e,r){var n,o=v(t),i=o.length;if(v(e).length!==i)return!1;for(;i-- >0;)if((n=o[i])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!p(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function O(t,e,r){var n,o,i,a=f(t),u=a.length;if(f(e).length!==u)return!1;for(;u-- >0;)if((n=a[u])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!p(e,n)||!r.equals(t[n],e[n],n,n,t,e,r)||(o=y(t,n),i=y(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function w(t,e){return h(t.valueOf(),e.valueOf())}function j(t,e){return t.source===e.source&&t.flags===e.flags}function S(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var u=e.values(),c=!1,l=0;(o=u.next())&&!o.done;)!c&&!i[l]&&(c=r.equals(n.value,o.value,n.value,o.value,t,e,r))&&(i[l]=!0),l++;if(!c)return!1}return!0}function P(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var E=Array.isArray,A="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,k=Object.assign,M=Object.prototype.toString.call.bind(Object.prototype.toString),_=T();function T(t){void 0===t&&(t={});var e,r,n,o,i,a,u,c,f,p=t.circular,h=t.createInternalComparator,d=t.createState,y=t.strict,v=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?O:b,areDatesEqual:m,areMapsEqual:n?l(g,O):g,areObjectsEqual:n?O:x,arePrimitiveWrappersEqual:w,areRegExpsEqual:j,areSetsEqual:n?l(S,O):S,areTypedArraysEqual:n?O:P};if(r&&(o=k({},o,r(o))),e){var i=s(o.areArraysEqual),a=s(o.areMapsEqual),u=s(o.areObjectsEqual),c=s(o.areSetsEqual);o=k({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return o}(t)).areArraysEqual,n=e.areDatesEqual,o=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,function(t,e,l){if(t===e)return!0;if(null==t||null==e||"object"!=typeof t||"object"!=typeof e)return t!=t&&e!=e;var s=t.constructor;if(s!==e.constructor)return!1;if(s===Object)return i(t,e,l);if(E(t))return r(t,e,l);if(null!=A&&A(t))return f(t,e,l);if(s===Date)return n(t,e,l);if(s===RegExp)return u(t,e,l);if(s===Map)return o(t,e,l);if(s===Set)return c(t,e,l);var p=M(t);return"[object Date]"===p?n(t,e,l):"[object RegExp]"===p?u(t,e,l):"[object Map]"===p?o(t,e,l):"[object Set]"===p?c(t,e,l):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof e.then&&i(t,e,l):"[object Arguments]"===p?i(t,e,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(t,e,l)}),_=h?h(v):function(t,e,r,n,o,i,a){return v(t,e,a)};return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var u=n(),c=u.cache;return r(t,a,{cache:void 0===c?e?new WeakMap:void 0:c,equals:o,meta:u.meta,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:void 0!==p&&p,comparator:v,createState:d,equals:_,strict:void 0!==y&&y})}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(o){if(r<0&&(r=o),o-r>e)t(o),r=-1;else{var i;i=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=V(i,u),h=V(a,c),d=(t=i,e=u,function(r){var n;return H([].concat(function(t){if(Array.isArray(t))return q(t)}(n=X(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||W(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o,i=p(r)-e,a=d(r);if(1e-4>Math.abs(i-e)||a<1e-4)break;r=(o=r-i/a)>1?1:o<0?0:o}return h(r)};return y.isStepper=!1,y},Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return 1e-4>Math.abs(u-e)&&1e-4>Math.abs(i)?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u},K=function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r0?r[o-1]:n,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(ts(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=$(p,i,u),d=th(th(th({},f.style),c),{},{transition:h});return[].concat(ts(t),[d,i,s]).filter(z)},[a,Math.max(void 0===u?0:u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){if(!this.manager){var e,r,n;this.manager=(e=function(){return null},r=!1,n=function t(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var o=function(t){if(Array.isArray(t))return t}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return D(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(t,void 0)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);if("number"==typeof i){C(t.bind(null,a),i);return}t(i),C(t.bind(null,a));return}"object"===I(n)&&e(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(t){r=!1,n(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}})}var o=t.begin,i=t.duration,a=t.attributeName,u=t.to,c=t.easing,l=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof p||"spring"===c){this.runJSAnimation(t);return}if(f.length>1){this.runStepAnimation(t);return}var d=a?td({},a,u):u,y=$(Object.keys(d),i,c);h.start([l,o,th(th({},d),{},{transition:y}),i,s])}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),o=(t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,tl)),a=n.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!o||0===a||r<=0)return e;var c=function(t){var e=t.props,r=e.style,o=e.className;return(0,n.cloneElement)(t,th(th({},i),{},{style:th(th({},void 0===r?{}:r),u),className:o}))};return 1===a?c(n.Children.only(e)):n.createElement("div",null,n.Children.map(e,function(t){return c(t)}))}}],function(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(r)?r:0},tK=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tq(t,e)}(i,t);var e,r,o=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=tH(i);return t=e?Reflect.construct(r,arguments,tH(this).constructor):r.apply(this,arguments),function(t,e){if(e&&("object"===tU(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return tX(t)}(this,t)});function i(){var t;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),tV(tX(t=o.call(this)),"handleEnter",function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)}),tV(tX(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(tW(tW({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return tY(e)+tY(r)+tY(n)}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,o=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,tz));return n.createElement(tR,t$({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return n.createElement(tx,t.state,n.Children.only(r))})}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{y:()=>U});var n=r(20107),o=r(64901),i=r(61075),a=r(6440),u=r.n(a),c=r(87107),l=r.n(c),s=r(37819),f=r(73678),p=function(t){return null};p.displayName="Cell";var h=r(58864),d=r(89952),y=r(61211),v=r(95392),b=r(95492),m=r(35956),g=r(45082),x=r(82372),O=["x","y"];function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,O),i=parseInt("".concat(r),10),a=parseInt("".concat(n),10),u=parseInt("".concat(e.height||o.height),10),c=parseInt("".concat(e.width||o.width),10);return P(P(P(P(P({},e),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:u,width:c,name:e.name,radius:e.radius})}function A(t){return n.createElement(x.yp,j({shapeType:"rectangle",propTransformer:E,activeClassName:"recharts-active-bar"},t))}var k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||(0,g.A)(!1),e)}},M=["value","background"];function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(){return(T=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,M);if(!u)return null;var l=I(I(I(I(I({},c),{},{fill:"#eee"},u),a),(0,m.XC)(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:o,index:r,className:"recharts-bar-background-rectangle"});return n.createElement(A,T({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,u=r.layout,c=r.children,l=(0,y.aS)(c,f.u);if(!l)return null;var p="vertical"===u?o[0].height/2:o[0].width/2,h=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:(0,b.kr)(t,e)}};return n.createElement(s.W,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return n.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:u,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,i=t.className,a=t.xAxis,u=t.yAxis,c=t.left,f=t.top,p=t.width,d=t.height,y=t.isAnimationActive,v=t.background,b=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,g=(0,o.A)("recharts-bar",i),x=a&&a.allowDataOverflow,O=u&&u.allowDataOverflow,w=x||O,j=l()(b)?this.id:b;return n.createElement(s.W,{className:g},x||O?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(j)},n.createElement("rect",{x:x?c:c-p/2,y:O?f:f-d/2,width:x?p:2*p,height:O?d:2*d}))):null,n.createElement(s.W,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(j,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,j),(!y||m)&&h.Z.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&D(a.prototype,e),r&&D(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);L(U,"displayName","Bar"),L(U,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!v.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),L(U,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,v=(0,b.xi)(n,r);if(!v)return null;var m=e.layout,g=r.type.defaultProps,x=void 0!==g?I(I({},g),r.props):r.props,O=x.dataKey,w=x.children,j=x.minPointSize,S="horizontal"===m?a:i,P=l?S.scale.domain():null,E=(0,b.DW)({numericAxis:S}),A=(0,y.aS)(w,p),M=f.map(function(t,e){l?f=(0,b._f)(l[s+e],P):Array.isArray(f=(0,b.kr)(t,O))||(f=[E,f]);var n=k(j,U.defaultProps.minPointSize)(f[1],e);if("horizontal"===m){var f,p,h,y,g,x,w,S=[a.scale(f[0]),a.scale(f[1])],M=S[0],_=S[1];p=(0,b.y2)({axis:i,ticks:u,bandSize:o,offset:v.offset,entry:t,index:e}),h=null!==(w=null!=_?_:M)&&void 0!==w?w:void 0,y=v.size;var T=M-_;if(g=Number.isNaN(T)?0:T,x={x:p,y:a.y,width:y,height:a.height},Math.abs(n)>0&&Math.abs(g)0&&Math.abs(y){"use strict";r.d(e,{u:()=>T});var n=r(20107),o=r(14632),i=r.n(o),a=r(32292),u=r.n(a),c=r(64901),l=r(45707),s=r(37819),f=r(77431),p=r(94348),h=r(89952),d=r(35956),y=r(61211),v=r(62882),b=["viewBox"],m=["viewBox"],g=["ticks"];function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function P(t,e){for(var r=0;r0?this.props:d)),o<=0||a<=0||!y||!y.length)?null:n.createElement(s.W,{className:(0,c.A)("recharts-cartesian-axis",l),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p.J.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,r){return n.isValidElement(t)?n.cloneElement(t,e):i()(t)?t(e):n.createElement(f.E,O({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],e&&P(o.prototype,e),r&&P(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.Component);M(T,"displayName","CartesianAxis"),M(T,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},73678:(t,e,r)=>{"use strict";r.d(e,{u:()=>v});var n=r(20107),o=r(45082),i=r(37819),a=r(61211),u=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),b=(0,a.J9)(v,!1);"x"===this.props.direction&&"number"!==d.type&&(0,o.A)(!1);var m=p.map(function(t){var o,a,u=h(t,f),p=u.x,v=u.y,m=u.value,g=u.errorVal;if(!g)return null;var x=[];if(Array.isArray(g)){var O=function(t){if(Array.isArray(t))return t}(g)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{for(i=(r=r.call(t)).next;!(c=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(g,2)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,2)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=O[0],a=O[1]}else o=a=g;if("vertical"===r){var w=d.scale,j=v+e,S=j+c,P=j-c,E=w(m-o),A=w(m+a);x.push({x1:A,y1:S,x2:A,y2:P}),x.push({x1:E,y1:j,x2:A,y2:j}),x.push({x1:E,y1:S,x2:E,y2:P})}else if("horizontal"===r){var k=y.scale,M=p+e,_=M-c,T=M+c,C=k(m-o),I=k(m+a);x.push({x1:_,y1:I,x2:T,y2:I}),x.push({x1:M,y1:C,x2:M,y2:I}),x.push({x1:_,y1:C,x2:T,y2:C})}return n.createElement(i.W,l({className:"recharts-errorBar",key:"bar-".concat(x.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},b),x.map(function(t){return n.createElement("line",l({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return n.createElement(i.W,{className:"recharts-errorBars"},m)}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{W:()=>v});var n=r(20107),o=r(64901),i=r(25161),a=r(67064),u=r(95492);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function d(){return(d=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{h:()=>v});var n=r(20107),o=r(64901),i=r(25161),a=r(67064),u=r(95492);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function d(){return(d=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{f:()=>d});var n=r(14632),o=r.n(n),i=r(89952),a=r(56594),u=r(95392),c=r(98456);function l(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;ot*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e=2?(0,i.sA)(b[1].coordinate-b[0].coordinate):1,M=(n="width"===P,f=m.x,p=m.y,d=m.width,y=m.height,1===k?{start:n?f:p,end:n?f+d:p+y}:{start:n?f+d:p+y,end:n?f:p});return"equidistantPreserveStart"===O?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),u=e.start,c=e.end,f=0,p=1,h=u;p<=a.length;)if(i=function(){var e,i=null==n?void 0:n[f];if(void 0===i)return{v:l(n,p)};var a=f,d=function(){return void 0===e&&(e=r(i,a)),e},y=i.coordinate,v=0===f||s(t,y,d,h,c);v||(f=0,h=u,p+=1),v&&(h=y+t*(d()/2+o),f+=p)}())return i.v;return[]}(k,M,A,b,g):("preserveStart"===O||"preserveStartEnd"===O?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,c=e.start,l=e.end;if(i){var f=n[u-1],p=r(f,u-1),d=t*(f.coordinate+t*p/2-l);a[u-1]=f=h(h({},f),{},{tickCoord:d>0?f.coordinate-d*t:f.coordinate}),s(t,f.tickCoord,function(){return p},c,l)&&(l=f.tickCoord-t*(p/2+o),a[u-1]=h(h({},f),{},{isShow:!0}))}for(var y=i?u-1:u,v=function(e){var n,i=a[e],u=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var f=t*(i.coordinate-t*u()/2-c);a[e]=i=h(h({},i),{},{tickCoord:f<0?i.coordinate-f*t:i.coordinate})}else a[e]=i=h(h({},i),{},{tickCoord:i.coordinate});s(t,i.tickCoord,u,c,l)&&(c=i.tickCoord+t*(u()/2+o),a[e]=h(h({},i),{},{isShow:!0}))},b=0;b0?l.coordinate-p*t:l.coordinate})}else i[e]=l=h(h({},l),{},{tickCoord:l.coordinate});s(t,l.tickCoord,f,u,c)&&(c=l.tickCoord-t*(f()/2+o),i[e]=h(h({},l),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return i}(k,M,A,b,g)).filter(function(t){return t.isShow})}},90805:(t,e,r)=>{"use strict";r.d(e,{gu:()=>eC});var n=r(20107),o=r(87107),i=r.n(o),a=r(14632),u=r.n(a),c=r(4009),l=r.n(c),s=r(32292),f=r.n(s),p=r(67501),h=r.n(p),d=r(54636),y=r.n(d),v=r(64901),b=r(45082),m=r(6701),g=r(37819),x=r(58601),O=r(58736),w=r(42555),j=r(2721),S=r(61211),P=r(63949),E=r(77431),A=r(95492),k=r(89952);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0&&e.handleDrag(t.changedTouches[0])}),W(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})}),e.detachDragEndListener()}),W(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),W(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),W(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),W(e,"handleSlideDragStart",function(t){var r=H(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(o,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,i=this.props,a=i.gap,u=i.data.length-1,c=Math.min(e,r),l=Math.max(e,r),s=o.getIndexInRange(n,c),f=o.getIndexInRange(n,l);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=(0,A.kr)(r[t],o,t);return u()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});(h.startIndex!==l||h.endIndex!==s)&&f&&f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=H(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[n]=a+y;var v=this.getIndex(d),b=v.startIndex,m=v.endIndex,g=function(){var t=h.length-1;return"startX"===n&&(o>i?b%p==0:m%p==0)||oi?m%p==0:b%p==0)||o>i&&m===t};this.setState(W(W({},n,a+y),"brushMoveStartX",t.pageX),function(){f&&g()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var l=c+t;if(-1!==l&&!(l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(W({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,o=t.width,i=t.height,a=t.fill,u=t.stroke;return n.createElement("rect",{stroke:u,fill:a,x:e,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,o=t.width,i=t.height,a=t.data,u=t.children,c=t.padding,l=n.Children.only(u);return l?n.cloneElement(l,{x:e,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var r,i,a=this,u=this.props,c=u.y,l=u.travellerWidth,s=u.height,f=u.traveller,p=u.ariaLabel,h=u.data,d=u.startIndex,y=u.endIndex,v=Math.max(t,this.props.x),b=L(L({},(0,S.J9)(this.props,!1)),{},{x:v,y:c,width:l,height:s}),m=p||"Min value: ".concat(null===(r=h[d])||void 0===r?void 0:r.name,", Max value: ").concat(null===(i=h[y])||void 0===i?void 0:i.name);return n.createElement(g.W,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},o.renderTraveller(f,b))}},{key:"renderSlide",value:function(t,e){var r=this.props,o=r.y,i=r.height,a=r.stroke,u=r.travellerWidth,c=Math.min(t,e)+u,l=Math.max(Math.abs(e-t)-u,0);return n.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,o=t.y,i=t.height,a=t.travellerWidth,u=t.stroke,c=this.state,l=c.startX,s=c.endX,f={pointerEvents:"none",fill:u};return n.createElement(g.W,{className:"recharts-brush-texts"},n.createElement(E.E,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(e)),n.createElement(E.E,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,o=t.children,i=t.x,a=t.y,u=t.width,c=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,d=s.isSlideMoving,y=s.isTravellerMoving,b=s.isTravellerFocused;if(!e||!e.length||!(0,k.Et)(i)||!(0,k.Et)(a)||!(0,k.Et)(u)||!(0,k.Et)(c)||u<=0||c<=0)return null;var m=(0,v.A)("recharts-brush",r),x=1===n.Children.count(o),O=D("userSelect","none");return n.createElement(g.W,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||y||b||l)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,o=t.width,i=t.height,a=t.stroke,u=Math.floor(r+i/2)-1;return n.createElement(n.Fragment,null,n.createElement("rect",{x:e,y:r,width:o,height:i,fill:a,stroke:"none"}),n.createElement("line",{x1:e+1,y1:u,x2:e+o-1,y2:u,fill:"none",stroke:"#fff"}),n.createElement("line",{x1:e+1,y1:u+2,x2:e+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return n.isValidElement(t)?n.cloneElement(t,e):u()(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return L({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?X({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,o=r-1;o-n>1;){var i=Math.floor((n+o)/2);t[i]>e?o=i:n=i}return e>=t[o]?o:n}}],e&&z(o.prototype,e),r&&z(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);W(V,"displayName","Brush"),W(V,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var G=r(56594),Y=r(20618),K=r(94348),J=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},Z=r(98456),Q=r(42228);function tt(){return(tt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,t0));return(0,k.Et)(r)&&(0,k.Et)(i)&&(0,k.Et)(f)&&(0,k.Et)(h)&&(0,k.Et)(u)&&(0,k.Et)(l)?n.createElement("path",t1({},(0,S.J9)(y,!0),{className:(0,v.A)("recharts-cross",d),d:"M".concat(r,",").concat(u,"v").concat(h,"M").concat(l,",").concat(i,"h").concat(f)})):null};function t3(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[(0,t$.IZ)(e,r,n,o),(0,t$.IZ)(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}var t6=r(3730);function t4(t){return(t4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function t8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function t9(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ea(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ea=function(){return!!t})()}function eu(t){return(eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ec(t,e){return(ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function el(t){return function(t){if(Array.isArray(t))return ef(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||es(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function es(t,e){if(t){if("string"==typeof t)return ef(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ef(t,e)}}function ef(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?i:t&&t.length&&(0,k.Et)(n)&&(0,k.Et)(o)?t.slice(n,o+1):[]};function ew(t){return"number"===t?[0,"auto"]:void 0}var ej=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=eO(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,u){var c,l,s=null!==(c=u.props.data)&&void 0!==c?c:e;if(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===s?a:s;l=(0,k.eP)(f,i.dataKey,n)}else l=s&&s[r]||a[r];return l?[].concat(el(o),[(0,A.zb)(u,l)]):o},[])},eS=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=(0,A.gH)(i,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=ej(t,e,l,s),p=ex(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},eP=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,a=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,f=t.layout,p=t.children,h=t.stackOffset,d=(0,A._L)(f,o);return r.reduce(function(e,r){var y=void 0!==r.type.defaultProps?eh(eh({},r.type.defaultProps),r.props):r.props,v=y.type,b=y.dataKey,m=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,w=y.includeHidden,j=y[a];if(e[j])return e;var S=eO(t.data,{graphicalItems:n.filter(function(t){var e;return(a in t.props?t.props[a]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[a])===j}),dataStartIndex:c,dataEndIndex:s}),P=S.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&(0,k.Et)(n)&&(0,k.Et)(o))return!0}return!1})(y.domain,m,v)&&(_=(0,A.AQ)(y.domain,null,m),d&&("number"===v||"auto"!==x)&&(C=(0,A.Ay)(S,b,"category")));var E=ew(v);if(!_||0===_.length){var M,_,T,C,I,D=null!==(I=y.domain)&&void 0!==I?I:E;if(b){if(_=(0,A.Ay)(S,b,v),"category"===v&&d){var N=(0,k.CG)(_);g&&N?(T=_,_=l()(0,P)):g||(_=(0,A.KC)(D,_,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(el(t),[e])},[]))}else if("category"===v)_=g?_.filter(function(t){return""!==t&&!i()(t)}):(0,A.KC)(D,_,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||i()(e)?t:[].concat(el(t),[e])},[]);else if("number"===v){var B=(0,A.A1)(S,n.filter(function(t){var e,r,n=a in t.props?t.props[a]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[a],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===j&&(w||!o)}),b,o,f);B&&(_=B)}d&&("number"===v||"auto"!==x)&&(C=(0,A.Ay)(S,b,"category"))}else _=d?l()(0,P):u&&u[j]&&u[j].hasStack&&"number"===v?"expand"===h?[0,1]:(0,A.Mk)(u[j].stackGroups,c,s):(0,A.vf)(S,n.filter(function(t){var e=a in t.props?t.props[a]:t.type.defaultProps[a],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===j&&(w||!r)}),v,f,!0);"number"===v?(_=tU(p,_,j,o,O),D&&(_=(0,A.AQ)(D,_,m))):"category"===v&&D&&_.every(function(t){return D.indexOf(t)>=0})&&(_=D)}return eh(eh({},e),{},ed({},j,eh(eh({},y),{},{axisType:o,domain:_,categoricalDomain:C,duplicateDomain:T,originalDomain:null!==(M=y.domain)&&void 0!==M?M:E,isCategorical:d,layout:f})))},{})},eE=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,p=t.children,h=eO(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),d=h.length,y=(0,A._L)(s,o),v=-1;return r.reduce(function(t,e){var b,m=(void 0!==e.type.defaultProps?eh(eh({},e.type.defaultProps),e.props):e.props)[i],g=ew("number");return t[m]?t:(v++,b=y?l()(0,d):a&&a[m]&&a[m].hasStack?tU(p,b=(0,A.Mk)(a[m].stackGroups,u,c),m,o):tU(p,b=(0,A.AQ)(g,(0,A.vf)(h,r.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===m&&!o}),"number",s),n.defaultProps.allowDataOverflow),m,o),eh(eh({},t),{},ed({},m,eh(eh({axisType:o},n.defaultProps),{},{hide:!0,orientation:f()(ev,"".concat(o,".").concat(v%2),null),domain:b,originalDomain:g,isCategorical:y,layout:s}))))},{})},eA=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=(0,S.aS)(l,o),p={};return f&&f.length?p=eP(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=eE(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},ek=function(t){var e=(0,k.lX)(t),r=(0,A.Rh)(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:h()(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,A.Hj)(e,r)}},eM=function(t){var e=t.children,r=t.defaultShowTooltip,n=(0,S.BU)(e,V),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!r}},e_=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},eT=function(t,e){var r=t.props,n=t.graphicalItems,o=t.xAxisMap,i=void 0===o?{}:o,a=t.yAxisMap,u=void 0===a?{}:a,c=r.width,l=r.height,s=r.children,p=r.margin||{},h=(0,S.BU)(s,V),d=(0,S.BU)(s,O.s),y=Object.keys(u).reduce(function(t,e){var r=u[e],n=r.orientation;return r.mirror||r.hide?t:eh(eh({},t),{},ed({},n,t[n]+r.width))},{left:p.left||0,right:p.right||0}),v=Object.keys(i).reduce(function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:eh(eh({},t),{},ed({},n,f()(t,"".concat(n))+r.height))},{top:p.top||0,bottom:p.bottom||0}),b=eh(eh({},v),y),m=b.bottom;h&&(b.bottom+=h.props.height||V.defaultProps.height),d&&e&&(b=(0,A.s0)(b,n,r,e));var g=c-b.left-b.right,x=l-b.top-b.bottom;return eh(eh({brushBottom:m},b),{},{width:Math.max(g,0),height:Math.max(x,0)})},eC=function(t){var e=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,a=void 0===o?"axis":o,c=t.validateTooltipEventTypes,l=void 0===c?["axis"]:c,s=t.axisComponents,p=t.legendContent,h=t.formatAxisMap,d=t.defaultProps,O=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,a=e.updateId,u=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,f=t.layout,p=t.barGap,h=t.barCategoryGap,d=t.maxBarSize,y=e_(f),v=y.numericAxisName,m=y.cateAxisName,g=!!r&&!!r.length&&r.some(function(t){var e=(0,S.Mn)(t&&t.type);return e&&e.indexOf("Bar")>=0}),x=[];return r.forEach(function(r,y){var O=eO(t.data,{graphicalItems:[r],dataStartIndex:u,dataEndIndex:c}),w=void 0!==r.type.defaultProps?eh(eh({},r.type.defaultProps),r.props):r.props,j=w.dataKey,P=w.maxBarSize,E=w["".concat(v,"Id")],k=w["".concat(m,"Id")],M=s.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],o=w["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||(0,b.A)(!1);var i=n[o];return eh(eh({},t),{},ed(ed({},r.axisType,i),"".concat(r.axisType,"Ticks"),(0,A.Rh)(i)))},{}),_=M[m],T=M["".concat(m,"Ticks")],C=n&&n[E]&&n[E].hasStack&&(0,A.kA)(r,n[E].stackGroups),I=(0,S.Mn)(r.type).indexOf("Bar")>=0,D=(0,A.Hj)(_,T),N=[],B=g&&(0,A.tA)({barSize:l,stackGroups:n,totalSize:"xAxis"===m?M[m].width:"yAxis"===m?M[m].height:void 0});if(I){var R,L,z=i()(P)?d:P,U=null!==(R=null!==(L=(0,A.Hj)(_,T,!0))&&void 0!==L?L:z)&&void 0!==R?R:0;N=(0,A.BX)({barGap:p,barCategoryGap:h,bandSize:U!==D?U:D,sizeList:B[k],maxBarSize:z}),U!==D&&(N=N.map(function(t){return eh(eh({},t),{},{position:eh(eh({},t.position),{},{offset:t.position.offset-U/2})})}))}var $=r&&r.type&&r.type.getComposedData;$&&x.push({props:eh(eh({},$(eh(eh({},M),{},{displayedData:O,props:t,dataKey:j,item:r,bandSize:D,barPosition:N,offset:o,stackedData:C,layout:f,dataStartIndex:u,dataEndIndex:c}))),{},ed(ed(ed({key:r.key||"item-".concat(y)},v,M[v]),m,M[m]),"animationId",a)),childIndex:(0,S.AW)(r,t.children),item:r})}),x},P=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!(0,S.Me)({props:o}))return null;var c=o.children,l=o.layout,f=o.stackOffset,p=o.data,d=o.reverseStackOrder,y=e_(l),v=y.numericAxisName,b=y.cateAxisName,m=(0,S.aS)(c,r),g=(0,A.Mn)(p,m,"".concat(v,"Id"),"".concat(b,"Id"),f,d),x=s.reduce(function(t,e){var r="".concat(e.axisType,"Map");return eh(eh({},t),{},ed({},r,eA(o,eh(eh({},e),{},{graphicalItems:m,stackGroups:e.axisType===v&&g,dataStartIndex:i,dataEndIndex:a}))))},{}),w=eT(eh(eh({},x),{},{props:o,graphicalItems:m}),null==n?void 0:n.legendBBox);Object.keys(x).forEach(function(t){x[t]=h(o,x[t],w,t.replace("Map",""),e)});var j=ek(x["".concat(b,"Map")]),P=O(o,eh(eh({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:m,stackGroups:g,offset:w}));return eh(eh({formattedGraphicalItems:P,graphicalItems:m,offset:w,stackGroups:g},j),x)},E=function(t){var r;function o(t){var r,a,c,l,s;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),l=o,s=[t],l=eu(l),ed(c=function(t,e){if(e&&("object"===er(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,ea()?Reflect.construct(l,s||[],eu(this).constructor):l.apply(this,s)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ed(c,"accessibilityManager",new tK),ed(c,"handleLegendBBoxUpdate",function(t){if(t){var e=c.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;c.setState(eh({legendBBox:t},P({props:c.props,dataStartIndex:r,dataEndIndex:n,updateId:o},eh(eh({},c.state),{},{legendBBox:t}))))}}),ed(c,"handleReceiveSyncEvent",function(t,e,r){c.props.syncId===t&&(r!==c.eventEmitterSymbol||"function"==typeof c.props.syncMethod)&&c.applySyncEvent(e)}),ed(c,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==c.state.dataStartIndex||r!==c.state.dataEndIndex){var n=c.state.updateId;c.setState(function(){return eh({dataStartIndex:e,dataEndIndex:r},P({props:c.props,dataStartIndex:e,dataEndIndex:r,updateId:n},c.state))}),c.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),ed(c,"handleMouseEnter",function(t){var e=c.getMouseInfo(t);if(e){var r=eh(eh({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseEnter;u()(n)&&n(r,t)}}),ed(c,"triggeredAfterMouseMove",function(t){var e=c.getMouseInfo(t),r=e?eh(eh({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseMove;u()(n)&&n(r,t)}),ed(c,"handleItemMouseEnter",function(t){c.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),ed(c,"handleItemMouseLeave",function(){c.setState(function(){return{isTooltipActive:!1}})}),ed(c,"handleMouseMove",function(t){t.persist(),c.throttleTriggeredAfterMouseMove(t)}),ed(c,"handleMouseLeave",function(t){c.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};c.setState(e),c.triggerSyncEvent(e);var r=c.props.onMouseLeave;u()(r)&&r(e,t)}),ed(c,"handleOuterEvent",function(t){var e,r=(0,S.X_)(t),n=f()(c.props,"".concat(r));r&&u()(n)&&n(null!==(e=/.*touch.*/i.test(r)?c.getMouseInfo(t.changedTouches[0]):c.getMouseInfo(t))&&void 0!==e?e:{},t)}),ed(c,"handleClick",function(t){var e=c.getMouseInfo(t);if(e){var r=eh(eh({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onClick;u()(n)&&n(r,t)}}),ed(c,"handleMouseDown",function(t){var e=c.props.onMouseDown;u()(e)&&e(c.getMouseInfo(t),t)}),ed(c,"handleMouseUp",function(t){var e=c.props.onMouseUp;u()(e)&&e(c.getMouseInfo(t),t)}),ed(c,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),ed(c,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseDown(t.changedTouches[0])}),ed(c,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseUp(t.changedTouches[0])}),ed(c,"triggerSyncEvent",function(t){void 0!==c.props.syncId&&tq.emit(tX,c.props.syncId,t,c.eventEmitterSymbol)}),ed(c,"applySyncEvent",function(t){var e=c.props,r=e.layout,n=e.syncMethod,o=c.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)c.setState(eh({dataStartIndex:i,dataEndIndex:a},P({props:c.props,dataStartIndex:i,dataEndIndex:a,updateId:o},c.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=c.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var d=0;d=0){if(s.dataKey&&!s.allowDuplicatedCategory){var T="function"==typeof s.dataKey?function(t){return"function"==typeof s.dataKey?s.dataKey(t.payload):null}:"payload.".concat(s.dataKey.toString());I=(0,k.eP)(v,T,p),D=b&&m&&(0,k.eP)(m,T,p)}else I=null==v?void 0:v[f],D=b&&m&&m[f];if(P||j){var C=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,n.cloneElement)(t,eh(eh(eh({},o.props),M),{},{activeIndex:C})),null,null]}if(!i()(I))return[_].concat(el(c.renderActivePoints({item:o,activePoint:I,basePoint:D,childIndex:f,isRange:b})))}else{var I,D,N,B=(null!==(N=c.getItemByXY(c.state.activeCoordinate))&&void 0!==N?N:{graphicalItem:_}).graphicalItem,R=B.item,L=void 0===R?t:R,z=B.childIndex,U=eh(eh(eh({},o.props),M),{},{activeIndex:z});return[(0,n.cloneElement)(L,U),null,null]}}return b?[_,null,null]:[_,null]}),ed(c,"renderCustomized",function(t,e,r){return(0,n.cloneElement)(t,eh(eh({key:"recharts-customized-".concat(r)},c.props),c.state))}),ed(c,"renderMap",{CartesianGrid:{handler:eg,once:!0},ReferenceArea:{handler:c.renderReferenceElement},ReferenceLine:{handler:eg},ReferenceDot:{handler:c.renderReferenceElement},XAxis:{handler:eg},YAxis:{handler:eg},Brush:{handler:c.renderBrush,once:!0},Bar:{handler:c.renderGraphicChild},Line:{handler:c.renderGraphicChild},Area:{handler:c.renderGraphicChild},Radar:{handler:c.renderGraphicChild},RadialBar:{handler:c.renderGraphicChild},Scatter:{handler:c.renderGraphicChild},Pie:{handler:c.renderGraphicChild},Funnel:{handler:c.renderGraphicChild},Tooltip:{handler:c.renderCursor,once:!0},PolarGrid:{handler:c.renderPolarGrid,once:!0},PolarAngleAxis:{handler:c.renderPolarAxis},PolarRadiusAxis:{handler:c.renderPolarAxis},Customized:{handler:c.renderCustomized}}),c.clipPathId="".concat(null!==(r=t.id)&&void 0!==r?r:(0,k.NF)("recharts"),"-clip"),c.throttleTriggeredAfterMouseMove=y()(c.triggeredAfterMouseMove,null!==(a=t.throttleDelay)&&void 0!==a?a:1e3/60),c.state={},c}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ec(t,e)}(o,t),r=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=(0,S.BU)(e,x.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=ej(this.state,r,a,u),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=eh(eh({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,S.OV)([(0,S.BU)(t.children,x.m)],[(0,S.BU)(this.props.children,x.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,S.BU)(this.props.children,x.m);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:a}return a}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n=(0,G.A3)(r),o={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},i=r.width/e.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var u=this.state,c=u.xAxisMap,l=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&l){var s=(0,k.lX)(c).scale,f=(0,k.lX)(l).scale,p=s&&s.invert?s.invert(o.chartX):null,h=f&&f.invert?f.invert(o.chartY):null;return eh(eh({},o),{},{xValue:p,yValue:h})}var d=eS(this.state,this.props.data,this.props.layout,a);return d?eh(eh({},o),d):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=(0,k.lX)(c);return(0,t$.yy)({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=(0,S.BU)(t,x.m),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),eh(eh({},(0,tH._U)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){tq.on(tX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tq.removeListener(tX,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o{"use strict";r.d(e,{J:()=>P});var n=r(20107),o=r(87107),i=r.n(o),a=r(14632),u=r.n(a),c=r(50683),l=r.n(c),s=r(64901),f=r(77431),p=r(61211),h=r(89952),d=r(92742);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var v=["offset"];function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1;"insideStart"===u?(o=m+S*l,a=O):"insideEnd"===u?(o=g-S*l,a=!O):"end"===u&&(o=g+S*l,a=O),a=j<=0?a:!a;var P=(0,d.IZ)(p,y,w,o),E=(0,d.IZ)(p,y,w,o+(a?1:-1)*359),A="M".concat(P.x,",").concat(P.y,"\n A").concat(w,",").concat(w,",0,1,").concat(a?0:1,",\n ").concat(E.x,",").concat(E.y),k=i()(t.id)?(0,h.NF)("recharts-radial-line-"):t.id;return n.createElement("text",x({},r,{dominantBaseline:"central",className:(0,s.A)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:k,d:A})),n.createElement("textPath",{xlinkHref:"#".concat(k)},e))},j=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e.cx,i=e.cy,a=e.innerRadius,u=e.outerRadius,c=(e.startAngle+e.endAngle)/2;if("outside"===n){var l=(0,d.IZ)(o,i,u+r,c),s=l.x;return{x:s,y:l.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(0,d.IZ)(o,i,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e.x,a=e.y,u=e.width,c=e.height,s=c>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",y=u>=0?1:-1,v=y*n,b=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return g(g({},{x:i+u/2,y:a-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(a-r.y,0),width:u}:{});if("bottom"===o)return g(g({},{x:i+u/2,y:a+c+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(a+c),0),width:u}:{});if("left"===o){var x={x:i-v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"};return g(g({},x),r?{width:Math.max(x.x-r.x,0),height:c}:{})}if("right"===o){var O={x:i+u+v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"};return g(g({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:c}:{})}var w=r?{width:u,height:c}:{};return"insideLeft"===o?g({x:i+v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?g({x:i+u-v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"},w):"insideTop"===o?g({x:i+u/2,y:a+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?g({x:i+u/2,y:a+c-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?g({x:i+v,y:a+f,textAnchor:m,verticalAnchor:d},w):"insideTopRight"===o?g({x:i+u-v,y:a+f,textAnchor:b,verticalAnchor:d},w):"insideBottomLeft"===o?g({x:i+v,y:a+c-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?g({x:i+u-v,y:a+c-f,textAnchor:b,verticalAnchor:p},w):l()(o)&&((0,h.Et)(o.x)||(0,h._3)(o.x))&&((0,h.Et)(o.y)||(0,h._3)(o.y))?g({x:i+(0,h.F4)(o.x,u),y:a+(0,h.F4)(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):g({x:i+u/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)};function P(t){var e,r=t.offset,o=g({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,v)),a=o.viewBox,c=o.position,l=o.value,d=o.children,y=o.content,b=o.className,m=o.textBreakAll;if(!a||i()(l)&&i()(d)&&!(0,n.isValidElement)(y)&&!u()(y))return null;if((0,n.isValidElement)(y))return(0,n.cloneElement)(y,o);if(u()(y)){if(e=(0,n.createElement)(y,o),(0,n.isValidElement)(e))return e}else e=O(o);var P="cx"in a&&(0,h.Et)(a.cx),E=(0,p.J9)(o,!0);if(P&&("insideStart"===c||"insideEnd"===c||"end"===c))return w(o,e,E);var A=P?j(o):S(o);return n.createElement(f.E,x({className:(0,s.A)("recharts-label",void 0===b?"":b)},E,A,{breakAll:m}),e)}P.displayName="Label";var E=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,y=t.width,v=t.height,b=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,h.Et)(y)&&(0,h.Et)(v)){if((0,h.Et)(s)&&(0,h.Et)(f))return{x:s,y:f,width:y,height:v};if((0,h.Et)(p)&&(0,h.Et)(d))return{x:p,y:d,width:y,height:v}}return(0,h.Et)(s)&&(0,h.Et)(f)?{x:s,y:f,width:0,height:0}:(0,h.Et)(e)&&(0,h.Et)(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:b}:t.viewBox?t.viewBox:{}};P.parseViewBox=E,P.renderCallByParent=function(t,e){var r,o,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var a=t.children,c=E(t),s=(0,p.aS)(a,P).map(function(t,r){return(0,n.cloneElement)(t,{viewBox:e||c,key:"label-".concat(r)})});return i?[(r=t.label,o=e||c,r?!0===r?n.createElement(P,{key:"label-implicit",viewBox:o}):(0,h.vh)(r)?n.createElement(P,{key:"label-implicit",viewBox:o,value:r}):(0,n.isValidElement)(r)?r.type===P?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:o}):n.createElement(P,{key:"label-implicit",content:r,viewBox:o}):u()(r)?n.createElement(P,{key:"label-implicit",content:r,viewBox:o}):l()(r)?n.createElement(P,x({viewBox:o},r,{key:"label-implicit"})):null:null)].concat(function(t){if(Array.isArray(t))return b(t)}(s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return b(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(t,void 0)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):s}},58864:(t,e,r)=>{"use strict";r.d(e,{Z:()=>P});var n=r(20107),o=r(87107),i=r.n(o),a=r(50683),u=r.n(a),c=r(14632),l=r.n(c),s=r(21836),f=r.n(s),p=r(94348),h=r(37819),d=r(61211),y=r(95492);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var b=["valueAccessor"],m=["data","dataKey","clockWise","id","textBreakAll"];function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var S=function(t){return Array.isArray(t.value)?f()(t.value):t.value};function P(t){var e=t.valueAccessor,r=void 0===e?S:e,o=j(t,b),a=o.data,u=o.dataKey,c=o.clockWise,l=o.id,s=o.textBreakAll,f=j(o,m);return a&&a.length?n.createElement(h.W,{className:"recharts-label-list"},a.map(function(t,e){var o=i()(u)?r(t,e):(0,y.kr)(t&&t.payload,u),a=i()(l)?{}:{id:"".concat(l,"-").concat(e)};return n.createElement(p.J,x({},(0,d.J9)(t,!0),f,a,{parentViewBox:t.parentViewBox,value:o,textBreakAll:s,viewBox:p.J.parseViewBox(i()(c)?t:w(w({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))})):null}P.displayName="LabelList",P.renderCallByParent=function(t,e){var r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=(0,d.aS)(i,P).map(function(t,r){return(0,n.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return o?[(r=t.label)?!0===r?n.createElement(P,{key:"labelList-implicit",data:e}):n.isValidElement(r)||l()(r)?n.createElement(P,{key:"labelList-implicit",data:e,content:r}):u()(r)?n.createElement(P,x({data:e},r,{key:"labelList-implicit"})):null:null].concat(function(t){if(Array.isArray(t))return g(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return g(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},58736:(t,e,r)=>{"use strict";r.d(e,{s:()=>I});var n=r(20107),o=r(14632),i=r.n(o),a=r(64901),u=r(42228),c=r(6701),l=r(92824),s=r(35956);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var x=e.inactive?h:e.color;return n.createElement("li",p({className:m,style:y,key:"legend-item-".concat(r)},(0,s.XC)(t.props,e,r)),n.createElement(c.u,{width:o,height:o,viewBox:d,style:v},t.renderIcon(e)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},l?l(g,e,r):g))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,o=t.align;return e&&e.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?o:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?P({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,c=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),P(P({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,o=e.width,i=e.height,a=e.wrapperStyle,u=e.payloadUniqBy,c=e.payload,l=P(P({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return n.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(n.isValidElement(t))return n.cloneElement(t,e);if("function"==typeof t)return n.createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,j);return n.createElement(g,r)}(r,P(P({},this.props),{},{payload:(0,O.s)(c,u,C)})))}}],r=[{key:"getWithHeight",value:function(t,e){var r=P(P({},this.defaultProps),t.props).layout;return"vertical"===r&&(0,x.Et)(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],e&&E(o.prototype,e),r&&E(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);_(I,"displayName","Legend"),_(I,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},81155:(t,e,r)=>{"use strict";r.d(e,{u:()=>y});var n=r(64901),o=r(20107),i=r(54636),a=r.n(i),u=r(55473),c=r(89952),l=r(42228),s=r(61211);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&(t=a()(t,P,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=_.current.getBoundingClientRect();return N(r.width,r.height),e.observe(_.current),function(){e.disconnect()}},[N,P]);var B=(0,o.useMemo)(function(){var t=I.containerWidth,e=I.containerHeight;if(t<0||e<0)return null;(0,l.R)((0,c._3)(v)||(0,c._3)(m),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",v,m),(0,l.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var r=(0,c._3)(v)?t:v,n=(0,c._3)(m)?e:m;i&&i>0&&(r?n=r/i:n&&(r=n*i),w&&n>w&&(n=w)),(0,l.R)(r>0||n>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,n,v,m,x,O,i);var a=!Array.isArray(j)&&(0,s.Mn)(j.type).endsWith("Chart");return o.Children.map(j,function(t){return(0,u.vq)(t)?(0,o.cloneElement)(t,h({width:r,height:n},a?{style:h({height:"100%",width:"100%",maxHeight:n,maxWidth:r},t.props.style)}:{})):t})},[i,j,m,w,O,x,I,v]);return o.createElement("div",{id:E?"".concat(E):void 0,className:(0,n.A)("recharts-responsive-container",A),style:h(h({},void 0===M?{}:M),{},{width:v,height:m,minWidth:x,minHeight:O,maxHeight:w}),ref:_},B)})},77431:(t,e,r)=>{"use strict";r.d(e,{E:()=>R});var n=r(20107),o=r(87107),i=r.n(o),a=r(64901),u=r(89952),c=r(95392),l=r(61211),s=r(56594);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var i=e.word,a=e.width,u=t[t.length-1];return u&&(null==n||o||u.width+a+ra||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},y=0,v=c.length-1,b=0;y<=v&&b<=c.length-1;){var m=Math.floor((y+v)/2),g=M(d(m-1),2),x=g[0],O=g[1],w=M(d(m),1)[0];if(x||w||(y=m+1),x&&w&&(v=m-1),!x&&w){i=O;break}b++}return i||h},D=function(t){return[{words:i()(t)?[]:t.toString().split(T)}]},N=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!c.m.isSsr){var u=C({breakAll:i,children:n,style:o});return u?I({breakAll:i,children:n,maxLines:a,style:o},u.wordsWithComputedWidth,u.spaceWidth,e,r):D(n)}return D(n)},B="#808080",R=function(t){var e,r=t.x,o=void 0===r?0:r,i=t.y,c=void 0===i?0:i,s=t.lineHeight,f=void 0===s?"1em":s,p=t.capHeight,h=void 0===p?"0.71em":p,d=t.scaleToFit,y=void 0!==d&&d,v=t.textAnchor,b=t.verticalAnchor,m=t.fill,g=void 0===m?B:m,x=k(t,P),O=(0,n.useMemo)(function(){return N({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),w=x.dx,j=x.dy,M=x.angle,_=x.className,T=x.breakAll,C=k(x,E);if(!(0,u.vh)(o)||!(0,u.vh)(c))return null;var I=o+((0,u.Et)(w)?w:0),D=c+((0,u.Et)(j)?j:0);switch(void 0===b?"end":b){case"start":e=S("calc(".concat(h,")"));break;case"middle":e=S("calc(".concat((O.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:e=S("calc(".concat(O.length-1," * -").concat(f,")"))}var R=[];if(y){var L=O[0].width,z=x.width;R.push("scale(".concat(((0,u.Et)(z)?z/L:1)/L,")"))}return M&&R.push("rotate(".concat(M,", ").concat(I,", ").concat(D,")")),R.length&&(C.transform=R.join(" ")),n.createElement("text",A({},(0,l.J9)(C,!0),{x:I,y:D,className:(0,a.A)("recharts-text",_),textAnchor:void 0===v?"start":v,fill:g.includes("url")?B:g}),O.map(function(t,r){var o=t.words.join(T?"":" ");return n.createElement("tspan",{x:I,dy:0===r?e:f,key:"".concat(o,"-").concat(r)},o)}))}},58601:(t,e,r)=>{"use strict";r.d(e,{m:()=>F});var n=r(20107),o=r(67501),i=r.n(o),a=r(87107),u=r.n(a),c=r(64901),l=r(89952);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rc[n]+s?Math.max(f,c[n]):Math.max(p,c[n])}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function S(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,r,o,i,a,u,s,f,p,h,d,y,v,b,w,j,P,E,A=this,k=this.props,M=k.active,_=k.allowEscapeViewBox,T=k.animationDuration,C=k.animationEasing,I=k.children,D=k.coordinate,N=k.hasPayload,B=k.isAnimationActive,R=k.offset,L=k.position,z=k.reverseDirection,U=k.useTranslate3d,$=k.viewBox,F=k.wrapperStyle,W=(d=(t={allowEscapeViewBox:_,coordinate:D,offsetTopLeft:R,position:L,reverseDirection:z,tooltipBox:this.state.lastBoundingBox,useTranslate3d:U,viewBox:$}).allowEscapeViewBox,y=t.coordinate,v=t.offsetTopLeft,b=t.position,w=t.reverseDirection,j=t.tooltipBox,P=t.useTranslate3d,E=t.viewBox,j.height>0&&j.width>0&&y?(r=(e={translateX:p=O({allowEscapeViewBox:d,coordinate:y,key:"x",offsetTopLeft:v,position:b,reverseDirection:w,tooltipDimension:j.width,viewBox:E,viewBoxDimension:E.width}),translateY:h=O({allowEscapeViewBox:d,coordinate:y,key:"y",offsetTopLeft:v,position:b,reverseDirection:w,tooltipDimension:j.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:P}).translateX,o=e.translateY,f={transform:e.useTranslate3d?"translate3d(".concat(r,"px, ").concat(o,"px, 0)"):"translate(".concat(r,"px, ").concat(o,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(i={translateX:p,translateY:h,coordinate:y}).coordinate,u=i.translateX,s=i.translateY,(0,c.A)(g,m(m(m(m({},"".concat(g,"-right"),(0,l.Et)(u)&&a&&(0,l.Et)(a.x)&&u>=a.x),"".concat(g,"-left"),(0,l.Et)(u)&&a&&(0,l.Et)(a.x)&&u=a.y),"".concat(g,"-top"),(0,l.Et)(s)&&a&&(0,l.Et)(a.y)&&s0;return n.createElement(_,{allowEscapeViewBox:i,animationDuration:a,animationEasing:u,isAnimationActive:f,active:o,coordinate:l,hasPayload:w,offset:p,position:y,reverseDirection:b,useTranslate3d:m,viewBox:g,wrapperStyle:x},(t=N(N({},this.props),{},{payload:O}),n.isValidElement(c)?n.cloneElement(c,t):"function"==typeof c?n.createElement(c,t):n.createElement(v,t)))}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{W:()=>c});var n=r(20107),o=r(64901),i=r(61211),a=["children","className"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a),s=(0,o.A)("recharts-layer",c);return n.createElement("g",u({className:s},(0,i.J9)(l,!0),{ref:e}),r)})},6701:(t,e,r)=>{"use strict";r.d(e,{u:()=>c});var n=r(20107),o=r(64901),i=r(61211),a=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a),y=l||{width:r,height:c,x:0,y:0},v=(0,o.A)("recharts-surface",s);return n.createElement("svg",u({},(0,i.J9)(d,!0,"svg"),{className:v,width:r,height:c,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,p),n.createElement("desc",null,h),e)}},25161:(t,e,r)=>{"use strict";r.d(e,{DR:()=>g,pj:()=>w,rY:()=>k,yi:()=>A,Yp:()=>x,hj:()=>E,sk:()=>P,AF:()=>O,Nk:()=>S,$G:()=>j});var n=r(20107),o=r(45082),i=r(1339),a=r.n(i),u=r(83191),c=r.n(u),l=r(80480),s=r.n(l)()(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),f=r(89952),p=(0,n.createContext)(void 0),h=(0,n.createContext)(void 0),d=(0,n.createContext)(void 0),y=(0,n.createContext)({}),v=(0,n.createContext)(void 0),b=(0,n.createContext)(0),m=(0,n.createContext)(0),g=function(t){var e=t.state,r=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=t.clipPathId,u=t.children,c=t.width,l=t.height,f=s(i);return n.createElement(p.Provider,{value:r},n.createElement(h.Provider,{value:o},n.createElement(y.Provider,{value:i},n.createElement(d.Provider,{value:f},n.createElement(v.Provider,{value:a},n.createElement(b.Provider,{value:l},n.createElement(m.Provider,{value:c},u)))))))},x=function(){return(0,n.useContext)(v)},O=function(t){var e=(0,n.useContext)(p);null!=e||(0,o.A)(!1);var r=e[t];return null!=r||(0,o.A)(!1),r},w=function(){var t=(0,n.useContext)(p);return(0,f.lX)(t)},j=function(){var t=(0,n.useContext)(h);return a()(t,function(t){return c()(t.domain,Number.isFinite)})||(0,f.lX)(t)},S=function(t){var e=(0,n.useContext)(h);null!=e||(0,o.A)(!1);var r=e[t];return null!=r||(0,o.A)(!1),r},P=function(){return(0,n.useContext)(d)},E=function(){return(0,n.useContext)(y)},A=function(){return(0,n.useContext)(m)},k=function(){return(0,n.useContext)(b)}},60992:(t,e,r)=>{"use strict";r.d(e,{I:()=>V});var n=r(20107);function o(){}function i(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function a(t){this._context=t}function u(t){this._context=t}function c(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function s(t){this._context=t}function f(t){this._context=t}function p(t){return new f(t)}function h(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*n)/(n+o)))||0}function d(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function y(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function v(t){this._context=t}function b(t){this._context=new m(t)}function m(t){this._context=t}function g(t){this._context=t}function x(t){var e,r,n=t.length-1,o=Array(n),i=Array(n),a=Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(e=0,i[n-1]=(t[n]+o[n-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var w=r(58492),j=r(51139),S=r(95327);function P(t){return t[0]}function E(t){return t[1]}function A(t,e){var r=(0,j.A)(!0),n=null,o=p,i=null,a=(0,S.i)(u);function u(u){var c,l,s,f=(u=(0,w.A)(u)).length,p=!1;for(null==n&&(i=o(s=a())),c=0;c<=f;++c)!(c=f;--p)u.point(b[p],m[p]);u.lineEnd(),u.areaEnd()}}v&&(b[s]=+t(h,s,l),m[s]=+e(h,s,l),u.point(n?+n(h,s,l):b[s],r?+r(h,s,l):m[s]))}if(d)return u=null,d+""||null}function s(){return A().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?P:(0,j.A)(+t),e="function"==typeof e?e:void 0===e?(0,j.A)(0):(0,j.A)(+e),r="function"==typeof r?r:void 0===r?E:(0,j.A)(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.A)(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.A)(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,j.A)(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.A)(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.A)(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,j.A)(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:(0,j.A)(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),l):i},l}var M=r(76158),_=r.n(M),T=r(14632),C=r.n(T),I=r(64901),D=r(35956),N=r(61211),B=r(89952);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(){return(L=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{c:()=>c});var n=r(20107),o=r(64901),i=r(35956),a=r(61211);function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{J:()=>h,M:()=>y});var n=r(20107),o=r(64901),i=r(61075),a=r(61211);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1,c=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),i+="L ".concat(t+r-c*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-c*s[2],",").concat(e+n)),i+="L ".concat(t+c*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+r-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-c*p,",").concat(e+n,"\n L ").concat(t+c*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},h=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},d={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,r=f(f({},d),t),u=(0,n.useRef)(),s=function(t){if(Array.isArray(t))return t}(e=(0,n.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{for(i=(r=r.call(t)).next;!(c=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=s[0],y=s[1];(0,n.useEffect)(function(){if(u.current&&u.current.getTotalLength)try{var t=u.current.getTotalLength();t&&y(t)}catch(t){}},[]);var v=r.x,b=r.y,m=r.width,g=r.height,x=r.radius,O=r.className,w=r.animationEasing,j=r.animationDuration,S=r.animationBegin,P=r.isAnimationActive,E=r.isUpdateAnimationActive;if(v!==+v||b!==+b||m!==+m||g!==+g||0===m||0===g)return null;var A=(0,o.A)("recharts-rectangle",O);return E?n.createElement(i.Ay,{canBegin:h>0,from:{width:m,height:g,x:v,y:b},to:{width:m,height:g,x:v,y:b},duration:j,animationEasing:w,isActive:E},function(t){var e=t.width,o=t.height,l=t.x,s=t.y;return n.createElement(i.Ay,{canBegin:h>0,from:"0px ".concat(-1===h?1:h,"px"),to:"".concat(h,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,isActive:P,easing:w},n.createElement("path",c({},(0,a.J9)(r,!0),{className:A,d:p(l,s,e,o,x),ref:u})))}):n.createElement("path",c({},(0,a.J9)(r,!0),{className:A,d:p(v,b,m,g,x)}))}},3730:(t,e,r)=>{"use strict";r.d(e,{h:()=>v});var n=r(20107),o=r(64901),i=r(61211),a=r(92742),u=r(89952);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(i>s),",\n ").concat(p.x,",").concat(p.y,"\n ");if(n>0){var d=(0,a.IZ)(e,r,n,i),y=(0,a.IZ)(e,r,n,s);h+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(e,",").concat(r," Z");return h},d=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,s=t.endAngle,f=(0,u.sA)(s-l),d=p({cx:e,cy:r,radius:o,angle:l,sign:f,cornerRadius:i,cornerIsExternal:c}),y=d.circleTangency,v=d.lineTangency,b=d.theta,m=p({cx:e,cy:r,radius:o,angle:s,sign:-f,cornerRadius:i,cornerIsExternal:c}),g=m.circleTangency,x=m.lineTangency,O=m.theta,w=c?Math.abs(l-s):Math.abs(l-s)-b-O;if(w<0)return a?"M ".concat(v.x,",").concat(v.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(-(2*i),",0\n "):h({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:s});var j="M ".concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(n>0){var S=p({cx:e,cy:r,radius:n,angle:l,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),P=S.circleTangency,E=S.lineTangency,A=S.theta,k=p({cx:e,cy:r,radius:n,angle:s,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),M=k.circleTangency,_=k.lineTangency,T=k.theta,C=c?Math.abs(l-s):Math.abs(l-s)-A-T;if(C<0&&0===i)return"".concat(j,"L").concat(e,",").concat(r,"Z");j+="L".concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"\n A").concat(n,",").concat(n,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else j+="L".concat(e,",").concat(r,"Z");return j},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(t){var e,r=f(f({},y),t),a=r.cx,c=r.cy,s=r.innerRadius,p=r.outerRadius,v=r.cornerRadius,b=r.forceCornerRadius,m=r.cornerIsExternal,g=r.startAngle,x=r.endAngle,O=r.className;if(p0&&360>Math.abs(g-x)?d({cx:a,cy:c,innerRadius:s,outerRadius:p,cornerRadius:Math.min(S,j/2),forceCornerRadius:b,cornerIsExternal:m,startAngle:g,endAngle:x}):h({cx:a,cy:c,innerRadius:s,outerRadius:p,startAngle:g,endAngle:x}),n.createElement("path",l({},(0,i.J9)(r,!0),{className:w,d:e,role:"img"}))}},92824:(t,e,r)=>{"use strict";r.d(e,{i:()=>I});var n=r(20107),o=r(76158),i=r.n(o);let a=Math.cos,u=Math.sin,c=Math.sqrt,l=Math.PI,s=2*l,f={draw(t,e){let r=c(e/l);t.moveTo(r,0),t.arc(0,0,r,0,s)}},p=c(1/3),h=2*p,d=u(l/10)/u(7*l/10),y=u(s/10)*d,v=-a(s/10)*d,b=c(3),m=c(3)/2,g=1/c(12),x=(g/2+1)*3;var O=r(51139),w=r(95327);c(3),c(3);var j=r(64901),S=r(61211);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var E=["type","size","sizeType"];function A(){return(A=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,E)),{},{type:o,size:u,sizeType:l}),p=s.className,h=s.cx,d=s.cy,y=(0,S.J9)(s,!0);return h===+h&&d===+d&&u===+u?n.createElement("path",A({},y,{className:(0,j.A)("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(d,")"),d:(e=_["symbol".concat(i()(o))]||f,(function(t,e){let r=null,n=(0,w.i)(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:(0,O.A)(t||f),e="function"==typeof e?e:(0,O.A)(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.A)(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.A)(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o})().type(e).size(C(u,l,o))())})):null};I.registerSymbol=function(t,e){_["symbol".concat(i()(t))]=e}},82372:(t,e,r)=>{"use strict";r.d(e,{yp:()=>C,GG:()=>z,NE:()=>I,nZ:()=>D,xQ:()=>N});var n=r(20107),o=r(14632),i=r.n(o),a=r(55519),u=r.n(a),c=r(46420),l=r.n(c),s=r(6440),f=r.n(s),p=r(2721),h=r(64901),d=r(61075),y=r(61211);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(){return(b=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:s,lowerWidth:f,height:p,x:c,y:l},duration:j,animationEasing:g,isActive:P},function(t){var e=t.upperWidth,i=t.lowerWidth,u=t.height,c=t.x,l=t.y;return n.createElement(d.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,easing:g},n.createElement("path",b({},(0,y.J9)(r,!0),{className:E,d:O(c,l,e,i,u),ref:o})))}):n.createElement("g",null,n.createElement("path",b({},(0,y.J9)(r,!0),{className:E,d:O(c,l,s,f,p)})))},S=r(3730),P=r(37819),E=r(92824),A=["option","shapeType","propTransformer","activeClassName","isActive"];function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,A);if((0,n.isValidElement)(r))e=(0,n.cloneElement)(r,_(_({},f),(0,n.isValidElement)(r)?r.props:r));else if(i()(r))e=r(f);else if(u()(r)&&!l()(r)){var p=(void 0===a?function(t,e){return _(_({},e),t)}:a)(r,f);e=n.createElement(T,{shapeType:o,elementProps:p})}else e=n.createElement(T,{shapeType:o,elementProps:f});return s?n.createElement(P.W,{className:void 0===c?"recharts-active-shape":c},e):e}function I(t,e){return null!=e&&"trapezoids"in t.props}function D(t,e){return null!=e&&"sectors"in t.props}function N(t,e){return null!=e&&"points"in t.props}function B(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function R(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function L(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function z(t){var e,r,n,o=t.activeTooltipItem,i=t.graphicalItem,a=t.itemData,u=(I(i,o)?e="trapezoids":D(i,o)?e="sectors":N(i,o)&&(e="points"),e),c=I(i,o)?null===(r=o.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:D(i,o)?null===(n=o.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:N(i,o)?o.payload:{},l=a.filter(function(t,e){var r=f()(c,t),n=i.props[u].filter(function(t){var e;return(I(i,o)?e=B:D(i,o)?e=R:N(i,o)&&(e=L),e)(t,o)}),a=i.props[u].indexOf(n[n.length-1]);return r&&e===a});return a.indexOf(l[l.length-1])}},98456:(t,e,r)=>{"use strict";r.d(e,{P2:()=>O,bx:()=>w,pr:()=>b,sl:()=>m,vh:()=>g});var n=r(86992),o=r.n(n),i=r(83191),a=r.n(i),u=r(95492),c=r(61211),l=r(89952),s=r(17255);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var r=0;r0&&(k=Math.min((t||0)-(M[e-1]||0),k))}),Number.isFinite(k)){var _=k/A,T="vertical"===g.layout?r.height:r.width;if("gap"===g.padding&&(c=_*T/2),"no-gap"===g.padding){var C=(0,l.F4)(t.barCategoryGap,_*T),I=_*T/2;c=I-C-(I-C)/T*C}}}s="xAxis"===n?[r.left+(j.left||0)+(c||0),r.left+r.width-(j.right||0)-(c||0)]:"yAxis"===n?"horizontal"===f?[r.top+r.height-(j.bottom||0),r.top+(j.top||0)]:[r.top+(j.top||0)+(c||0),r.top+r.height-(j.bottom||0)-(c||0)]:g.range,P&&(s=[s[1],s[0]]);var D=(0,u.W7)(g,o,b),N=D.scale,B=D.realScaleType;N.domain(O).range(s),(0,u.YB)(N);var R=(0,u.w7)(N,d(d({},g),{},{realScaleType:B}));"xAxis"===n?(m="top"===x&&!S||"bottom"===x&&S,p=r.left,h=v[E]-m*g.height):"yAxis"===n&&(m="left"===x&&!S||"right"===x&&S,p=v[E]-m*g.width,h=r.top);var L=d(d(d({},g),R),{},{realScaleType:B,x:p,y:h,scale:N,width:"xAxis"===n?r.width:g.width,height:"yAxis"===n?r.height:g.height});return L.bandSize=(0,u.Hj)(L,R),g.hide||"xAxis"!==n?g.hide||(v[E]+=(m?-1:1)*L.width):v[E]+=(m?-1:1)*L.height,d(d({},i),{},y({},a,L))},{})},m=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},g=function(t){return m({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},x=function(){var t,e;function r(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&p(r.prototype,t),e&&p(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();y(x,"EPS",1e-4);var O=function(t){var e=Object.keys(t).reduce(function(e,r){return d(d({},e),{},y({},r,x.create(t[r])))},{});return d(d({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return o()(t,function(t,r){return e[r].apply(t,{bandAware:n,position:i})})},isInRange:function(t){return a()(t,function(t,r){return e[r].isInRange(t)})}})},w=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(n%180+180)%180*Math.PI/180,i=Math.atan(r/e);return Math.abs(o>i&&o{"use strict";r.d(e,{s0:()=>n3,gH:()=>n0,YB:()=>oo,HQ:()=>or,xi:()=>oi,Hj:()=>og,BX:()=>n5,tA:()=>n2,DW:()=>oh,y2:()=>op,nb:()=>of,PW:()=>n7,Ay:()=>nQ,vf:()=>n8,Mk:()=>oy,Ps:()=>n1,Mn:()=>ol,kA:()=>od,Rh:()=>ot,w7:()=>os,zb:()=>oO,kr:()=>nZ,_L:()=>n9,KC:()=>ox,A1:()=>n4,W7:()=>on,AQ:()=>om,_f:()=>oa});var n,o,i,a,u,c,l,s={};r.r(s),r.d(s,{scaleBand:()=>f.A,scaleDiverging:()=>function t(){var e=tN(rZ()(tv));return e.copy=function(){return rY(e,t())},tj.K.apply(e,arguments)},scaleDivergingLog:()=>function t(){var e=tq(rZ()).domain([.1,1,10]);return e.copy=function(){return rY(e,t()).base(e.base())},tj.K.apply(e,arguments)},scaleDivergingPow:()=>rQ,scaleDivergingSqrt:()=>r0,scaleDivergingSymlog:()=>function t(){var e=tV(rZ());return e.copy=function(){return rY(e,t()).constant(e.constant())},tj.K.apply(e,arguments)},scaleIdentity:()=>function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,td),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,td):[0,1],tN(n)},scaleImplicit:()=>tG.h,scaleLinear:()=>tB,scaleLog:()=>function t(){let e=tq(tO()).domain([1,10]);return e.copy=()=>tx(e,t()).base(e.base()),tj.C.apply(e,arguments),e},scaleOrdinal:()=>tG.A,scalePoint:()=>f.z,scalePow:()=>tQ,scaleQuantile:()=>function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=Array(e-1);++t=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[P(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],efunction t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function u(t){return null!=t&&t<=t?a[P(i,t,0,o)]:e}function c(){var t=-1;for(i=Array(o);++t=o?[i[o-1],n]:[i[e-1],i[e]]},u.unknown=function(t){return arguments.length&&(e=t),u},u.thresholds=function(){return i.slice()},u.copy=function(){return t().domain([r,n]).range(a).unknown(e)},tj.C.apply(tN(u),arguments)},scaleRadial:()=>function t(){var e,r=tw(),n=[0,1],o=!1;function i(t){var n,i=Math.sign(n=r(t))*Math.sqrt(Math.abs(n));return isNaN(i)?e:o?Math.round(i):i}return i.invert=function(t){return r.invert(t1(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,td)).map(t1)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},tj.C.apply(i,arguments),tN(i)},scaleSequential:()=>function t(){var e=tN(rG()(tv));return e.copy=function(){return rY(e,t())},tj.K.apply(e,arguments)},scaleSequentialLog:()=>function t(){var e=tq(rG()).domain([1,10]);return e.copy=function(){return rY(e,t()).base(e.base())},tj.K.apply(e,arguments)},scaleSequentialPow:()=>rK,scaleSequentialQuantile:()=>function t(){var e=[],r=tv;function n(t){if(null!=t&&!isNaN(t=+t))return r((P(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r=+r)||e.push(r);return e.sort(g),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e=+e))){if(e<=0||n<2)return t5(t);if(e>=1)return t2(t);var n,o=(n-1)*e,i=Math.floor(o),a=t2((function t(e,r,n=0,o=1/0,i){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),o=Math.floor(Math.min(e.length-1,o)),!(n<=r&&r<=o))return e;for(i=void 0===i?t3:function(t=g){if(t===g)return t3;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);o>n;){if(o-n>600){let a=o-n+1,u=r-n+1,c=Math.log(a),l=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1),f=Math.max(n,Math.floor(r-u*l/a+s)),p=Math.min(o,Math.floor(r+(a-u)*l/a+s));t(e,r,f,p,i)}let a=e[r],u=n,c=o;for(t6(e,n,r),i(e[o],a)>0&&t6(e,n,o);ui(e[u],a);)++u;for(;i(e[c],a)>0;)--c}0===i(e[n],a)?t6(e,n,c):t6(e,++c,o),c<=r&&(n=c+1),r<=c&&(o=c-1)}return e})(t,i).subarray(0,i+1));return a+(t5(t.subarray(i+1))-a)*(o-i)}})(e,n/t))},n.copy=function(){return t(r).domain(e)},tj.K.apply(n,arguments)},scaleSequentialSqrt:()=>rJ,scaleSequentialSymlog:()=>function t(){var e=tV(rG());return e.copy=function(){return rY(e,t()).constant(e.constant())},tj.K.apply(e,arguments)},scaleSqrt:()=>t0,scaleSymlog:()=>function t(){var e=tV(tO());return e.copy=function(){return tx(e,t()).constant(e.constant())},tj.C.apply(e,arguments)},scaleThreshold:()=>function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[P(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(o=Math.min((r=Array.from(t)).length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},tj.C.apply(i,arguments)},scaleTime:()=>rH,scaleUtc:()=>rV,tickFormat:()=>tD});var f=r(63949);let p=Math.sqrt(50),h=Math.sqrt(10),d=Math.sqrt(2);function y(t,e,r){let n,o,i;let a=(e-t)/Math.max(0,r),u=Math.floor(Math.log10(a)),c=a/Math.pow(10,u),l=c>=p?10:c>=h?5:c>=d?2:1;return(u<0?(n=Math.round(t*(i=Math.pow(10,-u)/l)),o=Math.round(e*i),n/ie&&--o,i=-i):(n=Math.round(t/(i=Math.pow(10,u)*l)),o=Math.round(e/i),n*ie&&--o),o0))return[];if(t===e)return[t];let n=e=o))return[];let u=i-o+1,c=Array(u);if(n){if(a<0)for(let t=0;te?1:t>=e?0:NaN}function x(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function O(t){let e,r,n;function o(t,n,i=0,a=t.length){if(i>>1;0>r(t[e],n)?i=e+1:a=e}while(ig(t(e),r),n=(e,r)=>t(e)-r):(e=t===g||t===x?t:w,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){let a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o>>1;0>=r(t[e],n)?o=e+1:i=e}while(o>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?q(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?q(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=I.exec(t))?new H(e[1],e[2],e[3],1):(e=D.exec(t))?new H(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?q(e[1],e[2],e[3],e[4]):(e=B.exec(t))?q(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=R.exec(t))?Z(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?Z(e[1],e[2]/100,e[3]/100,e[4]):z.hasOwnProperty(t)?W(z[t]):"transparent"===t?new H(NaN,NaN,NaN,0):null}function W(t){return new H(t>>16&255,t>>8&255,255&t,1)}function q(t,e,r,n){return n<=0&&(t=e=r=NaN),new H(t,e,r,n)}function X(t,e,r,n){var o;return 1==arguments.length?((o=t)instanceof k||(o=F(o)),o)?new H((o=o.rgb()).r,o.g,o.b,o.opacity):new H:new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function V(){return`#${J(this.r)}${J(this.g)}${J(this.b)}`}function G(){let t=Y(this.opacity);return`${1===t?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===t?")":`, ${t})`}`}function Y(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function K(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function J(t){return((t=K(t))<16?"0":"")+t.toString(16)}function Z(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new tt(t,e,r,n)}function Q(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);if(t instanceof k||(t=F(t)),!t)return new tt;if(t instanceof tt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+(r0&&c<1?0:a,new tt(a,u,c,t.opacity)}function tt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function te(t){return(t=(t||0)%360)<0?t+360:t}function tr(t){return Math.max(0,Math.min(1,t||0))}function tn(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function to(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}E(k,F,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Q(this).formatHsl()},formatRgb:$,toString:$}),E(H,X,A(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new H(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new H(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new H(K(this.r),K(this.g),K(this.b),Y(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatHex8:function(){return`#${J(this.r)}${J(this.g)}${J(this.b)}${J((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:G,toString:G})),E(tt,function(t,e,r,n){return 1==arguments.length?Q(t):new tt(t,e,r,null==n?1:n)},A(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new H(tn(t>=240?t-240:t+120,o,n),tn(t,o,n),tn(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new tt(te(this.h),tr(this.s),tr(this.l),Y(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Y(this.opacity);return`${1===t?"hsl(":"hsla("}${te(this.h)}, ${100*tr(this.s)}%, ${100*tr(this.l)}%${1===t?")":`, ${t})`}`}}));let ti=t=>()=>t;function ta(t,e){var r=e-t;return r?function(e){return t+e*r}:ti(isNaN(t)?e:t)}let tu=function t(e){var r,n=1==(r=+(r=e))?ta:function(t,e){var n,o,i;return e-t?(n=t,o=e,n=Math.pow(n,i=r),o=Math.pow(o,i)-n,i=1/i,function(t){return Math.pow(n+t*o,i)}):ti(isNaN(t)?e:t)};function o(t,e){var r=n((t=X(t)).r,(e=X(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return o.gamma=t,o}(1);function tc(t){return function(e){var r,n,o=e.length,i=Array(o),a=Array(o),u=Array(o);for(r=0;r=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,u=nu&&(a=e.slice(u,a),l[c]?l[c]+=a:l[++c]=a),(o=o[0])===(i=i[0])?l[c]?l[c]+=i:l[++c]=i:(l[++c]=null,s.push({i:c,x:tl(o,i)})),u=tf.lastIndex;return ue&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=c>2?tg:tm,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(u,a.map(t),tl)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,td),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=th,s()},f.clamp=function(t){return arguments.length?(l=!!t||tv,s()):l!==tv},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function tw(){return tO()(tv,tv)}var tj=r(87982),tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tP(t){var e;if(!(e=tS.exec(t)))throw Error("invalid format: "+t);return new tE({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tE(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tA(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function tk(t){return(t=tA(Math.abs(t)))?t[1]:NaN}function tM(t,e){var r=tA(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}tP.prototype=tE.prototype,tE.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let t_={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tM(100*t,e),r:tM,s:function(t,e){var r=tA(t,e);if(!r)return t+"";var o=r[0],i=r[1],a=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=o.length;return a===u?o:a>u?o+Array(a-u+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+tA(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tT(t){return t}var tC=Array.prototype.map,tI=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tD(t,e,r,n){var o,u,c=m(t,e,r);switch((n=tP(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tk(l)/3)))-tk(Math.abs(c))))||(n.precision=u),a(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(u=Math.max(0,tk(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(o=Math.abs(o=c)))-tk(o))+1)||(n.precision=u-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(u=Math.max(0,-tk(Math.abs(c))))||(n.precision=u-("%"===n.type)*2)}return i(n)}function tN(t){var e=t.domain;return t.ticks=function(t){var r=e();return v(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return tD(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l0;){if((o=b(c,l,r))===n)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else if(o<0)c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o;else break;n=o}return t},t}function tB(){var t=tw();return t.copy=function(){return tx(t,tB())},tj.C.apply(t,arguments),tN(t)}function tR(t,e){t=t.slice();var r,n=0,o=t.length-1,i=t[n],a=t[o];return a-t(-e,r)}function tq(t){let e,r;let n=t(tL,tz),o=n.domain,a=10;function u(){var i,u;return e=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),t=>Math.log(t)/i),r=10===(u=a)?tF:u===Math.E?Math.exp:t=>Math.pow(u,t),o()[0]<0?(e=tW(e),r=tW(r),t(tU,t$)):t(tL,tz),n}return n.base=function(t){return arguments.length?(a=+t,u()):a},n.domain=function(t){return arguments.length?(o(t),u()):o()},n.ticks=t=>{let n,i;let u=o(),c=u[0],l=u[u.length-1],s=l0){for(;f<=p;++f)for(n=1;nl)break;d.push(i)}}else for(;f<=p;++f)for(n=a-1;n>=1;--n)if(!((i=f>0?n/r(-f):n*r(f))l)break;d.push(i)}2*d.length{if(null==t&&(t=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=tP(o)).precision||(o.trim=!0),o=i(o)),t===1/0)return o;let u=Math.max(1,a*t/n.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*ao(tR(o(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),n}function tX(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tH(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tV(t){var e=1,r=t(tX(1),tH(e));return r.constant=function(r){return arguments.length?t(tX(e=+r),tH(e)):e},tN(r)}i=(o=function(t){var e,r,o,i=void 0===t.grouping||void 0===t.thousands?tT:(e=tC.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return i.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?tT:(o=tC.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return o[+t]})}),s=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",p=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=tP(t)).fill,r=t.align,o=t.sign,h=t.symbol,d=t.zero,y=t.width,v=t.comma,b=t.precision,m=t.trim,g=t.type;"n"===g?(v=!0,g="g"):t_[g]||(void 0===b&&(b=12),m=!0,g="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var x="$"===h?a:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",O="$"===h?u:/[%p]/.test(g)?s:"",w=t_[g],j=/[defgprs%]/.test(g);function S(t){var a,u,s,h=x,S=O;if("c"===g)S=w(t)+S,t="";else{var P=(t=+t)<0||1/t<0;if(t=isNaN(t)?p:w(Math.abs(t),b),m&&(t=function(t){e:for(var e,r=t.length,n=1,o=-1;n0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),P&&0==+t&&"+"!==o&&(P=!1),h=(P?"("===o?o:f:"-"===o||"("===o?"":o)+h,S=("s"===g?tI[8+n/3]:"")+S+(P&&"("===o?")":""),j){for(a=-1,u=t.length;++a(s=t.charCodeAt(a))||s>57){S=(46===s?c+t.slice(a+1):t.slice(a))+S,t=t.slice(0,a);break}}}v&&!d&&(t=i(t,1/0));var E=h.length+t.length+S.length,A=E>1)+h+t+S+A.slice(E);break;default:t=A+h+t+S}return l(t)}return b=void 0===b?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var r=h(((t=tP(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(tk(e)/3))),o=Math.pow(10,-n),i=tI[8+n/3];return function(t){return r(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;var tG=r(68399);function tY(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tK(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tJ(t){return t<0?-t*t:t*t}function tZ(t){var e=t(tv,tv),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(tv,tv):.5===r?t(tK,tJ):t(tY(r),tY(1/r)):r},tN(e)}function tQ(){var t=tZ(tO());return t.copy=function(){return tx(t,tQ()).exponent(t.exponent())},tj.C.apply(t,arguments),t}function t0(){return tQ.apply(null,arguments).exponent(.5)}function t1(t){return Math.sign(t)*t*t}function t2(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r=o)&&(r=o)}return r}function t5(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function t3(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function t6(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}let t4=new Date,t8=new Date;function t9(t,e,r,n){function o(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{let e=o(t),r=o.ceil(t);return t-e(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{let a;let u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r0))return u;do u.push(a=new Date(+r)),e(r,i),t(r);while(at9(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t){if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}}),r&&(o.count=(e,n)=>(t4.setTime(+e),t8.setTime(+n),t(t4),t(t8),Math.floor(r(t4,t8))),o.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null),o}let t7=t9(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);t7.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?t9(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):t7:null,t7.range;let et=t9(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());et.range;let ee=t9(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());ee.range;let er=t9(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());er.range;let en=t9(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());en.range;let eo=t9(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());eo.range;let ei=t9(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);ei.range;let ea=t9(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);ea.range;let eu=t9(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function ec(t){return t9(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}eu.range;let el=ec(0),es=ec(1),ef=ec(2),ep=ec(3),eh=ec(4),ed=ec(5),ey=ec(6);function ev(t){return t9(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}el.range,es.range,ef.range,ep.range,eh.range,ed.range,ey.range;let eb=ev(0),em=ev(1),eg=ev(2),ex=ev(3),eO=ev(4),ew=ev(5),ej=ev(6);eb.range,em.range,eg.range,ex.range,eO.range,ew.range,ej.range;let eS=t9(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());eS.range;let eP=t9(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());eP.range;let eE=t9(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());eE.every=t=>isFinite(t=Math.floor(t))&&t>0?t9(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,eE.range;let eA=t9(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ek(t,e,r,n,o,i){let a=[[et,1,1e3],[et,5,5e3],[et,15,15e3],[et,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function u(e,r,n){let o=Math.abs(r-e)/n,i=O(([,,t])=>t).right(a,o);if(i===a.length)return t.every(m(e/31536e6,r/31536e6,n));if(0===i)return t7.every(Math.max(m(e,r,n),1));let[u,c]=a[o/a[i-1][2]isFinite(t=Math.floor(t))&&t>0?t9(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,eA.range;let[eM,e_]=ek(eA,eP,eb,eu,eo,er),[eT,eC]=ek(eE,eS,el,ei,en,ee);function eI(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function eD(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eN(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var eB={"-":"",_:" ",0:"0"},eR=/^\s*\d+/,eL=/^%/,ez=/[\\^$*+?|[\]().{}]/g;function eU(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i[t.toLowerCase(),e]))}function eq(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function eX(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eH(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eV(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function eG(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function eY(t,e,r){var n=eR.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function eK(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eJ(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function eZ(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function eQ(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function e0(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function e1(t,e,r){var n=eR.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function e2(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function e5(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function e3(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function e6(t,e,r){var n=eR.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function e4(t,e,r){var n=eR.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function e8(t,e,r){var n=eL.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function e9(t,e,r){var n=eR.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function e7(t,e,r){var n=eR.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function rt(t,e){return eU(t.getDate(),e,2)}function re(t,e){return eU(t.getHours(),e,2)}function rr(t,e){return eU(t.getHours()%12||12,e,2)}function rn(t,e){return eU(1+ei.count(eE(t),t),e,3)}function ro(t,e){return eU(t.getMilliseconds(),e,3)}function ri(t,e){return ro(t,e)+"000"}function ra(t,e){return eU(t.getMonth()+1,e,2)}function ru(t,e){return eU(t.getMinutes(),e,2)}function rc(t,e){return eU(t.getSeconds(),e,2)}function rl(t){var e=t.getDay();return 0===e?7:e}function rs(t,e){return eU(el.count(eE(t)-1,t),e,2)}function rf(t){var e=t.getDay();return e>=4||0===e?eh(t):eh.ceil(t)}function rp(t,e){return t=rf(t),eU(eh.count(eE(t),t)+(4===eE(t).getDay()),e,2)}function rh(t){return t.getDay()}function rd(t,e){return eU(es.count(eE(t)-1,t),e,2)}function ry(t,e){return eU(t.getFullYear()%100,e,2)}function rv(t,e){return eU((t=rf(t)).getFullYear()%100,e,2)}function rb(t,e){return eU(t.getFullYear()%1e4,e,4)}function rm(t,e){var r=t.getDay();return eU((t=r>=4||0===r?eh(t):eh.ceil(t)).getFullYear()%1e4,e,4)}function rg(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+eU(e/60|0,"0",2)+eU(e%60,"0",2)}function rx(t,e){return eU(t.getUTCDate(),e,2)}function rO(t,e){return eU(t.getUTCHours(),e,2)}function rw(t,e){return eU(t.getUTCHours()%12||12,e,2)}function rj(t,e){return eU(1+ea.count(eA(t),t),e,3)}function rS(t,e){return eU(t.getUTCMilliseconds(),e,3)}function rP(t,e){return rS(t,e)+"000"}function rE(t,e){return eU(t.getUTCMonth()+1,e,2)}function rA(t,e){return eU(t.getUTCMinutes(),e,2)}function rk(t,e){return eU(t.getUTCSeconds(),e,2)}function rM(t){var e=t.getUTCDay();return 0===e?7:e}function r_(t,e){return eU(eb.count(eA(t)-1,t),e,2)}function rT(t){var e=t.getUTCDay();return e>=4||0===e?eO(t):eO.ceil(t)}function rC(t,e){return t=rT(t),eU(eO.count(eA(t),t)+(4===eA(t).getUTCDay()),e,2)}function rI(t){return t.getUTCDay()}function rD(t,e){return eU(em.count(eA(t)-1,t),e,2)}function rN(t,e){return eU(t.getUTCFullYear()%100,e,2)}function rB(t,e){return eU((t=rT(t)).getUTCFullYear()%100,e,2)}function rR(t,e){return eU(t.getUTCFullYear()%1e4,e,4)}function rL(t,e){var r=t.getUTCDay();return eU((t=r>=4||0===r?eO(t):eO.ceil(t)).getUTCFullYear()%1e4,e,4)}function rz(){return"+0000"}function rU(){return"%"}function r$(t){return+t}function rF(t){return Math.floor(+t/1e3)}function rW(t){return new Date(t)}function rq(t){return t instanceof Date?+t:+new Date(+t)}function rX(t,e,r,n,o,i,a,u,c,l){var s=tw(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),b=l("%a %d"),m=l("%b %d"),g=l("%B"),x=l("%Y");function O(t){return(c(t)1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:r$,s:rF,S:rc,u:rl,U:rs,V:rp,w:rh,W:rd,x:null,X:null,y:ry,Y:rb,Z:rg,"%":rU},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:rx,e:rx,f:rP,g:rB,G:rL,H:rO,I:rw,j:rj,L:rS,m:rE,M:rA,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:r$,s:rF,S:rk,u:rM,U:r_,V:rC,w:rI,W:rD,x:null,X:null,y:rN,Y:rR,Z:rz,"%":rU},O={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=b.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:e0,e:e0,f:e4,g:eK,G:eY,H:e2,I:e2,j:e1,L:e6,m:eQ,M:e5,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:eZ,Q:e9,s:e7,S:e3,u:eX,U:eH,V:eV,w:eq,W:eG,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:eK,Y:eY,Z:eJ,"%":e8};function w(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++u53)return null;"w"in i||(i.w=1),"Z"in i?(n=(o=(n=eD(eN(i.y,0,1))).getUTCDay())>4||0===o?em.ceil(n):em(n),n=ea.offset(n,(i.V-1)*7),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(n=(o=(n=eI(eN(i.y,0,1))).getDay())>4||0===o?es.ceil(n):es(n),n=ei.offset(n,(i.V-1)*7),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?eD(eN(i.y,0,1)).getUTCDay():eI(eN(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,eD(i)):eI(i)}}function S(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a=c)return -1;if(37===(o=e.charCodeAt(a++))){if(!(i=O[(o=e.charAt(a++))in eB?e.charAt(a++):o])||(n=i(t,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}return g.x=w(r,g),g.X=w(n,g),g.c=w(e,g),x.x=w(r,x),x.X=w(n,x),x.c=w(e,x),{format:function(t){var e=w(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,u.parse,l=u.utcFormat,u.utcParse;var r2=r(58492),r5=r(51139);function r3(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function r6(t,e){return t[e]}function r4(t){let e=[];return e.key=t,e}var r8=r(12838),r9=r.n(r8),r7=r(45652),nt=r.n(r7),ne=r(87107),nr=r.n(ne),nn=r(14632),no=r.n(nn),ni=r(24665),na=r.n(ni),nu=r(32292),nc=r.n(nu),nl=r(14607),ns=r.n(nl),nf=r(50801),np=r.n(nf),nh=r(76158),nd=r.n(nh),ny=r(6440),nv=r.n(ny),nb=r(67501),nm=r.n(nb),ng=r(4e3),nx=r.n(ng);function nO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=e?r.apply(void 0,o):t(e-a,nP(function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var r=0,n=Array(e);rn&&(o=n,i=r),[o,i]}function nL(t,e,r){if(t.lte(0))return new(nx())(0);var n=nC.getDigitCount(t.toNumber()),o=new(nx())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new(nx())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new(nx())(Math.ceil(u))}function nz(t,e,r){var n=1,o=new(nx())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(nx())(10).pow(nC.getDigitCount(t)-1),o=new(nx())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(nx())(Math.floor(t)))}else 0===t?o=new(nx())(Math.floor((e-1)/2)):r||(o=new(nx())(Math.floor(t)));var a=Math.floor((e-1)/2);return nM(nk(function(t){return o.add(new(nx())(t-a).mul(n)).toNumber()}),nA)(0,e)}var nU=nT(function(t){var e=nD(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=nD(nR([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(nI(nA(0,o-1).map(function(){return 1/0}))):[].concat(nI(nA(0,o-1).map(function(){return-1/0})),[l]);return r>n?n_(s):s}if(c===l)return nz(c,o,i);var f=function t(e,r,n,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new(nx())(0),tickMin:new(nx())(0),tickMax:new(nx())(0)};var u=nL(new(nx())(r).sub(e).div(n-1),o,a),c=Math.ceil((i=e<=0&&r>=0?new(nx())(0):(i=new(nx())(e).add(r).div(2)).sub(new(nx())(i).mod(u))).sub(e).div(u).toNumber()),l=Math.ceil(new(nx())(r).sub(i).div(u).toNumber()),s=c+l+1;return s>n?t(e,r,n,o,a+1):(s0?l+(n-s):l,c=r>0?c:c+(n-s)),{step:u,tickMin:i.sub(new(nx())(c).mul(u)),tickMax:i.add(new(nx())(l).mul(u))})}(c,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=nC.rangeStep(h,d.add(new(nx())(.1).mul(p)),p);return r>n?n_(y):y});nT(function(t){var e=nD(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=nD(nR([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[r,n];if(c===l)return nz(c,o,i);var s=nL(new(nx())(l).sub(c).div(a-1),i,0),f=nM(nk(function(t){return new(nx())(c).add(new(nx())(t).mul(s)).toNumber()}),nA)(0,a).filter(function(t){return t>=c&&t<=l});return r>n?n_(f):f});var n$=nT(function(t,e){var r=nD(t,2),n=r[0],o=r[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=nD(nR([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var l=Math.max(e,2),s=nL(new(nx())(c).sub(u).div(l-1),i,0),f=[].concat(nI(nC.rangeStep(new(nx())(u),new(nx())(c).sub(new(nx())(.99).mul(s)),s)),[c]);return n>o?n_(f):f}),nF=r(73678),nW=r(89952),nq=r(61211),nX=r(20618);function nH(t){return(nH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nV(t){return function(t){if(Array.isArray(t))return nG(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return nG(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nG(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nG(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var u=o.range,c=0;c0?n[c-1].coordinate:n[a-1].coordinate,s=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if((0,nW.sA)(s-l)!==(0,nW.sA)(f-s)){var h=[];if((0,nW.sA)(f-s)===(0,nW.sA)(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[c].index;break}}else{var b=Math.min(l,f),m=Math.max(l,f);if(t>(b+s)/2&&t<=(m+s)/2){i=n[c].index;break}}}else for(var g=0;g0&&g(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i},n1=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?nK(nK({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},n2=function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),u=0,c=a.length;u=0});if(v&&v.length){var b=v[0].type.defaultProps,m=void 0!==b?nK(nK({},b),v[0].props):v[0].props,g=m.barSize,x=m[y];i[x]||(i[x]=[]);var O=nr()(g)?e:g;i[x].push({item:v[0],stackList:v.slice(1),barSize:nr()(O)?void 0:(0,nW.F4)(O,r,0)})}}return i},n5=function(t){var e,r=t.barGap,n=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=void 0===i?[]:i,u=t.maxBarSize,c=a.length;if(c<1)return null;var l=(0,nW.F4)(r,o,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/c,h=a.reduce(function(t,e){return t+e.barSize||0},0);(h+=(c-1)*l)>=o&&(h-=(c-1)*l,l=0),h>=o&&p>0&&(f=!0,p*=.9,h=c*p);var d={offset:((o-h)/2>>0)-l,size:0};e=a.reduce(function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(nV(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:d})}),n},s)}else{var y=(0,nW.F4)(n,o,0,!0);o-2*y-(c-1)*l<=0&&(l=0);var v=(o-2*y-(c-1)*l)/c;v>1&&(v>>=0);var b=u===+u?Math.min(v,u):v;e=a.reduce(function(t,e,r){var n=[].concat(nV(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-b)/2,size:b}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},s)}return e},n3=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=(0,nX.g)({children:o,legendWidth:u});if(c){var l=n||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&(0,nW.Et)(t[p]))return nK(nK({},t),{},nJ({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&(0,nW.Et)(t[h]))return nK(nK({},t),{},nJ({},h,t[h]+(f||0)))}return t},n6=function(t,e,r,n,o){var i=e.props.children,a=(0,nq.aS)(i,nF.u).filter(function(t){var e;return e=t.props.direction,!!nr()(o)||("horizontal"===n?"yAxis"===o:"vertical"===n||"x"===e?"xAxis"===o:"y"!==e||"yAxis"===o)});if(a&&a.length){var u=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=nZ(e,r);if(nr()(n))return t;var o=Array.isArray(n)?[nt()(n),r9()(n)]:[n,n],i=u.reduce(function(t,r){var n=nZ(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]},[1/0,-1/0])}return null},n4=function(t,e,r,n,o){var i=e.map(function(e){return n6(t,e,r,o,n)}).filter(function(t){return!nr()(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},n8=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&n6(t,e,i,n)||nQ(t,i,r,o)});if("number"===r)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return i.reduce(function(t,e){for(var r=0,n=e.length;r=2?2*(0,nW.sA)(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(o?o.indexOf(t):t)+c,value:t,offset:c}}).filter(function(t){return!np()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+c,value:t,offset:c}}):n.domain().map(function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}})},oe=new WeakMap,or=function(t,e){if("function"!=typeof e)return t;oe.has(t)||oe.set(t,new WeakMap);var r=oe.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},on=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:tB(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:tB(),realScaleType:"linear"};if(na()(n)){var u="scale".concat(nd()(n));return{scale:(s[u]||f.z)(),realScaleType:s[u]?u:"point"}}return no()(n)?{scale:n}:{scale:f.z(),realScaleType:"point"}},oo=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-1e-4,i=Math.max(n[0],n[1])+1e-4,a=t(e[0]),u=t(e[r-1]);(ai||ui)&&t.domain([e[0],e[r-1]])}},oi=function(t,e){if(!t)return null;for(var r=0,n=t.length;rn)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i0){for(var r,n=0,o=t[e[0]],i=o.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},oc=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=ou[r];return(function(){var t=(0,r5.A)([]),e=r3,r=r1,n=r6;function o(o){var i,a,u=Array.from(t.apply(this,arguments),r4),c=u.length,l=-1;for(let t of o)for(i=0,++l;i=0?0:o<0?o:n}return r[0]},od=function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?nK(nK({},t.type.defaultProps),t.props):t.props).stackId;if((0,nW.vh)(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null},oy=function(t,e,r){return Object.keys(t).reduce(function(n,o){var i=t[o].stackedData.reduce(function(t,n){var o=n.slice(e,r+1).reduce(function(t,e){return[nt()(e.concat([t[0]]).filter(nW.Et)),r9()(e.concat([t[1]]).filter(nW.Et))]},[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},ov=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ob=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,om=function(t,e,r){if(no()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if((0,nW.Et)(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(ov.test(t[0])){var o=+ov.exec(t[0])[1];n[0]=e[0]-o}else no()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if((0,nW.Et)(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(ob.test(t[1])){var i=+ob.exec(t[1])[1];n[1]=e[1]+i}else no()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},og=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=nm()(e,function(t){return t.coordinate}),i=1/0,a=1,u=o.length;a{"use strict";r.d(e,{A3:()=>f,Pu:()=>s});var n=r(95392);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||n.m.isSsr)return{width:0,height:0};var o=(Object.keys(e=a({},r)).forEach(function(t){e[t]||delete e[t]}),e),i=JSON.stringify({text:t,copyStyle:o});if(u.widthCache[i])return u.widthCache[i];try{var s=document.getElementById(l);s||((s=document.createElement("span")).setAttribute("id",l),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=a(a({},c),o);Object.assign(s.style,f),s.textContent="".concat(t);var p=s.getBoundingClientRect(),h={width:p.width,height:p.height};return u.widthCache[i]=h,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),h}catch(t){return{width:0,height:0}}},f=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},89952:(t,e,r)=>{"use strict";r.d(e,{CG:()=>g,Dj:()=>x,Et:()=>h,F4:()=>b,NF:()=>v,_3:()=>p,eP:()=>O,lX:()=>m,sA:()=>f,vh:()=>d});var n=r(24665),o=r.n(n),i=r(50801),a=r.n(i),u=r(32292),c=r.n(u),l=r(45493),s=r.n(l),f=function(t){return 0===t?0:t>0?1:-1},p=function(t){return o()(t)&&t.indexOf("%")===t.length-1},h=function(t){return s()(t)&&!a()(t)},d=function(t){return h(t)||o()(t)},y=0,v=function(t){var e=++y;return"".concat(t||"").concat(e)},b=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(t)&&!o()(t))return n;if(p(t)){var u=t.indexOf("%");r=e*parseFloat(t.slice(0,u))/100}else r=+t;return a()(r)&&(r=n),i&&r>e&&(r=e),r},m=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},g=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n{"use strict";r.d(e,{m:()=>n});var n={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return n[t]},set:function(t,e){if("string"==typeof t)n[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){n[e]=t[e]})}}}},42228:(t,e,r)=>{"use strict";r.d(e,{R:()=>n});var n=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;eu,Kg:()=>a,yy:()=>f}),r(87107),r(20107),r(14632);var a=Math.PI/180,u=function(t,e,r,n){return{x:t+Math.cos(-a*n)*r,y:e+Math.sin(-a*n)*r}},c=function(t,e){var r=t.x,n=t.y;return Math.sqrt(Math.pow(r-e.x,2)+Math.pow(n-e.y,2))},l=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=c({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var u=Math.acos((r-o)/a);return n>i&&(u=2*Math.PI-u),{radius:a,angle:180*u/Math.PI,angleInRadian:u}},s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.min(Math.floor(e/360),Math.floor(r/360));return{startAngle:e-360*n,endAngle:r-360*n}},f=function(t,e){var r,n=l({x:t.x,y:t.y},e),o=n.radius,a=n.angle,u=e.innerRadius,c=e.outerRadius;if(oc)return!1;if(0===o)return!0;var f=s(e),p=f.startAngle,h=f.endAngle,d=a;if(p<=h){for(;d>h;)d-=360;for(;d=p&&d<=h}else{for(;d>p;)d-=360;for(;d=h&&d<=p}return r?i(i({},e),{},{radius:o,angle:d+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null}},61211:(t,e,r)=>{"use strict";r.d(e,{AW:()=>L,BU:()=>k,J9:()=>I,Me:()=>M,Mn:()=>j,OV:()=>D,X_:()=>R,aS:()=>A,ee:()=>B,sT:()=>T});var n=r(32292),o=r.n(n),i=r(87107),a=r.n(i),u=r(24665),c=r.n(u),l=r(14632),s=r.n(l),f=r(50683),p=r.n(f),h=r(20107),d=r(55473),y=r(89952),v=r(45707),b=r(35956),m=["children"],g=["children"];function x(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},j=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,P=null,E=function t(e){if(e===S&&Array.isArray(P))return P;var r=[];return h.Children.forEach(e,function(e){a()(e)||((0,d.zv)(e)?r=r.concat(t(e.props.children)):r.push(e))}),P=r,S=e,r};function A(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return j(t)}):[j(e)],E(t).forEach(function(t){var e=o()(t,"type.displayName")||o()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function k(t,e){var r=A(t,e);return r&&r[0]}var M=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!!(0,y.Et)(r)&&!(r<=0)&&!!(0,y.Et)(n)&&!(n<=0)},_=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],T=function(t){return t&&"object"===O(t)&&"clipDot"in t},C=function(t,e,r,n){var o,i=null!==(o=null===b.VU||void 0===b.VU?void 0:b.VU[n])&&void 0!==o?o:[];return!s()(t)&&(n&&i.includes(e)||b.QQ.includes(e))||r&&b.j2.includes(e)},I=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,h.isValidElement)(t)&&(n=t.props),!p()(n))return null;var o={};return Object.keys(n).forEach(function(t){var i;C(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])}),o},D=function t(e,r){if(e===r)return!0;var n=h.Children.count(e);if(n!==h.Children.count(r))return!1;if(0===n)return!0;if(1===n)return N(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o=0)r.push(t);else if(t){var i=j(t.type),a=e[i]||{},u=a.handler,l=a.once;if(u&&(!l||!n[i])){var s=u(t,i,o);r.push(s),n[i]=!0}}}),r},R=function(t){var e=t&&t.type;return e&&w[e]?w[e]:null},L=function(t,e){return E(e).indexOf(t)}},45707:(t,e,r)=>{"use strict";function n(t,e){for(var r in t)if(({}).hasOwnProperty.call(t,r)&&(!({}).hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if(({}).hasOwnProperty.call(e,n)&&!({}).hasOwnProperty.call(t,n))return!1;return!0}r.d(e,{b:()=>n})},20618:(t,e,r)=>{"use strict";r.d(e,{g:()=>l});var n=r(58736),o=r(95492),i=r(61211);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e{"use strict";r.d(e,{s:()=>u});var n=r(79948),o=r.n(n),i=r(14632),a=r.n(i);function u(t,e,r){return!0===e?o()(t,r):a()(e)?o()(t,e):t}},35956:(t,e,r)=>{"use strict";r.d(e,{QQ:()=>u,VU:()=>l,XC:()=>p,_U:()=>f,j2:()=>s});var n=r(20107),o=r(50683),i=r.n(o);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],c=["points","pathLength"],l={svg:["viewBox","children"],polygon:c,polyline:c},s=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,n.isValidElement)(t)&&(r=t.props),!i()(r))return null;var o={};return Object.keys(r).forEach(function(t){s.includes(t)&&(o[t]=e||function(e){return r[t](r,e)})}),o},p=function(t,e,r){if(!i()(t)||"object"!==a(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];s.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t){return i(e,r,t),null})}),n}},63949:(t,e,r)=>{"use strict";r.d(e,{A:()=>i,z:()=>a});var n=r(87982),o=r(68399);function i(){var t,e,r=(0,o.A)().unknown(void 0),a=r.domain,u=r.range,c=0,l=1,s=!1,f=0,p=0,h=.5;function d(){var r=a().length,n=l{"use strict";function n(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}r.d(e,{C:()=>n,K:()=>o})},68399:(t,e,r)=>{"use strict";r.d(e,{A:()=>function t(){var e=new n,r=[],o=[],i=u;function c(t){let n=e.get(t);if(void 0===n){if(i!==u)return i;e.set(t,n=r.push(t)-1)}return o[n%o.length]}return c.domain=function(t){if(!arguments.length)return r.slice();for(let o of(r=[],e=new n,t))e.has(o)||e.set(o,r.push(o)-1);return c},c.range=function(t){return arguments.length?(o=Array.from(t),c):o.slice()},c.unknown=function(t){return arguments.length?(i=t,c):i},c.copy=function(){return t(r,o).unknown(i)},a.C.apply(c,arguments),c},h:()=>u});class n extends Map{constructor(t,e=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function o({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function i(t){return null!==t&&"object"==typeof t?t.valueOf():t}var a=r(87982);let u=Symbol("implicit")},58492:(t,e,r)=>{"use strict";function n(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}r.d(e,{A:()=>n}),Array.prototype.slice},51139:(t,e,r)=>{"use strict";function n(t){return function(){return t}}r.d(e,{A:()=>n})},95327:(t,e,r)=>{"use strict";r.d(e,{i:()=>c});let n=Math.PI,o=2*n,i=o-1e-6;function a(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return a;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e1e-6){if(Math.abs(f*c-l*s)>1e-6&&i){let h=r-a,d=o-u,y=c*c+l*l,v=Math.sqrt(y),b=Math.sqrt(p),m=i*Math.tan((n-Math.acos((y+p-(h*h+d*d))/(2*v*b)))/2),g=m/b,x=m/v;Math.abs(g-1)>1e-6&&this._append`L${t+g*s},${e+g*f}`,this._append`A${i},${i},0,0,${+(f*h>s*d)},${this._x1=t+x*c},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,r,a,u,c){if(t=+t,e=+e,c=!!c,(r=+r)<0)throw Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),f=t+l,p=e+s,h=1^c,d=c?a-u:u-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,r&&(d<0&&(d=d%o+o),d>i?this._append`A${r},${r},0,1,${h},${t-l},${e-s}A${r},${r},0,1,${h},${this._x1=f},${this._y1=p}`:d>1e-6&&this._append`A${r},${r},0,${+(d>=n)},${h},${this._x1=t+r*Math.cos(u)},${this._y1=e+r*Math.sin(u)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new u(e)}u.prototype},45082:(t,e,r)=>{"use strict";function n(t,e){if(!t)throw Error("Invariant failed")}r.d(e,{A:()=>n})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1203-e2b7ef24adadbbd0.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1203-e2b7ef24adadbbd0.js new file mode 100644 index 0000000..d173d8e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1203-e2b7ef24adadbbd0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1203],{39997:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(20107);let i=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var t=arguments.length,e=Array(t),n=0;n!!t&&n.indexOf(t)===e).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,r.forwardRef)((t,e)=>{let{color:n="currentColor",size:i=24,strokeWidth:c=2,absoluteStrokeWidth:l,className:u="",children:s,iconNode:f,...d}=t;return(0,r.createElement)("svg",{ref:e,...a,width:i,height:i,stroke:n,strokeWidth:l?24*Number(c)/Number(i):c,className:o("lucide",u),...d},[...f.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(s)?s:[s]])}),l=(t,e)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:l,...u}=n;return(0,r.createElement)(c,{ref:a,iconNode:e,className:o("lucide-".concat(i(t)),l),...u})});return n.displayName="".concat(t),n}},17799:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},89463:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]])},622:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},98969:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},14389:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},8782:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},10964:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},99312:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},7778:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},25262:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},97801:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},91994:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},83148:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},90304:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},20633:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},12607:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},92823:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},92776:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0});var l=a(n(20107)),u=n(22184),s=n(30120),f=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];e.default=function(t){var e=t.loading,n=t.color,i=void 0===n?"#000000":n,o=t.speedMultiplier,a=void 0===o?1:o,s=t.cssOverride,d=t.size,p=c(t,["loading","color","speedMultiplier","cssOverride","size"]),y=(0,u.parseLengthAndUnit)(void 0===d?15:d),h=y.value,m=y.unit,v=r({display:"inherit",position:"relative"},void 0===s?{}:s),g=function(t){return{position:"absolute",fontSize:"".concat(h/3).concat(m),width:"".concat(h).concat(m),height:"".concat(h).concat(m),background:i,borderRadius:"50%",animation:"".concat(f[t]," ").concat(1.5/a,"s infinite"),animationFillMode:"forwards"}};return void 0===e||e?l.createElement("span",r({style:v},p),l.createElement("span",{style:g(0)}),l.createElement("span",{style:g(1)}),l.createElement("span",{style:g(2)}),l.createElement("span",{style:g(3)}),l.createElement("span",{style:g(4)}),l.createElement("span",{style:g(5)})):null}},71834:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(20107),i={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function o(t){var e=function(t){if("number"==typeof t)return{value:t,unit:"px"};var e,n=(t.match(/^[0-9.]*/)||"").toString();e=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(t.match(/[^0-9]*$/)||"").toString();return i[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}(t);return"".concat(e.value).concat(e.unit)}var a=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return o&&o.insertRule(a,0),r},c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},u=[a("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),a("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];let s=function(t){var e=t.loading,n=t.color,i=void 0===n?"#000000":n,a=t.speedMultiplier,s=void 0===a?1:a,f=t.cssOverride,d=t.size,p=void 0===d?60:d,y=l(t,["loading","color","speedMultiplier","cssOverride","size"]),h=c({display:"inherit",position:"relative",width:o(p),height:o(p)},void 0===f?{}:f),m=function(t){return{position:"absolute",height:o(p),width:o(p),border:"thick solid ".concat(i),borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:"".concat(u[0],", ").concat(u[1]),animationDuration:"".concat(2/s,"s"),animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:1===t?"-1s":"0s"}};return void 0===e||e?r.createElement("span",c({style:h},y),r.createElement("span",{style:m(1)}),r.createElement("span",{style:m(2)})):null}},30120:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=void 0,e.createAnimation=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return o&&o.insertRule(a,0),r}},22184:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cssValue=e.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(t){if("number"==typeof t)return{value:t,unit:"px"};var e,r=(t.match(/^[0-9.]*/)||"").toString();e=r.includes(".")?parseFloat(r):parseInt(r,10);var i=(t.match(/[^0-9]*$/)||"").toString();return n[i]?{value:e,unit:i}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}e.parseLengthAndUnit=r,e.cssValue=function(t){var e=r(t);return"".concat(e.value).concat(e.unit)}},79492:(t,e,n)=>{n.d(e,{G:()=>R});var r=n(20107),i=n(64901),o=n(61075),a=n(14632),c=n.n(a),l=n(12838),u=n.n(l),s=n(87107),f=n.n(s),d=n(50801),p=n.n(d),y=n(6440),h=n.n(y),m=n(60992),v=n(42555),g=n(37819),b=n(58864),x=n(95392),O=n(89952),w=n(95492),A=n(61211),k=["layout","type","stroke","connectNulls","isRange","ref"],P=["key"];function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function S(){return(S=Object.assign?Object.assign.bind():function(t){for(var e=1;e0||!h()(c,r)||!h()(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,o=e.dot,a=e.points,c=e.className,l=e.top,u=e.left,s=e.xAxis,d=e.yAxis,p=e.width,y=e.height,h=e.isAnimationActive,m=e.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,O=(0,i.A)("recharts-area",c),w=s&&s.allowDataOverflow,k=d&&d.allowDataOverflow,P=w||k,E=f()(m)?this.id:m,j=null!==(t=(0,A.J9)(o,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=j.r,M=j.strokeWidth,D=((0,A.sT)(o)?o:{}).clipDot,L=void 0===D||D,z=2*(void 0===S?3:S)+(void 0===M?2:M);return r.createElement(g.W,{className:O},w||k?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(E)},r.createElement("rect",{x:w?u:u-p/2,y:k?l:l-y/2,width:w?p:2*p,height:k?y:2*y})),!L&&r.createElement("clipPath",{id:"clipPath-dots-".concat(E)},r.createElement("rect",{x:u-z/2,y:l-z/2,width:p+z,height:y+z}))):null,x?null:this.renderArea(P,E),(o||x)&&this.renderDots(P,L,E),(!h||v)&&b.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],e&&L(a.prototype,e),n&&L(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);I(R,"displayName","Area"),I(R,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),I(R,"getBaseValue",function(t,e,n,r){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if((0,O.Et)(c)&&"number"==typeof c)return c;var l="horizontal"===i?r:n,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c?s:s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]}),I(R,"getComposedData",function(t){var e,n=t.props,r=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,d=t.displayedData,p=t.offset,y=n.layout,h=s&&s.length,m=R.getBaseValue(n,r,i,o),v="horizontal"===y,g=!1,b=d.map(function(t,e){h?n=s[f+e]:Array.isArray(n=(0,w.kr)(t,u))?g=!0:n=[m,n];var n,r=null==n[1]||h&&null==(0,w.kr)(t,u);return v?{x:(0,w.nb)({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:r?null:o.scale(n[1]),value:n,payload:t}:{x:r?null:i.scale(n[1]),y:(0,w.nb)({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:n,payload:t}});return e=h||g?b.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return v?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}}):v?o.scale(m):i.scale(m),D({points:b,baseLine:e,layout:y,isRange:g},p)}),I(R,"renderDotItem",function(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(c()(t))n=t(e);else{var o=(0,i.A)("recharts-area-dot","boolean"!=typeof t?t.className:""),a=e.key,l=j(e,P);n=r.createElement(v.c,S({},l,{key:a,className:o}))}return n})},94005:(t,e,n)=>{n.d(e,{d:()=>M});var r=n(20107),i=n(14632),o=n.n(i),a=n(42228),c=n(89952),l=n(61211),u=n(95492),s=n(62882),f=n(67064),d=n(25161),p=["x1","y1","x2","y2","key"],y=["offset"];function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function v(t){for(var e=1;e=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var x=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,c=t.height,l=t.ry;return r.createElement("rect",{x:i,y:o,ry:l,width:a,height:c,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function O(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(o()(t))n=t(e);else{var i=e.x1,a=e.y1,c=e.x2,u=e.y2,s=e.key,f=b(e,p),d=(0,l.J9)(f,!1),h=(d.offset,b(d,y));n=r.createElement("line",g({},h,{x1:i,y1:a,x2:c,y2:u,fill:"none",key:s}))}return n}function w(t){var e=t.x,n=t.width,i=t.horizontal,o=void 0===i||i,a=t.horizontalPoints;if(!o||!a||!a.length)return null;var c=a.map(function(r,i){return O(o,v(v({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function A(t){var e=t.y,n=t.height,i=t.vertical,o=void 0===i||i,a=t.verticalPoints;if(!o||!a||!a.length)return null;var c=a.map(function(r,i){return O(o,v(v({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function k(t){var e=t.horizontalFill,n=t.fillOpacity,i=t.x,o=t.y,a=t.width,c=t.height,l=t.horizontalPoints,u=t.horizontal;if(!(void 0===u||u)||!e||!e.length)return null;var s=l.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,l){var u=s[l+1]?s[l+1]-t:o+c-t;if(u<=0)return null;var f=l%e.length;return r.createElement("rect",{key:"react-".concat(l),y:t,x:i,height:u,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function P(t){var e=t.vertical,n=t.verticalFill,i=t.fillOpacity,o=t.x,a=t.y,c=t.width,l=t.height,u=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var s=u.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,e){var u=s[e+1]?s[e+1]-t:o+c-t;if(u<=0)return null;var f=e%n.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:u,height:l,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)},j=function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)},S={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function M(t){var e,n,i,l,u,s,f=(0,d.yi)(),p=(0,d.rY)(),y=(0,d.hj)(),m=v(v({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:S.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:S.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:S.horizontal,horizontalFill:null!==(l=t.horizontalFill)&&void 0!==l?l:S.horizontalFill,vertical:null!==(u=t.vertical)&&void 0!==u?u:S.vertical,verticalFill:null!==(s=t.verticalFill)&&void 0!==s?s:S.verticalFill,x:(0,c.Et)(t.x)?t.x:y.left,y:(0,c.Et)(t.y)?t.y:y.top,width:(0,c.Et)(t.width)?t.width:y.width,height:(0,c.Et)(t.height)?t.height:y.height}),b=m.x,O=m.y,M=m.width,D=m.height,L=m.syncWithTicks,z=m.horizontalValues,N=m.verticalValues,C=(0,d.pj)(),I=(0,d.$G)();if(!(0,c.Et)(M)||M<=0||!(0,c.Et)(D)||D<=0||!(0,c.Et)(b)||b!==+b||!(0,c.Et)(O)||O!==+O)return null;var F=m.verticalCoordinatesGenerator||E,R=m.horizontalCoordinatesGenerator||j,_=m.horizontalPoints,T=m.verticalPoints;if((!_||!_.length)&&o()(R)){var B=z&&z.length,V=R({yAxis:I?v(v({},I),{},{ticks:B?z:I.ticks}):void 0,width:f,height:p,offset:y},!!B||L);(0,a.R)(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h(V),"]")),Array.isArray(V)&&(_=V)}if((!T||!T.length)&&o()(F)){var X=N&&N.length,W=F({xAxis:C?v(v({},C),{},{ticks:X?N:C.ticks}):void 0,width:f,height:p,offset:y},!!X||L);(0,a.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h(W),"]")),Array.isArray(W)&&(T=W)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),r.createElement(w,g({},m,{offset:y,horizontalPoints:_,xAxis:C,yAxis:I})),r.createElement(A,g({},m,{offset:y,verticalPoints:T,xAxis:C,yAxis:I})),r.createElement(k,g({},m,{horizontalPoints:_})),r.createElement(P,g({},m,{verticalPoints:T})))}M.displayName="CartesianGrid"},53134:(t,e,n)=>{n.d(e,{Q:()=>l});var r=n(90805),i=n(79492),o=n(4538),a=n(41797),c=n(98456),l=(0,r.gu)({chartName:"AreaChart",GraphicalChild:i.G,axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:c.pr})},74043:(t,e,n)=>{n.d(e,{A:()=>P});var r=n(20107);function i(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function o(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&n.every(n=>{let r=t[n],a=e[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function a(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function c(t){return"number"==typeof t}function l(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return Math.abs(t)}function d(t){return Math.sign(t)}function p(t){return v(t).map(Number)}function y(t){return t[h(t)]}function h(t){return Math.max(0,t.length-1)}function m(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function v(t){return Object.keys(t)}function g(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function b(){let t=[],e={add:function(n,r,i,o={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,i,o),a=()=>n.removeEventListener(r,i,o)):(n.addListener(i),a=()=>n.removeListener(i)),t.push(a),e},clear:function(){t=t.filter(t=>t())}};return e}function x(t=0,e=0){let n=f(t-e);function r(n){return ne}return{length:n,max:e,min:t,constrain:function(n){return r(n)?ne},reachedMin:function(e){return e(v(n).forEach(r=>{let i=e[r],o=n[r],a=s(i)&&s(o);e[r]=a?t(i,o):o}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){let r=n.breakpoints||{},i=v(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,n)=>e(t,n),{});return e(n,i)},optionsMediaQueries:function(e){return e.map(t=>v(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(j),M=(P=[],{init:function(t,e){return(P=e.filter(({options:t})=>!1!==S.optionsAtMedia(t).active)).forEach(e=>e.init(t,S)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){P=P.filter(t=>t.destroy())}}),D=b(),L=function(){let t,e={},n={init:function(e){t=e},emit:function(r){return(e[r]||[]).forEach(e=>e(t,r)),n},off:function(t,r){return e[t]=(e[t]||[]).filter(t=>t!==r),n},on:function(t,r){return e[t]=(e[t]||[]).concat([r]),n},clear:function(){e={}}};return n}(),{mergeOptions:z,optionsAtMedia:N,optionsMediaQueries:C}=S,{on:I,off:F,emit:R}=L,_=!1,T=z(A,k.globalOptions),B=z(T),V=[];function X(e,n){!_&&(B=N(T=z(T,e)),V=n||V,function(){let{container:e,slides:n}=B;o=(l(e)?t.querySelector(e):e)||t.children[0];let r=l(n)?o.querySelectorAll(n):n;a=[].slice.call(r||o.children)}(),r=function e(n){let r=function(t,e,n,r,i,o,a){let s,A;let{align:k,axis:P,direction:E,startIndex:j,loop:S,duration:M,dragFree:D,dragThreshold:L,inViewThreshold:z,slidesToScroll:N,skipSnaps:C,containScroll:I,watchResize:F,watchSlides:R,watchDrag:_,watchFocus:T}=o,B={measure:function(t){let{offsetTop:e,offsetLeft:n,offsetWidth:r,offsetHeight:i}=t;return{top:e,right:n+r,bottom:e+i,left:n,width:r,height:i}}},V=B.measure(e),X=n.map(B.measure),W=function(t,e){let n="rtl"===e,r="y"===t,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(t){let{height:e,width:n}=t;return r?e:n},direction:function(t){return t*i}}}(P,E),q=W.measureSize(V),H={measure:function(t){return t/100*q}},$=function(t,e){let n={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(r,i){return l(t)?n[t](r):t(e,r,i)}}}(k,q),G=!S&&!!I,{slideSizes:J,slideSizesWithGaps:U,startGap:K,endGap:Z}=function(t,e,n,r,i,o){let{measureSize:a,startEdge:c,endEdge:l}=t,u=n[0]&&i,s=function(){if(!u)return 0;let t=n[0];return f(e[c]-t[c])}(),d=u?parseFloat(o.getComputedStyle(y(r)).getPropertyValue(`margin-${l}`)):0,p=n.map(a),m=n.map((t,e,n)=>{let r=e===h(n);return e?r?p[e]+d:n[e+1][c]-t[c]:p[e]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:m,startGap:s,endGap:d}}(W,V,X,n,S||!!I,i),Q=function(t,e,n,r,i,o,a,l,u){let{startEdge:s,endEdge:d,direction:m}=t,v=c(n);return{groupSlides:function(t){return v?p(t).filter(t=>t%n==0).map(e=>t.slice(e,e+n)):t.length?p(t).reduce((n,c,u)=>{let p=y(n)||0,v=c===h(t),g=i[s]-o[p][s],b=i[s]-o[c][d],x=r||0!==p?0:m(a),O=f(b-(!r&&v?m(l):0)-(g+x));return u&&O>e+2&&n.push(c),v&&n.push(t.length),n},[]).map((e,n,r)=>{let i=Math.max(r[n-1]||0);return t.slice(i,e)}):[]}}}(W,q,N,S,V,X,K,Z,0),{snaps:Y,snapsAligned:tt}=function(t,e,n,r,i){let{startEdge:o,endEdge:a}=t,{groupSlides:c}=i,l=c(r).map(t=>y(t)[a]-t[0][o]).map(f).map(e.measure),u=r.map(t=>n[o]-t[o]).map(t=>-f(t)),s=c(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:s}}(W,$,V,X,Q),te=-y(Y)+y(U),{snapsContained:tn,scrollContainLimit:tr}=function(t,e,n,r,i){let o=x(-e+t,0),a=n.map((t,e)=>{let{min:r,max:i}=o,a=o.constrain(t),c=e===h(n);return e?c||1>f(r-a)?r:1>f(i-a)?i:a:i}).map(t=>parseFloat(t.toFixed(3))),c=function(){let t=a[0],e=y(a);return x(a.lastIndexOf(t),a.indexOf(e)+1)}();return{snapsContained:function(){if(e<=t+2)return[o.max];if("keepSnaps"===r)return a;let{min:n,max:i}=c;return a.slice(n,i)}(),scrollContainLimit:c}}(q,te,tt,I,0),ti=G?tn:tt,{limit:to}=function(t,e,n){let r=e[0];return{limit:x(n?r-t:y(e),r)}}(te,ti,S),ta=function t(e,n,r){let{constrain:i}=x(0,e),o=e+1,a=c(n);function c(t){return r?f((o+t)%o):i(t)}function l(){return t(e,a,r)}let u={get:function(){return a},set:function(t){return a=c(t),u},add:function(t){return l().set(a+t)},clone:l};return u}(h(ti),j,S),tc=ta.clone(),tl=p(n),tu=({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:r}},i)=>{r||n.constrain(t.pointerDown()),e.seek(i)},ts=({scrollBody:t,translate:e,location:n,offsetLocation:r,scrollLooper:i,slideLooper:o,dragHandler:a,animation:c,eventHandler:l,scrollBounds:u,options:{loop:s}},f)=>{let d=t.settled(),p=!u.shouldConstrain(),y=s?d:d&&p;y&&!a.pointerDown()&&(c.stop(),l.emit("settle")),y||l.emit("scroll");let h=n.get()*f+ty.get()*(1-f);r.set(h),s&&(i.loop(t.direction()),o.loop()),e.to(r.get())},tf=function(t,e,n,r){let i=b(),o=1e3/60,a=null,c=0,l=0;function u(t){if(!l)return;a||(a=t);let i=t-a;for(a=t,c+=i;c>=o;)n(o),c-=o;r(c/o),l&&e.requestAnimationFrame(u)}function s(){e.cancelAnimationFrame(l),a=null,c=0,l=0}return{init:function(){i.add(t,"visibilitychange",()=>{t.hidden&&(a=null,c=0)})},destroy:function(){s(),i.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:s,update:()=>n(o),render:r}}(r,i,t=>tu(tP,t),t=>ts(tP,t)),td=ti[ta.get()],tp=O(td),ty=O(td),th=O(td),tm=O(td),tv=function(t,e,n,r,i,o){let a=0,c=0,l=i,u=.68,s=t.get(),p=0;function y(t){return l=t,m}function h(t){return u=t,m}let m={direction:function(){return c},duration:function(){return l},velocity:function(){return a},seek:function(e){let i=e/1e3,o=l*i,f=r.get()-t.get(),y=0;return l?(n.set(t),a+=f/o,a*=u,s+=a,t.add(a*i),y=s-p):(a=0,n.set(r),t.set(r),y=f),c=d(y),p=s,m},settled:function(){return .001>f(r.get()-e.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return y(i)},useFriction:h,useDuration:y};return m}(tp,th,ty,tm,M,0),tg=function(t,e,n,r,i){let{reachedAny:o,removeOffset:a,constrain:c}=r;function l(t){return t.concat().sort((t,e)=>f(t)-f(e))[0]}function u(e,r){let i=[e,e+n,e-n];if(!t)return e;if(!r)return l(i);let o=i.filter(t=>d(t)===r);return o.length?l(o):y(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:s,distance:d}=function(n){let r=t?a(n):c(n),{index:i}=e.map((t,e)=>({diff:u(t-r,0),index:e})).sort((t,e)=>f(t.diff)-f(e.diff))[0];return{index:i,distance:r}}(l),p=!t&&o(l);if(!r||p)return{index:s,distance:n};let y=n+u(e[s]-d,0);return{index:s,distance:y}},byIndex:function(t,n){let r=u(e[t]-i.get(),n);return{index:t,distance:r}},shortcut:u}}(S,ti,te,to,tm),tb=function(t,e,n,r,i,o,a){function c(i){let c=i.distance,l=i.index!==e.get();o.add(c),c&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(n.set(e.get()),e.set(i.index),a.emit("select"))}return{distance:function(t,e){c(i.byDistance(t,e))},index:function(t,n){let r=e.clone().set(t);c(i.byIndex(r.get(),n))}}}(tf,ta,tc,tv,tg,tm,a),tx=function(t){let{max:e,length:n}=t;return{get:function(t){return n?-((t-e)/n):0}}}(to),tO=b(),tw=function(t,e,n,r){let i;let o={},a=null,c=null,l=!1;return{init:function(){i=new IntersectionObserver(t=>{l||(t.forEach(t=>{o[e.indexOf(t.target)]=t}),a=null,c=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(t=>i.observe(t))},destroy:function(){i&&i.disconnect(),l=!0},get:function(t=!0){if(t&&a)return a;if(!t&&c)return c;let e=v(o).reduce((e,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(t&&i||!t&&!i)&&e.push(r),e},[]);return t&&(a=e),t||(c=e),e}}}(e,n,a,z),{slideRegistry:tA}=function(t,e,n,r,i,o){let{groupSlides:a}=i,{min:c,max:l}=r;return{slideRegistry:function(){let r=a(o);return 1===n.length?[o]:t&&"keepSnaps"!==e?r.slice(c,l).map((t,e,n)=>{let r=e===h(n);return e?r?m(h(o)-y(n)[0]+1,y(n)[0]):t:m(y(n[0])+1)}):r}()}}(G,I,ti,tr,Q,tl),tk=function(t,e,n,r,i,o,a,l){let s={passive:!0,capture:!0},f=0;function d(t){"Tab"===t.code&&(f=new Date().getTime())}return{init:function(p){l&&(o.add(document,"keydown",d,!1),e.forEach((e,d)=>{o.add(e,"focus",e=>{(u(l)||l(p,e))&&function(e){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),t.scrollLeft=0;let o=n.findIndex(t=>t.includes(e));c(o)&&(i.useDuration(0),r.index(o,0),a.emit("slideFocus"))}(d)},s)}))}}}(t,n,tA,tb,tv,tO,a,T),tP={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:V,slideRects:X,animation:tf,axis:W,dragHandler:function(t,e,n,r,i,o,a,c,l,s,p,y,h,m,v,O,w,A,k){let{cross:P,direction:E}=t,j=["INPUT","SELECT","TEXTAREA"],S={passive:!1},M=b(),D=b(),L=x(50,225).constrain(m.measure(20)),z={mouse:300,touch:400},N={mouse:500,touch:600},C=v?43:25,I=!1,F=0,R=0,_=!1,T=!1,B=!1,V=!1;function X(t){if(!g(t,r)&&t.touches.length>=2)return W(t);let e=o.readPoint(t),n=o.readPoint(t,P),a=f(e-F),l=f(n-R);if(!T&&!V&&(!t.cancelable||!(T=a>l)))return W(t);let u=o.pointerMove(t);a>O&&(B=!0),s.useFriction(.3).useDuration(.75),c.start(),i.add(E(u)),t.preventDefault()}function W(t){let e=p.byDistance(0,!1).index!==y.get(),n=o.pointerUp(t)*(v?N:z)[V?"mouse":"touch"],r=function(t,e){let n=y.add(-1*d(t)),r=p.byDistance(t,!v).distance;return v||f(t)t.preventDefault(),S).add(e,"touchmove",()=>void 0,S).add(e,"touchend",()=>void 0).add(e,"touchstart",c).add(e,"mousedown",c).add(e,"touchcancel",W).add(e,"contextmenu",W).add(e,"click",q,!0);function c(c){(u(k)||k(t,c))&&function(t){let c=g(t,r);V=c,B=v&&c&&!t.buttons&&I,I=f(i.get()-a.get())>=2,c&&0!==t.button||function(t){let e=t.nodeName||"";return j.includes(e)}(t.target)||(_=!0,o.pointerDown(t),s.useFriction(0).useDuration(0),i.set(a),function(){let t=V?n:e;D.add(t,"touchmove",X,S).add(t,"touchend",W).add(t,"mousemove",X,S).add(t,"mouseup",W)}(),F=o.readPoint(t),R=o.readPoint(t,P),h.emit("pointerDown"))}(c)}},destroy:function(){M.clear(),D.clear()},pointerDown:function(){return _}}}(W,t,r,i,tm,function(t,e){let n,r;function i(t){return t.timeStamp}function o(n,r){let i=r||t.scroll,o=`client${"x"===i?"X":"Y"}`;return(g(n,e)?n:n.touches[0])[o]}return{pointerDown:function(t){return n=t,r=t,o(t)},pointerMove:function(t){let e=o(t)-o(r),a=i(t)-i(n)>170;return r=t,a&&(n=t),e},pointerUp:function(t){if(!n||!r)return 0;let e=o(r)-o(n),a=i(t)-i(n),c=i(t)-i(r)>170,l=e/a;return a&&!c&&f(l)>.1?l:0},readPoint:o}}(W,i),tp,tf,tb,tv,tg,ta,a,H,D,L,C,0,_),eventStore:tO,percentOfView:H,index:ta,indexPrevious:tc,limit:to,location:tp,offsetLocation:th,previousLocation:ty,options:o,resizeHandler:function(t,e,n,r,i,o,a){let c,l;let s=[t].concat(r),d=[],p=!1;function y(t){return i.measureSize(a.measure(t))}return{init:function(i){o&&(l=y(t),d=r.map(y),c=new ResizeObserver(n=>{(u(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===t,a=r.indexOf(o.target),c=n?l:d[a];if(f(y(n?t:r[a])-c)>=.5){i.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(t=>c.observe(t))}))},destroy:function(){p=!0,c&&c.disconnect()}}}(e,a,i,n,W,F,B),scrollBody:tv,scrollBounds:function(t,e,n,r,i){let o=i.measure(10),a=i.measure(50),c=x(.1,.99),l=!1;function u(){return!!(!l&&t.reachedAny(n.get())&&t.reachedAny(e.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=t.reachedMin(e.get())?"min":"max",s=f(t[l]-e.get()),d=n.get()-e.get(),p=c.constrain(s/a);n.subtract(d*p),!i&&f(d)t.add(a))}}}(te,to,th,[tp,th,ty,tm]),scrollProgress:tx,scrollSnapList:ti.map(tx.get),scrollSnaps:ti,scrollTarget:tg,scrollTo:tb,slideLooper:function(t,e,n,r,i,o,a,c,l){let u=p(i),s=y(d(p(i).reverse(),a[0]),n,!1).concat(y(d(u,e-a[0]-1),-n,!0));function f(t,e){return t.reduce((t,e)=>t-i[e],e)}function d(t,e){return t.reduce((t,n)=>f(t,e)>0?t.concat([n]):t,[])}function y(i,a,u){let s=o.map((t,n)=>({start:t-r[n]+.5+a,end:t+e-.5+a}));return i.map(e=>{let r=u?0:-n,i=u?n:0,o=s[e][u?"end":"start"];return{index:e,loopPoint:o,slideLocation:O(-1),translate:w(t,l[e]),target:()=>c.get()>o?r:i}})}return{canLoop:function(){return s.every(({index:t})=>.1>=f(u.filter(e=>e!==t),e))},clear:function(){s.forEach(t=>t.translate.clear())},loop:function(){s.forEach(t=>{let{target:e,translate:n,slideLocation:r}=t,i=e();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:s}}(W,q,te,J,U,Y,ti,th,n),slideFocus:tk,slidesHandler:(A=!1,{init:function(t){R&&(s=new MutationObserver(e=>{!A&&(u(R)||R(t,e))&&function(e){for(let n of e)if("childList"===n.type){t.reInit(),a.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){s&&s.disconnect(),A=!0}}),slidesInView:tw,slideIndexes:tl,slideRegistry:tA,slidesToScroll:Q,target:tm,translate:w(W,e)};return tP}(t,o,a,E,j,n,L);return n.loop&&!r.slideLooper.canLoop()?e(Object.assign({},n,{loop:!1})):r}(B),C([T,...V.map(({options:t})=>t)]).forEach(t=>D.add(t,"change",W)),B.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(G),r.eventHandler.init(G),r.resizeHandler.init(G),r.slidesHandler.init(G),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&a.length&&r.dragHandler.init(G),i=M.init(G,V)))}function W(t,e){let n=$();q(),X(z({startIndex:n},t),e),L.emit("reInit")}function q(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),M.destroy(),D.clear()}function H(t,e,n){B.active&&!_&&(r.scrollBody.useBaseFriction().useDuration(!0===e?0:B.duration),r.scrollTo.index(t,n||0))}function $(){return r.index.get()}let G={canScrollNext:function(){return r.index.add(1).get()!==$()},canScrollPrev:function(){return r.index.add(-1).get()!==$()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){_||(_=!0,D.clear(),q(),L.emit("destroy"),L.clear())},off:F,on:I,emit:R,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:W,rootNode:function(){return t},scrollNext:function(t){H(r.index.add(1).get(),t,-1)},scrollPrev:function(t){H(r.index.add(-1).get(),t,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:H,selectedScrollSnap:$,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return X(e,n),setTimeout(()=>L.emit("init"),0),G}function P(t={},e=[]){let n=(0,r.useRef)(t),i=(0,r.useRef)(e),[c,l]=(0,r.useState)(),[u,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{c&&c.reInit(n.current,i.current)},[c]);return(0,r.useEffect)(()=>{o(n.current,t)||(n.current=t,f())},[t,f]),(0,r.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let n=a(t),r=a(e);return n.every((t,e)=>o(t,r[e]))}(i.current,e)&&(i.current=e,f())},[e,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){k.globalOptions=P.globalOptions;let t=k(u,n.current,i.current);return l(t),()=>t.destroy()}l(void 0)},[u,l]),[s,c]}k.globalOptions=void 0,P.globalOptions=void 0},45930:(t,e,n)=>{n.d(e,{k5:()=>s});var r=n(20107),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;er.createElement(f,c({attr:u({},t.attr)},e),function t(e){return e&&e.map((e,n)=>r.createElement(e.tag,u({key:n},e.attr),t(e.child)))}(t.child))}function f(t){var e=e=>{var n,{attr:i,size:o,title:l}=t,s=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,a),f=o||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,s,{className:n,style:u(u({color:t.color||e.color},e.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),t.children)};return void 0!==o?r.createElement(o.Consumer,null,t=>e(t)):e(i)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1203-eba766727ba305cb.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1203-eba766727ba305cb.js new file mode 100644 index 0000000..d173d8e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1203-eba766727ba305cb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1203],{39997:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(20107);let i=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var t=arguments.length,e=Array(t),n=0;n!!t&&n.indexOf(t)===e).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,r.forwardRef)((t,e)=>{let{color:n="currentColor",size:i=24,strokeWidth:c=2,absoluteStrokeWidth:l,className:u="",children:s,iconNode:f,...d}=t;return(0,r.createElement)("svg",{ref:e,...a,width:i,height:i,stroke:n,strokeWidth:l?24*Number(c)/Number(i):c,className:o("lucide",u),...d},[...f.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(s)?s:[s]])}),l=(t,e)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:l,...u}=n;return(0,r.createElement)(c,{ref:a,iconNode:e,className:o("lucide-".concat(i(t)),l),...u})});return n.displayName="".concat(t),n}},17799:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},89463:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]])},622:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},98969:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},14389:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},8782:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},10964:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},99312:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},7778:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},25262:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},97801:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},91994:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},83148:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},90304:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},20633:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},12607:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},92823:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},92776:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0});var l=a(n(20107)),u=n(22184),s=n(30120),f=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];e.default=function(t){var e=t.loading,n=t.color,i=void 0===n?"#000000":n,o=t.speedMultiplier,a=void 0===o?1:o,s=t.cssOverride,d=t.size,p=c(t,["loading","color","speedMultiplier","cssOverride","size"]),y=(0,u.parseLengthAndUnit)(void 0===d?15:d),h=y.value,m=y.unit,v=r({display:"inherit",position:"relative"},void 0===s?{}:s),g=function(t){return{position:"absolute",fontSize:"".concat(h/3).concat(m),width:"".concat(h).concat(m),height:"".concat(h).concat(m),background:i,borderRadius:"50%",animation:"".concat(f[t]," ").concat(1.5/a,"s infinite"),animationFillMode:"forwards"}};return void 0===e||e?l.createElement("span",r({style:v},p),l.createElement("span",{style:g(0)}),l.createElement("span",{style:g(1)}),l.createElement("span",{style:g(2)}),l.createElement("span",{style:g(3)}),l.createElement("span",{style:g(4)}),l.createElement("span",{style:g(5)})):null}},71834:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(20107),i={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function o(t){var e=function(t){if("number"==typeof t)return{value:t,unit:"px"};var e,n=(t.match(/^[0-9.]*/)||"").toString();e=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(t.match(/[^0-9]*$/)||"").toString();return i[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}(t);return"".concat(e.value).concat(e.unit)}var a=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return o&&o.insertRule(a,0),r},c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},u=[a("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),a("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];let s=function(t){var e=t.loading,n=t.color,i=void 0===n?"#000000":n,a=t.speedMultiplier,s=void 0===a?1:a,f=t.cssOverride,d=t.size,p=void 0===d?60:d,y=l(t,["loading","color","speedMultiplier","cssOverride","size"]),h=c({display:"inherit",position:"relative",width:o(p),height:o(p)},void 0===f?{}:f),m=function(t){return{position:"absolute",height:o(p),width:o(p),border:"thick solid ".concat(i),borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:"".concat(u[0],", ").concat(u[1]),animationDuration:"".concat(2/s,"s"),animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:1===t?"-1s":"0s"}};return void 0===e||e?r.createElement("span",c({style:h},y),r.createElement("span",{style:m(1)}),r.createElement("span",{style:m(2)})):null}},30120:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=void 0,e.createAnimation=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return o&&o.insertRule(a,0),r}},22184:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cssValue=e.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(t){if("number"==typeof t)return{value:t,unit:"px"};var e,r=(t.match(/^[0-9.]*/)||"").toString();e=r.includes(".")?parseFloat(r):parseInt(r,10);var i=(t.match(/[^0-9]*$/)||"").toString();return n[i]?{value:e,unit:i}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}e.parseLengthAndUnit=r,e.cssValue=function(t){var e=r(t);return"".concat(e.value).concat(e.unit)}},79492:(t,e,n)=>{n.d(e,{G:()=>R});var r=n(20107),i=n(64901),o=n(61075),a=n(14632),c=n.n(a),l=n(12838),u=n.n(l),s=n(87107),f=n.n(s),d=n(50801),p=n.n(d),y=n(6440),h=n.n(y),m=n(60992),v=n(42555),g=n(37819),b=n(58864),x=n(95392),O=n(89952),w=n(95492),A=n(61211),k=["layout","type","stroke","connectNulls","isRange","ref"],P=["key"];function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function S(){return(S=Object.assign?Object.assign.bind():function(t){for(var e=1;e0||!h()(c,r)||!h()(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,o=e.dot,a=e.points,c=e.className,l=e.top,u=e.left,s=e.xAxis,d=e.yAxis,p=e.width,y=e.height,h=e.isAnimationActive,m=e.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,O=(0,i.A)("recharts-area",c),w=s&&s.allowDataOverflow,k=d&&d.allowDataOverflow,P=w||k,E=f()(m)?this.id:m,j=null!==(t=(0,A.J9)(o,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=j.r,M=j.strokeWidth,D=((0,A.sT)(o)?o:{}).clipDot,L=void 0===D||D,z=2*(void 0===S?3:S)+(void 0===M?2:M);return r.createElement(g.W,{className:O},w||k?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(E)},r.createElement("rect",{x:w?u:u-p/2,y:k?l:l-y/2,width:w?p:2*p,height:k?y:2*y})),!L&&r.createElement("clipPath",{id:"clipPath-dots-".concat(E)},r.createElement("rect",{x:u-z/2,y:l-z/2,width:p+z,height:y+z}))):null,x?null:this.renderArea(P,E),(o||x)&&this.renderDots(P,L,E),(!h||v)&&b.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],e&&L(a.prototype,e),n&&L(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);I(R,"displayName","Area"),I(R,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),I(R,"getBaseValue",function(t,e,n,r){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if((0,O.Et)(c)&&"number"==typeof c)return c;var l="horizontal"===i?r:n,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c?s:s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]}),I(R,"getComposedData",function(t){var e,n=t.props,r=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,d=t.displayedData,p=t.offset,y=n.layout,h=s&&s.length,m=R.getBaseValue(n,r,i,o),v="horizontal"===y,g=!1,b=d.map(function(t,e){h?n=s[f+e]:Array.isArray(n=(0,w.kr)(t,u))?g=!0:n=[m,n];var n,r=null==n[1]||h&&null==(0,w.kr)(t,u);return v?{x:(0,w.nb)({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:r?null:o.scale(n[1]),value:n,payload:t}:{x:r?null:i.scale(n[1]),y:(0,w.nb)({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:n,payload:t}});return e=h||g?b.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return v?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}}):v?o.scale(m):i.scale(m),D({points:b,baseLine:e,layout:y,isRange:g},p)}),I(R,"renderDotItem",function(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(c()(t))n=t(e);else{var o=(0,i.A)("recharts-area-dot","boolean"!=typeof t?t.className:""),a=e.key,l=j(e,P);n=r.createElement(v.c,S({},l,{key:a,className:o}))}return n})},94005:(t,e,n)=>{n.d(e,{d:()=>M});var r=n(20107),i=n(14632),o=n.n(i),a=n(42228),c=n(89952),l=n(61211),u=n(95492),s=n(62882),f=n(67064),d=n(25161),p=["x1","y1","x2","y2","key"],y=["offset"];function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function v(t){for(var e=1;e=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var x=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,c=t.height,l=t.ry;return r.createElement("rect",{x:i,y:o,ry:l,width:a,height:c,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function O(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(o()(t))n=t(e);else{var i=e.x1,a=e.y1,c=e.x2,u=e.y2,s=e.key,f=b(e,p),d=(0,l.J9)(f,!1),h=(d.offset,b(d,y));n=r.createElement("line",g({},h,{x1:i,y1:a,x2:c,y2:u,fill:"none",key:s}))}return n}function w(t){var e=t.x,n=t.width,i=t.horizontal,o=void 0===i||i,a=t.horizontalPoints;if(!o||!a||!a.length)return null;var c=a.map(function(r,i){return O(o,v(v({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function A(t){var e=t.y,n=t.height,i=t.vertical,o=void 0===i||i,a=t.verticalPoints;if(!o||!a||!a.length)return null;var c=a.map(function(r,i){return O(o,v(v({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function k(t){var e=t.horizontalFill,n=t.fillOpacity,i=t.x,o=t.y,a=t.width,c=t.height,l=t.horizontalPoints,u=t.horizontal;if(!(void 0===u||u)||!e||!e.length)return null;var s=l.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,l){var u=s[l+1]?s[l+1]-t:o+c-t;if(u<=0)return null;var f=l%e.length;return r.createElement("rect",{key:"react-".concat(l),y:t,x:i,height:u,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function P(t){var e=t.vertical,n=t.verticalFill,i=t.fillOpacity,o=t.x,a=t.y,c=t.width,l=t.height,u=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var s=u.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,e){var u=s[e+1]?s[e+1]-t:o+c-t;if(u<=0)return null;var f=e%n.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:u,height:l,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)},j=function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)},S={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function M(t){var e,n,i,l,u,s,f=(0,d.yi)(),p=(0,d.rY)(),y=(0,d.hj)(),m=v(v({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:S.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:S.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:S.horizontal,horizontalFill:null!==(l=t.horizontalFill)&&void 0!==l?l:S.horizontalFill,vertical:null!==(u=t.vertical)&&void 0!==u?u:S.vertical,verticalFill:null!==(s=t.verticalFill)&&void 0!==s?s:S.verticalFill,x:(0,c.Et)(t.x)?t.x:y.left,y:(0,c.Et)(t.y)?t.y:y.top,width:(0,c.Et)(t.width)?t.width:y.width,height:(0,c.Et)(t.height)?t.height:y.height}),b=m.x,O=m.y,M=m.width,D=m.height,L=m.syncWithTicks,z=m.horizontalValues,N=m.verticalValues,C=(0,d.pj)(),I=(0,d.$G)();if(!(0,c.Et)(M)||M<=0||!(0,c.Et)(D)||D<=0||!(0,c.Et)(b)||b!==+b||!(0,c.Et)(O)||O!==+O)return null;var F=m.verticalCoordinatesGenerator||E,R=m.horizontalCoordinatesGenerator||j,_=m.horizontalPoints,T=m.verticalPoints;if((!_||!_.length)&&o()(R)){var B=z&&z.length,V=R({yAxis:I?v(v({},I),{},{ticks:B?z:I.ticks}):void 0,width:f,height:p,offset:y},!!B||L);(0,a.R)(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h(V),"]")),Array.isArray(V)&&(_=V)}if((!T||!T.length)&&o()(F)){var X=N&&N.length,W=F({xAxis:C?v(v({},C),{},{ticks:X?N:C.ticks}):void 0,width:f,height:p,offset:y},!!X||L);(0,a.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h(W),"]")),Array.isArray(W)&&(T=W)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),r.createElement(w,g({},m,{offset:y,horizontalPoints:_,xAxis:C,yAxis:I})),r.createElement(A,g({},m,{offset:y,verticalPoints:T,xAxis:C,yAxis:I})),r.createElement(k,g({},m,{horizontalPoints:_})),r.createElement(P,g({},m,{verticalPoints:T})))}M.displayName="CartesianGrid"},53134:(t,e,n)=>{n.d(e,{Q:()=>l});var r=n(90805),i=n(79492),o=n(4538),a=n(41797),c=n(98456),l=(0,r.gu)({chartName:"AreaChart",GraphicalChild:i.G,axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:c.pr})},74043:(t,e,n)=>{n.d(e,{A:()=>P});var r=n(20107);function i(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function o(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&n.every(n=>{let r=t[n],a=e[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function a(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function c(t){return"number"==typeof t}function l(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return Math.abs(t)}function d(t){return Math.sign(t)}function p(t){return v(t).map(Number)}function y(t){return t[h(t)]}function h(t){return Math.max(0,t.length-1)}function m(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function v(t){return Object.keys(t)}function g(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function b(){let t=[],e={add:function(n,r,i,o={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,i,o),a=()=>n.removeEventListener(r,i,o)):(n.addListener(i),a=()=>n.removeListener(i)),t.push(a),e},clear:function(){t=t.filter(t=>t())}};return e}function x(t=0,e=0){let n=f(t-e);function r(n){return ne}return{length:n,max:e,min:t,constrain:function(n){return r(n)?ne},reachedMin:function(e){return e(v(n).forEach(r=>{let i=e[r],o=n[r],a=s(i)&&s(o);e[r]=a?t(i,o):o}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){let r=n.breakpoints||{},i=v(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,n)=>e(t,n),{});return e(n,i)},optionsMediaQueries:function(e){return e.map(t=>v(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(j),M=(P=[],{init:function(t,e){return(P=e.filter(({options:t})=>!1!==S.optionsAtMedia(t).active)).forEach(e=>e.init(t,S)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){P=P.filter(t=>t.destroy())}}),D=b(),L=function(){let t,e={},n={init:function(e){t=e},emit:function(r){return(e[r]||[]).forEach(e=>e(t,r)),n},off:function(t,r){return e[t]=(e[t]||[]).filter(t=>t!==r),n},on:function(t,r){return e[t]=(e[t]||[]).concat([r]),n},clear:function(){e={}}};return n}(),{mergeOptions:z,optionsAtMedia:N,optionsMediaQueries:C}=S,{on:I,off:F,emit:R}=L,_=!1,T=z(A,k.globalOptions),B=z(T),V=[];function X(e,n){!_&&(B=N(T=z(T,e)),V=n||V,function(){let{container:e,slides:n}=B;o=(l(e)?t.querySelector(e):e)||t.children[0];let r=l(n)?o.querySelectorAll(n):n;a=[].slice.call(r||o.children)}(),r=function e(n){let r=function(t,e,n,r,i,o,a){let s,A;let{align:k,axis:P,direction:E,startIndex:j,loop:S,duration:M,dragFree:D,dragThreshold:L,inViewThreshold:z,slidesToScroll:N,skipSnaps:C,containScroll:I,watchResize:F,watchSlides:R,watchDrag:_,watchFocus:T}=o,B={measure:function(t){let{offsetTop:e,offsetLeft:n,offsetWidth:r,offsetHeight:i}=t;return{top:e,right:n+r,bottom:e+i,left:n,width:r,height:i}}},V=B.measure(e),X=n.map(B.measure),W=function(t,e){let n="rtl"===e,r="y"===t,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(t){let{height:e,width:n}=t;return r?e:n},direction:function(t){return t*i}}}(P,E),q=W.measureSize(V),H={measure:function(t){return t/100*q}},$=function(t,e){let n={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(r,i){return l(t)?n[t](r):t(e,r,i)}}}(k,q),G=!S&&!!I,{slideSizes:J,slideSizesWithGaps:U,startGap:K,endGap:Z}=function(t,e,n,r,i,o){let{measureSize:a,startEdge:c,endEdge:l}=t,u=n[0]&&i,s=function(){if(!u)return 0;let t=n[0];return f(e[c]-t[c])}(),d=u?parseFloat(o.getComputedStyle(y(r)).getPropertyValue(`margin-${l}`)):0,p=n.map(a),m=n.map((t,e,n)=>{let r=e===h(n);return e?r?p[e]+d:n[e+1][c]-t[c]:p[e]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:m,startGap:s,endGap:d}}(W,V,X,n,S||!!I,i),Q=function(t,e,n,r,i,o,a,l,u){let{startEdge:s,endEdge:d,direction:m}=t,v=c(n);return{groupSlides:function(t){return v?p(t).filter(t=>t%n==0).map(e=>t.slice(e,e+n)):t.length?p(t).reduce((n,c,u)=>{let p=y(n)||0,v=c===h(t),g=i[s]-o[p][s],b=i[s]-o[c][d],x=r||0!==p?0:m(a),O=f(b-(!r&&v?m(l):0)-(g+x));return u&&O>e+2&&n.push(c),v&&n.push(t.length),n},[]).map((e,n,r)=>{let i=Math.max(r[n-1]||0);return t.slice(i,e)}):[]}}}(W,q,N,S,V,X,K,Z,0),{snaps:Y,snapsAligned:tt}=function(t,e,n,r,i){let{startEdge:o,endEdge:a}=t,{groupSlides:c}=i,l=c(r).map(t=>y(t)[a]-t[0][o]).map(f).map(e.measure),u=r.map(t=>n[o]-t[o]).map(t=>-f(t)),s=c(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:s}}(W,$,V,X,Q),te=-y(Y)+y(U),{snapsContained:tn,scrollContainLimit:tr}=function(t,e,n,r,i){let o=x(-e+t,0),a=n.map((t,e)=>{let{min:r,max:i}=o,a=o.constrain(t),c=e===h(n);return e?c||1>f(r-a)?r:1>f(i-a)?i:a:i}).map(t=>parseFloat(t.toFixed(3))),c=function(){let t=a[0],e=y(a);return x(a.lastIndexOf(t),a.indexOf(e)+1)}();return{snapsContained:function(){if(e<=t+2)return[o.max];if("keepSnaps"===r)return a;let{min:n,max:i}=c;return a.slice(n,i)}(),scrollContainLimit:c}}(q,te,tt,I,0),ti=G?tn:tt,{limit:to}=function(t,e,n){let r=e[0];return{limit:x(n?r-t:y(e),r)}}(te,ti,S),ta=function t(e,n,r){let{constrain:i}=x(0,e),o=e+1,a=c(n);function c(t){return r?f((o+t)%o):i(t)}function l(){return t(e,a,r)}let u={get:function(){return a},set:function(t){return a=c(t),u},add:function(t){return l().set(a+t)},clone:l};return u}(h(ti),j,S),tc=ta.clone(),tl=p(n),tu=({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:r}},i)=>{r||n.constrain(t.pointerDown()),e.seek(i)},ts=({scrollBody:t,translate:e,location:n,offsetLocation:r,scrollLooper:i,slideLooper:o,dragHandler:a,animation:c,eventHandler:l,scrollBounds:u,options:{loop:s}},f)=>{let d=t.settled(),p=!u.shouldConstrain(),y=s?d:d&&p;y&&!a.pointerDown()&&(c.stop(),l.emit("settle")),y||l.emit("scroll");let h=n.get()*f+ty.get()*(1-f);r.set(h),s&&(i.loop(t.direction()),o.loop()),e.to(r.get())},tf=function(t,e,n,r){let i=b(),o=1e3/60,a=null,c=0,l=0;function u(t){if(!l)return;a||(a=t);let i=t-a;for(a=t,c+=i;c>=o;)n(o),c-=o;r(c/o),l&&e.requestAnimationFrame(u)}function s(){e.cancelAnimationFrame(l),a=null,c=0,l=0}return{init:function(){i.add(t,"visibilitychange",()=>{t.hidden&&(a=null,c=0)})},destroy:function(){s(),i.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:s,update:()=>n(o),render:r}}(r,i,t=>tu(tP,t),t=>ts(tP,t)),td=ti[ta.get()],tp=O(td),ty=O(td),th=O(td),tm=O(td),tv=function(t,e,n,r,i,o){let a=0,c=0,l=i,u=.68,s=t.get(),p=0;function y(t){return l=t,m}function h(t){return u=t,m}let m={direction:function(){return c},duration:function(){return l},velocity:function(){return a},seek:function(e){let i=e/1e3,o=l*i,f=r.get()-t.get(),y=0;return l?(n.set(t),a+=f/o,a*=u,s+=a,t.add(a*i),y=s-p):(a=0,n.set(r),t.set(r),y=f),c=d(y),p=s,m},settled:function(){return .001>f(r.get()-e.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return y(i)},useFriction:h,useDuration:y};return m}(tp,th,ty,tm,M,0),tg=function(t,e,n,r,i){let{reachedAny:o,removeOffset:a,constrain:c}=r;function l(t){return t.concat().sort((t,e)=>f(t)-f(e))[0]}function u(e,r){let i=[e,e+n,e-n];if(!t)return e;if(!r)return l(i);let o=i.filter(t=>d(t)===r);return o.length?l(o):y(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:s,distance:d}=function(n){let r=t?a(n):c(n),{index:i}=e.map((t,e)=>({diff:u(t-r,0),index:e})).sort((t,e)=>f(t.diff)-f(e.diff))[0];return{index:i,distance:r}}(l),p=!t&&o(l);if(!r||p)return{index:s,distance:n};let y=n+u(e[s]-d,0);return{index:s,distance:y}},byIndex:function(t,n){let r=u(e[t]-i.get(),n);return{index:t,distance:r}},shortcut:u}}(S,ti,te,to,tm),tb=function(t,e,n,r,i,o,a){function c(i){let c=i.distance,l=i.index!==e.get();o.add(c),c&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(n.set(e.get()),e.set(i.index),a.emit("select"))}return{distance:function(t,e){c(i.byDistance(t,e))},index:function(t,n){let r=e.clone().set(t);c(i.byIndex(r.get(),n))}}}(tf,ta,tc,tv,tg,tm,a),tx=function(t){let{max:e,length:n}=t;return{get:function(t){return n?-((t-e)/n):0}}}(to),tO=b(),tw=function(t,e,n,r){let i;let o={},a=null,c=null,l=!1;return{init:function(){i=new IntersectionObserver(t=>{l||(t.forEach(t=>{o[e.indexOf(t.target)]=t}),a=null,c=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(t=>i.observe(t))},destroy:function(){i&&i.disconnect(),l=!0},get:function(t=!0){if(t&&a)return a;if(!t&&c)return c;let e=v(o).reduce((e,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(t&&i||!t&&!i)&&e.push(r),e},[]);return t&&(a=e),t||(c=e),e}}}(e,n,a,z),{slideRegistry:tA}=function(t,e,n,r,i,o){let{groupSlides:a}=i,{min:c,max:l}=r;return{slideRegistry:function(){let r=a(o);return 1===n.length?[o]:t&&"keepSnaps"!==e?r.slice(c,l).map((t,e,n)=>{let r=e===h(n);return e?r?m(h(o)-y(n)[0]+1,y(n)[0]):t:m(y(n[0])+1)}):r}()}}(G,I,ti,tr,Q,tl),tk=function(t,e,n,r,i,o,a,l){let s={passive:!0,capture:!0},f=0;function d(t){"Tab"===t.code&&(f=new Date().getTime())}return{init:function(p){l&&(o.add(document,"keydown",d,!1),e.forEach((e,d)=>{o.add(e,"focus",e=>{(u(l)||l(p,e))&&function(e){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),t.scrollLeft=0;let o=n.findIndex(t=>t.includes(e));c(o)&&(i.useDuration(0),r.index(o,0),a.emit("slideFocus"))}(d)},s)}))}}}(t,n,tA,tb,tv,tO,a,T),tP={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:V,slideRects:X,animation:tf,axis:W,dragHandler:function(t,e,n,r,i,o,a,c,l,s,p,y,h,m,v,O,w,A,k){let{cross:P,direction:E}=t,j=["INPUT","SELECT","TEXTAREA"],S={passive:!1},M=b(),D=b(),L=x(50,225).constrain(m.measure(20)),z={mouse:300,touch:400},N={mouse:500,touch:600},C=v?43:25,I=!1,F=0,R=0,_=!1,T=!1,B=!1,V=!1;function X(t){if(!g(t,r)&&t.touches.length>=2)return W(t);let e=o.readPoint(t),n=o.readPoint(t,P),a=f(e-F),l=f(n-R);if(!T&&!V&&(!t.cancelable||!(T=a>l)))return W(t);let u=o.pointerMove(t);a>O&&(B=!0),s.useFriction(.3).useDuration(.75),c.start(),i.add(E(u)),t.preventDefault()}function W(t){let e=p.byDistance(0,!1).index!==y.get(),n=o.pointerUp(t)*(v?N:z)[V?"mouse":"touch"],r=function(t,e){let n=y.add(-1*d(t)),r=p.byDistance(t,!v).distance;return v||f(t)t.preventDefault(),S).add(e,"touchmove",()=>void 0,S).add(e,"touchend",()=>void 0).add(e,"touchstart",c).add(e,"mousedown",c).add(e,"touchcancel",W).add(e,"contextmenu",W).add(e,"click",q,!0);function c(c){(u(k)||k(t,c))&&function(t){let c=g(t,r);V=c,B=v&&c&&!t.buttons&&I,I=f(i.get()-a.get())>=2,c&&0!==t.button||function(t){let e=t.nodeName||"";return j.includes(e)}(t.target)||(_=!0,o.pointerDown(t),s.useFriction(0).useDuration(0),i.set(a),function(){let t=V?n:e;D.add(t,"touchmove",X,S).add(t,"touchend",W).add(t,"mousemove",X,S).add(t,"mouseup",W)}(),F=o.readPoint(t),R=o.readPoint(t,P),h.emit("pointerDown"))}(c)}},destroy:function(){M.clear(),D.clear()},pointerDown:function(){return _}}}(W,t,r,i,tm,function(t,e){let n,r;function i(t){return t.timeStamp}function o(n,r){let i=r||t.scroll,o=`client${"x"===i?"X":"Y"}`;return(g(n,e)?n:n.touches[0])[o]}return{pointerDown:function(t){return n=t,r=t,o(t)},pointerMove:function(t){let e=o(t)-o(r),a=i(t)-i(n)>170;return r=t,a&&(n=t),e},pointerUp:function(t){if(!n||!r)return 0;let e=o(r)-o(n),a=i(t)-i(n),c=i(t)-i(r)>170,l=e/a;return a&&!c&&f(l)>.1?l:0},readPoint:o}}(W,i),tp,tf,tb,tv,tg,ta,a,H,D,L,C,0,_),eventStore:tO,percentOfView:H,index:ta,indexPrevious:tc,limit:to,location:tp,offsetLocation:th,previousLocation:ty,options:o,resizeHandler:function(t,e,n,r,i,o,a){let c,l;let s=[t].concat(r),d=[],p=!1;function y(t){return i.measureSize(a.measure(t))}return{init:function(i){o&&(l=y(t),d=r.map(y),c=new ResizeObserver(n=>{(u(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===t,a=r.indexOf(o.target),c=n?l:d[a];if(f(y(n?t:r[a])-c)>=.5){i.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(t=>c.observe(t))}))},destroy:function(){p=!0,c&&c.disconnect()}}}(e,a,i,n,W,F,B),scrollBody:tv,scrollBounds:function(t,e,n,r,i){let o=i.measure(10),a=i.measure(50),c=x(.1,.99),l=!1;function u(){return!!(!l&&t.reachedAny(n.get())&&t.reachedAny(e.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=t.reachedMin(e.get())?"min":"max",s=f(t[l]-e.get()),d=n.get()-e.get(),p=c.constrain(s/a);n.subtract(d*p),!i&&f(d)t.add(a))}}}(te,to,th,[tp,th,ty,tm]),scrollProgress:tx,scrollSnapList:ti.map(tx.get),scrollSnaps:ti,scrollTarget:tg,scrollTo:tb,slideLooper:function(t,e,n,r,i,o,a,c,l){let u=p(i),s=y(d(p(i).reverse(),a[0]),n,!1).concat(y(d(u,e-a[0]-1),-n,!0));function f(t,e){return t.reduce((t,e)=>t-i[e],e)}function d(t,e){return t.reduce((t,n)=>f(t,e)>0?t.concat([n]):t,[])}function y(i,a,u){let s=o.map((t,n)=>({start:t-r[n]+.5+a,end:t+e-.5+a}));return i.map(e=>{let r=u?0:-n,i=u?n:0,o=s[e][u?"end":"start"];return{index:e,loopPoint:o,slideLocation:O(-1),translate:w(t,l[e]),target:()=>c.get()>o?r:i}})}return{canLoop:function(){return s.every(({index:t})=>.1>=f(u.filter(e=>e!==t),e))},clear:function(){s.forEach(t=>t.translate.clear())},loop:function(){s.forEach(t=>{let{target:e,translate:n,slideLocation:r}=t,i=e();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:s}}(W,q,te,J,U,Y,ti,th,n),slideFocus:tk,slidesHandler:(A=!1,{init:function(t){R&&(s=new MutationObserver(e=>{!A&&(u(R)||R(t,e))&&function(e){for(let n of e)if("childList"===n.type){t.reInit(),a.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){s&&s.disconnect(),A=!0}}),slidesInView:tw,slideIndexes:tl,slideRegistry:tA,slidesToScroll:Q,target:tm,translate:w(W,e)};return tP}(t,o,a,E,j,n,L);return n.loop&&!r.slideLooper.canLoop()?e(Object.assign({},n,{loop:!1})):r}(B),C([T,...V.map(({options:t})=>t)]).forEach(t=>D.add(t,"change",W)),B.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(G),r.eventHandler.init(G),r.resizeHandler.init(G),r.slidesHandler.init(G),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&a.length&&r.dragHandler.init(G),i=M.init(G,V)))}function W(t,e){let n=$();q(),X(z({startIndex:n},t),e),L.emit("reInit")}function q(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),M.destroy(),D.clear()}function H(t,e,n){B.active&&!_&&(r.scrollBody.useBaseFriction().useDuration(!0===e?0:B.duration),r.scrollTo.index(t,n||0))}function $(){return r.index.get()}let G={canScrollNext:function(){return r.index.add(1).get()!==$()},canScrollPrev:function(){return r.index.add(-1).get()!==$()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){_||(_=!0,D.clear(),q(),L.emit("destroy"),L.clear())},off:F,on:I,emit:R,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:W,rootNode:function(){return t},scrollNext:function(t){H(r.index.add(1).get(),t,-1)},scrollPrev:function(t){H(r.index.add(-1).get(),t,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:H,selectedScrollSnap:$,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return X(e,n),setTimeout(()=>L.emit("init"),0),G}function P(t={},e=[]){let n=(0,r.useRef)(t),i=(0,r.useRef)(e),[c,l]=(0,r.useState)(),[u,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{c&&c.reInit(n.current,i.current)},[c]);return(0,r.useEffect)(()=>{o(n.current,t)||(n.current=t,f())},[t,f]),(0,r.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let n=a(t),r=a(e);return n.every((t,e)=>o(t,r[e]))}(i.current,e)&&(i.current=e,f())},[e,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){k.globalOptions=P.globalOptions;let t=k(u,n.current,i.current);return l(t),()=>t.destroy()}l(void 0)},[u,l]),[s,c]}k.globalOptions=void 0,P.globalOptions=void 0},45930:(t,e,n)=>{n.d(e,{k5:()=>s});var r=n(20107),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;er.createElement(f,c({attr:u({},t.attr)},e),function t(e){return e&&e.map((e,n)=>r.createElement(e.tag,u({key:n},e.attr),t(e.child)))}(t.child))}function f(t){var e=e=>{var n,{attr:i,size:o,title:l}=t,s=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,a),f=o||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,s,{className:n,style:u(u({color:t.color||e.color},e.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),t.children)};return void 0!==o?r.createElement(o.Consumer,null,t=>e(t)):e(i)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1209-e502eb4151bc1e9a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1209-e502eb4151bc1e9a.js new file mode 100644 index 0000000..47e0840 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1209-e502eb4151bc1e9a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1209],{87133:(e,t,s)=>{s.r(t),s.d(t,{default:()=>y});var a=s(20475),l=s(20107),r=s(72167),i=s(35601),o=s(42541),c=s(76554),n=s(64219),d=s(49153),u=s(21906),h=s(45934),m=s(29475),p=s(39997);let v=(0,p.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);var g=s(52161),w=s(97801),x=s(32857),N=s(49573);let C=(0,p.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var f=s(98969);let j=(0,p.A)("Clock1",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 8",key:"12zbmj"}]]),b=(0,p.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),R=e=>{let{loading:t,scheduleData:s,onStartTimeChange:i,onEndTimeChange:c,onSchedulingToggle:u}=e,[h,p]=(0,l.useState)({text:"Disabled",color:"text-red-600",icon:C}),v=()=>{if(!s.enabled){p({text:"Disabled",color:"text-red-600",icon:C});return}let e=new Date,t=60*e.getHours()+e.getMinutes(),[a,l]=s.startTime.split(":").map(Number),[r,i]=s.endTime.split(":").map(Number),o=60*a+l,c=60*r+i;o<=c?t>=o&&t<=c?p({text:"Active",color:"text-green-600",icon:f.A}):p({text:"Inactive",color:"text-yellow-500",icon:j}):t>=o||t<=c?p({text:"Active",color:"text-green-600",icon:f.A}):p({text:"Inactive",color:"text-yellow-500",icon:j})},g=()=>{s.active?p({text:"Active",color:"text-green-600",icon:f.A}):s.enabled&&!s.active?p({text:"Inactive",color:"text-yellow-500",icon:j}):p({text:"Disabled",color:"text-red-600",icon:C})};(0,l.useEffect)(()=>{g();let e=setInterval(v,6e4);return()=>{clearInterval(e)}},[s]);let w=h.icon;return(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)(r.aR,{children:[(0,a.jsxs)(r.ZB,{className:"flex items-center justify-between",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{children:"Cell Locking Scheduler"})}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(w,{className:"h-4 w-4 mr-1 ".concat(h.color)}),(0,a.jsx)("div",{className:"text-sm text-gray-500",children:h.text})]})]}),(0,a.jsx)(r.BT,{children:"Schedule the device to lock to specific cells at certain times."})]}),(0,a.jsxs)(r.Wu,{children:[s.enabled&&(0,a.jsxs)(N.Fc,{className:"mb-6",children:[(0,a.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(N.XL,{children:"Scheduled Cell Locking Active"}),(0,a.jsx)(N.TN,{children:"Cell locking is currently being managed by the scheduler. Manual changes to cell locks may be overridden during scheduled hours."})]}),(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"start-time",children:"Start Time"}),(0,a.jsx)(n.p,{type:"time",id:"start-time",value:s.startTime,onChange:e=>i(e.target.value),disabled:t||s.enabled,placeholder:"START TIME"})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"end-time",children:"End Time"}),(0,a.jsx)(n.p,{type:"time",id:"end-time",value:s.endTime,onChange:e=>c(e.target.value),disabled:t||s.enabled,placeholder:"END TIME"})]}),(0,a.jsx)("div",{className:"lg:col-span-2 col-span-1",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Make sure to properly set the timezone using Luci for this to properly work. The scheduler will lock the device to the selected cells during the specified time range. The scheduler will not lock the device if the time range is not valid (e.g. start time is after end time)."})})]})]}),(0,a.jsx)(r.wL,{className:"border-t py-4",children:(0,a.jsxs)(o.$,{onClick:()=>u(!s.enabled),disabled:t||!s.locked&&!s.enabled,children:[(0,a.jsx)(b,{className:"h-4 w-4"}),s.enabled?"Disable Scheduler":"Enable Scheduler"]})})]})};var A=s(88926);let y=()=>{let{toast:e}=(0,x.dj)(),[t,s]=(0,l.useState)(!1),[p,N]=(0,l.useState)(!1),[C,f]=(0,l.useState)(!1),[j,b]=(0,l.useState)(!1),[y,E]=(0,l.useState)({enabled:!1,startTime:"",endTime:"",active:!1,status:"",message:"",locked:!1}),[k,F]=(0,l.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[T,P]=(0,l.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),S=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},I=async()=>{try{s(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=8"),t=await e.json();if(!e.ok)throw Error("Failed to fetch current status");console.log("Current cell locking status:",t);let a=S(t[2].response);console.log("Persist status:",a),a&&a.length>=2&&(f("1"===a[1]),b("1"===a[2]));let l=S(t[0].response);if(console.log("Current LTE lock status:",l),l){let e={EARFCN1:l[2],PCI1:l[3],EARFCN2:l[4],PCI2:l[5],EARFCN3:l[6],PCI3:l[7]};F(e),console.log("New LTE state:",e),parseInt(l[1])>0&&N(!0)}let r=S(t[1].response);if(console.log("Current NR5G lock status:",r),r&&r.length>=5){let e={NRPCI:r[1],NRARFCN:r[2],SCS:r[3],NRBAND:r[4]};P(e),console.log("New NR5G state:",e),parseInt(r[1])>0&&N(!0)}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{s(!1)}},L=async t=>{try{let a;if(s(!0),t&&(!y.startTime||!y.endTime))throw Error("Please set both start and end times");let l=t?{enabled:!0,startTime:y.startTime,endTime:y.endTime}:{enabled:!1},r=await fetch("/cgi-bin/quecmanager/cell-locking/handle_scheduled_locking.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}),i=await r.text();if(!r.ok)throw Error("Server responded with status: ".concat(r.status));try{a=JSON.parse(i)}catch(e){throw Error("Failed to parse response: ".concat(i))}if("success"===a.status)E(e=>({...e,enabled:t})),e({title:"Success",description:t?"Cell locking schedule enabled":"Cell locking schedule disabled"});else throw Error(a.message||"Failed to update scheduling")}catch(e){}finally{s(!1),await I()}},_=async()=>{try{var t,a,l,r;s(!0);let i=[];if(k.EARFCN1&&k.PCI1&&i.push([k.EARFCN1,k.PCI1]),k.EARFCN2&&k.PCI2&&i.push([k.EARFCN2,k.PCI2]),k.EARFCN3&&k.PCI3&&i.push([k.EARFCN3,k.PCI3]),0===i.length)throw Error("Please fill at least one EARFCN and PCI pair");let o='AT+QNWLOCK="common/4g",'.concat(i.length);i.forEach(e=>{let[t,s]=e;o+=",".concat(t,",").concat(s)});let c=await (0,A.a)(o,!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(l=c.response)||void 0===l?void 0:l.raw_output)||"Failed to lock LTE cells");await new Promise(e=>setTimeout(e,1e3));let n=await (0,A.a)('AT+QNWLOCK="save_ctrl",1,0',!0);if((null===(a=n.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=n.response)||void 0===r?void 0:r.raw_output)||"Failed to save LTE lock configuration");await I(),e({title:"Success",description:"LTE cells locked successfully with ".concat(i.length," pair").concat(i.length>1?"s":"")})}catch(t){s(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},G=async()=>{try{var t,a,l,r;if(s(!0),!T.NRPCI||!T.NRARFCN||!T.SCS||!T.NRBAND)throw Error("Please fill all NR5G fields");let i='AT+QNWLOCK="common/5g",'.concat(T.NRPCI,",").concat(T.NRARFCN,",").concat(T.SCS,",").concat(T.NRBAND),o=await (0,A.a)(i,!0);if((null===(t=o.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(l=o.response)||void 0===l?void 0:l.raw_output)||"Failed to lock NR5G cell");await new Promise(e=>setTimeout(e,1e3));let c=await (0,A.a)('AT+QNWLOCK="save_ctrl",0,1',!0);if((null===(a=c.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=c.response)||void 0===r?void 0:r.raw_output)||"Failed to save NR5G lock configuration");await I(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){s(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},D=async()=>{try{var t,a,l,r,i,o,c,n;s(!0);let d=await (0,A.a)('AT+QNWLOCK="common/4g",0',!0);if((null===(t=d.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=d.response)||void 0===i?void 0:i.raw_output)||"Failed to reset LTE lock");await new Promise(e=>setTimeout(e,1e3));let u=await (0,A.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(a=u.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save LTE reset configuration");let h=await (0,A.a)("AT+COPS=2",!0);if((null===(l=h.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(c=h.response)||void 0===c?void 0:c.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let m=await (0,A.a)("AT+COPS=0",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to reconnect to network");await I(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){s(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},O=async()=>{try{var t,a,l,r,i,o,c,n;s(!0);let d=await (0,A.a)('AT+QNWLOCK="common/5g",0',!0);if((null===(t=d.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=d.response)||void 0===i?void 0:i.raw_output)||"Failed to reset NR5G lock");let u=await (0,A.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(a=u.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save NR5G reset configuration");let h=await (0,A.a)("AT+COPS=2",!0);if((null===(l=h.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(c=h.response)||void 0===c?void 0:c.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let m=await (0,A.a)("AT+COPS=0",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to reconnect to network");await I(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){s(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},B=async t=>{try{var a,l;s(!0);let r=await (0,A.a)('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(j?"1":"0"),!0);if((null===(a=r.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(l=r.response)||void 0===l?void 0:l.raw_output)||"Failed to update LTE persist setting");await I(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{s(!1)}},W=async t=>{try{var a,l;s(!0);let r=await (0,A.a)('AT+QNWLOCK="save_ctrl",'.concat(C?"1":"0",",").concat(t?"1":"0"),!0);if((null===(a=r.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(l=r.response)||void 0===l?void 0:l.raw_output)||"Failed to update NR5G persist setting");await I(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{s(!1)}};return(0,l.useEffect)(()=>{(async()=>{let e=await fetch("/cgi-bin/quecmanager/cell-locking/get_cell_lock.sh"),t=await e.json();E({enabled:t.enabled,startTime:t.start_time||"",endTime:t.end_time||"",active:t.active,status:t.status,message:t.message,locked:t.locked}),N(t.locked),f("1"===t.ltePersist),b("1"===t.nr5gPersist),await I()})()},[]),(0,l.useEffect)(()=>{E(e=>({...e,locked:p}))},[p]),(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)(r.aR,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(r.ZB,{children:"4G LTE Cellular Locking"}),(0,a.jsx)(h.E,{children:p?(0,a.jsxs)("p",{className:"flex items-center gap-x-1",children:[(0,a.jsx)(m.A,{className:"h-3 w-3"}),"Locked"]}):(0,a.jsxs)("p",{className:"flex items-center gap-x-1",children:[(0,a.jsx)(v,{className:"h-3 w-3"}),"Unlocked"]})})]}),(0,a.jsx)(r.BT,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,a.jsx)(r.Wu,{children:(0,a.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,a.jsx)(n.p,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:k.EARFCN1,onChange:e=>F(t=>({...t,EARFCN1:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"PCI1",children:"PCI 1"}),(0,a.jsx)(n.p,{type:"text",id:"PCI1",placeholder:"PCI 1",value:k.PCI1,onChange:e=>F(t=>({...t,PCI1:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsx)(c.w,{className:"my-1 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,a.jsx)(n.p,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:k.EARFCN2,onChange:e=>F(t=>({...t,EARFCN2:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"PCI2",children:"PCI 2"}),(0,a.jsx)(n.p,{type:"text",id:"PCI2",placeholder:"PCI 2",value:k.PCI2,onChange:e=>F(t=>({...t,PCI2:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsx)(c.w,{className:"my-1 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,a.jsx)(n.p,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:k.EARFCN3,onChange:e=>F(t=>({...t,EARFCN3:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"PCI3",children:"PCI 3"}),(0,a.jsx)(n.p,{type:"text",id:"PCI3",placeholder:"PCI 3",value:k.PCI3,onChange:e=>F(t=>({...t,PCI3:e.target.value})),disabled:t||y.enabled&&p})]})]})}),(0,a.jsxs)(r.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,a.jsxs)(o.$,{onClick:_,disabled:t||y.enabled,children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,a.jsxs)(u.l,{pressed:C,onPressedChange:B,disabled:t||y.enabled,children:[(0,a.jsx)(g.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,a.jsxs)(o.$,{variant:"secondary",onClick:D,disabled:t||y.enabled,children:[(0,a.jsx)(w.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)(r.aR,{children:[(0,a.jsx)(r.ZB,{children:"NR5G-SA Cellular Locking"}),(0,a.jsx)(r.BT,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,a.jsx)(r.Wu,{children:(0,a.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,a.jsx)(n.p,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:T.NRARFCN,onChange:e=>P(t=>({...t,NRARFCN:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,a.jsx)(n.p,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:T.NRPCI,onChange:e=>P(t=>({...t,NRPCI:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsx)(c.w,{className:"my-0.5 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"SCS",children:"SCS"}),(0,a.jsxs)(i.l6,{value:T.SCS,onValueChange:e=>P(t=>({...t,SCS:e})),disabled:t||y.enabled&&p,children:[(0,a.jsx)(i.bq,{id:"SCS",children:(0,a.jsx)(i.yv,{placeholder:"SCS"})}),(0,a.jsx)(i.gC,{children:(0,a.jsxs)(i.s3,{children:[(0,a.jsx)(i.TR,{children:"SCS"}),(0,a.jsx)(i.eb,{value:"15",children:"15 kHz"}),(0,a.jsx)(i.eb,{value:"30",children:"30 kHz"}),(0,a.jsx)(i.eb,{value:"60",children:"60 kHz"}),(0,a.jsx)(i.eb,{value:"120",children:"120 kHz"}),(0,a.jsx)(i.eb,{value:"240",children:"240 kHz"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"NRBAND",children:"NR Band"}),(0,a.jsx)(n.p,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:T.NRBAND,onChange:e=>P(t=>({...t,NRBAND:e.target.value})),disabled:t||y.enabled&&p})]})]})}),(0,a.jsxs)(r.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,a.jsxs)(o.$,{onClick:G,disabled:t||y.enabled,children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,a.jsxs)(u.l,{pressed:j,onPressedChange:W,disabled:t||y.enabled,children:[(0,a.jsx)(g.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,a.jsxs)(o.$,{variant:"secondary",onClick:O,disabled:t||y.enabled,children:[(0,a.jsx)(w.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,a.jsx)(R,{loading:t,scheduleData:y,onStartTimeChange:e=>{E(t=>({...t,startTime:e}))},onEndTimeChange:e=>{E(t=>({...t,endTime:e}))},onSchedulingToggle:L})]})}},21906:(e,t,s)=>{s.d(t,{l:()=>h});var a=s(20475),l=s(20107),r=s(94521),i=s(13061),o=s(34544),c=l.forwardRef((e,t)=>{let{pressed:s,defaultPressed:l=!1,onPressedChange:c,...n}=e,[d=!1,u]=(0,i.i)({prop:s,onChange:c,defaultProp:l});return(0,a.jsx)(o.sG.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0,...n,ref:t,onClick:(0,r.m)(e.onClick,()=>{e.disabled||u(!d)})})});c.displayName="Toggle";var n=s(29395),d=s(22250);let u=(0,n.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),h=l.forwardRef((e,t)=>{let{className:s,variant:l,size:r,...i}=e;return(0,a.jsx)(c,{ref:t,className:(0,d.cn)(u({variant:l,size:r,className:s})),...i})});h.displayName=c.displayName},29475:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},88926:(e,t,s)=>{s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let l=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(l),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);t&&(i+="&wait=1&timeout=".concat(s));let o=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let c=await o.json();if(c.error)throw Error("AT queue error: ".concat(c.error));if(t&&(null===(a=c.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return c}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,s)=>{s.d(t,{b:()=>n});var a=s(20107),l=s(34544),r=s(20475),i="horizontal",o=["horizontal","vertical"],c=a.forwardRef((e,t)=>{let{decorative:s,orientation:a=i,...c}=e,n=o.includes(a)?a:i;return(0,r.jsx)(l.sG.div,{"data-orientation":n,...s?{role:"none"}:{"aria-orientation":"vertical"===n?n:void 0,role:"separator"},...c,ref:t})});c.displayName="Separator";var n=c}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1365-cc796f60bf34651a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1365-cc796f60bf34651a.js deleted file mode 100644 index 4f4f66e..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1365-cc796f60bf34651a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1365],{88068:(e,r,o)=>{o.d(r,{s:()=>s,t:()=>l});var t=o(12115);function n(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}function l(...e){return r=>{let o=!1,t=e.map(e=>{let t=n(e,r);return o||"function"!=typeof t||(o=!0),t});if(o)return()=>{for(let r=0;r{o.d(r,{DX:()=>i,Dc:()=>d,TL:()=>s});var t=o(12115),n=o(88068),l=o(95155);function s(e){let r=function(e){let r=t.forwardRef((e,r)=>{let{children:o,...l}=e;if(t.isValidElement(o)){let e,s;let i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?o.ref:(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?o.props.ref:o.props.ref||o.ref,a=function(e,r){let o={...r};for(let t in r){let n=e[t],l=r[t];/^on[A-Z]/.test(t)?n&&l?o[t]=(...e)=>{l(...e),n(...e)}:n&&(o[t]=n):"style"===t?o[t]={...n,...l}:"className"===t&&(o[t]=[n,l].filter(Boolean).join(" "))}return{...e,...o}}(l,o.props);return o.type!==t.Fragment&&(a.ref=r?(0,n.t)(r,i):i),t.cloneElement(o,a)}return t.Children.count(o)>1?t.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}(e),o=t.forwardRef((e,o)=>{let{children:n,...s}=e,i=t.Children.toArray(n),a=i.find(c);if(a){let e=a.props.children,n=i.map(r=>r!==a?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,l.jsx)(r,{...s,ref:o,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,l.jsx)(r,{...s,ref:o,children:n})});return o.displayName=`${e}.Slot`,o}var i=s("Slot"),a=Symbol("radix.slottable");function d(e){let r=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});return r.displayName=`${e}.Slottable`,r.__radixId=a,r}function c(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},31027:(e,r,o)=>{o.d(r,{F:()=>s});var t=o(43463);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=t.$,s=(e,r)=>o=>{var t;if((null==r?void 0:r.variants)==null)return l(e,null==o?void 0:o.class,null==o?void 0:o.className);let{variants:s,defaultVariants:i}=r,a=Object.keys(s).map(e=>{let r=null==o?void 0:o[e],t=null==i?void 0:i[e];if(null===r)return null;let l=n(r)||n(t);return s[e][l]}),d=o&&Object.entries(o).reduce((e,r)=>{let[o,t]=r;return void 0===t||(e[o]=t),e},{});return l(e,a,null==r?void 0:null===(t=r.compoundVariants)||void 0===t?void 0:t.reduce((e,r)=>{let{class:o,className:t,...n}=r;return Object.entries(n).every(e=>{let[r,o]=e;return Array.isArray(o)?o.includes({...i,...d}[r]):({...i,...d})[r]===o})?[...e,o,t]:e},[]),null==o?void 0:o.class,null==o?void 0:o.className)}},43463:(e,r,o)=>{function t(){for(var e,r,o=0,t="",n=arguments.length;ot,A:()=>n});let n=t},69795:(e,r,o)=>{o.d(r,{QP:()=>H});let t=e=>{let r=i(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{let o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),n(o,r)||s(e)},getConflictingClassGroupIds:(e,r)=>{let n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},n=(e,r)=>{if(0===e.length)return r.classGroupId;let o=e[0],t=r.nextPart.get(o),l=t?n(e.slice(1),t):void 0;if(l)return l;if(0===r.validators.length)return;let s=e.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId},l=/^\[(.+)\]$/,s=e=>{if(l.test(e)){let r=l.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},i=e=>{let{theme:r,prefix:o}=e,t={nextPart:new Map,validators:[]};return p(Object.entries(e.classGroups),o).forEach(([e,o])=>{a(o,t,e,r)}),t},a=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:d(r,e)).classGroupId=o;return}if("function"==typeof e){if(c(e)){a(e(t),r,o,t);return}r.validators.push({validator:e,classGroupId:o});return}Object.entries(e).forEach(([e,n])=>{a(n,d(r,e),o,t)})})},d=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},c=e=>e.isThemeGetter,p=(e,r)=>r?e.map(([e,o])=>[e,o.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,o])=>[r+e,o])):e)]):e,u=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,o=new Map,t=new Map,n=(n,l)=>{o.set(n,l),++r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},b=e=>{let{separator:r,experimentalParseClassName:o}=e,t=1===r.length,n=r[0],l=r.length,s=e=>{let o;let s=[],i=0,a=0;for(let d=0;da?o-a:void 0}};return o?e=>o({className:e,parseClassName:s}):s},f=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(e=>{"["===e[0]?(r.push(...o.sort(),e),o=[]):o.push(e)}),r.push(...o.sort()),r},m=e=>({cache:u(e.cacheSize),parseClassName:b(e),...t(e)}),g=/\s+/,h=(e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n}=r,l=[],s=e.trim().split(g),i="";for(let e=s.length-1;e>=0;e-=1){let r=s[e],{modifiers:a,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=o(r),u=!!p,b=t(u?c.substring(0,p):c);if(!b){if(!u||!(b=t(c))){i=r+(i.length>0?" "+i:i);continue}u=!1}let m=f(a).join(":"),g=d?m+"!":m,h=g+b;if(l.includes(h))continue;l.push(h);let y=n(b,u);for(let e=0;e0?" "+i:i)}return i};function y(){let e,r,o=0,t="";for(;o{let r;if("string"==typeof e)return e;let o="";for(let t=0;t{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,z=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,N=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>O(e)||z.has(e)||k.test(e),$=e=>B(e,"length",L),O=e=>!!e&&!Number.isNaN(Number(e)),_=e=>B(e,"number",O),G=e=>!!e&&Number.isInteger(Number(e)),R=e=>e.endsWith("%")&&O(e.slice(0,-1)),I=e=>w.test(e),W=e=>j.test(e),A=new Set(["length","size","percentage"]),M=e=>B(e,A,Q),V=e=>B(e,"position",Q),D=new Set(["image","url"]),T=e=>B(e,D,Z),F=e=>B(e,"",X),q=()=>!0,B=(e,r,o)=>{let t=w.exec(e);return!!t&&(t[1]?"string"==typeof r?t[1]===r:r.has(t[1]):o(t[2]))},L=e=>C.test(e)&&!S.test(e),Q=()=>!1,X=e=>N.test(e),Z=e=>E.test(e);Symbol.toStringTag;let H=function(e,...r){let o,t,n;let l=function(i){return t=(o=m(r.reduce((e,r)=>r(e),e()))).cache.get,n=o.cache.set,l=s,s(i)};function s(e){let r=t(e);if(r)return r;let l=h(e,o);return n(e,l),l}return function(){return l(y.apply(null,arguments))}}(()=>{let e=x("colors"),r=x("spacing"),o=x("blur"),t=x("brightness"),n=x("borderColor"),l=x("borderRadius"),s=x("borderSpacing"),i=x("borderWidth"),a=x("contrast"),d=x("grayscale"),c=x("hueRotate"),p=x("invert"),u=x("gap"),b=x("gradientColorStops"),f=x("gradientColorStopPositions"),m=x("inset"),g=x("margin"),h=x("opacity"),y=x("padding"),v=x("saturate"),w=x("scale"),k=x("sepia"),z=x("skew"),j=x("space"),C=x("translate"),S=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",I,r],A=()=>[I,r],D=()=>["",P,$],B=()=>["auto",O,I],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",I],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[O,I];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[P,$],blur:["none","",W,I],brightness:K(),borderColor:[e],borderRadius:["none","","full",W,I],borderSpacing:A(),borderWidth:D(),contrast:K(),grayscale:H(),hueRotate:K(),invert:H(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[R,$],inset:E(),margin:E(),opacity:K(),padding:A(),saturate:K(),scale:K(),sepia:H(),skew:K(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[W]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),I]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,I]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",G,I]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",G,I]},I]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[G,I]},I]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,r]}],"min-w":[{"min-w":[I,r,"min","max","fit"]}],"max-w":[{"max-w":[I,r,"none","full","min","max","fit","prose",{screen:[W]},W]}],h:[{h:[I,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,r,"auto","min","max","fit"]}],"font-size":[{text:["base",W,$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_]}],"font-family":[{font:[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",O,_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,$]}],"underline-offset":[{"underline-offset":["auto",P,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),V]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",M]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},T]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:Q()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[P,I]}],"outline-w":[{outline:[P,$]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[P,$]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",W,F]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",W,I]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[G,I]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,$,_]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1517-40bccec68e3ec406.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1517-40bccec68e3ec406.js deleted file mode 100644 index 8dca005..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1517-40bccec68e3ec406.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1517],{15851:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},80497:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},2818:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(97851)},49544:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(59377),o=r(76573);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47297:(e,t)=>{"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(n)for(let e in n)"children"!==e&&o.setAttribute(e,n[e]);r?(o.src=r,o.onload=()=>e(),o.onerror=t):n&&(o.innerHTML=n.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"15.1.2",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48127:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getAppBuildId:function(){return o},setAppBuildId:function(){return n}});let r="";function n(e){r=e}function o(){return r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return l},useServerActionDispatcher:function(){return u}});let n=r(12115),o=r(4445),a=null;function u(e){a=(0,n.useCallback)(t=>{(0,n.startTransition)(()=>{e({...t,type:o.ACTION_SERVER_ACTION})})},[e])}async function l(e,t){let r=a;if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findSourceMapURL",{enumerable:!0,get:function(){return r}});let r=void 0;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40847:(e,t,r)=>{"use strict";let n,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return N}});let a=r(60306),u=r(29955),l=r(95155);r(80497),r(18397),r(19003);let i=a._(r(12669)),s=u._(r(12115)),c=r(34979),f=r(81147),d=r(88221),p=r(36547),h=r(89603),y=r(33355),g=r(6833),b=a._(r(13423)),_=r(71386);r(71394);let v=r(48127),m=document,P=new TextEncoder,E=!1,O=!1,R=null;function S(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(P.encode(e[1])):n.push(e[1])}else if(2===e[0])R=e[1];else if(3===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");let r=atob(e[1]),a=new Uint8Array(r.length);for(var t=0;t{t.enqueue("string"==typeof e?P.encode(e):e)}),E&&!O)&&(null===t.desiredSize||t.desiredSize<0?t.error(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection.")):t.close(),O=!0,n=void 0),o=t}}),M=(0,c.createFromReadableStream)(T,{callServer:h.callServer,findSourceMapURL:y.findSourceMapURL}),x=new Promise((e,t)=>{M.then(t=>{(0,v.setAppBuildId)(t.b),e((0,g.createMutableActionQueue)((0,_.createInitialRouterState)({initialFlightData:t.f,initialCanonicalUrlParts:t.c,initialParallelRoutes:new Map,location:window.location,couldBeIntercepted:t.i,postponed:t.s,prerendered:t.S})))},e=>t(e))});function A(){let e=(0,s.use)(M),t=(0,s.use)(x);return(0,l.jsx)(b.default,{actionQueue:t,globalErrorComponentAndStyles:e.G,assetPrefix:e.p})}let C=s.default.StrictMode;function k(e){let{children:t}=e;return t}let D={onRecoverableError:d.onRecoverableError,onCaughtError:p.onCaughtError,onUncaughtError:p.onUncaughtError};function N(){let e=(0,l.jsx)(C,{children:(0,l.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,l.jsx)(k,{children:(0,l.jsx)(A,{})})})}),t=window.__next_root_layout_missing_tags,r=!!(null==t?void 0:t.length);"__next_error__"===document.documentElement.id||r?i.default.createRoot(m,D).render(e):s.default.startTransition(()=>i.default.hydrateRoot(m,e,{...D,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(28132),(0,r(47297).appBootstrap)(()=>{let{hydrate:e}=r(40847);r(13423),r(15244),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(15851);let n=r(18284);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assignLocation",{enumerable:!0,get:function(){return o}});let n=r(49544);function o(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return u}});let n=r(12115),o=r(47650),a="next-route-announcer";function u(e){let{tree:t}=e,[r,u]=(0,n.useState)(null);(0,n.useEffect)(()=>(u(function(){var e;let t=document.getElementsByName(a)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(a);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(a)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[l,i]=(0,n.useState)(""),s=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==s.current&&s.current!==e&&i(e),s.current=e},[t]),r?(0,o.createPortal)(l,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HEADER:function(){return n},FLIGHT_HEADERS:function(){return c},NEXT_DID_POSTPONE_HEADER:function(){return p},NEXT_HMR_REFRESH_HEADER:function(){return l},NEXT_IS_PRERENDER_HEADER:function(){return h},NEXT_ROUTER_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STALE_TIME_HEADER:function(){return d},NEXT_ROUTER_STATE_TREE_HEADER:function(){return o},NEXT_RSC_UNION_QUERY:function(){return f},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_HEADER:function(){return r}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",a="Next-Router-Prefetch",u="Next-Router-Segment-Prefetch",l="Next-HMR-Refresh",i="Next-Url",s="text/x-component",c=[r,o,a,l,u],f="_rsc",d="x-nextjs-stale-time",p="x-nextjs-postponed",h="x-nextjs-prerender";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13423:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createEmptyCacheNode:function(){return M},createPrefetchURL:function(){return w},default:function(){return k}});let n=r(29955),o=r(95155),a=n._(r(12115)),u=r(71394),l=r(4445),i=r(13436),s=r(58703),c=r(86494),f=r(34835),d=r(94283),p=r(49544),h=r(75881),y=r(16501),g=r(86674),b=r(99321),_=r(51129),v=r(26003),m=r(10845),P=r(39935),E=r(89603);r(29824);let O=r(19100),R=r(77563),S={};function j(e){return e.origin!==window.location.origin}function w(e){let t;if((0,d.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,p.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}return j(t)?null:t}function T(e){let{appRouterState:t}=e;return(0,a.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:n}=t,o={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(o,"",n)):window.history.replaceState(o,"",n)},[t]),null}function M(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null}}function x(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function A(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,a.useDeferredValue)(r,o)}function C(e){let t,{actionQueue:r,assetPrefix:n}=e,[i,f]=(0,c.useReducer)(r),{canonicalUrl:d}=(0,c.useUnwrapState)(i),{searchParams:P,pathname:M}=(0,a.useMemo)(()=>{let e=new URL(d,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,v.hasBasePath)(e.pathname)?(0,_.removeBasePath)(e.pathname):e.pathname}},[d]),C=(0,a.useCallback)(e=>{let{previousTree:t,serverResponse:r}=e;(0,a.startTransition)(()=>{f({type:l.ACTION_SERVER_PATCH,previousTree:t,serverResponse:r})})},[f]),k=(0,a.useCallback)((e,t,r)=>{let n=new URL((0,p.addBasePath)(e),location.href);return f({type:l.ACTION_NAVIGATE,url:n,isExternalUrl:j(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t,allowAliasing:!0})},[f]);(0,E.useServerActionDispatcher)(f);let D=(0,a.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let r=w(e);null!==r&&(0,a.startTransition)(()=>{var e;f({type:l.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:l.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,a.startTransition)(()=>{var r;k(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,a.startTransition)(()=>{var r;k(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,a.startTransition)(()=>{f({type:l.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Error("hmrRefresh can only be used in development mode. Please use refresh instead.")}}),[r,f,k]);(0,a.useEffect)(()=>{window.next&&(window.next.router=D)},[D]),(0,a.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(S.pendingMpaPath=void 0,f({type:l.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[f]),(0,a.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,R.isRedirectError)(t)){e.preventDefault();let r=(0,O.getURLFromRedirectError)(t);(0,O.getRedirectTypeFromError)(t)===R.RedirectType.push?D.push(r,{}):D.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[D]);let{pushRef:N}=(0,c.useUnwrapState)(i);if(N.mpaNavigation){if(S.pendingMpaPath!==d){let e=window.location;N.pendingPush?e.assign(d):e.replace(d),S.pendingMpaPath=d}(0,a.use)(b.unresolvedThenable)}(0,a.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{var t;let r=window.location.href,n=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,a.startTransition)(()=>{f({type:l.ACTION_RESTORE,url:new URL(null!=e?e:r,r),tree:n})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=x(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=x(e),o&&r(o)),t(e,n,o)};let n=e=>{if(e.state){if(!e.state.__NA){window.location.reload();return}(0,a.startTransition)(()=>{f({type:l.ACTION_RESTORE,url:new URL(window.location.href),tree:e.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[f]);let{cache:I,tree:L,nextUrl:H,focusAndScrollRef:F}=(0,c.useUnwrapState)(i),$=(0,a.useMemo)(()=>(0,g.findHeadInCache)(I,L[1]),[I,L]),B=(0,a.useMemo)(()=>(0,m.getSelectedParams)(L),[L]),W=(0,a.useMemo)(()=>({childNodes:I.parallelRoutes,tree:L,url:d,loading:I.loading}),[I.parallelRoutes,L,d,I.loading]),G=(0,a.useMemo)(()=>({changeByServerResponse:C,tree:L,focusAndScrollRef:F,nextUrl:H}),[C,L,F,H]);if(null!==$){let[e,r]=$;t=(0,o.jsx)(A,{headCacheNode:e},r)}else t=null;let K=(0,o.jsxs)(y.RedirectBoundary,{children:[t,I.rsc,(0,o.jsx)(h.AppRouterAnnouncer,{tree:L})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T,{appRouterState:(0,c.useUnwrapState)(i)}),(0,o.jsx)(U,{}),(0,o.jsx)(s.PathParamsContext.Provider,{value:B,children:(0,o.jsx)(s.PathnameContext.Provider,{value:M,children:(0,o.jsx)(s.SearchParamsContext.Provider,{value:P,children:(0,o.jsx)(u.GlobalLayoutRouterContext.Provider,{value:G,children:(0,o.jsx)(u.AppRouterContext.Provider,{value:D,children:(0,o.jsx)(u.LayoutRouterContext.Provider,{value:W,children:K})})})})})})]})}function k(e){let{actionQueue:t,globalErrorComponentAndStyles:[r,n],assetPrefix:a}=e;return(0,P.useNavFailureHandler)(),(0,o.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:n,children:(0,o.jsx)(C,{actionQueue:t,assetPrefix:a})})}let D=new Set,N=new Set;function U(){let[,e]=a.default.useState(0),t=D.size;return(0,a.useEffect)(()=>{let r=()=>e(e=>e+1);return N.add(r),t!==D.size&&r(),()=>{N.delete(r)}},[t,e]),[...D].map((e,t)=>(0,o.jsx)("link",{rel:"stylesheet",href:""+e,precedence:"next"},t))}globalThis._N_E_STYLE_LOAD=function(e){let t=D.size;return D.add(e),D.size!==t&&N.forEach(e=>e()),Promise.resolve()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return a}});let n=r(93719),o=r(75861);function a(e){let t=o.workAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new n.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57033:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return a}});let n=r(95155),o=r(64940);function a(e){let{Component:t,searchParams:a,params:u,promises:l}=e;if("undefined"==typeof window){let e,l;let{workAsyncStorage:i}=r(75861),s=i.getStore();if(!s)throw new o.InvariantError("Expected workStore to exist when handling searchParams in a client Page.");let{createSearchParamsFromClient:c}=r(82130);e=c(a,s);let{createParamsFromClient:f}=r(14383);return l=f(u,s),(0,n.jsx)(t,{params:l,searchParams:e})}{let{createRenderSearchParamsFromClient:e}=r(94124),o=e(a),{createRenderParamsFromClient:l}=r(25737),i=l(u);return(0,n.jsx)(t,{params:i,searchParams:o})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientSegmentRoot",{enumerable:!0,get:function(){return a}});let n=r(95155),o=r(64940);function a(e){let{Component:t,slots:a,params:u,promise:l}=e;if("undefined"==typeof window){let e;let{workAsyncStorage:l}=r(75861),i=l.getStore();if(!i)throw new o.InvariantError("Expected workStore to exist when handling params in a client segment such as a Layout or Template.");let{createParamsFromClient:s}=r(14383);return e=s(u,i),(0,n.jsx)(t,{...a,params:e})}{let{createRenderParamsFromClient:e}=r(25737),o=e(u);return(0,n.jsx)(t,{...a,params:o})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let n=r(60306),o=r(95155),a=n._(r(12115)),u=r(2380),l=r(90179);r(39935);let i=r(75861),s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function c(e){let{error:t}=e,r=i.workAsyncStorage.getStore();if((null==r?void 0:r.isRevalidate)||(null==r?void 0:r.isStaticGeneration))throw console.error(t),t;return null}class f extends a.default.Component{static getDerivedStateFromError(e){if((0,l.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(c,{error:t}),(0,o.jsx)("div",{style:s.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:s.text,children:"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."}),r?(0,o.jsx)("p",{style:s.text,children:"Digest: "+r}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:a}=e,l=(0,u.useUntrackedPathname)();return t?(0,o.jsx)(f,{pathname:l,errorComponent:t,errorStyles:r,errorScripts:n,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98901:(e,t,r)=>{"use strict";function n(){throw Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled.")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(62469).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(57712).handleGlobalErrors)(),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{originConsoleError:function(){return o},patchConsoleError:function(){return a}}),r(69762);let n=r(90179);r(57712);let o=window.console.error;function a(){"undefined"!=typeof window&&(window.console.error=function(){let e;for(var t=arguments.length,r=Array(t),a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(25194).patchConsoleError)(),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return c}});let n=r(29955),o=r(95155),a=n._(r(12115)),u=r(2380),l=r(62469);r(42363);let i=r(71394);class s extends a.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,l.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,l.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:a}=this.state,u={[l.HTTPAccessErrorStatus.NOT_FOUND]:e,[l.HTTPAccessErrorStatus.FORBIDDEN]:t,[l.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(a){let i=a===l.HTTPAccessErrorStatus.NOT_FOUND&&e,s=a===l.HTTPAccessErrorStatus.FORBIDDEN&&t,c=a===l.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return i||s||c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,u[a]]}):n}return n}constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}}function c(e){let{notFound:t,forbidden:r,unauthorized:n,children:l}=e,c=(0,u.useUntrackedPathname)(),f=(0,a.useContext)(i.MissingSlotContext);return t||r||n?(0,o.jsx)(s,{pathname:c,notFound:t,forbidden:r,unauthorized:n,missingSlots:f,children:l}):(0,o.jsx)(o.Fragment,{children:l})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return l},getAccessFallbackHTTPStatus:function(){return u},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function u(e){return Number(e.digest.split(";")[1])}function l(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15384:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getDefaultHydrationErrorMessage:function(){return i},getHydrationErrorStackInfo:function(){return f},isHydrationError:function(){return s},isReactHydrationErrorMessage:function(){return c}});let n=r(60306)._(r(69762)),o=/hydration failed|while hydrating|content does not match|did not match|HTML didn't match/i,a="Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used",u=[a,"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:"],l="https://react.dev/link/hydration-mismatch",i=()=>a;function s(e){return(0,n.default)(e)&&o.test(e.message)}function c(e){return u.some(t=>e.startsWith(t))}function f(e){if(!c(e=e.replace(/^Error: /,"")))return{message:null};let t=e.indexOf("\n"),[r,n]=(e=e.slice(t+1).trim()).split(""+l),o=r.trim();if(!n||!(n.length>1))return{message:o,link:l,stack:n};{let e=[],t=[];return n.split("\n").forEach(r=>{""!==r.trim()&&(r.trim().startsWith("at ")?e.push(r):t.push(r))}),{message:o,link:l,diff:t.join("\n"),stack:e.join("\n")}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(62469),o=r(77563);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return j}});let n=r(60306),o=r(29955),a=r(95155),u=o._(r(12115)),l=n._(r(47650)),i=r(71394),s=r(94091),c=r(99321),f=r(34835),d=r(54682),p=r(28344),h=r(16501),y=r(52328),g=r(84183),b=r(25404),_=r(50941),v=l.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,m=["bottom","height","left","right","top","width","x","y"];function P(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class E extends u.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,d.matchSegment)(t,e[r]))))return;let r=null,n=e.hashFragment;if(n&&(r=function(e){var t;return"top"===e?document.body:null!=(t=document.getElementById(e))?t:document.getElementsByName(e)[0]}(n)),!r&&(r="undefined"==typeof window?null:(0,v.findDOMNode)(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return m.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(n){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!P(r,t)&&(e.scrollTop=0,P(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function O(e){let{segmentPath:t,children:r}=e,n=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,a.jsx)(E,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function R(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:o,tree:l,cacheKey:f}=e,p=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{changeByServerResponse:h,tree:y}=p,g=n.get(f);if(void 0===g){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};g=e,n.set(f,e)}let b=null!==g.prefetchRsc?g.prefetchRsc:g.rsc,v=(0,u.useDeferredValue)(g.rsc,b),m="object"==typeof v&&null!==v&&"function"==typeof v.then?(0,u.use)(v):v;if(!m){let e=g.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,a=2===t.length;if((0,d.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(a){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...o],y),n=(0,_.hasInterceptionRouteInCurrentTree)(y);g.lazyData=e=(0,s.fetchServerResponse)(new URL(r,location.origin),{flightRouterState:t,nextUrl:n?p.nextUrl:null}).then(e=>((0,u.startTransition)(()=>{h({previousTree:y,serverResponse:e})}),e))}(0,u.use)(c.unresolvedThenable)}return(0,a.jsx)(i.LayoutRouterContext.Provider,{value:{tree:l[1][t],childNodes:g.parallelRoutes,url:r,loading:g.loading},children:m})}function S(e){let t,{loading:r,children:n}=e;if(t="object"==typeof r&&null!==r&&"function"==typeof r.then?(0,u.use)(r):r){let e=t[0],r=t[1],o=t[2];return(0,a.jsx)(u.Suspense,{fallback:(0,a.jsxs)(a.Fragment,{children:[r,o,e]}),children:n})}return(0,a.jsx)(a.Fragment,{children:n})}function j(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:o,errorScripts:l,templateStyles:s,templateScripts:c,template:d,notFound:p,forbidden:_,unauthorized:v}=e,m=(0,u.useContext)(i.LayoutRouterContext);if(!m)throw Error("invariant expected layout router to be mounted");let{childNodes:P,tree:E,url:j,loading:w}=m,T=P.get(t);T||(T=new Map,P.set(t,T));let M=E[1][t][0],x=(0,g.getSegmentValue)(M),A=[M];return(0,a.jsx)(a.Fragment,{children:A.map(e=>{let u=(0,g.getSegmentValue)(e),m=(0,b.createRouterCacheKey)(e);return(0,a.jsxs)(i.TemplateContext.Provider,{value:(0,a.jsx)(O,{segmentPath:r,children:(0,a.jsx)(f.ErrorBoundary,{errorComponent:n,errorStyles:o,errorScripts:l,children:(0,a.jsx)(S,{loading:w,children:(0,a.jsx)(y.HTTPAccessFallbackBoundary,{notFound:p,forbidden:_,unauthorized:v,children:(0,a.jsx)(h.RedirectBoundary,{children:(0,a.jsx)(R,{parallelRouterKey:t,url:j,tree:E,childNodes:T,segmentPath:r,cacheKey:m,isActive:x===u})})})})})}),children:[s,c,d]},(0,b.createRouterCacheKey)(e,!0))})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{canSegmentBeOverridden:function(){return a},matchSegment:function(){return o}});let n=r(76654),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],a=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleHardNavError:function(){return o},useNavFailureHandler:function(){return a}}),r(12115);let n=r(13436);function o(e){return!!e&&"undefined"!=typeof window&&!!window.next.__pendingUrl&&(0,n.createHrefFromUrl)(new URL(window.location.href))!==(0,n.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function a(){}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUntrackedPathname",{enumerable:!0,get:function(){return a}});let n=r(12115),o=r(58703);function a(){return!function(){if("undefined"==typeof window){let{workAsyncStorage:e}=r(75861),t=e.getStore();if(!t)return!1;let{fallbackRouteParams:n}=t;return!!n&&0!==n.size}return!1}()?(0,n.useContext)(o.PathnameContext):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return i.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return i.unauthorized},unstable_rethrow:function(){return i.unstable_rethrow},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return p},useSearchParams:function(){return f},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let n=r(12115),o=r(71394),a=r(58703),u=r(84183),l=r(36090),i=r(14557),s=r(76378),c=r(4125);function f(){let e=(0,n.useContext)(a.SearchParamsContext),t=(0,n.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=r(78967);e("useSearchParams()")}return t}function d(){return(0,s.useDynamicRouteParams)("usePathname()"),(0,n.useContext)(a.PathnameContext)}function p(){let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,s.useDynamicRouteParams)("useParams()"),(0,n.useContext)(a.PathParamsContext)}function y(e){void 0===e&&(e="children"),(0,s.useDynamicRouteParams)("useSelectedLayoutSegments()");let t=(0,n.useContext)(o.LayoutRouterContext);return t?function e(t,r,n,o){let a;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)a=t[1][r];else{var i;let e=t[1];a=null!=(i=e.children)?i:Object.values(e)[0]}if(!a)return o;let s=a[0],c=(0,u.getSegmentValue)(s);return!c||c.startsWith(l.PAGE_SEGMENT_KEY)?o:(o.push(c),e(a,r,!1,o))}(t.tree,e):null}function g(e){void 0===e&&(e="children"),(0,s.useDynamicRouteParams)("useSelectedLayoutSegment()");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===l.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c},RedirectType:function(){return o.RedirectType},forbidden:function(){return u.forbidden},notFound:function(){return a.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return l.unauthorized},unstable_rethrow:function(){return i.unstable_rethrow}});let n=r(19100),o=r(77563),a=r(14336),u=r(98901),l=r(882),i=r(47554);class s extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class c extends URLSearchParams{append(){throw new s}delete(){throw new s}set(){throw new s}sort(){throw new s}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return o}});let n=""+r(62469).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function o(){let e=Error(n);throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return s}});let n=r(72141),o=r(13523);var a=o._("_maxConcurrency"),u=o._("_runningCount"),l=o._("_queue"),i=o._("_processNext");class s{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),a=async()=>{try{n._(this,u)[u]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,u)[u]--,n._(this,i)[i]()}};return n._(this,l)[l].push({promiseFn:o,task:a}),n._(this,i)[i](),o}bump(e){let t=n._(this,l)[l].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,l)[l].splice(t,1)[0];n._(this,l)[l].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:c}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),n._(this,a)[a]=e,n._(this,u)[u]=0,n._(this,l)[l]=[]}}function c(e){if(void 0===e&&(e=!1),(n._(this,u)[u]0){var t;null==(t=n._(this,l)[l].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"attachHydrationErrorState",{enumerable:!0,get:function(){return a}});let n=r(15384),o=r(73655);function a(e){if((0,n.isHydrationError)(e)&&!e.message.includes("https://nextjs.org/docs/messages/react-hydration-error")){let t=(0,o.getReactHydrationDiffSegments)(e.message),r={};t?r={...e.details,...o.hydrationErrorState,warning:o.hydrationErrorState.warning||[(0,n.getDefaultHydrationErrorMessage)()],notes:t[0],reactOutputComponentDiff:t[1]}:o.hydrationErrorState.warning&&(r={...e.details,...o.hydrationErrorState}),e.details=r}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93895:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createUnhandledError:function(){return o},getUnhandledErrorType:function(){return u},isUnhandledConsoleOrRejection:function(){return a}});let r=Symbol.for("next.console.error.digest"),n=Symbol.for("next.console.error.type");function o(e){let t="string"==typeof e?Error(e):e;return t[r]="NEXT_UNHANDLED_ERROR",t[n]="string"==typeof e?"string":"error",t}let a=e=>e&&"NEXT_UNHANDLED_ERROR"===e[r],u=e=>e[n];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"enqueueConsecutiveDedupedError",{enumerable:!0,get:function(){return o}});let n=r(15384);function o(e,t){let r=(0,n.isHydrationError)(t),o=r?e[0]:e[e.length-1];o&&o.stack===t.stack||(r?e.unshift(t):e.push(t))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getHydrationWarningType:function(){return l},getReactHydrationDiffSegments:function(){return d},hydrationErrorState:function(){return o},storeHydrationErrorStateFromConsoleArgs:function(){return p}});let n=r(15384),o={},a=new Set(["Warning: In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s","Warning: In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s","Warning: In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.","Warning: In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.","Warning: Expected server HTML to contain a matching <%s> in <%s>.%s","Warning: Did not expect server HTML to contain a <%s> in <%s>.%s"]),u=new Set(['Warning: Expected server HTML to contain a matching text node for "%s" in <%s>.%s','Warning: Did not expect server HTML to contain the text node "%s" in <%s>.%s']),l=e=>{if("string"!=typeof e)return"text";let t=e.startsWith("Warning: ")?e:"Warning: "+e;return i(t)?"tag":c(t)?"text-in-tag":"text"},i=e=>a.has(e),s=e=>'Warning: Text content did not match. Server: "%s" Client: "%s"%s'===e,c=e=>u.has(e),f=e=>{if("string"!=typeof e)return!1;let t=e.startsWith("Warning: ")?e:"Warning: "+e;return i(t)||c(t)||s(t)},d=e=>{if(e){let{message:t,diff:r}=(0,n.getHydrationErrorStackInfo)(e);if(t)return[t,r]}};function p(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getReactStitchedError",{enumerable:!0,get:function(){return s}});let n=r(60306),o=n._(r(12115)),a=n._(r(69762)),u="react-stack-bottom-frame",l=RegExp("(at "+u+" )|("+u+"\\@)"),i=o.default.captureOwnerStack?o.default.captureOwnerStack:()=>"";function s(e){if("function"!=typeof o.default.captureOwnerStack)return e;let t=(0,a.default)(e),r=t&&e.stack||"",n=t?e.message:"",u=r.split("\n"),s=u.findIndex(e=>l.test(e)),c=s>=0?u.slice(0,s).join("\n"):r,f=Error(n);return Object.assign(f,e),f.stack=c,function(e){let t=e.stack||"",r=i();r&&!1===t.endsWith(r)&&(t+=r,e.stack=t)}(f),f}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57712:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleClientError:function(){return _},handleGlobalErrors:function(){return E},useErrorHandler:function(){return v}});let n=r(60306),o=r(12115),a=r(58582),u=r(90179),l=r(73655),i=r(34300),s=n._(r(69762)),c=r(93895),f=r(43970),d=r(2100),p=globalThis.queueMicrotask||(e=>Promise.resolve().then(e)),h=[],y=[],g=[],b=[];function _(e,t,r){let n;if(void 0===r&&(r=!1),e&&(0,s.default)(e))n=r?(0,c.createUnhandledError)(e):e;else{let e=(0,i.formatConsoleArgs)(t);n=(0,c.createUnhandledError)(e)}for(let e of(n=(0,d.getReactStitchedError)(n),(0,l.storeHydrationErrorStateFromConsoleArgs)(...t),(0,a.attachHydrationErrorState)(n),(0,f.enqueueConsecutiveDedupedError)(h,n),y))p(()=>{e(n)})}function v(e,t){(0,o.useEffect)(()=>(h.forEach(e),g.forEach(t),y.push(e),b.push(t),()=>{y.splice(y.indexOf(e),1),b.splice(b.indexOf(t),1)}),[e,t])}function m(e){if((0,u.isNextRouterError)(e.error))return e.preventDefault(),!1;_(e.error,[])}function P(e){let t=null==e?void 0:e.reason;if((0,u.isNextRouterError)(t)){e.preventDefault();return}let r=t;for(let e of(r&&!(0,s.default)(r)&&(r=(0,c.createUnhandledError)(r+"")),g.push(r),b))e(r)}function E(){if("undefined"!=typeof window){try{Error.stackTraceLimit=50}catch(e){}window.addEventListener("error",m),window.addEventListener("unhandledrejection",P)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectBoundary:function(){return f},RedirectErrorBoundary:function(){return c}});let n=r(29955),o=r(95155),a=n._(r(12115)),u=r(66658),l=r(19100),i=r(77563);function s(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,u.useRouter)();return(0,a.useEffect)(()=>{a.default.startTransition(()=>{n===i.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class c extends a.default.Component{static getDerivedStateFromError(e){if((0,i.isRedirectError)(e))return{redirect:(0,l.getURLFromRedirectError)(e),redirectType:(0,l.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(s,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function f(e){let{children:t}=e,r=(0,u.useRouter)();return(0,o.jsx)(c,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return u}});let n=r(87361),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,u=t.slice(2,-2).join(";"),l=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof u&&!isNaN(l)&&l in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87361:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return c},getURLFromRedirectError:function(){return s},permanentRedirect:function(){return i},redirect:function(){return l}});let n=r(29126),o=r(87361),a=r(77563);function u(e,t,r){void 0===r&&(r=o.RedirectStatusCode.TemporaryRedirect);let n=Error(a.REDIRECT_ERROR_CODE);return n.digest=a.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",n}function l(e,t){let r=n.actionAsyncStorage.getStore();throw u(e,t||((null==r?void 0:r.isAction)?a.RedirectType.push:a.RedirectType.replace),o.RedirectStatusCode.TemporaryRedirect)}function i(e,t){throw void 0===t&&(t=a.RedirectType.replace),u(e,t,o.RedirectStatusCode.PermanentRedirect)}function s(e){return(0,a.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function c(e){if(!(0,a.isRedirectError)(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function f(e){if(!(0,a.isRedirectError)(e))throw Error("Not a redirect error");return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(29955),o=r(95155),a=n._(r(12115)),u=r(71394);function l(){let e=(0,a.useContext)(u.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addSearchParamsToPageSegments:function(){return f},handleAliasedPrefetchEntry:function(){return c}});let n=r(36090),o=r(13423),a=r(1053),u=r(13436),l=r(25404),i=r(88645),s=r(17344);function c(e,t,r,c){let d,p=e.tree,h=e.cache,y=(0,u.createHrefFromUrl)(r);for(let e of t){if(!function e(t){if(!t)return!1;let r=t[2];if(t[3])return!0;for(let t in r)if(e(r[t]))return!0;return!1}(e.seedData))continue;let t=e.tree;t=f(t,Object.fromEntries(r.searchParams));let{seedData:u,isRootRender:s,pathToSegment:c}=e,g=["",...c];t=f(t,Object.fromEntries(r.searchParams));let b=(0,a.applyRouterStatePatchToTree)(g,p,t,y),_=(0,o.createEmptyCacheNode)();if(s&&u){let e=u[1],r=u[3];_.loading=r,_.rsc=e,function e(t,r,o,a){if(0!==Object.keys(o[1]).length)for(let u in o[1]){let i;let s=o[1][u],c=s[0],f=(0,l.createRouterCacheKey)(c),d=null!==a&&void 0!==a[2][u]?a[2][u]:null;if(null!==d){let e=d[1],t=d[3];i={lazyData:null,rsc:c.includes(n.PAGE_SEGMENT_KEY)?null:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else i={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let p=t.parallelRoutes.get(u);p?p.set(f,i):t.parallelRoutes.set(u,new Map([[f,i]])),e(i,r,s,d)}}(_,h,t,u)}else _.rsc=h.rsc,_.prefetchRsc=h.prefetchRsc,_.loading=h.loading,_.parallelRoutes=new Map(h.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(_,h,e);b&&(p=b,h=_,d=!0)}return!!d&&(c.patchedTree=p,c.cache=h,c.canonicalUrl=y,c.hashFragment=r.hash,(0,s.handleMutable)(e,c))}function f(e,t){let[r,o,...a]=e;if(r.includes(n.PAGE_SEGMENT_KEY))return[(0,n.addSearchParamsIfPageSegment)(r,t),o,...a];let u={};for(let[e,r]of Object.entries(o))u[e]=f(r,t);return[r,u,...a]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return a}});let n=r(30223),o=r(88645);function a(e,t,r,a){let{tree:u,seedData:l,head:i,isRootRender:s}=r;if(null===l)return!1;if(s){let r=l[1],o=l[3];t.loading=o,t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,u,l,i,a)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,r,a);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,n,i){let s;let[c,f,d,p,h]=r;if(1===t.length){let e=l(r,n);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,i),e}let[y,g]=t;if(!(0,a.matchSegment)(y,c))return null;if(2===t.length)s=l(f[g],n);else if(null===(s=e((0,o.getNextFlightSegmentPath)(t),f[g],n,i)))return null;let b=[t[0],{...f,[g]:s},d,p];return h&&(b[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(b,i),b}}});let n=r(36090),o=r(41648),a=r(54682),u=r(91387);function l(e,t){let[r,o]=e,[u,i]=t;if(u===n.DEFAULT_SEGMENT_KEY&&r!==n.DEFAULT_SEGMENT_KEY)return e;if((0,a.matchSegment)(r,u)){let t={};for(let e in o)void 0!==i[e]?t[e]=l(o[e],i[e]):t[e]=o[e];for(let e in i)t[e]||(t[e]=i[e]);let n=[r,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,r,a){let u=a.length<=2,[l,i]=a,s=(0,o.createRouterCacheKey)(i),c=r.parallelRoutes.get(l),f=t.parallelRoutes.get(l);f&&f!==c||(f=new Map(c),t.parallelRoutes.set(l,f));let d=null==c?void 0:c.get(s),p=f.get(s);if(u){p&&p.lazyData&&p!==d||f.set(s,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}if(!p||!d){p||f.set(s,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes),loading:p.loading},f.set(s,p)),e(p,d,(0,n.getNextFlightSegmentPath)(a))}}});let n=r(41648),o=r(25404);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{computeChangedPath:function(){return c},extractPathFromFlightRouterState:function(){return s},getSelectedParams:function(){return function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],a=Array.isArray(t),u=a?t[1]:t;!u||u.startsWith(o.PAGE_SEGMENT_KEY)||(a&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):a&&(r[t[0]]=t[1]),r=e(n,r))}return r}}});let n=r(68456),o=r(36090),a=r(54682),u=e=>"/"===e[0]?e.slice(1):e,l=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=u(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function s(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let a=[l(r)],u=null!=(t=e[1])?t:{},c=u.children?s(u.children):void 0;if(void 0!==c)a.push(c);else for(let[e,t]of Object.entries(u)){if("children"===e)continue;let r=s(t);void 0!==r&&a.push(r)}return i(a)}function c(e,t){let r=function e(t,r){let[o,u]=t,[i,c]=r,f=l(o),d=l(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,a.matchSegment)(o,i)){var p;return null!=(p=s(r))?p:""}for(let t in u)if(c[t]){let r=e(u[t],c[t]);if(null!==r)return l(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13436:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let n=r(13436),o=r(30223),a=r(10845),u=r(41893),l=r(4445),i=r(91387),s=r(41648);function c(e){var t,r;let{initialFlightData:c,initialCanonicalUrlParts:f,initialParallelRoutes:d,location:p,couldBeIntercepted:h,postponed:y,prerendered:g}=e,b=f.join("/"),_=(0,s.getFlightDataPartsFromPath)(c[0]),{tree:v,seedData:m,head:P}=_,E=!p,O=null==m?void 0:m[1],R=null!=(t=null==m?void 0:m[3])?t:null,S={lazyData:null,rsc:O,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:E?new Map:d,loading:R},j=p?(0,n.createHrefFromUrl)(p):b;(0,i.addRefreshMarkerToActiveParallelSegments)(v,j);let w=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(S,void 0,v,m,P);let T={tree:v,cache:S,prefetchCache:w,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:j,nextUrl:null!=(r=(0,a.extractPathFromFlightRouterState)(v)||(null==p?void 0:p.pathname))?r:null};if(p){let e=new URL(""+p.pathname+p.search,p.origin);(0,u.createSeededPrefetchCacheEntry)({url:e,data:{flightData:[_],canonicalUrl:void 0,couldBeIntercepted:!!h,prerendered:g,postponed:y,staleTime:-1},tree:T.tree,prefetchCache:T.prefetchCache,nextUrl:T.nextUrl,kind:g?l.PrefetchKind.FULL:l.PrefetchKind.AUTO})}return T}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25404:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(36090);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createFetch:function(){return h},createFromNextReadableStream:function(){return y},fetchServerResponse:function(){return p},urlToUrlWithoutFlightMarker:function(){return f}});let n=r(2836),o=r(89603),a=r(33355),u=r(4445),l=r(31233),i=r(41648),s=r(48127),{createFromReadableStream:c}=r(34979);function f(e){let t=new URL(e,location.origin);if(t.searchParams.delete(n.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function d(e){return{flightData:f(e).toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}async function p(e,t){let{flightRouterState:r,nextUrl:o,prefetchKind:a}=t,l={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(r))};a===u.PrefetchKind.AUTO&&(l[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),o&&(l[n.NEXT_URL]=o);try{var c;let t=a?a===u.PrefetchKind.TEMPORARY?"high":"low":"auto",r=await h(e,l,t),o=f(r.url),p=r.redirected?o:void 0,g=r.headers.get("content-type")||"",b=!!(null==(c=r.headers.get("vary"))?void 0:c.includes(n.NEXT_URL)),_=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER),v=r.headers.get(n.NEXT_ROUTER_STALE_TIME_HEADER),m=null!==v?parseInt(v,10):-1,P=g.startsWith(n.RSC_CONTENT_TYPE_HEADER);if(P||(P=g.startsWith("text/plain")),!P||!r.ok||!r.body)return e.hash&&(o.hash=e.hash),d(o.toString());let E=_?function(e){let t=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:r,value:n}=await t.read();if(!r){e.enqueue(n);continue}return}}})}(r.body):r.body,O=await y(E);if((0,s.getAppBuildId)()!==O.b)return d(r.url);return{flightData:(0,i.normalizeFlightData)(O.f),canonicalUrl:p,couldBeIntercepted:b,prerendered:O.S,postponed:_,staleTime:m}}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),{flightData:e.toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}}function h(e,t,r){let o=new URL(e);o.pathname.endsWith("/")?o.pathname+="index.txt":o.pathname+=".txt";let a=(0,l.hexHash)([t[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",t[n.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]||"0",t[n.NEXT_ROUTER_STATE_TREE_HEADER],t[n.NEXT_URL]].join(","));return o.searchParams.set(n.NEXT_RSC_UNION_QUERY,a),fetch(o,{credentials:"same-origin",headers:t,priority:r||void 0})}function y(e){return c(e,{callServer:o.callServer,findSourceMapURL:a.findSourceMapURL})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return s}});let n=r(87663),o=r(30223),a=r(25404),u=r(36090);function l(e,t,r,l,i){let{segmentPath:s,seedData:c,tree:f,head:d}=r,p=e,h=t;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,a,u,l,i){if(0===Object.keys(a[1]).length){t.head=l;return}for(let s in a[1]){let c;let f=a[1][s],d=f[0],p=(0,n.createRouterCacheKey)(d),h=null!==u&&void 0!==u[2][s]?u[2][s]:null;if(r){let n=r.parallelRoutes.get(s);if(n){let r;let a=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,u=new Map(n),c=u.get(p);r=null!==h?{lazyData:null,rsc:h[1],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==c?void 0:c.parallelRoutes)}:a&&c?{lazyData:c.lazyData,rsc:c.rsc,prefetchRsc:c.prefetchRsc,head:c.head,prefetchHead:c.prefetchHead,parallelRoutes:new Map(c.parallelRoutes),loading:c.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==c?void 0:c.parallelRoutes),loading:null},u.set(p,r),e(r,c,f,h||null,l,i),t.parallelRoutes.set(s,u);continue}}if(null!==h){let e=h[1],t=h[3];c={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else c={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let y=t.parallelRoutes.get(s);y?y.set(p,c):t.parallelRoutes.set(s,new Map([[p,c]])),e(c,void 0,f,h,l,i)}}}});let n=r(25404),o=r(4445);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return a}});let n=r(10845);function o(e){return void 0!==e}function a(e,t){var r,a;let u=null==(r=t.shouldScroll)||r,l=e.nextUrl;if(o(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?l=r:l||(l=e.canonicalUrl)}return{canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!u&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:t.onlyHashChange||!1,hashFragment:u?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:u?null!=(a=null==t?void 0:t.scrollableSegments)?a:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:l}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let n=r(52603);function o(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,a){let u=a.length<=2,[l,i]=a,s=(0,n.createRouterCacheKey)(i),c=r.parallelRoutes.get(l);if(!c)return;let f=t.parallelRoutes.get(l);if(f&&f!==c||(f=new Map(c),t.parallelRoutes.set(l,f)),u){f.delete(s);return}let d=c.get(s),p=f.get(s);p&&d&&(p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes)},f.set(s,p)),e(p,d,(0,o.getNextFlightSegmentPath)(a)))}}});let n=r(25404),o=r(41648);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let n=r(25404);function o(e,t,r){for(let o in r[1]){let a=r[1][o][0],u=(0,n.createRouterCacheKey)(a),l=t.parallelRoutes.get(o);if(l){let t=new Map(l);t.delete(u),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],o=r[0];if(Array.isArray(n)&&Array.isArray(o)){if(n[0]!==o[0]||n[2]!==o[2])return!0}else if(n!==o)return!0;if(t[4])return!r[4];if(r[4])return!0;let a=Object.values(t[1])[0],u=Object.values(r[1])[0];return!a||!u||e(a,u)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{abortTask:function(){return s},listenForDynamicRequest:function(){return i},updateCacheNodeOnNavigation:function(){return function e(t,r,l,i,s,c){let f=r[1],d=l[1],p=null!==i?i[2]:null,h=t.parallelRoutes,y=new Map(h),g={},b=null,_=!1;for(let t in d){let r;let l=d[t],i=f[t],v=h.get(t),m=null!==p?p[t]:null,P=l[0],E=(0,a.createRouterCacheKey)(P),O=void 0!==i?i[0]:void 0,R=void 0!==v?v.get(E):void 0;if(null!==(r=P===n.DEFAULT_SEGMENT_KEY?void 0!==i?{route:i,node:null,needsDynamicRequest:!1,children:null}:u(l,void 0!==m?m:null,s,c):void 0!==O&&(0,o.matchSegment)(P,O)&&void 0!==R&&void 0!==i?e(R,i,l,m,s,c):u(l,void 0!==m?m:null,s,c))){null===b&&(b=new Map),b.set(t,r);let e=r.node;if(null!==e){let r=new Map(v);r.set(E,e),y.set(t,r)}r.needsDynamicRequest&&(_=!0),g[t]=r.route}else g[t]=l}if(null===b)return null;let v={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y};return{route:function(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}(l,g),node:v,needsDynamicRequest:_,children:b}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],o=t.parallelRoutes,u=new Map(o);for(let t in n){let r=n[t],l=r[0],i=(0,a.createRouterCacheKey)(l),s=o.get(t);if(void 0!==s){let n=s.get(i);if(void 0!==n){let o=e(n,r),a=new Map(s);a.set(i,o),u.set(t,a)}}}let l=t.rsc,i=d(l)&&"pending"===l.status;return{lazyData:null,rsc:l,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:t.loading,parallelRoutes:u}}}});let n=r(36090),o=r(54682),a=r(25404);function u(e,t,r,n){if(null===t)return l(e,null,r,n);let o=e[1],i=t[4],s=0===Object.keys(o).length;if(i||n&&s)return l(e,t,r,n);let c=t[2],f=new Map,d=new Map,p=!1;for(let e in o){let t=o[e],l=null!==c?c[e]:null,i=t[0],s=(0,a.createRouterCacheKey)(i),h=u(t,l,r,n);f.set(e,h),h.needsDynamicRequest&&(p=!0);let y=h.node;if(null!==y){let t=new Map;t.set(s,y),d.set(e,t)}}return{route:e,node:{lazyData:null,rsc:t[1],prefetchRsc:null,head:s?r:null,prefetchHead:null,loading:t[3],parallelRoutes:d},needsDynamicRequest:p,children:f}}function l(e,t,r,n){return{route:e,node:function e(t,r,n,o){let u=t[1],l=null!==r?r[2]:null,i=new Map;for(let t in u){let r=u[t],s=null!==l?l[t]:null,c=r[0],f=(0,a.createRouterCacheKey)(c),d=e(r,void 0===s?null:s,n,o),p=new Map;p.set(f,d),i.set(t,p)}let s=0===i.size,c=null!==r?r[1]:null,f=null!==r?r[3]:null;return{lazyData:null,parallelRoutes:i,prefetchRsc:void 0!==c?c:null,prefetchHead:s?n:null,loading:void 0!==f?f:null,rsc:p(),head:s?p():null}}(e,t,r,n),needsDynamicRequest:!0,children:null}}function i(e,t){t.then(t=>{let{flightData:r}=t;if("string"!=typeof r){for(let t of r){let{segmentPath:r,tree:n,seedData:u,head:l}=t;u&&function(e,t,r,n,u){let l=e;for(let e=0;e{s(e,t)})}function s(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)c(e.route,r,t);else for(let e of n.values())s(e,t);e.needsDynamicRequest=!1}function c(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],u=o.get(e);if(void 0===u)continue;let l=t[0],i=(0,a.createRouterCacheKey)(l),s=u.get(i);void 0!==s&&c(t,s,r)}let u=t.rsc;d(u)&&(null===r?u.resolve(null):u.reject(r));let l=t.head;d(l)&&l.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=f,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41893:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createSeededPrefetchCacheEntry:function(){return s},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let n=r(94091),o=r(4445),a=r(28455);function u(e,t,r){let n=e.pathname;return(t&&(n+=e.search),r)?""+r+"%"+n:n}function l(e,t,r){return u(e,t===o.PrefetchKind.FULL,r)}function i(e){let{url:t,nextUrl:r,tree:n,prefetchCache:a,kind:l,allowAliasing:i=!0}=e,s=function(e,t,r,n,a){for(let l of(void 0===t&&(t=o.PrefetchKind.TEMPORARY),[r,null])){let r=u(e,!0,l),i=u(e,!1,l),s=e.search?r:i,c=n.get(s);if(c&&a){if(c.url.pathname===e.pathname&&c.url.search!==e.search)return{...c,aliased:!0};return c}let f=n.get(i);if(a&&e.search&&t!==o.PrefetchKind.FULL&&f&&!f.key.includes("%"))return{...f,aliased:!0}}if(t!==o.PrefetchKind.FULL&&a){for(let t of n.values())if(t.url.pathname===e.pathname&&!t.key.includes("%"))return{...t,aliased:!0}}}(t,l,r,a,i);return s?(s.status=h(s),s.kind!==o.PrefetchKind.FULL&&l===o.PrefetchKind.FULL&&s.data.then(e=>{if(!(Array.isArray(e.flightData)&&e.flightData.some(e=>e.isRootRender&&null!==e.seedData)))return c({tree:n,url:t,nextUrl:r,prefetchCache:a,kind:null!=l?l:o.PrefetchKind.TEMPORARY})}),l&&s.kind===o.PrefetchKind.TEMPORARY&&(s.kind=l),s):c({tree:n,url:t,nextUrl:r,prefetchCache:a,kind:l||o.PrefetchKind.TEMPORARY})}function s(e){let{nextUrl:t,tree:r,prefetchCache:n,url:a,data:u,kind:i}=e,s=u.couldBeIntercepted?l(a,i,t):l(a,i),c={treeAtTimeOfPrefetch:r,data:Promise.resolve(u),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:-1,key:s,status:o.PrefetchCacheEntryStatus.fresh,url:a};return n.set(s,c),c}function c(e){let{url:t,kind:r,tree:u,nextUrl:i,prefetchCache:s}=e,c=l(t,r),f=a.prefetchQueue.enqueue(()=>(0,n.fetchServerResponse)(t,{flightRouterState:u,nextUrl:i,prefetchKind:r}).then(e=>{let r;if(e.couldBeIntercepted&&(r=function(e){let{url:t,nextUrl:r,prefetchCache:n,existingCacheKey:o}=e,a=n.get(o);if(!a)return;let u=l(t,a.kind,r);return n.set(u,{...a,key:u}),n.delete(o),u}({url:t,existingCacheKey:c,nextUrl:i,prefetchCache:s})),e.prerendered){let t=s.get(null!=r?r:c);t&&(t.kind=o.PrefetchKind.FULL,-1!==e.staleTime&&(t.staleTime=e.staleTime))}return e})),d={treeAtTimeOfPrefetch:u,data:f,kind:r,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:c,status:o.PrefetchCacheEntryStatus.fresh,url:t};return s.set(c,d),d}function f(e){for(let[t,r]of e)h(r)===o.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("0"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:r,lastUsedTime:n,staleTime:a}=e;return -1!==a?Date.now(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(25404);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];for(let a in r){let[u,l]=r[a],i=t.parallelRoutes.get(a);if(!i)continue;let s=(0,n.createRouterCacheKey)(u),c=i.get(s);if(!c)continue;let f=e(c,l,o+"/"+s);if(f)return f}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84183:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e(t){let[r,o]=t;if(Array.isArray(r)&&("di"===r[2]||"ci"===r[2])||"string"==typeof r&&(0,n.isInterceptionRouteAppPath)(r))return!0;if(o){for(let t in o)if(e(o[t]))return!0}return!1}}});let n=r(68456);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmrRefreshReducer",{enumerable:!0,get:function(){return n}}),r(94091),r(13436),r(1053),r(76449),r(52603),r(17344),r(20655),r(13423),r(69786),r(50941);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleExternalUrl:function(){return v},navigateReducer:function(){return function e(t,r){let{url:P,isExternalUrl:E,navigateType:O,shouldScroll:R,allowAliasing:S}=r,j={},{hash:w}=P,T=(0,o.createHrefFromUrl)(P),M="push"===O;if((0,g.prunePrefetchCache)(t.prefetchCache),j.preserveCustomHistoryState=!1,j.pendingPush=M,E)return v(t,j,P.toString(),M);if(document.getElementById("__next-page-redirect"))return v(t,j,T,M);let x=(0,g.getOrCreatePrefetchCacheEntry)({url:P,nextUrl:t.nextUrl,tree:t.tree,prefetchCache:t.prefetchCache,allowAliasing:S}),{treeAtTimeOfPrefetch:A,data:C}=x;return d.prefetchQueue.bump(C),C.then(d=>{let{flightData:g,canonicalUrl:E,postponed:O}=d,S=!1;if(x.lastUsedTime||(x.lastUsedTime=Date.now(),S=!0),"string"==typeof g)return v(t,j,g,M);let C=E?(0,o.createHrefFromUrl)(E):T;if(w&&t.canonicalUrl.split("#",1)[0]===C.split("#",1)[0])return j.onlyHashChange=!0,j.canonicalUrl=C,j.shouldScroll=R,j.hashFragment=w,j.scrollableSegments=[],(0,c.handleMutable)(t,j);if(x.aliased){let n=(0,_.handleAliasedPrefetchEntry)(t,g,P,j);return!1===n?e(t,{...r,allowAliasing:!1}):n}let k=t.tree,D=t.cache,N=[];for(let e of g){let{pathToSegment:r,seedData:o,head:c,isHeadPartial:d,isRootRender:g}=e,_=e.tree,E=["",...r],R=(0,u.applyRouterStatePatchToTree)(E,k,_,T);if(null===R&&(R=(0,u.applyRouterStatePatchToTree)(E,A,_,T)),null!==R){if((0,i.isNavigatingToNewRootLayout)(k,R))return v(t,j,T,M);if(o&&g&&O){let e=(0,y.updateCacheNodeOnNavigation)(D,k,_,o,c,d);if(null!==e){R=e.route;let r=e.node;if(null!==r&&(j.cache=r),e.needsDynamicRequest){let r=(0,n.fetchServerResponse)(P,{flightRouterState:k,nextUrl:t.nextUrl});(0,y.listenForDynamicRequest)(e,r)}}else R=_}else{let t=(0,p.createEmptyCacheNode)(),n=!1;x.status!==s.PrefetchCacheEntryStatus.stale||S?n=(0,f.applyFlightData)(D,t,e,x):(n=function(e,t,r,n){let o=!1;for(let a of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,b.clearCacheNodeDataForSegmentPath)(e,t,a),o=!0;return o}(t,D,r,_),x.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(E,k)?(t.rsc=D.rsc,t.prefetchRsc=D.prefetchRsc,(0,a.invalidateCacheBelowFlightSegmentPath)(t,D,r),j.cache=t):n&&(j.cache=t,D=t)}for(let e of(k=R,m(_))){let t=[...r,...e];t[t.length-1]!==h.DEFAULT_SEGMENT_KEY&&N.push(t)}}}return j.patchedTree=k,j.canonicalUrl=C,j.scrollableSegments=N,j.hashFragment=w,j.shouldScroll=R,(0,c.handleMutable)(t,j)},()=>t)}}});let n=r(94091),o=r(13436),a=r(65411),u=r(1053),l=r(98500),i=r(76449),s=r(4445),c=r(17344),f=r(20655),d=r(28455),p=r(13423),h=r(36090),y=r(93223),g=r(41893),b=r(58227),_=r(12344);function v(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,c.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}r(85245),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28455:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return a},prefetchReducer:function(){return u}});let n=r(7891),o=r(41893),a=new n.PromiseQueue(5),u=function(e,t){(0,o.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;return(0,o.getOrCreatePrefetchCacheEntry)({url:r,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,allowAliasing:!0}),e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let n=r(94091),o=r(13436),a=r(1053),u=r(76449),l=r(52603),i=r(17344),s=r(30223),c=r(13423),f=r(69786),d=r(50941),p=r(91387);function h(e,t){let{origin:r}=t,h={},y=e.canonicalUrl,g=e.tree;h.preserveCustomHistoryState=!1;let b=(0,c.createEmptyCacheNode)(),_=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return b.lazyData=(0,n.fetchServerResponse)(new URL(y,r),{flightRouterState:[g[0],g[1],g[2],"refetch"],nextUrl:_?e.nextUrl:null}),b.lazyData.then(async r=>{let{flightData:n,canonicalUrl:c}=r;if("string"==typeof n)return(0,l.handleExternalUrl)(e,h,n,e.pushRef.pendingPush);for(let r of(b.lazyData=null,n)){let{tree:n,seedData:i,head:d,isRootRender:v}=r;if(!v)return console.log("REFRESH FAILED"),e;let m=(0,a.applyRouterStatePatchToTree)([""],g,n,e.canonicalUrl);if(null===m)return(0,f.handleSegmentMismatch)(e,t,n);if((0,u.isNavigatingToNewRootLayout)(g,m))return(0,l.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let P=c?(0,o.createHrefFromUrl)(c):void 0;if(c&&(h.canonicalUrl=P),null!==i){let e=i[1],t=i[3];b.rsc=e,b.prefetchRsc=null,b.loading=t,(0,s.fillLazyItemsTillLeafWithHead)(b,void 0,n,i,d),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:m,updatedCache:b,includeNextUrl:_,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=b,h.patchedTree=m,g=m}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return a}});let n=r(13436),o=r(10845);function a(e,t){var r;let{url:a,tree:u}=t,l=(0,n.createHrefFromUrl)(a),i=u||e.tree,s=e.cache;return{canonicalUrl:l,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:s,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(i))?r:a.pathname}}r(93223),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return M}});let n=r(89603),o=r(33355),a=r(2836),u=r(4445),l=r(50630),i=r(13436),s=r(52603),c=r(1053),f=r(76449),d=r(17344),p=r(30223),h=r(13423),y=r(50941),g=r(69786),b=r(91387),_=r(41648),v=r(19100),m=r(77563),P=r(41893),E=r(51129),O=r(26003),R=r(725),{createFromFetch:S,createTemporaryReferenceSet:j,encodeReply:w}=r(34979);async function T(e,t,r){let u,i,{actionId:s,actionArgs:c}=r,f=j(),d=(0,R.extractInfoFromServerReferenceId)(s),p="use-cache"===d.type?(0,R.omitUnusedArgs)(c,d):c,h=await w(p,{temporaryReferences:f}),y=await fetch("",{method:"POST",headers:{Accept:a.RSC_CONTENT_TYPE_HEADER,[a.ACTION_HEADER]:s,[a.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[a.NEXT_URL]:t}:{}},body:h}),g=y.headers.get("x-action-redirect"),[b,v]=(null==g?void 0:g.split(";"))||[];switch(v){case"push":u=m.RedirectType.push;break;case"replace":u=m.RedirectType.replace;break;default:u=void 0}let P=!!y.headers.get(a.NEXT_IS_PRERENDER_HEADER);try{let e=JSON.parse(y.headers.get("x-action-revalidated")||"[[],0,0]");i={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){i={paths:[],tag:!1,cookie:!1}}let E=b?(0,l.assignLocation)(b,new URL(e.canonicalUrl,window.location.href)):void 0,O=y.headers.get("content-type");if(null==O?void 0:O.startsWith(a.RSC_CONTENT_TYPE_HEADER)){let e=await S(Promise.resolve(y),{callServer:n.callServer,findSourceMapURL:o.findSourceMapURL,temporaryReferences:f});return b?{actionFlightData:(0,_.normalizeFlightData)(e.f),redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}:{actionResult:e.a,actionFlightData:(0,_.normalizeFlightData)(e.f),redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}}if(y.status>=400)throw Error("text/plain"===O?await y.text():"An unexpected response was received from the server.");return{redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}}function M(e,t){let{resolve:r,reject:n}=t,o={},a=e.tree;o.preserveCustomHistoryState=!1;let l=e.nextUrl&&(0,y.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return T(e,l,t).then(async y=>{let _,{actionResult:R,actionFlightData:S,redirectLocation:j,redirectType:w,isPrerender:T,revalidatedParts:M}=y;if(j&&(w===m.RedirectType.replace?(e.pushRef.pendingPush=!1,o.pendingPush=!1):(e.pushRef.pendingPush=!0,o.pendingPush=!0),_=(0,i.createHrefFromUrl)(j,!1),o.canonicalUrl=_),!S)return(r(R),j)?(0,s.handleExternalUrl)(e,o,j.href,e.pushRef.pendingPush):e;if("string"==typeof S)return r(R),(0,s.handleExternalUrl)(e,o,S,e.pushRef.pendingPush);let x=M.paths.length>0||M.tag||M.cookie;for(let n of S){let{tree:u,seedData:i,head:d,isRootRender:y}=n;if(!y)return console.log("SERVER ACTION APPLY FAILED"),r(R),e;let v=(0,c.applyRouterStatePatchToTree)([""],a,u,_||e.canonicalUrl);if(null===v)return r(R),(0,g.handleSegmentMismatch)(e,t,u);if((0,f.isNavigatingToNewRootLayout)(a,v))return r(R),(0,s.handleExternalUrl)(e,o,_||e.canonicalUrl,e.pushRef.pendingPush);if(null!==i){let t=i[1],r=(0,h.createEmptyCacheNode)();r.rsc=t,r.prefetchRsc=null,r.loading=i[3],(0,p.fillLazyItemsTillLeafWithHead)(r,void 0,u,i,d),o.cache=r,o.prefetchCache=new Map,x&&await (0,b.refreshInactiveParallelSegments)({state:e,updatedTree:v,updatedCache:r,includeNextUrl:!!l,canonicalUrl:o.canonicalUrl||e.canonicalUrl})}o.patchedTree=v,a=v}return j&&_?(x||((0,P.createSeededPrefetchCacheEntry)({url:j,data:{flightData:S,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:e.tree,prefetchCache:e.prefetchCache,nextUrl:e.nextUrl,kind:T?u.PrefetchKind.FULL:u.PrefetchKind.AUTO}),o.prefetchCache=e.prefetchCache),n((0,v.getRedirectError)((0,O.hasBasePath)(_)?(0,E.removeBasePath)(_):_,w||m.RedirectType.push))):r(R),(0,d.handleMutable)(e,o)},t=>(n(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86976:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return c}});let n=r(13436),o=r(1053),a=r(76449),u=r(52603),l=r(20655),i=r(17344),s=r(13423);function c(e,t){let{serverResponse:{flightData:r,canonicalUrl:c}}=t,f={};if(f.preserveCustomHistoryState=!1,"string"==typeof r)return(0,u.handleExternalUrl)(e,f,r,e.pushRef.pendingPush);let d=e.tree,p=e.cache;for(let t of r){let{segmentPath:r,tree:i}=t,h=(0,o.applyRouterStatePatchToTree)(["",...r],d,i,e.canonicalUrl);if(null===h)return e;if((0,a.isNavigatingToNewRootLayout)(d,h))return(0,u.handleExternalUrl)(e,f,e.canonicalUrl,e.pushRef.pendingPush);let y=c?(0,n.createHrefFromUrl)(c):void 0;y&&(f.canonicalUrl=y);let g=(0,s.createEmptyCacheNode)();(0,l.applyFlightData)(p,g,t),f.patchedTree=h,f.cache=g,p=g,d=h}return(0,i.handleMutable)(e,f)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},725:(e,t)=>{"use strict";function r(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function n(e,t){let r=Array(e.length);for(let n=0;n=6&&t.hasRestArgs)&&(r[n]=e[n]);return r}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractInfoFromServerReferenceId:function(){return r},omitUnusedArgs:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91387:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,r){let[n,o,,u]=t;for(let l in n.includes(a.PAGE_SEGMENT_KEY)&&"refresh"!==u&&(t[2]=r,t[3]="refresh"),o)e(o[l],r)}},refreshInactiveParallelSegments:function(){return u}});let n=r(20655),o=r(94091),a=r(36090);async function u(e){let t=new Set;await l({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function l(e){let{state:t,updatedTree:r,updatedCache:a,includeNextUrl:u,fetchedSegments:i,rootTree:s=r,canonicalUrl:c}=e,[,f,d,p]=r,h=[];if(d&&d!==c&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),{flightRouterState:[s[0],s[1],s[2],"refetch"],nextUrl:u?t.nextUrl:null}).then(e=>{let{flightData:t}=e;if("string"!=typeof t)for(let e of t)(0,n.applyFlightData)(a,a,e)});h.push(e)}for(let e in f){let r=l({state:t,updatedTree:f[e],updatedCache:a,includeNextUrl:u,fetchedSegments:i,rootTree:s,canonicalUrl:c});h.push(r)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HMR_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return n},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return o},ACTION_SERVER_ACTION:function(){return i},ACTION_SERVER_PATCH:function(){return a},PrefetchCacheEntryStatus:function(){return c},PrefetchKind:function(){return s}});let r="refresh",n="navigate",o="restore",a="server-patch",u="prefetch",l="hmr-refresh",i="server-action";var s=function(e){return e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary",e}({}),c=function(e){return e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(4445),o=r(52603),a=r(86976),u=r(51752),l=r(25025),i=r(28455),s=r(77359),c=r(48514),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,a.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,u.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,l.refreshReducer)(e,t);case n.ACTION_HMR_REFRESH:return(0,s.hmrRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,c.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[a,u]=r,[l,i]=t;return(0,o.matchSegment)(l,a)?!(t.length<=2)&&e((0,n.getNextFlightSegmentPath)(t),u[i]):!!Array.isArray(l)}}});let n=r(41648),o=r(54682);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82633:(e,t)=>{"use strict";function r(e,t){let r=new URL(e);return r.search="",{href:r.href,nextUrl:t}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createCacheKey",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{EntryStatus:function(){return c},readExactRouteCacheEntry:function(){return y},readRouteCacheEntry:function(){return g},readSegmentCacheEntry:function(){return b},requestRouteCacheEntryFromCache:function(){return v},requestSegmentEntryFromCache:function(){return m},waitForSegmentCacheEntry:function(){return _}});let n=r(2836),o=r(94091),a=r(48592),u=r(48127),l=r(13436),i=r(87864),s=r(61096);var c=function(e){return e[e.Pending=0]="Pending",e[e.Rejected=1]="Rejected",e[e.Fulfilled=2]="Fulfilled",e}({});let f=(0,i.createTupleMap)(),d=(0,s.createLRU)(0xa00000,function(e){let t=e.keypath;null!==t&&(e.keypath=null,E(e),f.delete(t))}),p=new Map,h=(0,s.createLRU)(0x3200000,function(e){let t=e.key;null!==t&&(e.key=null,P(e),p.delete(t))});function y(e,t,r){let n=null===r?[t]:[t,r],o=f.get(n);if(null!==o){if(o.staleAt>e)return d.put(o),o;E(o),f.delete(n),d.delete(o)}return null}function g(e,t){let r=y(e,t.href,null);return null===r||r.couldBeIntercepted?y(e,t.href,t.nextUrl):r}function b(e,t){let r=p.get(t);if(void 0!==r){if(r.staleAt>e)return h.put(r),r;P(r),p.delete(t),h.delete(r)}return null}function _(e){let t=e.promise;return null===t&&(t=e.promise=function(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}()),t.promise}function v(e,t){let r=t.key,n=y(e,r.href,null);if(null!==n&&!n.couldBeIntercepted)return n;let o=y(e,r.href,r.nextUrl);if(null!==o)return o;let u={canonicalUrl:null,status:0,blockedTasks:null,tree:null,head:null,isHeadPartial:!0,staleAt:e+6e4,couldBeIntercepted:!0,keypath:null,next:null,prev:null,size:0};(0,a.spawnPrefetchSubtask)(S(u,t));let l=null===r.nextUrl?[r.href]:[r.href,r.nextUrl];return f.set(l,u),u.keypath=l,d.put(u),u}function m(e,t,r,n,o){let u=b(e,n);if(null!==u)return u;let l={status:0,rsc:null,loading:null,staleAt:r.staleAt,isPartial:!0,promise:null,key:null,next:null,prev:null,size:0};return(0,a.spawnPrefetchSubtask)(j(r,l,t.key,n,o)),p.set(n,l),l.key=n,h.put(l),l}function P(e){0===e.status&&null!==e.promise&&(e.promise.resolve(null),e.promise=null)}function E(e){let t=e.blockedTasks;if(null!==t){for(let e of t)(0,a.pingPrefetchTask)(e);e.blockedTasks=null}}function O(e,t){e.status=1,e.staleAt=t,E(e)}function R(e,t){e.status=1,e.staleAt=t,null!==e.promise&&(e.promise.resolve(null),e.promise=null)}async function S(e,t){let r=t.key,a=r.href,i=r.nextUrl;try{var s,c,p,h;let t=await w(a,"/_tree",i);if(!t||!t.ok||204===t.status||!t.body){O(e,Date.now()+1e4);return}let r=T(t.body,d,e),y=await (0,o.createFromNextReadableStream)(r);if(y.buildId!==(0,u.getAppBuildId)()){O(e,Date.now()+1e4);return}let g=t.redirected?(0,l.createHrefFromUrl)((0,o.urlToUrlWithoutFlightMarker)(t.url)):a,b=t.headers.get("vary"),_=null!==b&&b.includes(n.NEXT_URL);if(s=y.tree,c=y.head,p=y.isHeadPartial,h=Date.now()+y.staleTime,e.status=2,e.tree=s,e.head=c,e.isHeadPartial=p,e.staleAt=h,e.couldBeIntercepted=_,e.canonicalUrl=g,E(e),!_&&null!==i){let t=[a,i];if(f.get(t)===e){f.delete(t);let r=[a];f.set(r,e),e.keypath=r}}}catch(t){O(e,Date.now()+1e4)}}async function j(e,t,r,n,a){let l=r.href;try{var i,s,c,f;let d=await w(l,""===a?n:n+"."+a,r.nextUrl);if(!d||!d.ok||204===d.status||!d.body){R(t,Date.now()+1e4);return}let p=T(d.body,h,t),y=await (0,o.createFromNextReadableStream)(p);if(y.buildId!==(0,u.getAppBuildId)()){R(t,Date.now()+1e4);return}i=y.rsc,s=y.loading,c=e.staleAt,f=y.isPartial,t.status=2,t.rsc=i,t.loading=s,t.staleAt=c,t.isPartial=f,null!==t.promise&&(t.promise.resolve(t),t.promise=null)}catch(e){R(t,Date.now()+1e4)}}async function w(e,t,r){let u={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_PREFETCH_HEADER]:"1",[n.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:t};null!==r&&(u[n.NEXT_URL]=r);let l=(0,o.createFetch)(new URL(e),u,"low");(0,a.trackPrefetchRequestBandwidth)(l);let i=await l,s=i.headers.get("content-type"),c=s&&s.startsWith(n.RSC_CONTENT_TYPE_HEADER);return i.ok&&c?i:null}function T(e,t,r){let n=0,o=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:a,value:u}=await o.read();if(!a){e.enqueue(u),n+=u.byteLength,t.updateSize(r,n);continue}return}}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61096:(e,t)=>{"use strict";function r(e,t){let r=null,o=!1,a=0;function u(e){let t=e.next,n=e.prev;null!==t&&null!==n&&(a-=e.size,e.next=null,e.prev=null,r===e?r=t===r?null:t:(n.next=t,t.prev=n))}function l(){o||a<=e||(o=!0,n(i))}function i(){o=!1;let n=.9*e;for(;a>n&&null!==r;){let e=r.prev;u(e),t(e)}}return{put:function(e){if(r===e)return;let t=e.prev,n=e.next;if(null===n||null===t?(a+=e.size,l()):(t.next=n,n.prev=t),null===r)e.prev=e,e.next=e;else{let t=r.prev;e.prev=t,t.next=e,e.next=r,r.prev=e}r=e},delete:u,updateSize:function(e,t){if(null===e.next)return;let r=e.size;e.size=t,a=a-r+t,l()}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createLRU",{enumerable:!0,get:function(){return r}});let n="function"==typeof requestIdleCallback?requestIdleCallback:e=>setTimeout(e,0);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NavigationResultTag:function(){return i},navigate:function(){return c}});let n=r(94091),o=r(93223),a=r(13436),u=r(13099),l=r(82633);var i=function(e){return e[e.MPA=0]="MPA",e[e.Success=1]="Success",e[e.NoOp=2]="NoOp",e[e.Async=3]="Async",e}({});let s={tag:2,data:null};function c(e,t,r,a){let i=Date.now(),c=(0,l.createCacheKey)(e.href,a),p=(0,u.readRouteCacheEntry)(i,c);if(null!==p&&p.status===u.EntryStatus.Fulfilled){let l=function e(t,r){let n={},o={},a=r.slots;if(null!==a)for(let r in a){let u=e(t,a[r]);n[r]=u.flightRouterState,o[r]=u.seedData}let l=null,i=null,s=!0,c=(0,u.readSegmentCacheEntry)(t,r.path);if(null!==c)switch(c.status){case u.EntryStatus.Fulfilled:l=c.rsc,i=c.loading,s=c.isPartial;break;case u.EntryStatus.Pending:{let e=(0,u.waitForSegmentCacheEntry)(c);l=e.then(e=>null!==e?e.rsc:null),i=e.then(e=>null!==e?e.loading:null),s=!0}case u.EntryStatus.Rejected:}let f=r.extra,d=f[0];return{flightRouterState:[d,n,null,null,f[1]],seedData:[d,l,o,i,s]}}(i,p.tree),c=l.flightRouterState,d=l.seedData;return function(e,t,r,a,u,l,i,c,d){let p=(0,o.updateCacheNodeOnNavigation)(r,a,u,l,i,c);if(null!==p){if(p.needsDynamicRequest){let r=(0,n.fetchServerResponse)(e,{flightRouterState:a,nextUrl:t});(0,o.listenForDynamicRequest)(p,r)}return f(p,r,d)}return s}(e,a,t,r,c,d,p.head,p.isHeadPartial,p.canonicalUrl)}return{tag:3,data:d(e,a,t,r)}}function f(e,t,r){let n=e.node;return{tag:1,data:{flightRouterState:e.route,cacheNode:null!==n?n:t,canonicalUrl:r}}}async function d(e,t,r,u){let l=(0,n.fetchServerResponse)(e,{flightRouterState:u,nextUrl:t}),{flightData:i,canonicalUrl:c}=await l;if("string"==typeof i)return{tag:0,data:i};let d=function(e,t){let r=e;for(let{segmentPath:n,tree:o}of t){let t=r!==e;r=function e(t,r,n,o,a){if(a===n.length)return r;let u=n[a],l=t[1],i={};for(let t in l)if(t===u){let u=l[t];i[t]=e(u,r,n,o,a+2)}else i[t]=l[t];if(o)return t[1]=i,t;let s=[t[0],i];return 2 in t&&(s[2]=t[2]),3 in t&&(s[3]=t[3]),4 in t&&(s[4]=t[4]),s}(r,o,n,t,0)}return r}(u,i),p=(0,a.createHrefFromUrl)(c||e),h=(0,o.updateCacheNodeOnNavigation)(r,u,d,null,null,!0);return null!==h?(h.needsDynamicRequest&&(0,o.listenForDynamicRequest)(h,l),f(h,r,p)):s}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prefetch",{enumerable:!0,get:function(){return u}});let n=r(13423),o=r(82633),a=r(48592);function u(e,t){let r=(0,n.createPrefetchURL)(e);if(null===r)return;let u=(0,o.createCacheKey)(r.href,t);(0,a.schedulePrefetchTask)(u)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{pingPrefetchTask:function(){return y},schedulePrefetchTask:function(){return s},spawnPrefetchSubtask:function(){return p},trackPrefetchRequestBandwidth:function(){return f}});let n=r(13099),o="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e})),a=[],u=0,l=0,i=!1;function s(e){_(a,{key:e,sortId:l++,isBlocked:!1,_heapIndex:-1}),c()}function c(){!i&&u<3&&(i=!0,o(g))}function f(e){u++,e.then(h,h)}let d=()=>{};function p(e){e.then(d,d)}function h(){u--,c()}function y(e){e.isBlocked&&(e.isBlocked=!1,_(a,e),c())}function g(){i=!1;let e=Date.now(),t=v(a);for(;null!==t&&u<3;){let r=(0,n.requestRouteCacheEntryFromCache)(e,t);switch(function(e,t,r){switch(r.status){case n.EntryStatus.Pending:{let e=r.blockedTasks;return null===e?r.blockedTasks=new Set([t]):e.add(t),1}case n.EntryStatus.Rejected:return 2;case n.EntryStatus.Fulfilled:{if(!(u<3))return 0;let o=r.tree;return(0,n.requestSegmentEntryFromCache)(e,t,r,o.path,""),function e(t,r,o,a){if(null!==a.slots)for(let l in a.slots){let i=a.slots[l];if(!(u<3))return 0;{let e=i.path,a=i.token;(0,n.requestSegmentEntryFromCache)(t,r,o,e,a)}if(0===e(t,r,o,i))return 0}return 2}(e,t,r,o)}default:return 2}}(e,t,r)){case 0:default:return;case 1:t.isBlocked=!0,m(a),t=v(a);continue;case 2:m(a),t=v(a);continue}}}function b(e,t){return t.sortId-e.sortId}function _(e,t){let r=e.length;e.push(t),t._heapIndex=r,function(e,t,r){let n=r;for(;n>0;){let r=n-1>>>1,o=e[r];if(!(b(o,t)>0))return;e[r]=t,t._heapIndex=r,e[n]=o,o._heapIndex=n,n=r}}(e,t,r)}function v(e){return 0===e.length?null:e[0]}function m(e){if(0===e.length)return null;let t=e[0];t._heapIndex=-1;let r=e.pop();return r!==t&&(e[0]=r,r._heapIndex=0,function(e,t,r){let n=0,o=e.length,a=o>>>1;for(;nb(a,t))ub(l,a)?(e[n]=l,l._heapIndex=n,e[u]=t,t._heapIndex=u,n=u):(e[n]=a,a._heapIndex=n,e[r]=t,t._heapIndex=r,n=r);else{if(!(ub(l,t)))return;e[n]=l,l._heapIndex=n,e[u]=t,t._heapIndex=u,n=u}}}(e,r,0)),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87864:(e,t)=>{"use strict";function r(){let e={parent:null,key:null,hasValue:!1,value:null,map:null},t=null,r=null;function n(n){if(r===n)return t;let o=e;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{StaticGenBailoutError:function(){return n},isStaticGenBailoutError:function(){return o}});let r="NEXT_STATIC_GEN_BAILOUT";class n extends Error{constructor(...e){super(...e),this.code=r}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},882:(e,t,r)=>{"use strict";function n(){throw Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled.")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(62469).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return r}});let r={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,u.isNextRouterError)(t)||(0,a.isBailoutToCSRError)(t)||(0,n.isDynamicUsageError)(t)||(0,o.isPostpone)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(97515),o=r(17200),a=r(93719),u=r(90179);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useReducer:function(){return u},useUnwrapState:function(){return a}});let n=r(29955)._(r(12115)),o=r(32707);function a(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}function u(e){let[t,r]=n.default.useState(e.state);return[t,(0,n.useCallback)(t=>{e.dispatch(t,r)},[e])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41648:(e,t)=>{"use strict";function r(e){var t;let[r,n,o,a]=e.slice(-4),u=e.slice(0,-4);return{pathToSegment:u.slice(0,-1),segmentPath:u,segment:null!=(t=u[u.length-1])?t:"",tree:r,seedData:n,head:o,isHeadPartial:a,isRootRender:4===e.length}}function n(e){return e.slice(2)}function o(e){return"string"==typeof e?e:e.map(r)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getFlightDataPartsFromPath:function(){return r},getNextFlightSegmentPath:function(){return n},normalizeFlightData:function(){return o}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(18912);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34300:(e,t)=>{"use strict";function r(e,t){switch(typeof e){case"object":if(null===e)return"null";if(Array.isArray(e)){let n="[";if(t<1)for(let o=0;o0?"...":"";return n+"]"}{if(e instanceof Error)return e+"";let n=Object.keys(e),o="{";if(t<1)for(let a=0;a0?"...":"";return o+"}"}case"string":return JSON.stringify(e);default:return String(e)}}function n(e){let t,n;"string"==typeof e[0]?(t=e[0],n=1):(t="",n=0);let o="",a=!1;for(let u=0;u=e.length){o+=l;continue}let i=t[++u];switch(i){case"c":o=a?""+o+"]":"["+o,a=!a,n++;break;case"O":case"o":o+=r(e[n++],0);break;case"d":case"i":o+=parseInt(e[n++],10);break;case"f":o+=parseFloat(e[n++]);break;case"s":o+=String(e[n++]);break;default:o+="%"+i}}for(;n0?" ":"")+r(e[n],0);return o}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatConsoleArgs",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(61246),o=r(64046),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,n.removeTrailingSlash)(t)+r+a:t.endsWith("/")?""+t+r+a:t+"/"+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{onCaughtError:function(){return l},onUncaughtError:function(){return i}}),r(2100),r(57712);let n=r(90179),o=r(93719),a=r(67489),u=r(25194),l=(e,t)=>{(0,o.isBailoutToCSRError)(e)||(0,n.isNextRouterError)(e)||(0,u.originConsoleError)(e)},i=(e,t)=>{(0,o.isBailoutToCSRError)(e)||(0,n.isNextRouterError)(e)||(0,a.reportGlobalError)(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{window.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"onRecoverableError",{enumerable:!0,get:function(){return i}});let n=r(60306),o=r(93719),a=r(67489),u=r(2100),l=n._(r(69762)),i=(e,t)=>{let r=(0,l.default)(e)&&"cause"in e?e.cause:e,n=(0,u.getReactStitchedError)(r);(0,o.isBailoutToCSRError)(r)||(0,a.reportGlobalError)(n)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51129:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(26003),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97851:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var i=[],s=!1,c=-1;function f(){s&&n&&(s=!1,n.length?i=n.concat(i):c=-1,i.length&&d())}function d(){if(!s){var e=l(f);s=!0;for(var t=i.length;t;){for(n=i,i=[];++c1)for(var r=1;r{"use strict";function r(e,t){var r=e.length;for(e.push(t);0>>1,o=e[n];if(0>>1;na(i,r))sa(c,i)?(e[n]=c,e[s]=r,n=s):(e[n]=i,e[l]=r,n=l);else if(sa(c,r))e[n]=c,e[s]=r,n=s;else break}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var u,l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}var c=[],f=[],d=1,p=null,h=3,y=!1,g=!1,b=!1,_="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function P(e){for(var t=n(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,r(c,t);else break;t=n(f)}}function E(e){if(b=!1,P(e),!g){if(null!==n(c))g=!0,A();else{var t=n(f);null!==t&&C(E,t.startTime-e)}}}var O=!1,R=-1,S=5,j=-1;function w(){return!(t.unstable_now()-je&&w());){var l=p.callback;if("function"==typeof l){p.callback=null,h=p.priorityLevel;var i=l(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,P(e),r=!0;break t}p===n(c)&&o(c),P(e)}else o(c);p=n(c)}if(null!==p)r=!0;else{var s=n(f);null!==s&&C(E,s.startTime-e),r=!1}}break e}finally{p=null,h=a,y=!1}r=void 0}}finally{r?u():O=!1}}}if("function"==typeof m)u=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,u=function(){x.postMessage(null)}}else u=function(){_(T,0)};function A(){O||(O=!0,u())}function C(e,r){R=_(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||y||(g=!0,A())},t.unstable_forceFrameRate=function(e){0>e||125u?(e.sortIndex=a,r(f,e),null===n(c)&&e===n(f)&&(b?(v(R),R=-1):b=!0,C(E,a-u))):(e.sortIndex=l,r(c,e),g||y||(g=!0,A())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},31507:(e,t,r)=>{"use strict";e.exports=r(70576)},97515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicUsageError",{enumerable:!0,get:function(){return l}});let n=r(70406),o=r(93719),a=r(90179),u=r(76378),l=e=>(0,n.isDynamicServerError)(e)||(0,o.isBailoutToCSRError)(e)||(0,a.isNextRouterError)(e)||(0,u.isDynamicPostpone)(e)},69762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(79844);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+"")}},86213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MetadataBoundary:function(){return a},OutletBoundary:function(){return l},ViewportBoundary:function(){return u}});let n=r(80740),o={[n.METADATA_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.VIEWPORT_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.OUTLET_BOUNDARY_NAME]:function(e){let{children:t}=e;return t}},a=o[n.METADATA_BOUNDARY_NAME.slice(0)],u=o[n.VIEWPORT_BOUNDARY_NAME.slice(0)],l=o[n.OUTLET_BOUNDARY_NAME.slice(0)]},80740:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{METADATA_BOUNDARY_NAME:function(){return r},OUTLET_BOUNDARY_NAME:function(){return o},VIEWPORT_BOUNDARY_NAME:function(){return n}});let r="__next_metadata_boundary__",n="__next_viewport_boundary__",o="__next_outlet_boundary__"},32301:(e,t,r)=>{"use strict";var n=r(2818);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{atLeastOneTask:function(){return u},scheduleImmediate:function(){return a},scheduleOnNextTick:function(){return o},waitAtLeastOneReactRenderTask:function(){return l}});let o=e=>{Promise.resolve().then(()=>{n.nextTick(e)})},a=e=>{setImmediate(e)};function u(){return new Promise(e=>a(e))}function l(){return new Promise(e=>setImmediate(e))}},29126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});let n=r(52075)},84117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(83664).createAsyncLocalStorage)()},8140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=r(84117)},83664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return l}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let o="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new n}function u(e){return o?o.bind(e):n.bind(e)}function l(){return o?o.snapshot():function(e,...t){return e(...t)}}},76378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Postpone:function(){return O},abortAndThrowOnSynchronousRequestDataAccess:function(){return P},abortOnSynchronousPlatformIOAccess:function(){return v},accessedDynamicData:function(){return A},annotateDynamicAccess:function(){return U},consumeDynamicAccess:function(){return C},createDynamicTrackingState:function(){return f},createDynamicValidationState:function(){return d},createPostponedAbortSignal:function(){return N},formatDynamicAPIAccesses:function(){return k},getFirstDynamicReason:function(){return p},isDynamicPostpone:function(){return j},isPrerenderInterruptedError:function(){return x},markCurrentScopeAsDynamic:function(){return h},postponeWithTracking:function(){return R},throwIfDisallowedDynamic:function(){return W},throwToInterruptStaticGeneration:function(){return g},trackAllowedDynamicAccess:function(){return B},trackDynamicDataInDynamicRender:function(){return b},trackFallbackParamAccessed:function(){return y},trackSynchronousPlatformIOAccessInDev:function(){return m},trackSynchronousRequestDataAccessInDev:function(){return E},useDynamicRouteParams:function(){return I}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(12115)),o=r(70406),a=r(96830),u=r(5938),l=r(75861),i=r(3649),s=r(80740),c="function"==typeof n.default.unstable_postpone;function f(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicExpression:void 0,syncDynamicErrorWithStack:null}}function d(){return{hasSuspendedDynamic:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasSyncDynamicErrors:!1,dynamicErrors:[]}}function p(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function h(e,t,r){if((!t||"cache"!==t.type&&"unstable-cache"!==t.type)&&!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw new a.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(t){if("prerender-ppr"===t.type)R(e.route,r,t.dynamicTracking);else if("prerender-legacy"===t.type){t.revalidate=0;let n=new o.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}}function y(e,t){let r=u.workUnitAsyncStorage.getStore();r&&"prerender-ppr"===r.type&&R(e.route,t,r.dynamicTracking)}function g(e,t,r){let n=new o.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function b(e,t){t&&"cache"!==t.type&&"unstable-cache"!==t.type&&("prerender"===t.type||"prerender-legacy"===t.type)&&(t.revalidate=0)}function _(e,t,r){let n=M(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let o=r.dynamicTracking;o&&o.dynamicAccesses.push({stack:o.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function v(e,t,r,n){let o=n.dynamicTracking;return o&&null===o.syncDynamicErrorWithStack&&(o.syncDynamicExpression=t,o.syncDynamicErrorWithStack=r),_(e,t,n)}function m(e){e.prerenderPhase=!1}function P(e,t,r,n){let o=n.dynamicTracking;throw o&&null===o.syncDynamicErrorWithStack&&(o.syncDynamicExpression=t,o.syncDynamicErrorWithStack=r,!0===n.validating&&(o.syncDynamicLogged=!0)),_(e,t,n),M(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}let E=m;function O({reason:e,route:t}){let r=u.workUnitAsyncStorage.getStore();R(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function R(e,t,r){D(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),n.default.unstable_postpone(S(e,t))}function S(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function j(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&w(e.message)}function w(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===w(S("%%%","^^^")))throw Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js");let T="NEXT_PRERENDER_INTERRUPTED";function M(e){let t=Error(e);return t.digest=T,t}function x(e){return"object"==typeof e&&null!==e&&e.digest===T&&"name"in e&&"message"in e&&e instanceof Error}function A(e){return e.length>0}function C(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function k(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: -${t}`))}function D(){if(!c)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function N(e){D();let t=new AbortController;try{n.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}function U(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function I(e){if("undefined"==typeof window){let t=l.workAsyncStorage.getStore();if(t&&t.isStaticGeneration&&t.fallbackRouteParams&&t.fallbackRouteParams.size>0){let r=u.workUnitAsyncStorage.getStore();r&&("prerender"===r.type?n.default.use((0,i.makeHangingPromise)(r.renderSignal,e)):"prerender-ppr"===r.type?R(t.route,e,r.dynamicTracking):"prerender-legacy"===r.type&&g(e,t,r))}}}let L=/\n\s+at Suspense \(\)/,H=RegExp(`\\n\\s+at ${s.METADATA_BOUNDARY_NAME}[\\n\\s]`),F=RegExp(`\\n\\s+at ${s.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),$=RegExp(`\\n\\s+at ${s.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function B(e,t,r,n,o){if(!$.test(t)){if(H.test(t)){r.hasDynamicMetadata=!0;return}if(F.test(t)){r.hasDynamicViewport=!0;return}if(L.test(t)){r.hasSuspendedDynamic=!0;return}if(n.syncDynamicErrorWithStack||o.syncDynamicErrorWithStack){r.hasSyncDynamicErrors=!0;return}else{let n=function(e,t){let r=Error(e);return r.stack="Error: "+e+t,r}(`Route "${e}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`,t);r.dynamicErrors.push(n);return}}}function W(e,t,r,n){let o,u,l;if(r.syncDynamicErrorWithStack?(o=r.syncDynamicErrorWithStack,u=r.syncDynamicExpression,l=!0===r.syncDynamicLogged):n.syncDynamicErrorWithStack?(o=n.syncDynamicErrorWithStack,u=n.syncDynamicExpression,l=!0===n.syncDynamicLogged):(o=null,u=void 0,l=!1),t.hasSyncDynamicErrors&&o)throw l||console.error(o),new a.StaticGenBailoutError;let i=t.dynamicErrors;if(i.length){for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(68456);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},75861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(17828)},5938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return o},getPrerenderResumeDataCache:function(){return a},getRenderResumeDataCache:function(){return u},workUnitAsyncStorage:function(){return n.workUnitAsyncStorageInstance}});let n=r(74931);function o(e){let t=n.workUnitAsyncStorageInstance.getStore();if(t){if("request"===t.type)return t;if("prerender"===t.type||"prerender-ppr"===t.type||"prerender-legacy"===t.type)throw Error(`\`${e}\` cannot be called inside a prerender. This is a bug in Next.js.`);if("cache"===t.type)throw Error(`\`${e}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`);if("unstable-cache"===t.type)throw Error(`\`${e}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`)}throw Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`)}function a(e){return"prerender"===e.type||"prerender-ppr"===e.type?e.prerenderResumeDataCache:null}function u(e){return"prerender-legacy"!==e.type&&"cache"!==e.type&&"unstable-cache"!==e.type?"request"===e.type?e.renderResumeDataCache:e.prerenderResumeDataCache:null}},6431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return i}});let n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(n,u,l):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(12115));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}let a={current:null},u="function"==typeof n.cache?n.cache:e=>e,l=console.warn;function i(e){return function(...t){l(e(...t))}}u(e=>{try{l(a.current)}finally{a.current=null}})},3649:(e,t)=>{"use strict";function r(e,t){let r=new Promise((r,n)=>{e.addEventListener("abort",()=>{n(Error(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`))},{once:!0})});return r.catch(n),r}function n(){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"makeHangingPromise",{enumerable:!0,get:function(){return r}})},68456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return u},isInterceptionRouteAppPath:function(){return a}});let n=r(59259),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function u(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let u=t.split("/");if(u.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=u.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},17200:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isPostpone",{enumerable:!0,get:function(){return n}});let r=Symbol.for("react.postpone");function n(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}},25737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderParamsFromClient",{enumerable:!0,get:function(){return o}}),r(1042),r(64940);let n=r(91142);function o(e){return function(e){let t=a.get(e);if(t)return t;let r=Promise.resolve(e);return a.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}(e)}let a=new WeakMap},14383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createParamsFromClient:function(){return s},createPrerenderParamsForClientSegment:function(){return p},createServerParamsForMetadata:function(){return c},createServerParamsForRoute:function(){return f},createServerParamsForServerSegment:function(){return d}}),r(1042);let n=r(76378),o=r(5938),a=r(64940),u=r(91142),l=r(3649),i=r(6431);function s(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}r(32301);let c=d;function f(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}function d(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}function p(e,t){let r=o.workUnitAsyncStorage.getStore();if(r&&"prerender"===r.type){let n=t.fallbackRouteParams;if(n){for(let t in e)if(n.has(t))return(0,l.makeHangingPromise)(r.renderSignal,"`params`")}}return Promise.resolve(e)}function h(e,t,r){let o=t.fallbackRouteParams;if(o){let a=!1;for(let t in e)if(o.has(t)){a=!0;break}if(a)return"prerender"===r.type?function(e,t,r){let o=y.get(e);if(o)return o;let a=(0,l.makeHangingPromise)(r.renderSignal,"`params`");return y.set(e,a),Object.keys(e).forEach(e=>{u.wellKnownProperties.has(e)||Object.defineProperty(a,e,{get(){let o=(0,u.describeStringPropertyAccess)("params",e),a=b(t,o);(0,n.abortAndThrowOnSynchronousRequestDataAccess)(t,o,a,r)},set(t){Object.defineProperty(a,e,{value:t,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})}),a}(e,t.route,r):function(e,t,r,o){let a=y.get(e);if(a)return a;let l={...e},i=Promise.resolve(l);return y.set(e,i),Object.keys(e).forEach(a=>{u.wellKnownProperties.has(a)||(t.has(a)?(Object.defineProperty(l,a,{get(){let e=(0,u.describeStringPropertyAccess)("params",a);"prerender-ppr"===o.type?(0,n.postponeWithTracking)(r.route,e,o.dynamicTracking):(0,n.throwToInterruptStaticGeneration)(e,r,o)},enumerable:!0}),Object.defineProperty(i,a,{get(){let e=(0,u.describeStringPropertyAccess)("params",a);"prerender-ppr"===o.type?(0,n.postponeWithTracking)(r.route,e,o.dynamicTracking):(0,n.throwToInterruptStaticGeneration)(e,r,o)},set(e){Object.defineProperty(i,a,{value:e,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})):i[a]=e[a])}),i}(e,o,t,r)}return g(e)}let y=new WeakMap;function g(e){let t=y.get(e);if(t)return t;let r=Promise.resolve(e);return y.set(e,r),Object.keys(e).forEach(t=>{u.wellKnownProperties.has(t)||(r[t]=e[t])}),r}function b(e,t){let r=e?`Route "${e}" `:"This route ";return Error(`${r}used ${t}. \`params\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)}(0,i.createDedupedByCallsiteServerErrorLoggerDev)(b),(0,i.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t,r){let n=e?`Route "${e}" `:"This route ";return Error(`${n}used ${t}. \`params\` should be awaited before using its properties. The following properties were not available through enumeration because they conflict with builtin property names: ${function(e){switch(e.length){case 0:throw new a.InvariantError("Expected describeListOfPropertyNames to be called with a non-empty list of strings.");case 1:return`\`${e[0]}\``;case 2:return`\`${e[0]}\` and \`${e[1]}\``;default:{let t="";for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return o}}),r(1042);let n=r(91142);function o(e){return function(e){let t=a.get(e);if(t)return t;let r=Promise.resolve(e);return a.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}(e)}let a=new WeakMap},82130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createPrerenderSearchParamsForClientPage:function(){return p},createSearchParamsFromClient:function(){return c},createServerSearchParamsForMetadata:function(){return f},createServerSearchParamsForServerPage:function(){return d}});let n=r(1042),o=r(76378),a=r(5938),u=r(64940),l=r(3649),i=r(6431),s=r(91142);function c(e,t){let r=a.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(t,r)}return y(e,t)}r(32301);let f=d;function d(e,t){let r=a.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(t,r)}return y(e,t)}function p(e){if(e.forceStatic)return Promise.resolve({});let t=a.workUnitAsyncStorage.getStore();return t&&"prerender"===t.type?(0,l.makeHangingPromise)(t.renderSignal,"`searchParams`"):Promise.resolve({})}function h(e,t){return e.forceStatic?Promise.resolve({}):"prerender"===t.type?function(e,t){let r=g.get(t);if(r)return r;let a=(0,l.makeHangingPromise)(t.renderSignal,"`searchParams`"),u=new Proxy(a,{get(r,u,l){if(Object.hasOwn(a,u))return n.ReflectAdapter.get(r,u,l);switch(u){case"then":return(0,o.annotateDynamicAccess)("`await searchParams`, `searchParams.then`, or similar",t),n.ReflectAdapter.get(r,u,l);case"status":return(0,o.annotateDynamicAccess)("`use(searchParams)`, `searchParams.status`, or similar",t),n.ReflectAdapter.get(r,u,l);case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"catch":case"finally":case"toJSON":case"$$typeof":case"__esModule":return n.ReflectAdapter.get(r,u,l);default:if("string"==typeof u){let r=(0,s.describeStringPropertyAccess)("searchParams",u),n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}return n.ReflectAdapter.get(r,u,l)}},has(r,a){if("string"==typeof a){let r=(0,s.describeHasCheckingStringProperty)("searchParams",a),n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}return n.ReflectAdapter.has(r,a)},ownKeys(){let r="`{...searchParams}`, `Object.keys(searchParams)`, or similar",n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}});return g.set(t,u),u}(e.route,t):function(e,t){let r=g.get(e);if(r)return r;let a=Promise.resolve({}),u=new Proxy(a,{get(r,u,l){if(Object.hasOwn(a,u))return n.ReflectAdapter.get(r,u,l);switch(u){case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"catch":case"finally":case"toJSON":case"$$typeof":case"__esModule":return n.ReflectAdapter.get(r,u,l);case"then":{let r="`await searchParams`, `searchParams.then`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t);return}case"status":{let r="`use(searchParams)`, `searchParams.status`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t);return}default:if("string"==typeof u){let r=(0,s.describeStringPropertyAccess)("searchParams",u);e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t)}return n.ReflectAdapter.get(r,u,l)}},has(r,a){if("string"==typeof a){let r=(0,s.describeHasCheckingStringProperty)("searchParams",a);return e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t),!1}return n.ReflectAdapter.has(r,a)},ownKeys(){let r="`{...searchParams}`, `Object.keys(searchParams)`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t)}});return g.set(e,u),u}(e,t)}function y(e,t){return t.forceStatic?Promise.resolve({}):function(e,t){let r=g.get(e);if(r)return r;let n=Promise.resolve(e);return g.set(e,n),Object.keys(e).forEach(r=>{switch(r){case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"then":case"catch":case"finally":case"status":case"toJSON":case"$$typeof":case"__esModule":break;default:Object.defineProperty(n,r,{get(){let n=a.workUnitAsyncStorage.getStore();return(0,o.trackDynamicDataInDynamicRender)(t,n),e[r]},set(e){Object.defineProperty(n,r,{value:e,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})}}),n}(e,t)}let g=new WeakMap;function b(e,t){let r=e?`Route "${e}" `:"This route ";return Error(`${r}used ${t}. \`searchParams\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)}(0,i.createDedupedByCallsiteServerErrorLoggerDev)(b),(0,i.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t,r){let n=e?`Route "${e}" `:"This route ";return Error(`${n}used ${t}. \`searchParams\` should be awaited before using its properties. The following properties were not available through enumeration because they conflict with builtin or well-known property names: ${function(e){switch(e.length){case 0:throw new u.InvariantError("Expected describeListOfPropertyNames to be called with a non-empty list of strings.");case 1:return`\`${e[0]}\``;case 2:return`\`${e[0]}\` and \`${e[1]}\``;default:{let t="";for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{describeHasCheckingStringProperty:function(){return l},describeStringPropertyAccess:function(){return u},isRequestAPICallableInsideAfter:function(){return c},throwWithStaticGenerationBailoutError:function(){return i},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s},wellKnownProperties:function(){return f}});let n=r(96830),o=r(8140),a=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function u(e,t){return a.test(t)?`\`${e}.${t}\``:`\`${e}[${JSON.stringify(t)}]\``}function l(e,t){let r=JSON.stringify(t);return`\`Reflect.has(${e}, ${r})\`, \`${r} in ${e}\`, or similar`}function i(e,t){throw new n.StaticGenBailoutError(`Route ${e} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`)}function s(e,t){throw new n.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`)}function c(){let e=o.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}let f=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","toJSON","$$typeof","__esModule"])},1042:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},71394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return u},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return i},TemplateContext:function(){return l}});let n=r(60306)._(r(12115)),o=n.default.createContext(null),a=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(null),i=n.default.createContext(new Set)},18284:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},31233:(e,t)=>{"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},81147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(60306)._(r(12115)).default.createContext({})},58703:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return u},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(12115),o=(0,n.createContext)(null),a=(0,n.createContext)(null),u=(0,n.createContext)(null)},64940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super("Invariant: "+(e.endsWith(".")?e:e+".")+" This is a bug in Next.js.",t),this.name="InvariantError"}}},79844:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},32707:(e,t)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isThenable",{enumerable:!0,get:function(){return r}})},93719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},49066:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},6833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createMutableActionQueue",{enumerable:!0,get:function(){return s}});let n=r(4445),o=r(81677),a=r(12115),u=r(32707);function l(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?i({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:n.ACTION_REFRESH,origin:window.location.origin},t)))}async function i(e){let{actionQueue:t,action:r,setState:n}=e,o=t.state;t.pending=r;let a=r.payload,i=t.action(o,a);function s(e){r.discarded||(t.state=e,l(t,n),r.resolve(e))}(0,u.isThenable)(i)?i.then(s,e=>{l(t,n),r.reject(e)}):s(i)}function s(e){let t={state:e,dispatch:(e,r)=>(function(e,t,r){let o={resolve:r,reject:()=>{}};if(t.type!==n.ACTION_RESTORE){let e=new Promise((e,t)=>{o={resolve:e,reject:t}});(0,a.startTransition)(()=>{r(e)})}let u={payload:t,next:null,resolve:o.resolve,reject:o.reject};null===e.pending?(e.last=u,i({actionQueue:e,action:u,setState:r})):t.type===n.ACTION_NAVIGATE||t.type===n.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===n.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),i({actionQueue:e,action:u,setState:r})):(null!==e.last&&(e.last.next=u),e.last=u)})(t,e,r),action:async(e,t)=>(0,o.reducer)(e,t),pending:null,last:null};return t}},59377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(64046);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},59259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return u}});let n=r(49066),o=r(36090);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function u(e){return e.replace(/\.rsc($|\?)/,"$1")}},28344:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},94283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}});let r=/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i;function n(e){return r.test(e)}},64046:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},18912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(64046);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},61246:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},36090:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return u},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",u="__DEFAULT__"},4125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let n=r(29955)._(r(12115)),o=n.default.createContext(null);function a(e){let t=(0,n.useContext)(o);t&&t(e)}},42363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},58730:(e,t,r)=>{"use strict";var n=r(12115);function o(e){var t="https://react.dev/errors/"+e;if(1{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(59248)},47650:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(58730)},99062:(e,t,r)=>{"use strict";var n=r(47650),o={stream:!0},a=new Map;function u(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function l(){}function i(e){for(var t=e[1],n=[],o=0;os||35===s||114===s||120===s?(c=s,s=3,l++):(c=0,s=3);continue;case 2:44===(y=u[l++])?s=4:f=f<<4|(96u.length&&(y=-1)}var g=u.byteOffset+l;if(-1{"use strict";e.exports=r(99062)},34979:(e,t,r)=>{"use strict";e.exports=r(77197)},86897:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in n={},t)"key"!==a&&(n[a]=t[a]);else n=t;return{$$typeof:r,type:e,key:o,ref:void 0!==(t=n.ref)?t:null,props:n}}t.Fragment=n,t.jsx=o,t.jsxs=o},61426:(e,t,r)=>{"use strict";var n=r(2818),o=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,_={};function v(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||g}function m(){}function P(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var E=P.prototype=new m;E.constructor=P,b(E,v.prototype),E.isPureReactComponent=!0;var O=Array.isArray,R={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function j(e,t,r,n,a,u){return{$$typeof:o,type:e,key:t,ref:void 0!==(r=u.ref)?r:null,props:u}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function M(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function x(){}function A(e,t,r){if(null==e)return e;var n=[],u=0;return!function e(t,r,n,u,l){var i,s,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case a:d=!0;break;case h:return e((d=t._init)(t._payload),r,n,u,l)}}if(d)return l=l(t),d=""===u?"."+M(t,0):u,O(l)?(n="",null!=d&&(n=d.replace(T,"$&/")+"/"),e(l,r,n,"",function(e){return e})):null!=l&&(w(l)&&(i=l,s=n+(null==l.key||t&&t.key===l.key?"":(""+l.key).replace(T,"$&/")+"/")+d,l=j(i.type,s,void 0,void 0,void 0,i.props)),r.push(l)),1;d=0;var p=""===u?".":u+":";if(O(t))for(var g=0;g{"use strict";e.exports=r(61426)},95155:(e,t,r)=>{"use strict";e.exports=r(86897)},52075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return l}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let o="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new n}function u(e){return o?o.bind(e):n.bind(e)}function l(){return o?o.snapshot():function(e,...t){return e(...t)}}},17828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},74931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},72141:(e,t,r)=>{"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>n})},13523:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>o});var n=0;function o(e){return"__private_"+n+++"_"+e}},60306:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},29955:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1554-2ea0a7d1aa4bef3e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1554-2ea0a7d1aa4bef3e.js deleted file mode 100644 index a8a4023..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1554-2ea0a7d1aa4bef3e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1554],{67401:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(12115);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:u="",children:s,iconNode:f,...d}=e;return(0,r.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:n,strokeWidth:c?24*Number(l)/Number(i):l,className:o("lucide",u),...d},[...f.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),c=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:c,...u}=n;return(0,r.createElement)(l,{ref:a,iconNode:t,className:o("lucide-".concat(i(e)),c),...u})});return n.displayName="".concat(e),n}},61594:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},32796:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]])},58237:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},26336:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},40886:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},66889:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},80738:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},92598:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},91544:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},48617:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},54113:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},96781:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},29191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},32652:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]])},4834:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},21773:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},77607:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},86878:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},23950:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},67072:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},23009:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0});var c=a(n(12115)),u=n(27385),s=n(99689),f=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];t.default=function(e){var t=e.loading,n=e.color,i=void 0===n?"#000000":n,o=e.speedMultiplier,a=void 0===o?1:o,s=e.cssOverride,d=e.size,p=l(e,["loading","color","speedMultiplier","cssOverride","size"]),y=(0,u.parseLengthAndUnit)(void 0===d?15:d),h=y.value,m=y.unit,v=r({display:"inherit",position:"relative"},void 0===s?{}:s),g=function(e){return{position:"absolute",fontSize:"".concat(h/3).concat(m),width:"".concat(h).concat(m),height:"".concat(h).concat(m),background:i,borderRadius:"50%",animation:"".concat(f[e]," ").concat(1.5/a,"s infinite"),animationFillMode:"forwards"}};return void 0===t||t?c.createElement("span",r({style:v},p),c.createElement("span",{style:g(0)}),c.createElement("span",{style:g(1)}),c.createElement("span",{style:g(2)}),c.createElement("span",{style:g(3)}),c.createElement("span",{style:g(4)}),c.createElement("span",{style:g(5)})):null}},10830:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(12115),i={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function o(e){var t=function(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return i[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var a=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return o&&o.insertRule(a,0),r},l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},u=[a("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),a("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];let s=function(e){var t=e.loading,n=e.color,i=void 0===n?"#000000":n,a=e.speedMultiplier,s=void 0===a?1:a,f=e.cssOverride,d=e.size,p=void 0===d?60:d,y=c(e,["loading","color","speedMultiplier","cssOverride","size"]),h=l({display:"inherit",position:"relative",width:o(p),height:o(p)},void 0===f?{}:f),m=function(e){return{position:"absolute",height:o(p),width:o(p),border:"thick solid ".concat(i),borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:"".concat(u[0],", ").concat(u[1]),animationDuration:"".concat(2/s,"s"),animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:1===e?"-1s":"0s"}};return void 0===t||t?r.createElement("span",l({style:h},y),r.createElement("span",{style:m(1)}),r.createElement("span",{style:m(2)})):null}},99689:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return o&&o.insertRule(a,0),r}},27385:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var i=(e.match(/[^0-9]*$/)||"").toString();return n[i]?{value:t,unit:i}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return"".concat(t.value).concat(t.unit)}},90518:(e,t,n)=>{n.d(t,{G:()=>F});var r=n(12115),i=n(43463),o=n(29479),a=n(33196),l=n.n(a),c=n(77066),u=n.n(c),s=n(87727),f=n.n(s),d=n(58845),p=n.n(d),y=n(41436),h=n.n(y),m=n(12027),v=n(89085),g=n(26941),b=n(40654),x=n(27878),O=n(82954),w=n(95286),A=n(12401),k=["layout","type","stroke","connectNulls","isRange","ref"],j=["key"];function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!h()(l,r)||!h()(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,o=t.dot,a=t.points,l=t.className,c=t.top,u=t.left,s=t.xAxis,d=t.yAxis,p=t.width,y=t.height,h=t.isAnimationActive,m=t.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,O=(0,i.A)("recharts-area",l),w=s&&s.allowDataOverflow,k=d&&d.allowDataOverflow,j=w||k,E=f()(m)?this.id:m,P=null!==(e=(0,A.J9)(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},D=P.r,S=P.strokeWidth,M=((0,A.sT)(o)?o:{}).clipDot,C=void 0===M||M,N=2*(void 0===D?3:D)+(void 0===S?2:S);return r.createElement(g.W,{className:O},w||k?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(E)},r.createElement("rect",{x:w?u:u-p/2,y:k?c:c-y/2,width:w?p:2*p,height:k?y:2*y})),!C&&r.createElement("clipPath",{id:"clipPath-dots-".concat(E)},r.createElement("rect",{x:u-N/2,y:c-N/2,width:p+N,height:y+N}))):null,x?null:this.renderArea(j,E),(o||x)&&this.renderDots(j,C,E),(!h||v)&&b.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],t&&C(a.prototype,t),n&&C(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);R(F,"displayName","Area"),R(F,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),R(F,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,l=null!=a?a:o;if((0,O.Et)(l)&&"number"==typeof l)return l;var c="horizontal"===i?r:n,u=c.scale.domain();if("number"===c.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===l?f:"dataMax"===l?s:s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===l?u[0]:"dataMax"===l?u[1]:u[0]}),R(F,"getComposedData",function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=e.yAxis,a=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,u=e.dataKey,s=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,y=n.layout,h=s&&s.length,m=F.getBaseValue(n,r,i,o),v="horizontal"===y,g=!1,b=d.map(function(e,t){h?n=s[f+t]:Array.isArray(n=(0,w.kr)(e,u))?g=!0:n=[m,n];var n,r=null==n[1]||h&&null==(0,w.kr)(e,u);return v?{x:(0,w.nb)({axis:i,ticks:a,bandSize:c,entry:e,index:t}),y:r?null:o.scale(n[1]),value:n,payload:e}:{x:r?null:i.scale(n[1]),y:(0,w.nb)({axis:o,ticks:l,bandSize:c,entry:e,index:t}),value:n,payload:e}});return t=h||g?b.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=t&&null!=e.y?o.scale(t):null}:{x:null!=t?i.scale(t):null,y:e.y}}):v?o.scale(m):i.scale(m),M({points:b,baseLine:t,layout:y,isRange:g},p)}),R(F,"renderDotItem",function(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(l()(e))n=e(t);else{var o=(0,i.A)("recharts-area-dot","boolean"!=typeof e?e.className:""),a=t.key,c=P(t,j);n=r.createElement(v.c,D({},c,{key:a,className:o}))}return n})},15255:(e,t,n)=>{n.d(t,{d:()=>S});var r=n(12115),i=n(33196),o=n.n(i),a=n(10930),l=n(82954),c=n(12401),u=n(95286),s=n(35400),f=n(70710),d=n(51634),p=["x1","y1","x2","y2","key"],y=["offset"];function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var x=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,i=e.x,o=e.y,a=e.width,l=e.height,c=e.ry;return r.createElement("rect",{x:i,y:o,ry:c,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function O(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(o()(e))n=e(t);else{var i=t.x1,a=t.y1,l=t.x2,u=t.y2,s=t.key,f=b(t,p),d=(0,c.J9)(f,!1),h=(d.offset,b(d,y));n=r.createElement("line",g({},h,{x1:i,y1:a,x2:l,y2:u,fill:"none",key:s}))}return n}function w(e){var t=e.x,n=e.width,i=e.horizontal,o=void 0===i||i,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var l=a.map(function(r,i){return O(o,v(v({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function A(e){var t=e.y,n=e.height,i=e.vertical,o=void 0===i||i,a=e.verticalPoints;if(!o||!a||!a.length)return null;var l=a.map(function(r,i){return O(o,v(v({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function k(e){var t=e.horizontalFill,n=e.fillOpacity,i=e.x,o=e.y,a=e.width,l=e.height,c=e.horizontalPoints,u=e.horizontal;if(!(void 0===u||u)||!t||!t.length)return null;var s=c.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==s[0]&&s.unshift(0);var f=s.map(function(e,c){var u=s[c+1]?s[c+1]-e:o+l-e;if(u<=0)return null;var f=c%t.length;return r.createElement("rect",{key:"react-".concat(c),y:e,x:i,height:u,width:a,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function j(e){var t=e.vertical,n=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var s=u.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==s[0]&&s.unshift(0);var f=s.map(function(e,t){var u=s[t+1]?s[t+1]-e:o+l-e;if(u<=0)return null;var f=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:u,height:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(e,t){var n=e.xAxis,r=e.width,i=e.height,o=e.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},P=function(e,t){var n=e.yAxis,r=e.width,i=e.height,o=e.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},D={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function S(e){var t,n,i,c,u,s,f=(0,d.yi)(),p=(0,d.rY)(),y=(0,d.hj)(),m=v(v({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:D.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:D.fill,horizontal:null!==(i=e.horizontal)&&void 0!==i?i:D.horizontal,horizontalFill:null!==(c=e.horizontalFill)&&void 0!==c?c:D.horizontalFill,vertical:null!==(u=e.vertical)&&void 0!==u?u:D.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:D.verticalFill,x:(0,l.Et)(e.x)?e.x:y.left,y:(0,l.Et)(e.y)?e.y:y.top,width:(0,l.Et)(e.width)?e.width:y.width,height:(0,l.Et)(e.height)?e.height:y.height}),b=m.x,O=m.y,S=m.width,M=m.height,C=m.syncWithTicks,N=m.horizontalValues,I=m.verticalValues,L=(0,d.pj)(),R=(0,d.$G)();if(!(0,l.Et)(S)||S<=0||!(0,l.Et)(M)||M<=0||!(0,l.Et)(b)||b!==+b||!(0,l.Et)(O)||O!==+O)return null;var z=m.verticalCoordinatesGenerator||E,F=m.horizontalCoordinatesGenerator||P,_=m.horizontalPoints,T=m.verticalPoints;if((!_||!_.length)&&o()(F)){var B=N&&N.length,V=F({yAxis:R?v(v({},R),{},{ticks:B?N:R.ticks}):void 0,width:f,height:p,offset:y},!!B||C);(0,a.R)(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h(V),"]")),Array.isArray(V)&&(_=V)}if((!T||!T.length)&&o()(z)){var X=I&&I.length,W=z({xAxis:L?v(v({},L),{},{ticks:X?I:L.ticks}):void 0,width:f,height:p,offset:y},!!X||C);(0,a.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h(W),"]")),Array.isArray(W)&&(T=W)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),r.createElement(w,g({},m,{offset:y,horizontalPoints:_,xAxis:L,yAxis:R})),r.createElement(A,g({},m,{offset:y,verticalPoints:T,xAxis:L,yAxis:R})),r.createElement(k,g({},m,{horizontalPoints:_})),r.createElement(j,g({},m,{verticalPoints:T})))}S.displayName="CartesianGrid"},36:(e,t,n)=>{n.d(t,{Q:()=>c});var r=n(36561),i=n(90518),o=n(12800),a=n(66963),l=n(94430),c=(0,r.gu)({chartName:"AreaChart",GraphicalChild:i.G,axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},66217:(e,t,n)=>{n.d(t,{G$:()=>U,Hs:()=>O,UC:()=>en,VY:()=>ei,ZL:()=>ee,bL:()=>Y,bm:()=>eo,hE:()=>er,hJ:()=>et,l9:()=>Q});var r=n(12115),i=n(93610),o=n(88068),a=n(18166),l=n(67668),c=n(1488),u=n(59674),s=n(20196),f=n(17323),d=n(17028),p=n(23360),y=n(62292),h=n(64065),m=n(15587),v=n(12317),g=n(95155),b="Dialog",[x,O]=(0,a.A)(b),[w,A]=x(b),k=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,s=r.useRef(null),f=r.useRef(null),[d=!1,p]=(0,c.i)({prop:i,defaultProp:o,onChange:a});return(0,g.jsx)(w,{scope:t,triggerRef:s,contentRef:f,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:d,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};k.displayName=b;var j="DialogTrigger",E=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=A(j,n),l=(0,o.s)(t,a.triggerRef);return(0,g.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":H(a.open),...r,ref:l,onClick:(0,i.m)(e.onClick,a.onOpenToggle)})});E.displayName=j;var P="DialogPortal",[D,S]=x(P,{forceMount:void 0}),M=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,a=A(P,t);return(0,g.jsx)(D,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,g.jsx)(d.C,{present:n||a.open,children:(0,g.jsx)(f.Z,{asChild:!0,container:o,children:e})}))})};M.displayName=P;var C="DialogOverlay",N=r.forwardRef((e,t)=>{let n=S(C,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=A(C,e.__scopeDialog);return o.modal?(0,g.jsx)(d.C,{present:r||o.open,children:(0,g.jsx)(L,{...i,ref:t})}):null});N.displayName=C;var I=(0,v.TL)("DialogOverlay.RemoveScroll"),L=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=A(C,n);return(0,g.jsx)(h.A,{as:I,allowPinchZoom:!0,shards:[i.contentRef],children:(0,g.jsx)(p.sG.div,{"data-state":H(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),R="DialogContent",z=r.forwardRef((e,t)=>{let n=S(R,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=A(R,e.__scopeDialog);return(0,g.jsx)(d.C,{present:r||o.open,children:o.modal?(0,g.jsx)(F,{...i,ref:t}):(0,g.jsx)(_,{...i,ref:t})})});z.displayName=R;var F=r.forwardRef((e,t)=>{let n=A(R,e.__scopeDialog),a=r.useRef(null),l=(0,o.s)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,m.Eq)(e)},[]),(0,g.jsx)(T,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),_=r.forwardRef((e,t)=>{let n=A(R,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,g.jsx)(T,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),T=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,...c}=e,f=A(R,n),d=r.useRef(null),p=(0,o.s)(t,d);return(0,y.Oh)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(s.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,g.jsx)(u.qW,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":H(f.open),...c,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z,{titleId:f.titleId}),(0,g.jsx)(K,{contentRef:d,descriptionId:f.descriptionId})]})]})}),B="DialogTitle",V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=A(B,n);return(0,g.jsx)(p.sG.h2,{id:i.titleId,...r,ref:t})});V.displayName=B;var X="DialogDescription",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=A(X,n);return(0,g.jsx)(p.sG.p,{id:i.descriptionId,...r,ref:t})});W.displayName=X;var q="DialogClose",G=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=A(q,n);return(0,g.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function H(e){return e?"open":"closed"}G.displayName=q;var $="DialogTitleWarning",[U,J]=(0,a.q)($,{contentName:R,titleName:B,docsSlug:"dialog"}),Z=e=>{let{titleId:t}=e,n=J($),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(i)},[i,t]),null},K=e=>{let{contentRef:t,descriptionId:n}=e,i=J("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},Y=k,Q=E,ee=M,et=N,en=z,er=V,ei=W,eo=G},63543:(e,t,n)=>{n.d(t,{b:()=>l,s:()=>a});var r=n(12115),i=n(23360),o=n(95155),a=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var l=a},42576:(e,t,n)=>{n.d(t,{A:()=>j});var r=n(12115);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function l(e){return"number"==typeof e}function c(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function f(e){return Math.abs(e)}function d(e){return Math.sign(e)}function p(e){return v(e).map(Number)}function y(e){return e[h(e)]}function h(e){return Math.max(0,e.length-1)}function m(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function v(e){return Object.keys(e)}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(n,r,i,o={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,i,o),a=()=>n.removeEventListener(r,i,o)):(n.addListener(i),a=()=>n.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e=0,t=0){let n=f(e-t);function r(n){return nt}return{length:n,max:t,min:e,constrain:function(n){return r(n)?nt},reachedMin:function(t){return t(v(n).forEach(r=>{let i=t[r],o=n[r],a=s(i)&&s(o);t[r]=a?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=v(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>v(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(P),S=(j=[],{init:function(e,t){return(j=t.filter(({options:e})=>!1!==D.optionsAtMedia(e).active)).forEach(t=>t.init(e,D)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){j=j.filter(e=>e.destroy())}}),M=b(),C=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:N,optionsAtMedia:I,optionsMediaQueries:L}=D,{on:R,off:z,emit:F}=C,_=!1,T=N(A,k.globalOptions),B=N(T),V=[];function X(t,n){!_&&(B=I(T=N(T,t)),V=n||V,function(){let{container:t,slides:n}=B;o=(c(t)?e.querySelector(t):t)||e.children[0];let r=c(n)?o.querySelectorAll(n):n;a=[].slice.call(r||o.children)}(),r=function t(n){let r=function(e,t,n,r,i,o,a){let s,A;let{align:k,axis:j,direction:E,startIndex:P,loop:D,duration:S,dragFree:M,dragThreshold:C,inViewThreshold:N,slidesToScroll:I,skipSnaps:L,containScroll:R,watchResize:z,watchSlides:F,watchDrag:_,watchFocus:T}=o,B={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},V=B.measure(t),X=n.map(B.measure),W=function(e,t){let n="rtl"===t,r="y"===e,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*i}}}(j,E),q=W.measureSize(V),G={measure:function(e){return e/100*q}},H=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,i){return c(e)?n[e](r):e(t,r,i)}}}(k,q),$=!D&&!!R,{slideSizes:U,slideSizesWithGaps:J,startGap:Z,endGap:K}=function(e,t,n,r,i,o){let{measureSize:a,startEdge:l,endEdge:c}=e,u=n[0]&&i,s=function(){if(!u)return 0;let e=n[0];return f(t[l]-e[l])}(),d=u?parseFloat(o.getComputedStyle(y(r)).getPropertyValue(`margin-${c}`)):0,p=n.map(a),m=n.map((e,t,n)=>{let r=t===h(n);return t?r?p[t]+d:n[t+1][l]-e[l]:p[t]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:m,startGap:s,endGap:d}}(W,V,X,n,D||!!R,i),Y=function(e,t,n,r,i,o,a,c,u){let{startEdge:s,endEdge:d,direction:m}=e,v=l(n);return{groupSlides:function(e){return v?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,l,u)=>{let p=y(n)||0,v=l===h(e),g=i[s]-o[p][s],b=i[s]-o[l][d],x=r||0!==p?0:m(a),O=f(b-(!r&&v?m(c):0)-(g+x));return u&&O>t+2&&n.push(l),v&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(W,q,I,D,V,X,Z,K,0),{snaps:Q,snapsAligned:ee}=function(e,t,n,r,i){let{startEdge:o,endEdge:a}=e,{groupSlides:l}=i,c=l(r).map(e=>y(e)[a]-e[0][o]).map(f).map(t.measure),u=r.map(e=>n[o]-e[o]).map(e=>-f(e)),s=l(u).map(e=>e[0]).map((e,t)=>e+c[t]);return{snaps:u,snapsAligned:s}}(W,H,V,X,Y),et=-y(Q)+y(J),{snapsContained:en,scrollContainLimit:er}=function(e,t,n,r,i){let o=x(-t+e,0),a=n.map((e,t)=>{let{min:r,max:i}=o,a=o.constrain(e),l=t===h(n);return t?l||1>=f(r-a)?r:1>=f(i-a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),l=function(){let e=a[0],t=y(a);return x(a.lastIndexOf(e),a.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return a;let{min:n,max:i}=l;return a.slice(n,i)}(),scrollContainLimit:l}}(q,et,ee,R,0),ei=$?en:ee,{limit:eo}=function(e,t,n){let r=t[0];return{limit:x(n?r-e:y(t),r)}}(et,ei,D),ea=function e(t,n,r){let{constrain:i}=x(0,t),o=t+1,a=l(n);function l(e){return r?f((o+e)%o):i(e)}function c(){return e(t,a,r)}let u={get:function(){return a},set:function(e){return a=l(e),u},add:function(e){return c().set(a+e)},clone:c};return u}(h(ei),P,D),el=ea.clone(),ec=p(n),eu=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},es=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:o,slideLooper:a,dragHandler:l,animation:c,eventHandler:u,scrollBounds:s,options:{loop:f}},d)=>{let p=e.settled(),y=!s.shouldConstrain(),h=f?p:p&&y,m=h&&!l.pointerDown();m&&c.stop();let v=n.get()*d+i.get()*(1-d);r.set(v),f&&(o.loop(e.direction()),a.loop()),t.to(r.get()),m&&u.emit("settle"),h||u.emit("scroll")},ef=function(e,t,n,r){let i=b(),o=1e3/60,a=null,l=0,c=0;function u(e){if(!c)return;a||(a=e,n(),n());let i=e-a;for(a=e,l+=i;l>=o;)n(),l-=o;r(l/o),c&&(c=t.requestAnimationFrame(u))}function s(){t.cancelAnimationFrame(c),a=null,l=0,c=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,l=0)})},destroy:function(){s(),i.clear()},start:function(){c||(c=t.requestAnimationFrame(u))},stop:s,update:n,render:r}}(r,i,()=>eu(ej),e=>es(ej,e)),ed=ei[ea.get()],ep=O(ed),ey=O(ed),eh=O(ed),em=O(ed),ev=function(e,t,n,r,i,o){let a=0,l=0,c=i,u=.68,s=e.get(),p=0;function y(e){return c=e,m}function h(e){return u=e,m}let m={direction:function(){return l},duration:function(){return c},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),i=0;return c?(n.set(e),a+=t/c,a*=u,s+=a,e.add(a),i=s-p):(a=0,n.set(r),e.set(r),i=t),l=d(i),p=s,m},settled:function(){return .001>f(r.get()-t.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return y(i)},useFriction:h,useDuration:y};return m}(ep,eh,ey,em,S,0),eg=function(e,t,n,r,i){let{reachedAny:o,removeOffset:a,constrain:l}=r;function c(e){return e.concat().sort((e,t)=>f(e)-f(t))[0]}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let o=i.filter(e=>d(e)===r);return o.length?c(o):y(i)-n}return{byDistance:function(n,r){let c=i.get()+n,{index:s,distance:d}=function(n){let r=e?a(n):l(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>f(e.diff)-f(t.diff))[0];return{index:i,distance:r}}(c),p=!e&&o(c);if(!r||p)return{index:s,distance:n};let y=n+u(t[s]-d,0);return{index:s,distance:y}},byIndex:function(e,n){let r=u(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:u}}(D,ei,et,eo,em),eb=function(e,t,n,r,i,o,a){function l(i){let l=i.distance,c=i.index!==t.get();o.add(l),l&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){l(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);l(i.byIndex(r.get(),n))}}}(ef,ea,el,ev,eg,em,a),ex=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eo),eO=b(),ew=function(e,t,n,r){let i;let o={},a=null,l=null,c=!1;return{init:function(){i=new IntersectionObserver(e=>{c||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),a=null,l=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),c=!0},get:function(e=!0){if(e&&a)return a;if(!e&&l)return l;let t=v(o).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(a=t),e||(l=t),t}}}(t,n,a,N),{slideRegistry:eA}=function(e,t,n,r,i,o){let{groupSlides:a}=i,{min:l,max:c}=r;return{slideRegistry:function(){let r=a(o);return 1===n.length?[o]:e&&"keepSnaps"!==t?r.slice(l,c).map((e,t,n)=>{let r=t===h(n);return t?r?m(h(o)-y(n)[0]+1,y(n)[0]):e:m(y(n[0])+1)}):r}()}}($,R,ei,er,Y,ec),ek=function(e,t,n,r,i,o,a,c){let s={passive:!0,capture:!0},f=0;function d(e){"Tab"===e.code&&(f=new Date().getTime())}return{init:function(p){c&&(o.add(document,"keydown",d,!1),t.forEach((t,d)=>{o.add(t,"focus",t=>{(u(c)||c(p,t))&&function(t){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));l(o)&&(i.useDuration(0),r.index(o,0),a.emit("slideFocus"))}(d)},s)}))}}}(e,n,eA,eb,ev,eO,a,T),ej={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:V,slideRects:X,animation:ef,axis:W,dragHandler:function(e,t,n,r,i,o,a,l,c,s,p,y,h,m,v,O,w,A,k){let{cross:j,direction:E}=e,P=["INPUT","SELECT","TEXTAREA"],D={passive:!1},S=b(),M=b(),C=x(50,225).constrain(m.measure(20)),N={mouse:300,touch:400},I={mouse:500,touch:600},L=v?43:25,R=!1,z=0,F=0,_=!1,T=!1,B=!1,V=!1;function X(e){if(!g(e,r)&&e.touches.length>=2)return W(e);let t=o.readPoint(e),n=o.readPoint(e,j),a=f(t-z),c=f(n-F);if(!T&&!V&&(!e.cancelable||!(T=a>c)))return W(e);let u=o.pointerMove(e);a>O&&(B=!0),s.useFriction(.3).useDuration(.75),l.start(),i.add(E(u)),e.preventDefault()}function W(e){let t=p.byDistance(0,!1).index!==y.get(),n=o.pointerUp(e)*(v?I:N)[V?"mouse":"touch"],r=function(e,t){let n=y.add(-1*d(e)),r=p.byDistance(e,!v).distance;return v||f(e)e.preventDefault(),D).add(t,"touchmove",()=>void 0,D).add(t,"touchend",()=>void 0).add(t,"touchstart",l).add(t,"mousedown",l).add(t,"touchcancel",W).add(t,"contextmenu",W).add(t,"click",q,!0);function l(l){(u(k)||k(e,l))&&function(e){let l=g(e,r);V=l,B=v&&l&&!e.buttons&&R,R=f(i.get()-a.get())>=2,l&&0!==e.button||function(e){let t=e.nodeName||"";return P.includes(t)}(e.target)||(_=!0,o.pointerDown(e),s.useFriction(0).useDuration(0),i.set(a),function(){let e=V?n:t;M.add(e,"touchmove",X,D).add(e,"touchend",W).add(e,"mousemove",X,D).add(e,"mouseup",W)}(),z=o.readPoint(e),F=o.readPoint(e,j),h.emit("pointerDown"))}(l)}},destroy:function(){S.clear(),M.clear()},pointerDown:function(){return _}}}(W,e,r,i,em,function(e,t){let n,r;function i(e){return e.timeStamp}function o(n,r){let i=r||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(g(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){let t=o(e)-o(r),a=i(e)-i(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=o(r)-o(n),a=i(e)-i(n),l=i(e)-i(r)>170,c=t/a;return a&&!l&&f(c)>.1?c:0},readPoint:o}}(W,i),ep,ef,eb,ev,eg,ea,a,G,M,C,L,0,_),eventStore:eO,percentOfView:G,index:ea,indexPrevious:el,limit:eo,location:ep,offsetLocation:eh,previousLocation:ey,options:o,resizeHandler:function(e,t,n,r,i,o,a){let l,c;let s=[e].concat(r),d=[],p=!1;function y(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(c=y(e),d=r.map(y),l=new ResizeObserver(n=>{(u(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===e,a=r.indexOf(o.target),l=n?c:d[a];if(f(y(n?e:r[a])-l)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(e=>l.observe(e))}))},destroy:function(){p=!0,l&&l.disconnect()}}}(t,a,i,n,W,z,B),scrollBody:ev,scrollBounds:function(e,t,n,r,i){let o=i.measure(10),a=i.measure(50),l=x(.1,.99),c=!1;function u(){return!!(!c&&e.reachedAny(n.get())&&e.reachedAny(t.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;let c=e.reachedMin(t.get())?"min":"max",s=f(e[c]-t.get()),d=n.get()-t.get(),p=l.constrain(s/a);n.subtract(d*p),!i&&f(d)e.add(a))}}}(et,eo,eh,[ep,eh,ey,em]),scrollProgress:ex,scrollSnapList:ei.map(ex.get),scrollSnaps:ei,scrollTarget:eg,scrollTo:eb,slideLooper:function(e,t,n,r,i,o,a,l,c){let u=p(i),s=y(d(p(i).reverse(),a[0]),n,!1).concat(y(d(u,t-a[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function d(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function y(i,a,u){let s=o.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return i.map(t=>{let r=u?0:-n,i=u?n:0,o=s[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:O(-1),translate:w(e,c[t]),target:()=>l.get()>o?r:i}})}return{canLoop:function(){return s.every(({index:e})=>.1>=f(u.filter(t=>t!==e),t))},clear:function(){s.forEach(e=>e.translate.clear())},loop:function(){s.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:s}}(W,q,et,U,J,Q,ei,eh,n),slideFocus:ek,slidesHandler:(A=!1,{init:function(e){F&&(s=new MutationObserver(t=>{!A&&(u(F)||F(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){s&&s.disconnect(),A=!0}}),slidesInView:ew,slideIndexes:ec,slideRegistry:eA,slidesToScroll:Y,target:em,translate:w(W,t)};return ej}(e,o,a,E,P,n,C);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(B),L([T,...V.map(({options:e})=>e)]).forEach(e=>M.add(e,"change",W)),B.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init($),r.eventHandler.init($),r.resizeHandler.init($),r.slidesHandler.init($),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&a.length&&r.dragHandler.init($),i=S.init($,V)))}function W(e,t){let n=H();q(),X(N({startIndex:n},e),t),C.emit("reInit")}function q(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),S.destroy(),M.clear()}function G(e,t,n){B.active&&!_&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:B.duration),r.scrollTo.index(e,n||0))}function H(){return r.index.get()}let $={canScrollNext:function(){return r.index.add(1).get()!==H()},canScrollPrev:function(){return r.index.add(-1).get()!==H()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){_||(_=!0,M.clear(),q(),C.emit("destroy"),C.clear())},off:z,on:R,emit:F,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:W,rootNode:function(){return e},scrollNext:function(e){G(r.index.add(1).get(),e,-1)},scrollPrev:function(e){G(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.offsetLocation.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:G,selectedScrollSnap:H,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return X(t,n),setTimeout(()=>C.emit("init"),0),$}function j(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[l,c]=(0,r.useState)(),[u,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{l&&l.reInit(n.current,i.current)},[l]);return(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,f())},[e,f]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=a(e),r=a(t);return n.every((e,t)=>o(e,r[t]))}(i.current,t)&&(i.current=t,f())},[t,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){k.globalOptions=j.globalOptions;let e=k(u,n.current,i.current);return c(e),()=>e.destroy()}c(void 0)},[u,c]),[s,l]}k.globalOptions=void 0,j.globalOptions=void 0},93435:(e,t,n)=>{n.d(t,{k5:()=>s});var r=n(12115),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(f,l({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,u({key:n},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var n,{attr:i,size:o,title:c}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),f=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),c&&r.createElement("title",null,c),e.children)};return void 0!==o?r.createElement(o.Consumer,null,e=>t(e)):t(i)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1630-e6b1d1dfaecf3c1f.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1630-e6b1d1dfaecf3c1f.js new file mode 100644 index 0000000..3cba205 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1630-e6b1d1dfaecf3c1f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1630],{39997:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),u=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:r,strokeWidth:a?24*Number(l)/Number(o):l,className:u("lucide",s),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:a,...s}=r;return(0,n.createElement)(l,{ref:i,iconNode:t,className:u("lucide-".concat(o(e)),a),...s})});return r.displayName="".concat(e),r}},29475:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},94521:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},45170:(e,t,r)=>{r.d(t,{A:()=>i,q:()=>u});var n=r(20107),o=r(20475);function u(e,t){let r=n.createContext(t),u=e=>{let{children:t,...u}=e,i=n.useMemo(()=>u,Object.values(u));return(0,o.jsx)(r.Provider,{value:i,children:t})};return u.displayName=e+"Provider",[u,function(o){let u=n.useContext(r);if(u)return u;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],u=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return u.scopeName=e,[function(t,u){let i=n.createContext(u),l=r.length;r=[...r,u];let a=t=>{let{scope:r,children:u,...a}=t,s=r?.[e]?.[l]||i,c=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(s.Provider,{value:c,children:u})};return a.displayName=t+"Provider",[a,function(r,o){let a=o?.[e]?.[l]||i,s=n.useContext(a);if(s)return s;if(void 0!==u)return u;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(u,...t)]}},34544:(e,t,r)=>{r.d(t,{hO:()=>a,sG:()=>l});var n=r(20107),o=r(25642),u=r(61837),i=r(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,l=n?u.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function a(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},80982:(e,t,r)=>{r.d(t,{bL:()=>x,zi:()=>N});var n=r(20107),o=r(94521),u=r(64236),i=r(45170),l=r(13061),a=r(65163),s=r(63620),c=r(34544),d=r(20475),f="Switch",[v,p]=(0,i.A)(f),[h,m]=v(f),b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:a,defaultChecked:s,required:f,disabled:v,value:p="on",onCheckedChange:m,form:b,...y}=e,[w,x]=n.useState(null),N=(0,u.s)(t,e=>x(e)),j=n.useRef(!1),A=!w||b||!!w.closest("form"),[E=!1,C]=(0,l.i)({prop:a,defaultProp:s,onChange:m});return(0,d.jsxs)(h,{scope:r,checked:E,disabled:v,children:[(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":E,"aria-required":f,"data-state":g(E),"data-disabled":v?"":void 0,disabled:v,value:p,...y,ref:N,onClick:(0,o.m)(e.onClick,e=>{C(e=>!e),A&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())})}),A&&(0,d.jsx)(k,{control:w,bubbles:!j.current,name:i,value:p,checked:E,required:f,disabled:v,form:b,style:{transform:"translateX(-100%)"}})]})});b.displayName=f;var y="SwitchThumb",w=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=m(y,r);return(0,d.jsx)(c.sG.span,{"data-state":g(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});w.displayName=y;var k=e=>{let{control:t,checked:r,bubbles:o=!0,...u}=e,i=n.useRef(null),l=(0,a.Z)(r),c=(0,s.X)(t);return n.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[l,r,o]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...u,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function g(e){return e?"checked":"unchecked"}var x=b,N=w},46774:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(20107);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,r)=>{r.d(t,{i:()=>u});var n=r(20107),o=r(46774);function u({prop:e,defaultProp:t,onChange:r=()=>{}}){let[u,i]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[u]=r,i=n.useRef(u),l=(0,o.c)(t);return n.useEffect(()=>{i.current!==u&&(l(u),i.current=u)},[u,i,l]),r}({defaultProp:t,onChange:r}),l=void 0!==e,a=l?e:u,s=(0,o.c)(r);return[a,n.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[l,e,i,s])]}},54122:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(20107),o=globalThis?.document?n.useLayoutEffect:()=>{}},65163:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(20107);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,r)=>{r.d(t,{X:()=>u});var n=r(20107),o=r(54122);function u(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let u=t[0];if("borderBoxSize"in u){let e=u.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},29395:(e,t,r)=>{r.d(t,{F:()=>u});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,r=0,n="";rr=>{var u;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:l}=t,a=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],o=null==l?void 0:l[e];if(null===t)return null;let u=n(t)||n(o);return i[e][u]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,a,null==t?void 0:null===(u=t.compoundVariants)||void 0===u?void 0:u.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...s}[t]):({...l,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1630-ef39e3282b1968a7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1630-ef39e3282b1968a7.js new file mode 100644 index 0000000..3cba205 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1630-ef39e3282b1968a7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1630],{39997:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),u=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:r,strokeWidth:a?24*Number(l)/Number(o):l,className:u("lucide",s),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:a,...s}=r;return(0,n.createElement)(l,{ref:i,iconNode:t,className:u("lucide-".concat(o(e)),a),...s})});return r.displayName="".concat(e),r}},29475:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},94521:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},45170:(e,t,r)=>{r.d(t,{A:()=>i,q:()=>u});var n=r(20107),o=r(20475);function u(e,t){let r=n.createContext(t),u=e=>{let{children:t,...u}=e,i=n.useMemo(()=>u,Object.values(u));return(0,o.jsx)(r.Provider,{value:i,children:t})};return u.displayName=e+"Provider",[u,function(o){let u=n.useContext(r);if(u)return u;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],u=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return u.scopeName=e,[function(t,u){let i=n.createContext(u),l=r.length;r=[...r,u];let a=t=>{let{scope:r,children:u,...a}=t,s=r?.[e]?.[l]||i,c=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(s.Provider,{value:c,children:u})};return a.displayName=t+"Provider",[a,function(r,o){let a=o?.[e]?.[l]||i,s=n.useContext(a);if(s)return s;if(void 0!==u)return u;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(u,...t)]}},34544:(e,t,r)=>{r.d(t,{hO:()=>a,sG:()=>l});var n=r(20107),o=r(25642),u=r(61837),i=r(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,l=n?u.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function a(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},80982:(e,t,r)=>{r.d(t,{bL:()=>x,zi:()=>N});var n=r(20107),o=r(94521),u=r(64236),i=r(45170),l=r(13061),a=r(65163),s=r(63620),c=r(34544),d=r(20475),f="Switch",[v,p]=(0,i.A)(f),[h,m]=v(f),b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:a,defaultChecked:s,required:f,disabled:v,value:p="on",onCheckedChange:m,form:b,...y}=e,[w,x]=n.useState(null),N=(0,u.s)(t,e=>x(e)),j=n.useRef(!1),A=!w||b||!!w.closest("form"),[E=!1,C]=(0,l.i)({prop:a,defaultProp:s,onChange:m});return(0,d.jsxs)(h,{scope:r,checked:E,disabled:v,children:[(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":E,"aria-required":f,"data-state":g(E),"data-disabled":v?"":void 0,disabled:v,value:p,...y,ref:N,onClick:(0,o.m)(e.onClick,e=>{C(e=>!e),A&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())})}),A&&(0,d.jsx)(k,{control:w,bubbles:!j.current,name:i,value:p,checked:E,required:f,disabled:v,form:b,style:{transform:"translateX(-100%)"}})]})});b.displayName=f;var y="SwitchThumb",w=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=m(y,r);return(0,d.jsx)(c.sG.span,{"data-state":g(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});w.displayName=y;var k=e=>{let{control:t,checked:r,bubbles:o=!0,...u}=e,i=n.useRef(null),l=(0,a.Z)(r),c=(0,s.X)(t);return n.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[l,r,o]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...u,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function g(e){return e?"checked":"unchecked"}var x=b,N=w},46774:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(20107);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,r)=>{r.d(t,{i:()=>u});var n=r(20107),o=r(46774);function u({prop:e,defaultProp:t,onChange:r=()=>{}}){let[u,i]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[u]=r,i=n.useRef(u),l=(0,o.c)(t);return n.useEffect(()=>{i.current!==u&&(l(u),i.current=u)},[u,i,l]),r}({defaultProp:t,onChange:r}),l=void 0!==e,a=l?e:u,s=(0,o.c)(r);return[a,n.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[l,e,i,s])]}},54122:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(20107),o=globalThis?.document?n.useLayoutEffect:()=>{}},65163:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(20107);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,r)=>{r.d(t,{X:()=>u});var n=r(20107),o=r(54122);function u(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let u=t[0];if("borderBoxSize"in u){let e=u.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},29395:(e,t,r)=>{r.d(t,{F:()=>u});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,r=0,n="";rr=>{var u;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:l}=t,a=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],o=null==l?void 0:l[e];if(null===t)return null;let u=n(t)||n(o);return i[e][u]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,a,null==t?void 0:null===(u=t.compoundVariants)||void 0===u?void 0:u.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...s}[t]):({...l,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2019-b7704dcdb000b7ea.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2019-b7704dcdb000b7ea.js deleted file mode 100644 index 11b0f46..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2019-b7704dcdb000b7ea.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2019],{15587:(e,t,n)=>{n.d(t,{Eq:()=>l});var r=new WeakMap,o=new WeakMap,a={},c=0,i=function(e){return e&&(e.host||i(e.parentNode))},u=function(e,t,n,u){var l=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=i(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[n]||(a[n]=new WeakMap);var d=a[n],s=[],f=new Set,v=new Set(l),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};l.forEach(p);var h=function(e){!e||v.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(u),a=null!==t&&"false"!==t,c=(r.get(e)||0)+1,i=(d.get(e)||0)+1;r.set(e,c),d.set(e,i),s.push(e),1===c&&a&&o.set(e,!0),1===i&&e.setAttribute(n,"true"),a||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),c++,function(){s.forEach(function(e){var t=r.get(e)-1,a=d.get(e)-1;r.set(e,t),d.set(e,a),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),a||e.removeAttribute(n)}),--c||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]),a=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),u(o,a,n,"aria-hidden")):function(){return null}}},64065:(e,t,n)=>{n.d(t,{A:()=>Z});var r,o,a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create;var i=("function"==typeof SuppressedError&&SuppressedError,n(12115)),u="right-scroll-bar-position",l="width-before-scroll-bar";function d(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,f=new WeakMap;function v(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=v),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}});return o.options=a({async:!0,ssr:!1},e),o}(),h=function(){},m=i.forwardRef(function(e,t){var n,r,o,u,l=i.useRef(null),v=i.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),m=v[0],g=v[1],y=e.forwardProps,b=e.children,E=e.className,w=e.removeScrollBar,S=e.enabled,C=e.shards,k=e.sideCar,A=e.noIsolation,M=e.inert,N=e.allowPinchZoom,L=e.as,T=e.gapMode,R=c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(n=[l,t],r=function(e){return n.forEach(function(t){return d(t,e)})},(o=(0,i.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,u=o.facade,s(function(){var e=f.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||d(e,null)}),r.forEach(function(e){t.has(e)||d(e,o)})}f.set(u,n)},[n]),u),O=a(a({},R),m);return i.createElement(i.Fragment,null,S&&i.createElement(k,{sideCar:p,removeScrollBar:w,shards:C,noIsolation:A,inert:M,setCallbacks:g,allowPinchZoom:!!N,lockRef:l,gapMode:T}),y?i.cloneElement(i.Children.only(b),a(a({},O),{ref:x})):i.createElement(void 0===L?"div":L,a({},O,{className:E,ref:x}),b))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:l,zeroRight:u};var g=function(e){var t=e.sideCar,n=c(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,a({},n))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,c;(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),c=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(c)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=y();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},S=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[S(n),S(r),S(o)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},A=E(),M="data-scroll-locked",N=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,i=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(i,"px ").concat(r,";\n }\n body[").concat(M,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(u," {\n right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(l," {\n margin-right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n right: 0 ").concat(r,";\n }\n \n .").concat(l," .").concat(l," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(M,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},L=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},T=function(){i.useEffect(function(){return document.body.setAttribute(M,(L()+1).toString()),function(){var e=L()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},R=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;T();var a=i.useMemo(function(){return k(o)},[o]);return i.createElement(A,{styles:N(a,!t,o,n?"":"!important")})},x=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return x=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){x=!1}var P=!!x&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(e,r)){var o=j(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},F=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},j=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},B=function(e,t,n,r,o){var a,c=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=c*r,u=n.target,l=t.contains(u),d=!1,s=i>0,f=0,v=0;do{var p=j(e,u),h=p[0],m=p[1]-p[2]-c*h;(h||m)&&F(e,u)&&(f+=m,v+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return s&&(o&&1>Math.abs(f)||!o&&i>f)?d=!0:!s&&(o&&1>Math.abs(v)||!o&&-i>v)&&(d=!0),d},D=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},K=function(e){return[e.deltaX,e.deltaY]},_=function(e){return e&&"current"in e?e.current:e},X=0,Y=[];let q=(r=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(X++)[0],a=i.useState(E)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oMath.abs(l)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=W(s,d);if(!f)return!0;if(f?o=s:(o="v"===s?"h":"v",f=W(s,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var v=r.current||o;return B(v,t,e,"h"===v?u:l,!0)},[]),l=i.useCallback(function(e){if(Y.length&&Y[Y.length-1]===a){var n="deltaY"in e?K(e):D(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(c.current.shards||[]).map(_).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!c.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=i.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=i.useCallback(function(e){n.current=D(e),r.current=void 0},[]),f=i.useCallback(function(t){d(t.type,K(t),t.target,u(t,e.lockRef.current))},[]),v=i.useCallback(function(t){d(t.type,D(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return Y.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,P),document.addEventListener("touchmove",l,P),document.addEventListener("touchstart",s,P),function(){Y=Y.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,P),document.removeEventListener("touchmove",l,P),document.removeEventListener("touchstart",s,P)}},[]);var p=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?i.createElement(R,{gapMode:e.gapMode}):null)},p.useMedium(r),g);var H=i.forwardRef(function(e,t){return i.createElement(m,a({},e,{ref:t,sideCar:q}))});H.classNames=m.classNames;let Z=H},62292:(e,t,n)=>{n.d(t,{Oh:()=>a});var r=n(12115),o=0;function a(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:c()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:c()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function c(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},20196:(e,t,n)=>{n.d(t,{n:()=>s});var r=n(12115),o=n(88068),a=n(23360),c=n(41524),i=n(95155),u="focusScope.autoFocusOnMount",l="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},s=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:s=!1,onMountAutoFocus:m,onUnmountAutoFocus:g,...y}=e,[b,E]=r.useState(null),w=(0,c.c)(m),S=(0,c.c)(g),C=r.useRef(null),k=(0,o.s)(t,e=>E(e)),A=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(s){let e=function(e){if(A.paused||!b)return;let t=e.target;b.contains(t)?C.current=t:p(C.current,{select:!0})},t=function(e){if(A.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||p(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[s,b,A.paused]),r.useEffect(()=>{if(b){h.add(A);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(l,d);b.addEventListener(l,S),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(l,S),h.remove(A)},0)}}},[b,w,S,A]);let M=r.useCallback(e=>{if(!n&&!s||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,a]=function(e){let t=f(e);return[v(t,e),v(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&p(a,{select:!0})):(e.preventDefault(),n&&p(o,{select:!0})):r===t&&e.preventDefault()}},[n,s,A.paused]);return(0,i.jsx)(a.sG.div,{tabIndex:-1,...y,ref:k,onKeyDown:M})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function v(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}s.displayName="FocusScope";var h=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=m(e,t)).unshift(t)},remove(t){var n;null===(n=(e=m(e,t))[0])||void 0===n||n.resume()}}}();function m(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2049-6657120fa99a42e1.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2049-6657120fa99a42e1.js deleted file mode 100644 index 56c9c8e..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2049-6657120fa99a42e1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2049],{49741:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(12115),o=n(18166),a=n(88068),l=n(12317),i=n(95155);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.A)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,i.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=(0,l.TL)(f),m=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(f,n),l=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(p,{ref:l,children:r})});m.displayName=f;let v=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,l.TL)(v),w=r.forwardRef((e,t)=>{let{scope:n,children:o,...l}=e,u=r.useRef(null),c=(0,a.s)(t,u),d=s(v,n);return r.useEffect(()=>(d.itemMap.set(u,{ref:u,...l}),()=>void d.itemMap.delete(u))),(0,i.jsx)(g,{[h]:"",ref:c,children:o})});return w.displayName=v,[{Provider:d,Slot:m,ItemSlot:w},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},4256:(e,t,n)=>{n.d(t,{jH:()=>a});var r=n(12115);n(95155);var o=r.createContext(void 0);function a(e){let t=r.useContext(o);return e||t||"ltr"}},80937:(e,t,n)=>{n.d(t,{H_:()=>e4,UC:()=>e6,YJ:()=>e2,q7:()=>e7,VF:()=>te,JU:()=>e8,ZL:()=>e5,z6:()=>e3,hN:()=>e9,bL:()=>e0,wv:()=>tt,Pb:()=>tn,G5:()=>to,ZP:()=>tr,l9:()=>e1});var r=n(12115),o=n(93610),a=n(88068),l=n(18166),i=n(1488),u=n(23360),c=n(49741),s=n(4256),d=n(59674),f=n(62292),p=n(20196),m=n(67668),v=n(19895),h=n(17323),g=n(17028),w=n(67357),y=n(12317),x=n(41524),b=n(15587),C=n(64065),R=n(95155),M=["Enter"," "],j=["ArrowUp","PageDown","End"],k=["ArrowDown","PageUp","Home",...j],D={ltr:[...M,"ArrowRight"],rtl:[...M,"ArrowLeft"]},S={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[_,E,I]=(0,c.N)(T),[P,L]=(0,l.A)(T,[I,v.Bk,w.RG]),N=(0,v.Bk)(),A=(0,w.RG)(),[O,F]=P(T),[K,G]=P(T),B=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:l,modal:i=!0}=e,u=N(t),[c,d]=r.useState(null),f=r.useRef(!1),p=(0,x.c)(l),m=(0,s.jH)(a);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,R.jsx)(v.bL,{...u,children:(0,R.jsx)(O,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,R.jsx)(K,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:i,children:o})})})};B.displayName=T;var U=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=N(n);return(0,R.jsx)(v.Mz,{...o,...r,ref:t})});U.displayName="MenuAnchor";var V="MenuPortal",[H,q]=P(V,{forceMount:void 0}),z=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=F(V,t);return(0,R.jsx)(H,{scope:t,forceMount:n,children:(0,R.jsx)(g.C,{present:n||a.open,children:(0,R.jsx)(h.Z,{asChild:!0,container:o,children:r})})})};z.displayName=V;var X="MenuContent",[J,Z]=P(X),Y=r.forwardRef((e,t)=>{let n=q(X,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=F(X,e.__scopeMenu),l=G(X,e.__scopeMenu);return(0,R.jsx)(_.Provider,{scope:e.__scopeMenu,children:(0,R.jsx)(g.C,{present:r||a.open,children:(0,R.jsx)(_.Slot,{scope:e.__scopeMenu,children:l.modal?(0,R.jsx)(W,{...o,ref:t}):(0,R.jsx)(Q,{...o,ref:t})})})})}),W=r.forwardRef((e,t)=>{let n=F(X,e.__scopeMenu),l=r.useRef(null),i=(0,a.s)(t,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,b.Eq)(e)},[]),(0,R.jsx)(ee,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Q=r.forwardRef((e,t)=>{let n=F(X,e.__scopeMenu);return(0,R.jsx)(ee,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),$=(0,y.TL)("MenuContent.ScrollLock"),ee=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:l=!1,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:x,onDismiss:b,disableOutsideScroll:M,...D}=e,S=F(X,n),T=G(X,n),_=N(n),I=A(n),P=E(n),[L,O]=r.useState(null),K=r.useRef(null),B=(0,a.s)(t,K,S.onContentChange),U=r.useRef(0),V=r.useRef(""),H=r.useRef(0),q=r.useRef(null),z=r.useRef("right"),Z=r.useRef(0),Y=M?C.A:r.Fragment,W=e=>{var t,n;let r=V.current+e,o=P().filter(e=>!e.disabled),a=document.activeElement,l=null===(t=o.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,i=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===i))||void 0===n?void 0:n.ref.current;!function e(t){V.current=t,window.clearTimeout(U.current),""!==t&&(U.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};r.useEffect(()=>()=>window.clearTimeout(U.current),[]),(0,f.Oh)();let Q=r.useCallback(e=>{var t,n;return z.current===(null===(t=q.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;er!=c>r&&n<(u-l)*(r-i)/(c-i)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=q.current)||void 0===n?void 0:n.area)},[]);return(0,R.jsx)(J,{scope:n,searchRef:V,onItemEnter:r.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),onItemLeave:r.useCallback(e=>{var t;Q(e)||(null===(t=K.current)||void 0===t||t.focus(),O(null))},[Q]),onTriggerLeave:r.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),pointerGraceTimerRef:H,onPointerGraceIntentChange:r.useCallback(e=>{q.current=e},[]),children:(0,R.jsx)(Y,{...M?{as:$,allowPinchZoom:!0}:void 0,children:(0,R.jsx)(p.n,{asChild:!0,trapped:i,onMountAutoFocus:(0,o.m)(u,e=>{var t;e.preventDefault(),null===(t=K.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,R.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:x,onDismiss:b,children:(0,R.jsx)(w.bL,{asChild:!0,...I,dir:T.dir,orientation:"vertical",loop:l,currentTabStopId:L,onCurrentTabStopIdChange:O,onEntryFocus:(0,o.m)(m,e=>{T.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,R.jsx)(v.UC,{role:"menu","aria-orientation":"vertical","data-state":eS(S.open),"data-radix-menu-content":"",dir:T.dir,..._,...D,ref:B,style:{outline:"none",...D.style},onKeyDown:(0,o.m)(D.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&W(e.key));let o=K.current;if(e.target!==o||!k.includes(e.key))return;e.preventDefault();let a=P().filter(e=>!e.disabled).map(e=>e.ref.current);j.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,o.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(U.current),V.current="")}),onPointerMove:(0,o.m)(e.onPointerMove,eE(e=>{let t=e.target,n=Z.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>Z.current?"right":"left";z.current=t,Z.current=e.clientX}}))})})})})})})});Y.displayName=X;var et=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,R.jsx)(u.sG.div,{role:"group",...r,ref:t})});et.displayName="MenuGroup";var en=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,R.jsx)(u.sG.div,{...r,ref:t})});en.displayName="MenuLabel";var er="MenuItem",eo="menu.itemSelect",ea=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:l,...i}=e,c=r.useRef(null),s=G(er,e.__scopeMenu),d=Z(er,e.__scopeMenu),f=(0,a.s)(t,c),p=r.useRef(!1);return(0,R.jsx)(el,{...i,ref:f,disabled:n,onClick:(0,o.m)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(eo,{bubbles:!0,cancelable:!0});e.addEventListener(eo,e=>null==l?void 0:l(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,o.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&M.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ea.displayName=er;var el=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:l=!1,textValue:i,...c}=e,s=Z(er,n),d=A(n),f=r.useRef(null),p=(0,a.s)(t,f),[m,v]=r.useState(!1),[h,g]=r.useState("");return r.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,R.jsx)(_.ItemSlot,{scope:n,disabled:l,textValue:null!=i?i:h,children:(0,R.jsx)(w.q7,{asChild:!0,...d,focusable:!l,children:(0,R.jsx)(u.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...c,ref:p,onPointerMove:(0,o.m)(e.onPointerMove,eE(e=>{l?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eE(e=>s.onItemLeave(e))),onFocus:(0,o.m)(e.onFocus,()=>v(!0)),onBlur:(0,o.m)(e.onBlur,()=>v(!1))})})})}),ei=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...a}=e;return(0,R.jsx)(ev,{scope:e.__scopeMenu,checked:n,children:(0,R.jsx)(ea,{role:"menuitemcheckbox","aria-checked":eT(n)?"mixed":n,...a,ref:t,"data-state":e_(n),onSelect:(0,o.m)(a.onSelect,()=>null==r?void 0:r(!!eT(n)||!n),{checkForDefaultPrevented:!1})})})});ei.displayName="MenuCheckboxItem";var eu="MenuRadioGroup",[ec,es]=P(eu,{value:void 0,onValueChange:()=>{}}),ed=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,a=(0,x.c)(r);return(0,R.jsx)(ec,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,R.jsx)(et,{...o,ref:t})})});ed.displayName=eu;var ef="MenuRadioItem",ep=r.forwardRef((e,t)=>{let{value:n,...r}=e,a=es(ef,e.__scopeMenu),l=n===a.value;return(0,R.jsx)(ev,{scope:e.__scopeMenu,checked:l,children:(0,R.jsx)(ea,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":e_(l),onSelect:(0,o.m)(r.onSelect,()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})})});ep.displayName=ef;var em="MenuItemIndicator",[ev,eh]=P(em,{checked:!1}),eg=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,a=eh(em,n);return(0,R.jsx)(g.C,{present:r||eT(a.checked)||!0===a.checked,children:(0,R.jsx)(u.sG.span,{...o,ref:t,"data-state":e_(a.checked)})})});eg.displayName=em;var ew=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,R.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ew.displayName="MenuSeparator";var ey=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=N(n);return(0,R.jsx)(v.i3,{...o,...r,ref:t})});ey.displayName="MenuArrow";var ex="MenuSub",[eb,eC]=P(ex),eR=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:a}=e,l=F(ex,t),i=N(t),[u,c]=r.useState(null),[s,d]=r.useState(null),f=(0,x.c)(a);return r.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,R.jsx)(v.bL,{...i,children:(0,R.jsx)(O,{scope:t,open:o,onOpenChange:f,content:s,onContentChange:d,children:(0,R.jsx)(eb,{scope:t,contentId:(0,m.B)(),triggerId:(0,m.B)(),trigger:u,onTriggerChange:c,children:n})})})};eR.displayName=ex;var eM="MenuSubTrigger",ej=r.forwardRef((e,t)=>{let n=F(eM,e.__scopeMenu),l=G(eM,e.__scopeMenu),i=eC(eM,e.__scopeMenu),u=Z(eM,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,R.jsx)(U,{asChild:!0,...f,children:(0,R.jsx)(el,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":eS(n.open),...e,ref:(0,a.t)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.m)(e.onPointerMove,eE(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eE(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=o[a?"left":"right"],i=o[a?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:i,y:o.top},{x:i,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.m)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&D[l.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});ej.displayName=eM;var ek="MenuSubContent",eD=r.forwardRef((e,t)=>{let n=q(X,e.__scopeMenu),{forceMount:l=n.forceMount,...i}=e,u=F(X,e.__scopeMenu),c=G(X,e.__scopeMenu),s=eC(ek,e.__scopeMenu),d=r.useRef(null),f=(0,a.s)(t,d);return(0,R.jsx)(_.Provider,{scope:e.__scopeMenu,children:(0,R.jsx)(g.C,{present:l||u.open,children:(0,R.jsx)(_.Slot,{scope:e.__scopeMenu,children:(0,R.jsx)(ee,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.m)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=S[c.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function eS(e){return e?"open":"closed"}function eT(e){return"indeterminate"===e}function e_(e){return eT(e)?"indeterminate":e?"checked":"unchecked"}function eE(e){return t=>"mouse"===t.pointerType?e(t):void 0}eD.displayName=ek;var eI="DropdownMenu",[eP,eL]=(0,l.A)(eI,[L]),eN=L(),[eA,eO]=eP(eI),eF=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,s=eN(t),d=r.useRef(null),[f=!1,p]=(0,i.i)({prop:a,defaultProp:l,onChange:u});return(0,R.jsx)(eA,{scope:t,triggerId:(0,m.B)(),triggerRef:d,contentId:(0,m.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:(0,R.jsx)(B,{...s,open:f,onOpenChange:p,dir:o,modal:c,children:n})})};eF.displayName=eI;var eK="DropdownMenuTrigger",eG=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...l}=e,i=eO(eK,n),c=eN(n);return(0,R.jsx)(U,{asChild:!0,...c,children:(0,R.jsx)(u.sG.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...l,ref:(0,a.t)(t,i.triggerRef),onPointerDown:(0,o.m)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eG.displayName=eK;var eB=e=>{let{__scopeDropdownMenu:t,...n}=e,r=eN(t);return(0,R.jsx)(z,{...r,...n})};eB.displayName="DropdownMenuPortal";var eU="DropdownMenuContent",eV=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,l=eO(eU,n),i=eN(n),u=r.useRef(!1);return(0,R.jsx)(Y,{id:l.contentId,"aria-labelledby":l.triggerId,...i,...a,ref:t,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=l.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eV.displayName=eU;var eH=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(et,{...o,...r,ref:t})});eH.displayName="DropdownMenuGroup";var eq=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(en,{...o,...r,ref:t})});eq.displayName="DropdownMenuLabel";var ez=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(ea,{...o,...r,ref:t})});ez.displayName="DropdownMenuItem";var eX=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(ei,{...o,...r,ref:t})});eX.displayName="DropdownMenuCheckboxItem";var eJ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(ed,{...o,...r,ref:t})});eJ.displayName="DropdownMenuRadioGroup";var eZ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(ep,{...o,...r,ref:t})});eZ.displayName="DropdownMenuRadioItem";var eY=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(eg,{...o,...r,ref:t})});eY.displayName="DropdownMenuItemIndicator";var eW=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(ew,{...o,...r,ref:t})});eW.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(ey,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var eQ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(ej,{...o,...r,ref:t})});eQ.displayName="DropdownMenuSubTrigger";var e$=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eN(n);return(0,R.jsx)(eD,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e$.displayName="DropdownMenuSubContent";var e0=eF,e1=eG,e5=eB,e6=eV,e2=eH,e8=eq,e7=ez,e4=eX,e3=eJ,e9=eZ,te=eY,tt=eW,tn=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,l=eN(t),[u=!1,c]=(0,i.i)({prop:r,defaultProp:a,onChange:o});return(0,R.jsx)(eR,{...l,open:u,onOpenChange:c,children:n})},tr=eQ,to=e$},67357:(e,t,n)=>{n.d(t,{RG:()=>b,bL:()=>_,q7:()=>E});var r=n(12115),o=n(93610),a=n(49741),l=n(88068),i=n(18166),u=n(67668),c=n(23360),s=n(41524),d=n(1488),f=n(4256),p=n(95155),m="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,w,y]=(0,a.N)(h),[x,b]=(0,i.A)(h,[y]),[C,R]=x(h),M=r.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(j,{...e,ref:t})})}));M.displayName=h;var j=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:i=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:b=!1,...R}=e,M=r.useRef(null),j=(0,l.s)(t,M),k=(0,f.jH)(u),[D=null,S]=(0,d.i)({prop:h,defaultProp:g,onChange:y}),[_,E]=r.useState(!1),I=(0,s.c)(x),P=w(n),L=r.useRef(!1),[N,A]=r.useState(0);return r.useEffect(()=>{let e=M.current;if(e)return e.addEventListener(m,I),()=>e.removeEventListener(m,I)},[I]),(0,p.jsx)(C,{scope:n,orientation:a,dir:k,loop:i,currentTabStopId:D,onItemFocus:r.useCallback(e=>S(e),[S]),onItemShiftTab:r.useCallback(()=>E(!0),[]),onFocusableItemAdd:r.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>A(e=>e-1),[]),children:(0,p.jsx)(c.sG.div,{tabIndex:_||0===N?-1:0,"data-orientation":a,...R,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(m,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),b)}}L.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>E(!1))})})}),k="RovingFocusGroupItem",D=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:l=!1,tabStopId:i,...s}=e,d=(0,u.B)(),f=i||d,m=R(k,n),v=m.currentTabStopId===f,h=w(n),{onFocusableItemAdd:y,onFocusableItemRemove:x}=m;return r.useEffect(()=>{if(a)return y(),()=>x()},[a,y,x]),(0,p.jsx)(g.ItemSlot,{scope:n,id:f,focusable:a,active:l,children:(0,p.jsx)(c.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...s,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return S[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=m.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>T(n))}})})})});D.displayName=k;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var _=M,E=D},67113:(e,t,n)=>{n.d(t,{D:()=>c,N:()=>s});var r=n(12115),o=["light","dark"],a="(prefers-color-scheme: dark)",l="undefined"==typeof window,i=r.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=r.useContext(i))?e:u},s=e=>r.useContext(i)?e.children:r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:l=!0,enableColorScheme:u=!0,storageKey:c="theme",themes:s=d,defaultTheme:f=l?"system":"light",attribute:g="data-theme",value:w,children:y,nonce:x}=e,[b,C]=r.useState(()=>m(c,f)),[R,M]=r.useState(()=>m(c)),j=w?Object.values(w):s,k=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&l&&(t=h());let r=w?w[t]:t,a=n?v():null,i=document.documentElement;if("class"===g?(i.classList.remove(...j),r&&i.classList.add(r)):r?i.setAttribute(g,r):i.removeAttribute(g),u){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;i.style.colorScheme=n}null==a||a()},[]),D=r.useCallback(e=>{let t="function"==typeof e?e(e):e;C(t);try{localStorage.setItem(c,t)}catch(e){}},[t]),S=r.useCallback(e=>{M(h(e)),"system"===b&&l&&!t&&k("system")},[b,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(S),S(e),()=>e.removeListener(S)},[S]),r.useEffect(()=>{let e=e=>{e.key===c&&D(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[D]),r.useEffect(()=>{k(null!=t?t:b)},[t,b]);let T=r.useMemo(()=>({theme:b,setTheme:D,forcedTheme:t,resolvedTheme:"system"===b?R:b,themes:l?[...s,"system"]:s,systemTheme:l?R:void 0}),[b,D,t,R,l,s]);return r.createElement(i.Provider,{value:T},r.createElement(p,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:l,enableColorScheme:u,storageKey:c,themes:s,defaultTheme:f,attribute:g,value:w,children:y,attrs:j,nonce:x}),y)},p=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:l,enableSystem:i,enableColorScheme:u,defaultTheme:c,value:s,attrs:d,nonce:f}=e,p="system"===c,m="class"===l?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(l,"',s='setAttribute';"),v=u?(o.includes(c)?c:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(c,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=s?s[e]:e,a=t?e+"|| ''":"'".concat(r,"'"),i="";return u&&n&&!t&&o.includes(e)&&(i+="d.style.colorScheme = '".concat(e,"';")),"class"===l?t||r?i+="c.add(".concat(a,")"):i+="null":r&&(i+="d[s](n,".concat(a,")")),i},g=t?"!function(){".concat(m).concat(h(t),"}()"):i?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(h("dark"),"}else{").concat(h("light"),"}}else if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(h(s?"x[e]":"e",!0),"}").concat(p?"":"else{"+h(c,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(h(s?"x[e]":"e",!0),"}else{").concat(h(c,!1,!1),";}").concat(v,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})}),m=(e,t)=>{let n;if(!l){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2394-bec269701e2d0c16.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2394-bec269701e2d0c16.js new file mode 100644 index 0000000..17f0265 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2394-bec269701e2d0c16.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2394],{76076:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(39997).A)("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]])},59166:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},91994:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(39997).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},27720:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(39997).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},28702:(e,r,t)=>{t.d(r,{UC:()=>ei,Y9:()=>en,q7:()=>ea,bL:()=>et,l9:()=>eo});var a=t(20107),n=t(45170),o=t(32474),i=t(64236),l=t(94521),s=t(13061),c=t(34544),d=t(54122),u=t(54245),p=t(72763),f=t(20475),v="Collapsible",[m,h]=(0,n.A)(v),[b,y]=m(v),g=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:i,onOpenChange:l,...d}=e,[u=!1,v]=(0,s.i)({prop:n,defaultProp:o,onChange:l});return(0,f.jsx)(b,{scope:t,disabled:i,contentId:(0,p.B)(),open:u,onOpenToggle:a.useCallback(()=>v(e=>!e),[v]),children:(0,f.jsx)(c.sG.div,{"data-state":C(u),"data-disabled":i?"":void 0,...d,ref:r})})});g.displayName=v;var w="CollapsibleTrigger",x=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,...a}=e,n=y(w,t);return(0,f.jsx)(c.sG.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":C(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...a,ref:r,onClick:(0,l.m)(e.onClick,n.onOpenToggle)})});x.displayName=w;var j="CollapsibleContent",O=a.forwardRef((e,r)=>{let{forceMount:t,...a}=e,n=y(j,e.__scopeCollapsible);return(0,f.jsx)(u.C,{present:t||n.open,children:e=>{let{present:t}=e;return(0,f.jsx)(k,{...a,ref:r,present:t})}})});O.displayName=j;var k=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:n,children:o,...l}=e,s=y(j,t),[u,p]=a.useState(n),v=a.useRef(null),m=(0,i.s)(r,v),h=a.useRef(0),b=h.current,g=a.useRef(0),w=g.current,x=s.open||u,O=a.useRef(x),k=a.useRef();return a.useEffect(()=>{let e=requestAnimationFrame(()=>O.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{let e=v.current;if(e){k.current=k.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();h.current=r.height,g.current=r.width,O.current||(e.style.transitionDuration=k.current.transitionDuration,e.style.animationName=k.current.animationName),p(n)}},[s.open,n]),(0,f.jsx)(c.sG.div,{"data-state":C(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x,...l,ref:m,style:{"--radix-collapsible-content-height":b?"".concat(b,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:x&&o})});function C(e){return e?"open":"closed"}var A=t(76056),N="Accordion",R=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[P,I,D]=(0,o.N)(N),[_,E]=(0,n.A)(N,[D,h]),S=h(),M=a.forwardRef((e,r)=>{let{type:t,...a}=e;return(0,f.jsx)(P.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,f.jsx)(T,{...a,ref:r}):(0,f.jsx)(L,{...a,ref:r})})});M.displayName=N;var[G,q]=_(N),[z,H]=_(N,{collapsible:!1}),L=a.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[c,d]=(0,s.i)({prop:t,defaultProp:n,onChange:o});return(0,f.jsx)(G,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:d,onItemClose:a.useCallback(()=>i&&d(""),[i,d]),children:(0,f.jsx)(z,{scope:e.__scopeAccordion,collapsible:i,children:(0,f.jsx)(F,{...l,ref:r})})})}),T=a.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=e,[l=[],c]=(0,s.i)({prop:t,defaultProp:n,onChange:o}),d=a.useCallback(e=>c(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[c]),u=a.useCallback(e=>c(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[c]);return(0,f.jsx)(G,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:u,children:(0,f.jsx)(z,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(F,{...i,ref:r})})})}),[U,B]=_(N),F=a.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:n,dir:o,orientation:s="vertical",...d}=e,u=a.useRef(null),p=(0,i.s)(u,r),v=I(t),m="ltr"===(0,A.jH)(o),h=(0,l.m)(e.onKeyDown,e=>{var r;if(!R.includes(e.key))return;let t=e.target,a=v().filter(e=>{var r;return!(null===(r=e.ref.current)||void 0===r?void 0:r.disabled)}),n=a.findIndex(e=>e.ref.current===t),o=a.length;if(-1===n)return;e.preventDefault();let i=n,l=o-1,c=()=>{(i=n+1)>l&&(i=0)},d=()=>{(i=n-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===s&&(m?c():d());break;case"ArrowDown":"vertical"===s&&c();break;case"ArrowLeft":"horizontal"===s&&(m?d():c());break;case"ArrowUp":"vertical"===s&&d()}null===(r=a[i%o].ref.current)||void 0===r||r.focus()});return(0,f.jsx)(U,{scope:t,disabled:n,direction:o,orientation:s,children:(0,f.jsx)(P.Slot,{scope:t,children:(0,f.jsx)(c.sG.div,{...d,"data-orientation":s,ref:p,onKeyDown:n?void 0:h})})})}),K="AccordionItem",[V,W]=_(K),Y=a.forwardRef((e,r)=>{let{__scopeAccordion:t,value:a,...n}=e,o=B(K,t),i=q(K,t),l=S(t),s=(0,p.B)(),c=a&&i.value.includes(a)||!1,d=o.disabled||e.disabled;return(0,f.jsx)(V,{scope:t,open:c,disabled:d,triggerId:s,children:(0,f.jsx)(g,{"data-orientation":o.orientation,"data-state":er(c),...l,...n,ref:r,disabled:d,open:c,onOpenChange:e=>{e?i.onItemOpen(a):i.onItemClose(a)}})})});Y.displayName=K;var Z="AccordionHeader",J=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=B(N,t),o=W(Z,t);return(0,f.jsx)(c.sG.h3,{"data-orientation":n.orientation,"data-state":er(o.open),"data-disabled":o.disabled?"":void 0,...a,ref:r})});J.displayName=Z;var Q="AccordionTrigger",X=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=B(N,t),o=W(Q,t),i=H(Q,t),l=S(t);return(0,f.jsx)(P.ItemSlot,{scope:t,children:(0,f.jsx)(x,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...l,...a,ref:r})})});X.displayName=Q;var $="AccordionContent",ee=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=B(N,t),o=W($,t),i=S(t);return(0,f.jsx)(O,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...i,...a,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=$;var et=M,ea=Y,en=J,eo=X,ei=ee},33466:(e,r,t)=>{t.d(r,{C1:()=>x,bL:()=>w});var a=t(20107),n=t(54379),o=t(34544),i=t(20475),l="Progress",[s,c]=(0,n.A)(l),[d,u]=s(l),p=a.forwardRef((e,r)=>{var t,a,n,l;let{__scopeProgress:s,value:c=null,max:u,getValueLabel:p=m,...f}=e;(u||0===u)&&!y(u)&&console.error((t="".concat(u),a="Progress","Invalid prop `max` of value `".concat(t,"` supplied to `").concat(a,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let v=y(u)?u:100;null===c||g(c,v)||console.error((n="".concat(c),l="Progress","Invalid prop `value` of value `".concat(n,"` supplied to `").concat(l,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let w=g(c,v)?c:null,x=b(w)?p(w,v):void 0;return(0,i.jsx)(d,{scope:s,value:w,max:v,children:(0,i.jsx)(o.sG.div,{"aria-valuemax":v,"aria-valuemin":0,"aria-valuenow":b(w)?w:void 0,"aria-valuetext":x,role:"progressbar","data-state":h(w,v),"data-value":null!=w?w:void 0,"data-max":v,...f,ref:r})})});p.displayName=l;var f="ProgressIndicator",v=a.forwardRef((e,r)=>{var t;let{__scopeProgress:a,...n}=e,l=u(f,a);return(0,i.jsx)(o.sG.div,{"data-state":h(l.value,l.max),"data-value":null!==(t=l.value)&&void 0!==t?t:void 0,"data-max":l.max,...n,ref:r})});function m(e,r){return"".concat(Math.round(e/r*100),"%")}function h(e,r){return null==e?"indeterminate":e===r?"complete":"loading"}function b(e){return"number"==typeof e}function y(e){return b(e)&&!isNaN(e)&&e>0}function g(e,r){return b(e)&&!isNaN(e)&&e<=r&&e>=0}v.displayName=f;var w=p,x=v},91475:(e,r,t)=>{t.d(r,{b:()=>l,s:()=>i});var a=t(20107),n=t(34544),o=t(20475),i=a.forwardRef((e,r)=>(0,o.jsx)(n.sG.span,{...e,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var l=i},45930:(e,r,t)=>{t.d(r,{k5:()=>d});var a=t(20107),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=a.createContext&&a.createContext(n),i=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var r=1;ra.createElement(u,l({attr:c({},e.attr)},r),function e(r){return r&&r.map((r,t)=>a.createElement(r.tag,c({key:t},r.attr),e(r.child)))}(e.child))}function u(e){var r=r=>{var t,{attr:n,size:o,title:s}=e,d=function(e,r){if(null==e)return{};var t,a,n=function(e,r){if(null==e)return{};var t={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(r.indexOf(a)>=0)continue;t[a]=e[a]}return t}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,i),u=o||r.size||"1em";return r.className&&(t=r.className),e.className&&(t=(t?t+" ":"")+e.className),a.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,d,{className:t,style:c(c({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&a.createElement("title",null,s),e.children)};return void 0!==o?a.createElement(o.Consumer,null,e=>r(e)):r(n)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/241-3bdc85b73bf85c52.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/241-3bdc85b73bf85c52.js new file mode 100644 index 0000000..0e1b111 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/241-3bdc85b73bf85c52.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[241],{60241:(e,n,t)=>{t.d(n,{G$:()=>J,Hs:()=>O,UC:()=>en,VY:()=>er,ZL:()=>Q,bL:()=>$,bm:()=>eo,hE:()=>et,hJ:()=>ee,l9:()=>z});var r=t(20107),o=t(94521),i=t(64236),a=t(45170),l=t(72763),s=t(13061),u=t(55302),d=t(38573),c=t(41913),f=t(54245),p=t(34544),m=t(10201),g=t(9543),v=t(58020),N=t(61837),y=t(20475),D="Dialog",[h,O]=(0,a.A)(D),[R,w]=h(D),C=e=>{let{__scopeDialog:n,children:t,open:o,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f=!1,p]=(0,s.i)({prop:o,defaultProp:i,onChange:a});return(0,y.jsx)(R,{scope:n,triggerRef:d,contentRef:c,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:t})};C.displayName=D;var I="DialogTrigger",b=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,a=w(I,t),l=(0,i.s)(n,a.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Z(a.open),...r,ref:l,onClick:(0,o.m)(e.onClick,a.onOpenToggle)})});b.displayName=I;var E="DialogPortal",[j,x]=h(E,{forceMount:void 0}),_=e=>{let{__scopeDialog:n,forceMount:t,children:o,container:i}=e,a=w(E,n);return(0,y.jsx)(j,{scope:n,forceMount:t,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:t||a.open,children:(0,y.jsx)(c.Z,{asChild:!0,container:i,children:e})}))})};_.displayName=E;var M="DialogOverlay",T=r.forwardRef((e,n)=>{let t=x(M,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,i=w(M,e.__scopeDialog);return i.modal?(0,y.jsx)(f.C,{present:r||i.open,children:(0,y.jsx)(A,{...o,ref:n})}):null});T.displayName=M;var A=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(M,t);return(0,y.jsx)(g.A,{as:N.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":Z(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),F="DialogContent",P=r.forwardRef((e,n)=>{let t=x(F,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,i=w(F,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||i.open,children:i.modal?(0,y.jsx)(U,{...o,ref:n}):(0,y.jsx)(k,{...o,ref:n})})});P.displayName=F;var U=r.forwardRef((e,n)=>{let t=w(F,e.__scopeDialog),a=r.useRef(null),l=(0,i.s)(n,t.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.Eq)(e)},[]),(0,y.jsx)(L,{...e,ref:l,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var n;e.preventDefault(),null===(n=t.triggerRef.current)||void 0===n||n.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),k=r.forwardRef((e,n)=>{let t=w(F,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(L,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current||null===(a=t.triggerRef.current)||void 0===a||a.focus(),n.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:n=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current=!0,"pointerdown"!==n.detail.originalEvent.type||(i.current=!0));let l=n.target;(null===(a=t.triggerRef.current)||void 0===a?void 0:a.contains(l))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&i.current&&n.preventDefault()}})}),L=r.forwardRef((e,n)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...s}=e,c=w(F,t),f=r.useRef(null),p=(0,i.s)(n,f);return(0,m.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,y.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Z(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(X,{titleId:c.titleId}),(0,y.jsx)(Y,{contentRef:f,descriptionId:c.descriptionId})]})]})}),W="DialogTitle",S=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(W,t);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:n})});S.displayName=W;var G="DialogDescription",B=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(G,t);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:n})});B.displayName=G;var q="DialogClose",V=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,i=w(q,t);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:n,onClick:(0,o.m)(e.onClick,()=>i.onOpenChange(!1))})});function Z(e){return e?"open":"closed"}V.displayName=q;var H="DialogTitleWarning",[J,K]=(0,a.q)(H,{contentName:F,titleName:W,docsSlug:"dialog"}),X=e=>{let{titleId:n}=e,t=K(H),o="`".concat(t.contentName,"` requires a `").concat(t.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(t.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(t.docsSlug);return r.useEffect(()=>{n&&!document.getElementById(n)&&console.error(o)},[o,n]),null},Y=e=>{let{contentRef:n,descriptionId:t}=e,o=K("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=n.current)||void 0===e?void 0:e.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(i)},[i,n,t]),null},$=C,z=b,Q=_,ee=T,en=P,et=S,er=B,eo=V},54245:(e,n,t)=>{t.d(n,{C:()=>a});var r=t(20107),o=t(64236),i=t(54122),a=e=>{let{present:n,children:t}=e,a=function(e){var n,t;let[o,a]=r.useState(),s=r.useRef({}),u=r.useRef(e),d=r.useRef("none"),[c,f]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=l(s.current);d.current="mounted"===c?e:"none"},[c]),(0,i.N)(()=>{let n=s.current,t=u.current;if(t!==e){let r=d.current,o=l(n);e?f("MOUNT"):"none"===o||(null==n?void 0:n.display)==="none"?f("UNMOUNT"):t&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let n;let t=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(d.current=l(s.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(n),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),a(e)},[])}}(n),s="function"==typeof t?t({present:a.isPresent}):r.Children.only(t),u=(0,o.s)(a.ref,function(e){var n,t;let r=null===(n=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===n?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(t=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof t||a.isPresent?r.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/241-87951836d46a7543.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/241-87951836d46a7543.js new file mode 100644 index 0000000..0e1b111 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/241-87951836d46a7543.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[241],{60241:(e,n,t)=>{t.d(n,{G$:()=>J,Hs:()=>O,UC:()=>en,VY:()=>er,ZL:()=>Q,bL:()=>$,bm:()=>eo,hE:()=>et,hJ:()=>ee,l9:()=>z});var r=t(20107),o=t(94521),i=t(64236),a=t(45170),l=t(72763),s=t(13061),u=t(55302),d=t(38573),c=t(41913),f=t(54245),p=t(34544),m=t(10201),g=t(9543),v=t(58020),N=t(61837),y=t(20475),D="Dialog",[h,O]=(0,a.A)(D),[R,w]=h(D),C=e=>{let{__scopeDialog:n,children:t,open:o,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f=!1,p]=(0,s.i)({prop:o,defaultProp:i,onChange:a});return(0,y.jsx)(R,{scope:n,triggerRef:d,contentRef:c,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:t})};C.displayName=D;var I="DialogTrigger",b=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,a=w(I,t),l=(0,i.s)(n,a.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Z(a.open),...r,ref:l,onClick:(0,o.m)(e.onClick,a.onOpenToggle)})});b.displayName=I;var E="DialogPortal",[j,x]=h(E,{forceMount:void 0}),_=e=>{let{__scopeDialog:n,forceMount:t,children:o,container:i}=e,a=w(E,n);return(0,y.jsx)(j,{scope:n,forceMount:t,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:t||a.open,children:(0,y.jsx)(c.Z,{asChild:!0,container:i,children:e})}))})};_.displayName=E;var M="DialogOverlay",T=r.forwardRef((e,n)=>{let t=x(M,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,i=w(M,e.__scopeDialog);return i.modal?(0,y.jsx)(f.C,{present:r||i.open,children:(0,y.jsx)(A,{...o,ref:n})}):null});T.displayName=M;var A=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(M,t);return(0,y.jsx)(g.A,{as:N.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":Z(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),F="DialogContent",P=r.forwardRef((e,n)=>{let t=x(F,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,i=w(F,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||i.open,children:i.modal?(0,y.jsx)(U,{...o,ref:n}):(0,y.jsx)(k,{...o,ref:n})})});P.displayName=F;var U=r.forwardRef((e,n)=>{let t=w(F,e.__scopeDialog),a=r.useRef(null),l=(0,i.s)(n,t.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.Eq)(e)},[]),(0,y.jsx)(L,{...e,ref:l,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var n;e.preventDefault(),null===(n=t.triggerRef.current)||void 0===n||n.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),k=r.forwardRef((e,n)=>{let t=w(F,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(L,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current||null===(a=t.triggerRef.current)||void 0===a||a.focus(),n.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:n=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current=!0,"pointerdown"!==n.detail.originalEvent.type||(i.current=!0));let l=n.target;(null===(a=t.triggerRef.current)||void 0===a?void 0:a.contains(l))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&i.current&&n.preventDefault()}})}),L=r.forwardRef((e,n)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...s}=e,c=w(F,t),f=r.useRef(null),p=(0,i.s)(n,f);return(0,m.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,y.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Z(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(X,{titleId:c.titleId}),(0,y.jsx)(Y,{contentRef:f,descriptionId:c.descriptionId})]})]})}),W="DialogTitle",S=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(W,t);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:n})});S.displayName=W;var G="DialogDescription",B=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(G,t);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:n})});B.displayName=G;var q="DialogClose",V=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,i=w(q,t);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:n,onClick:(0,o.m)(e.onClick,()=>i.onOpenChange(!1))})});function Z(e){return e?"open":"closed"}V.displayName=q;var H="DialogTitleWarning",[J,K]=(0,a.q)(H,{contentName:F,titleName:W,docsSlug:"dialog"}),X=e=>{let{titleId:n}=e,t=K(H),o="`".concat(t.contentName,"` requires a `").concat(t.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(t.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(t.docsSlug);return r.useEffect(()=>{n&&!document.getElementById(n)&&console.error(o)},[o,n]),null},Y=e=>{let{contentRef:n,descriptionId:t}=e,o=K("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=n.current)||void 0===e?void 0:e.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(i)},[i,n,t]),null},$=C,z=b,Q=_,ee=T,en=P,et=S,er=B,eo=V},54245:(e,n,t)=>{t.d(n,{C:()=>a});var r=t(20107),o=t(64236),i=t(54122),a=e=>{let{present:n,children:t}=e,a=function(e){var n,t;let[o,a]=r.useState(),s=r.useRef({}),u=r.useRef(e),d=r.useRef("none"),[c,f]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=l(s.current);d.current="mounted"===c?e:"none"},[c]),(0,i.N)(()=>{let n=s.current,t=u.current;if(t!==e){let r=d.current,o=l(n);e?f("MOUNT"):"none"===o||(null==n?void 0:n.display)==="none"?f("UNMOUNT"):t&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let n;let t=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(d.current=l(s.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(n),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),a(e)},[])}}(n),s="function"==typeof t?t({present:a.isPresent}):r.Children.only(t),u=(0,o.s)(a.ref,function(e){var n,t;let r=null===(n=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===n?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(t=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof t||a.isPresent?r.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6586-9aecbb20af42bc47.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2487-1232e926f8daa8b5.js similarity index 72% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6586-9aecbb20af42bc47.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2487-1232e926f8daa8b5.js index eeb7b26..389d7f1 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6586-9aecbb20af42bc47.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2487-1232e926f8daa8b5.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6586],{39677:(e,t,r)=>{r.d(t,{Fc:()=>i,TN:()=>c,XL:()=>l});var a=r(95155),s=r(12115),d=r(31027),n=r(29602);let o=(0,d.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),i=s.forwardRef((e,t)=>{let{className:r,variant:s,...d}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(o({variant:s}),r),...d})});i.displayName="Alert";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...s})});l.displayName="AlertTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...s})});c.displayName="AlertDescription"},39286:(e,t,r)=>{r.d(t,{E:()=>o});var a=r(95155);r(12115);var s=r(31027),d=r(29602);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,d.cn)(n({variant:r}),t),...s})}},14085:(e,t,r)=>{r.d(t,{$:()=>l,r:()=>i});var a=r(95155),s=r(12115),d=r(12317),n=r(31027),o=r(29602);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:l=!1,...c}=e,f=l?d.DX:"button";return(0,a.jsx)(f,{className:(0,o.cn)(i({variant:s,size:n,className:r})),ref:t,...c})});l.displayName="Button"},35007:(e,t,r)=>{r.d(t,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>o,wL:()=>f});var a=r(95155),s=r(12115),d=r(29602);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("flex flex-col space-y-1.5 p-6",r),...s})});o.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,d.cn)("font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,d.cn)("text-sm text-muted-foreground",r),...s})});l.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("flex items-center p-6 pt-0",r),...s})});f.displayName="CardFooter"},9955:(e,t,r)=>{r.d(t,{p:()=>n});var a=r(95155),s=r(12115),d=r(29602);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,d.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},15785:(e,t,r)=>{r.d(t,{J:()=>l});var a=r(95155),s=r(12115),d=r(46195),n=r(31027),o=r(29602);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(d.b,{ref:t,className:(0,o.cn)(i(),r),...s})});l.displayName=d.b.displayName},50745:(e,t,r)=>{r.d(t,{TR:()=>x,bq:()=>f,eb:()=>g,gC:()=>m,l6:()=>i,s3:()=>l,yv:()=>c});var a=r(95155),s=r(12115),d=r(87365),n=r(63409),o=r(29602);let i=n.bL,l=n.YJ,c=n.WT,f=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(n.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[s,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(d.TBE,{className:"h-4 w-4 opacity-50"})})]})});f.displayName=n.l9.displayName;let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(d.Mtm,{})})});u.displayName=n.PP.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(d.D3D,{})})});p.displayName=n.wn.displayName;let m=s.forwardRef((e,t)=>{let{className:r,children:s,position:d="popper",...i}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===d&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:d,...i,children:[(0,a.jsx)(u,{}),(0,a.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===d&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(p,{})]})})});m.displayName=n.UC.displayName;let x=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...s})});x.displayName=n.JU.displayName;let g=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(n.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(d.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:s})]})});g.displayName=n.q7.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...s})}).displayName=n.wv.displayName},89282:(e,t,r)=>{r.d(t,{w:()=>o});var a=r(95155),s=r(12115),d=r(90434),n=r(29602);let o=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:o=!0,...i}=e;return(0,a.jsx)(d.b,{ref:t,decorative:o,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=d.b.displayName},20241:(e,t,r)=>{r.d(t,{dj:()=>u,oR:()=>f});var a=r(12115);let s=0,d=new Map,n=e=>{if(d.has(e))return;let t=setTimeout(()=>{d.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);d.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],l={toasts:[]};function c(e){l=o(l,e),i.forEach(e=>{e(l)})}function f(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(l);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:f,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,r)=>{r.d(t,{cn:()=>d});var a=r(43463),s=r(69795);function d(){for(var e=arguments.length,t=Array(e),r=0;r{r.d(t,{A:()=>a});let a=(0,r(67401).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},4834:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(67401).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},87780:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(67401).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2487],{49573:(e,t,r)=>{r.d(t,{Fc:()=>i,TN:()=>c,XL:()=>l});var a=r(20475),s=r(20107),d=r(29395),n=r(22250);let o=(0,d.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),i=s.forwardRef((e,t)=>{let{className:r,variant:s,...d}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(o({variant:s}),r),...d})});i.displayName="Alert";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...s})});l.displayName="AlertTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...s})});c.displayName="AlertDescription"},45934:(e,t,r)=>{r.d(t,{E:()=>o});var a=r(20475);r(20107);var s=r(29395),d=r(22250);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,d.cn)(n({variant:r}),t),...s})}},42541:(e,t,r)=>{r.d(t,{$:()=>l,r:()=>i});var a=r(20475),s=r(20107),d=r(61837),n=r(29395),o=r(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:l=!1,...c}=e,f=l?d.DX:"button";return(0,a.jsx)(f,{className:(0,o.cn)(i({variant:s,size:n,className:r})),ref:t,...c})});l.displayName="Button"},72167:(e,t,r)=>{r.d(t,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>o,wL:()=>f});var a=r(20475),s=r(20107),d=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("flex flex-col space-y-1.5 p-6",r),...s})});o.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,d.cn)("font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,d.cn)("text-sm text-muted-foreground",r),...s})});l.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("flex items-center p-6 pt-0",r),...s})});f.displayName="CardFooter"},64219:(e,t,r)=>{r.d(t,{p:()=>n});var a=r(20475),s=r(20107),d=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,d.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{r.d(t,{J:()=>l});var a=r(20475),s=r(20107),d=r(21840),n=r(29395),o=r(22250);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(d.b,{ref:t,className:(0,o.cn)(i(),r),...s})});l.displayName=d.b.displayName},35601:(e,t,r)=>{r.d(t,{TR:()=>x,bq:()=>f,eb:()=>g,gC:()=>m,l6:()=>i,s3:()=>l,yv:()=>c});var a=r(20475),s=r(20107),d=r(7197),n=r(95257),o=r(22250);let i=n.bL,l=n.YJ,c=n.WT,f=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(n.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[s,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(d.TBE,{className:"h-4 w-4 opacity-50"})})]})});f.displayName=n.l9.displayName;let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(d.Mtm,{})})});u.displayName=n.PP.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(d.D3D,{})})});p.displayName=n.wn.displayName;let m=s.forwardRef((e,t)=>{let{className:r,children:s,position:d="popper",...i}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===d&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:d,...i,children:[(0,a.jsx)(u,{}),(0,a.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===d&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(p,{})]})})});m.displayName=n.UC.displayName;let x=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...s})});x.displayName=n.JU.displayName;let g=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(n.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(d.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:s})]})});g.displayName=n.q7.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...s})}).displayName=n.wv.displayName},76554:(e,t,r)=>{r.d(t,{w:()=>o});var a=r(20475),s=r(20107),d=r(88853),n=r(22250);let o=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:o=!0,...i}=e;return(0,a.jsx)(d.b,{ref:t,decorative:o,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=d.b.displayName},32857:(e,t,r)=>{r.d(t,{dj:()=>u,oR:()=>f});var a=r(20107);let s=0,d=new Map,n=e=>{if(d.has(e))return;let t=setTimeout(()=>{d.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);d.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],l={toasts:[]};function c(e){l=o(l,e),i.forEach(e=>{e(l)})}function f(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(l);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:f,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{r.d(t,{cn:()=>d});var a=r(64901),s=r(868);function d(){for(var e=arguments.length,t=Array(e),r=0;r{r.d(t,{A:()=>a});let a=(0,r(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},97801:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},52161:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(39997).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2494-1b55b4db233d7e31.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2494-1b55b4db233d7e31.js new file mode 100644 index 0000000..330bd06 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2494-1b55b4db233d7e31.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2494],{39997:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var u={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...u,width:o,height:o,stroke:r,strokeWidth:a?24*Number(l)/Number(o):l,className:i("lucide",s),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let r=(0,n.forwardRef)((r,u)=>{let{className:a,...s}=r;return(0,n.createElement)(l,{ref:u,iconNode:t,className:i("lucide-".concat(o(e)),a),...s})});return r.displayName="".concat(e),r}},29475:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},91994:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},94521:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},32713:(e,t,r)=>{r.d(t,{C1:()=>A,bL:()=>x});var n=r(20107),o=r(64236),i=r(45170),u=r(94521),l=r(13061),a=r(65163),s=r(63620),c=r(54245),d=r(34544),f=r(20475),v="Checkbox",[m,p]=(0,i.A)(v),[h,y]=m(v),N=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:i,checked:a,defaultChecked:s,required:c,disabled:v,value:m="on",onCheckedChange:p,form:y,...N}=e,[b,w]=n.useState(null),x=(0,o.s)(t,e=>w(e)),A=n.useRef(!1),M=!b||y||!!b.closest("form"),[O=!1,C]=(0,l.i)({prop:a,defaultProp:s,onChange:p}),R=n.useRef(O);return n.useEffect(()=>{let e=null==b?void 0:b.form;if(e){let t=()=>C(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[b,C]),(0,f.jsxs)(h,{scope:r,state:O,disabled:v,children:[(0,f.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":k(O)?"mixed":O,"aria-required":c,"data-state":E(O),"data-disabled":v?"":void 0,disabled:v,value:m,...N,ref:x,onKeyDown:(0,u.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,u.m)(e.onClick,e=>{C(e=>!!k(e)||!e),M&&(A.current=e.isPropagationStopped(),A.current||e.stopPropagation())})}),M&&(0,f.jsx)(g,{control:b,bubbles:!A.current,name:i,value:m,checked:O,required:c,disabled:v,form:y,style:{transform:"translateX(-100%)"},defaultChecked:!k(s)&&s})]})});N.displayName=v;var b="CheckboxIndicator",w=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...o}=e,i=y(b,r);return(0,f.jsx)(c.C,{present:n||k(i.state)||!0===i.state,children:(0,f.jsx)(d.sG.span,{"data-state":E(i.state),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});w.displayName=b;var g=e=>{let{control:t,checked:r,bubbles:o=!0,defaultChecked:i,...u}=e,l=n.useRef(null),c=(0,a.Z)(r),d=(0,s.X)(t);n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:o});e.indeterminate=k(r),t.call(e,!k(r)&&r),e.dispatchEvent(n)}},[c,r,o]);let v=n.useRef(!k(r)&&r);return(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=i?i:v.current,...u,tabIndex:-1,ref:l,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function k(e){return"indeterminate"===e}function E(e){return k(e)?"indeterminate":e?"checked":"unchecked"}var x=N,A=w},45170:(e,t,r)=>{r.d(t,{A:()=>u,q:()=>i});var n=r(20107),o=r(20475);function i(e,t){let r=n.createContext(t),i=e=>{let{children:t,...i}=e,u=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:u,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function u(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let u=n.createContext(i),l=r.length;r=[...r,i];let a=t=>{let{scope:r,children:i,...a}=t,s=r?.[e]?.[l]||u,c=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(s.Provider,{value:c,children:i})};return a.displayName=t+"Provider",[a,function(r,o){let a=o?.[e]?.[l]||u,s=n.useContext(a);if(s)return s;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},54245:(e,t,r)=>{r.d(t,{C:()=>u});var n=r(20107),o=r(64236),i=r(54122),u=e=>{let{present:t,children:r}=e,u=function(e){var t,r;let[o,u]=n.useState(),a=n.useRef({}),s=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=l(a.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=a.current,r=s.current;if(r!==e){let n=c.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=l(a.current).includes(e.animationName);if(e.target===o&&n&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=l(a.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(a.current=getComputedStyle(e)),u(e)},[])}}(t),a="function"==typeof r?r({present:u.isPresent}):n.Children.only(r),s=(0,o.s)(u.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof r||u.isPresent?n.cloneElement(a,{ref:s}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},34544:(e,t,r)=>{r.d(t,{hO:()=>a,sG:()=>l});var n=r(20107),o=r(25642),i=r(61837),u=r(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,l=n?i.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(l,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function a(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(20107);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,r)=>{r.d(t,{i:()=>i});var n=r(20107),o=r(46774);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,u]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[i]=r,u=n.useRef(i),l=(0,o.c)(t);return n.useEffect(()=>{u.current!==i&&(l(i),u.current=i)},[i,u,l]),r}({defaultProp:t,onChange:r}),l=void 0!==e,a=l?e:i,s=(0,o.c)(r);return[a,n.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else u(t)},[l,e,u,s])]}},54122:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(20107),o=globalThis?.document?n.useLayoutEffect:()=>{}},65163:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(20107);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,r)=>{r.d(t,{X:()=>i});var n=r(20107),o=r(54122);function i(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},29395:(e,t,r)=>{r.d(t,{F:()=>i});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,r=0,n="";rr=>{var i;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:u,defaultVariants:l}=t,a=Object.keys(u).map(e=>{let t=null==r?void 0:r[e],o=null==l?void 0:l[e];if(null===t)return null;let i=n(t)||n(o);return u[e][i]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,a,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...s}[t]):({...l,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2494-8e5cba9549592786.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2494-8e5cba9549592786.js new file mode 100644 index 0000000..330bd06 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2494-8e5cba9549592786.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2494],{39997:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var u={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...u,width:o,height:o,stroke:r,strokeWidth:a?24*Number(l)/Number(o):l,className:i("lucide",s),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let r=(0,n.forwardRef)((r,u)=>{let{className:a,...s}=r;return(0,n.createElement)(l,{ref:u,iconNode:t,className:i("lucide-".concat(o(e)),a),...s})});return r.displayName="".concat(e),r}},29475:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},91994:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},94521:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},32713:(e,t,r)=>{r.d(t,{C1:()=>A,bL:()=>x});var n=r(20107),o=r(64236),i=r(45170),u=r(94521),l=r(13061),a=r(65163),s=r(63620),c=r(54245),d=r(34544),f=r(20475),v="Checkbox",[m,p]=(0,i.A)(v),[h,y]=m(v),N=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:i,checked:a,defaultChecked:s,required:c,disabled:v,value:m="on",onCheckedChange:p,form:y,...N}=e,[b,w]=n.useState(null),x=(0,o.s)(t,e=>w(e)),A=n.useRef(!1),M=!b||y||!!b.closest("form"),[O=!1,C]=(0,l.i)({prop:a,defaultProp:s,onChange:p}),R=n.useRef(O);return n.useEffect(()=>{let e=null==b?void 0:b.form;if(e){let t=()=>C(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[b,C]),(0,f.jsxs)(h,{scope:r,state:O,disabled:v,children:[(0,f.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":k(O)?"mixed":O,"aria-required":c,"data-state":E(O),"data-disabled":v?"":void 0,disabled:v,value:m,...N,ref:x,onKeyDown:(0,u.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,u.m)(e.onClick,e=>{C(e=>!!k(e)||!e),M&&(A.current=e.isPropagationStopped(),A.current||e.stopPropagation())})}),M&&(0,f.jsx)(g,{control:b,bubbles:!A.current,name:i,value:m,checked:O,required:c,disabled:v,form:y,style:{transform:"translateX(-100%)"},defaultChecked:!k(s)&&s})]})});N.displayName=v;var b="CheckboxIndicator",w=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...o}=e,i=y(b,r);return(0,f.jsx)(c.C,{present:n||k(i.state)||!0===i.state,children:(0,f.jsx)(d.sG.span,{"data-state":E(i.state),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});w.displayName=b;var g=e=>{let{control:t,checked:r,bubbles:o=!0,defaultChecked:i,...u}=e,l=n.useRef(null),c=(0,a.Z)(r),d=(0,s.X)(t);n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:o});e.indeterminate=k(r),t.call(e,!k(r)&&r),e.dispatchEvent(n)}},[c,r,o]);let v=n.useRef(!k(r)&&r);return(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=i?i:v.current,...u,tabIndex:-1,ref:l,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function k(e){return"indeterminate"===e}function E(e){return k(e)?"indeterminate":e?"checked":"unchecked"}var x=N,A=w},45170:(e,t,r)=>{r.d(t,{A:()=>u,q:()=>i});var n=r(20107),o=r(20475);function i(e,t){let r=n.createContext(t),i=e=>{let{children:t,...i}=e,u=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:u,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function u(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let u=n.createContext(i),l=r.length;r=[...r,i];let a=t=>{let{scope:r,children:i,...a}=t,s=r?.[e]?.[l]||u,c=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(s.Provider,{value:c,children:i})};return a.displayName=t+"Provider",[a,function(r,o){let a=o?.[e]?.[l]||u,s=n.useContext(a);if(s)return s;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},54245:(e,t,r)=>{r.d(t,{C:()=>u});var n=r(20107),o=r(64236),i=r(54122),u=e=>{let{present:t,children:r}=e,u=function(e){var t,r;let[o,u]=n.useState(),a=n.useRef({}),s=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=l(a.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=a.current,r=s.current;if(r!==e){let n=c.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=l(a.current).includes(e.animationName);if(e.target===o&&n&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=l(a.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(a.current=getComputedStyle(e)),u(e)},[])}}(t),a="function"==typeof r?r({present:u.isPresent}):n.Children.only(r),s=(0,o.s)(u.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof r||u.isPresent?n.cloneElement(a,{ref:s}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},34544:(e,t,r)=>{r.d(t,{hO:()=>a,sG:()=>l});var n=r(20107),o=r(25642),i=r(61837),u=r(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,l=n?i.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(l,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function a(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(20107);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,r)=>{r.d(t,{i:()=>i});var n=r(20107),o=r(46774);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,u]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[i]=r,u=n.useRef(i),l=(0,o.c)(t);return n.useEffect(()=>{u.current!==i&&(l(i),u.current=i)},[i,u,l]),r}({defaultProp:t,onChange:r}),l=void 0!==e,a=l?e:i,s=(0,o.c)(r);return[a,n.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else u(t)},[l,e,u,s])]}},54122:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(20107),o=globalThis?.document?n.useLayoutEffect:()=>{}},65163:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(20107);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,r)=>{r.d(t,{X:()=>i});var n=r(20107),o=r(54122);function i(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},29395:(e,t,r)=>{r.d(t,{F:()=>i});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,r=0,n="";rr=>{var i;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:u,defaultVariants:l}=t,a=Object.keys(u).map(e=>{let t=null==r?void 0:r[e],o=null==l?void 0:l[e];if(null===t)return null;let i=n(t)||n(o);return u[e][i]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,a,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...s}[t]):({...l,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2682-7f9e5e2a8bb2f859.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2682-7f9e5e2a8bb2f859.js new file mode 100644 index 0000000..dc5e380 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2682-7f9e5e2a8bb2f859.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2682],{32474:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(20107),o=n(54379),a=n(64236),l=n(61837),i=n(20475);function c(e){let t=e+"CollectionProvider",[n,c]=(0,o.A)(t),[s,d]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,i.jsx)(s,{scope:t,itemMap:a,collectionRef:o,children:n})};u.displayName=t;let m=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=d(m,n),c=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(l.DX,{ref:c,children:r})});f.displayName=m;let p=e+"CollectionItemSlot",h="data-radix-collection-item",v=r.forwardRef((e,t)=>{let{scope:n,children:o,...c}=e,s=r.useRef(null),u=(0,a.s)(t,s),m=d(p,n);return r.useEffect(()=>(m.itemMap.set(s,{ref:s,...c}),()=>void m.itemMap.delete(s))),(0,i.jsx)(l.DX,{[h]:"",ref:u,children:o})});return v.displayName=p,[{Provider:u,Slot:f,ItemSlot:v},function(t){let n=d(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},c]}},54379:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(20107),o=n(20475);function a(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return l.scopeName=e,[function(t,a){let l=r.createContext(a),i=n.length;function c(t){let{scope:n,children:a,...c}=t,s=n?.[e][i]||l,d=r.useMemo(()=>c,Object.values(c));return(0,o.jsx)(s.Provider,{value:d,children:a})}return n=[...n,a],c.displayName=t+"Provider",[c,function(n,o){let c=o?.[e][i]||l,s=r.useContext(c);if(s)return s;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(l,...t)]}},57563:(e,t,n)=>{n.d(t,{Mz:()=>P,i3:()=>I,UC:()=>_,bL:()=>O,Bk:()=>v});var r=n(20107),o=n(9895),a=n(84069),l=n(34544),i=n(20475),c=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,i.jsx)(l.sG.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})});c.displayName="Arrow";var s=n(64236),d=n(54379),u=n(46774),m=n(54122),f=n(63620),p="Popper",[h,v]=(0,d.A)(p),[y,g]=h(p),w=e=>{let{__scopePopper:t,children:n}=e,[o,a]=r.useState(null);return(0,i.jsx)(y,{scope:t,anchor:o,onAnchorChange:a,children:n})};w.displayName=p;var x="PopperAnchor",b=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...a}=e,c=g(x,n),d=r.useRef(null),u=(0,s.s)(t,d);return r.useEffect(()=>{c.onAnchorChange((null==o?void 0:o.current)||d.current)}),o?null:(0,i.jsx)(l.sG.div,{...a,ref:u})});b.displayName=x;var C="PopperContent",[S,A]=h(C),N=r.forwardRef((e,t)=>{var n,c,d,p,h,v,y,w;let{__scopePopper:x,side:b="bottom",sideOffset:A=0,align:N="center",alignOffset:E=0,arrowPadding:j=0,avoidCollisions:k=!0,collisionBoundary:O=[],collisionPadding:P=0,sticky:_="partial",hideWhenDetached:I=!1,updatePositionStrategy:L="optimized",onPlaced:H,...X}=e,z=g(C,x),[Y,$]=r.useState(null),B=(0,s.s)(t,e=>$(e)),[D,U]=r.useState(null),G=(0,f.X)(D),K=null!==(y=null==G?void 0:G.width)&&void 0!==y?y:0,F=null!==(w=null==G?void 0:G.height)&&void 0!==w?w:0,J="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},W=Array.isArray(O)?O:[O],q=W.length>0,V={padding:J,boundary:W.filter(M),altBoundary:q},{refs:Q,floatingStyles:Z,placement:ee,isPositioned:et,middlewareData:en}=(0,o.we)({strategy:"fixed",placement:b+("center"!==N?"-"+N:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:l}=n.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width","".concat(r,"px")),i.setProperty("--radix-popper-available-height","".concat(o,"px")),i.setProperty("--radix-popper-anchor-width","".concat(a,"px")),i.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&(0,o.UE)({element:D,padding:j}),R({arrowWidth:K,arrowHeight:F}),I&&(0,o.jD)({strategy:"referenceHidden",...V})]}),[er,eo]=T(ee),ea=(0,u.c)(H);(0,m.N)(()=>{et&&(null==ea||ea())},[et,ea]);let el=null===(n=en.arrow)||void 0===n?void 0:n.x,ei=null===(c=en.arrow)||void 0===c?void 0:c.y,ec=(null===(d=en.arrow)||void 0===d?void 0:d.centerOffset)!==0,[es,ed]=r.useState();return(0,m.N)(()=>{Y&&ed(window.getComputedStyle(Y).zIndex)},[Y]),(0,i.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:et?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null===(p=en.transformOrigin)||void 0===p?void 0:p.x,null===(h=en.transformOrigin)||void 0===h?void 0:h.y].join(" "),...(null===(v=en.hide)||void 0===v?void 0:v.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(S,{scope:x,placedSide:er,onArrowChange:U,arrowX:el,arrowY:ei,shouldHideArrow:ec,children:(0,i.jsx)(l.sG.div,{"data-side":er,"data-align":eo,...X,ref:B,style:{...X.style,animation:et?void 0:"none"}})})})});N.displayName=C;var E="PopperArrow",j={top:"bottom",right:"left",bottom:"top",left:"right"},k=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=A(E,n),a=j[o.placedSide];return(0,i.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,i.jsx)(c,{...r,ref:t,style:{...r.style,display:"block"}})})});function M(e){return null!==e}k.displayName=E;var R=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,l;let{placement:i,rects:c,middlewareData:s}=t,d=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,u=d?0:e.arrowWidth,m=d?0:e.arrowHeight,[f,p]=T(i),h={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(a=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+u/2,y=(null!==(l=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+m/2,g="",w="";return"bottom"===f?(g=d?h:"".concat(v,"px"),w="".concat(-m,"px")):"top"===f?(g=d?h:"".concat(v,"px"),w="".concat(c.floating.height+m,"px")):"right"===f?(g="".concat(-m,"px"),w=d?h:"".concat(y,"px")):"left"===f&&(g="".concat(c.floating.width+m,"px"),w=d?h:"".concat(y,"px")),{data:{x:g,y:w}}}});function T(e){let[t,n="center"]=e.split("-");return[t,n]}var O=w,P=b,_=N,I=k},92159:(e,t,n)=>{n.d(t,{D:()=>s,N:()=>d});var r=n(20107),o=["light","dark"],a="(prefers-color-scheme: dark)",l="undefined"==typeof window,i=r.createContext(void 0),c={setTheme:e=>{},themes:[]},s=()=>{var e;return null!=(e=r.useContext(i))?e:c},d=e=>r.useContext(i)?e.children:r.createElement(m,{...e}),u=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:l=!0,enableColorScheme:c=!0,storageKey:s="theme",themes:d=u,defaultTheme:m=l?"system":"light",attribute:y="data-theme",value:g,children:w,nonce:x}=e,[b,C]=r.useState(()=>p(s,m)),[S,A]=r.useState(()=>p(s)),N=g?Object.values(g):d,E=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&l&&(t=v());let r=g?g[t]:t,a=n?h():null,i=document.documentElement;if("class"===y?(i.classList.remove(...N),r&&i.classList.add(r)):r?i.setAttribute(y,r):i.removeAttribute(y),c){let e=o.includes(m)?m:null,n=o.includes(t)?t:e;i.style.colorScheme=n}null==a||a()},[]),j=r.useCallback(e=>{let t="function"==typeof e?e(e):e;C(t);try{localStorage.setItem(s,t)}catch(e){}},[t]),k=r.useCallback(e=>{A(v(e)),"system"===b&&l&&!t&&E("system")},[b,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(k),k(e),()=>e.removeListener(k)},[k]),r.useEffect(()=>{let e=e=>{e.key===s&&j(e.newValue||m)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[j]),r.useEffect(()=>{E(null!=t?t:b)},[t,b]);let M=r.useMemo(()=>({theme:b,setTheme:j,forcedTheme:t,resolvedTheme:"system"===b?S:b,themes:l?[...d,"system"]:d,systemTheme:l?S:void 0}),[b,j,t,S,l,d]);return r.createElement(i.Provider,{value:M},r.createElement(f,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:l,enableColorScheme:c,storageKey:s,themes:d,defaultTheme:m,attribute:y,value:g,children:w,attrs:N,nonce:x}),w)},f=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:l,enableSystem:i,enableColorScheme:c,defaultTheme:s,value:d,attrs:u,nonce:m}=e,f="system"===s,p="class"===l?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(u.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(l,"',s='setAttribute';"),h=c?(o.includes(s)?s:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(s,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=d?d[e]:e,a=t?e+"|| ''":"'".concat(r,"'"),i="";return c&&n&&!t&&o.includes(e)&&(i+="d.style.colorScheme = '".concat(e,"';")),"class"===l?t||r?i+="c.add(".concat(a,")"):i+="null":r&&(i+="d[s](n,".concat(a,")")),i},y=t?"!function(){".concat(p).concat(v(t),"}()"):i?"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(f,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(v("dark"),"}else{").concat(v("light"),"}}else if(e){").concat(d?"var x=".concat(JSON.stringify(d),";"):"").concat(v(d?"x[e]":"e",!0),"}").concat(f?"":"else{"+v(s,!1,!1)+"}").concat(h,"}catch(e){}}()"):"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(d?"var x=".concat(JSON.stringify(d),";"):"").concat(v(d?"x[e]":"e",!0),"}else{").concat(v(s,!1,!1),";}").concat(h,"}catch(t){}}();");return r.createElement("script",{nonce:m,dangerouslySetInnerHTML:{__html:y}})}),p=(e,t)=>{let n;if(!l){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},h=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3048-9766c902a7fac6d2.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3048-9766c902a7fac6d2.js new file mode 100644 index 0000000..3fa30be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3048-9766c902a7fac6d2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3048],{54245:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(20107),o=n(64236),i=n(54122),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[o,l]=r.useState(),u=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(u.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=u.current,n=s.current;if(n!==e){let r=c.current,o=a(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=e}},[e,p]),(0,i.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=a(u.current).includes(e.animationName);if(e.target===o&&r&&(p("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=a(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),s=(0,o.s)(l.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||l.isPresent?r.cloneElement(u,{ref:s}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},43048:(e,t,n)=>{n.d(t,{Kq:()=>B,UC:()=>H,bL:()=>F,l9:()=>W});var r=n(20107),o=n(94521),i=n(64236),l=n(45170),a=n(55302),u=n(72763),s=n(57563),c=(n(41913),n(54245)),d=n(34544),p=n(61837),f=n(13061),m=n(91475),v=n(20475),[g,x]=(0,l.A)("Tooltip",[s.Bk]),y=(0,s.Bk)(),h="TooltipProvider",w="tooltip.open",[b,T]=g(h),C=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,[a,u]=r.useState(!0),s=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(b,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),u(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>u(!0),o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:r.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})};C.displayName=h;var E="Tooltip",[N,M]=g(E),k=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,d=T(E,e.__scopeTooltip),p=y(t),[m,g]=r.useState(null),x=(0,u.B)(),h=r.useRef(0),b=null!=a?a:d.disableHoverableContent,C=null!=c?c:d.delayDuration,M=r.useRef(!1),[k=!1,O]=(0,f.i)({prop:o,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==l||l(e)}}),L=r.useMemo(()=>k?M.current?"delayed-open":"instant-open":"closed",[k]),R=r.useCallback(()=>{window.clearTimeout(h.current),M.current=!1,O(!0)},[O]),_=r.useCallback(()=>{window.clearTimeout(h.current),O(!1)},[O]),P=r.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{M.current=!0,O(!0)},C)},[C,O]);return r.useEffect(()=>()=>window.clearTimeout(h.current),[]),(0,v.jsx)(s.bL,{...p,children:(0,v.jsx)(N,{scope:t,contentId:x,open:k,stateAttribute:L,trigger:m,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayed?P():R()},[d.isOpenDelayed,P,R]),onTriggerLeave:r.useCallback(()=>{b?_():window.clearTimeout(h.current)},[_,b]),onOpen:R,onClose:_,disableHoverableContent:b,children:n})})};k.displayName=E;var O="TooltipTrigger",L=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...l}=e,a=M(O,n),u=T(O,n),c=y(n),p=r.useRef(null),f=(0,i.s)(t,p,a.onTriggerChange),m=r.useRef(!1),g=r.useRef(!1),x=r.useCallback(()=>m.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),(0,v.jsx)(s.Mz,{asChild:!0,...c,children:(0,v.jsx)(d.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:f,onPointerMove:(0,o.m)(e.onPointerMove,e=>{"touch"===e.pointerType||g.current||u.isPointerInTransitRef.current||(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:(0,o.m)(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:(0,o.m)(e.onPointerDown,()=>{m.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:(0,o.m)(e.onFocus,()=>{m.current||a.onOpen()}),onBlur:(0,o.m)(e.onBlur,a.onClose),onClick:(0,o.m)(e.onClick,a.onClose)})})});L.displayName=O;var[R,_]=g("TooltipPortal",{forceMount:void 0}),P="TooltipContent",j=r.forwardRef((e,t)=>{let n=_(P,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=M(P,e.__scopeTooltip);return(0,v.jsx)(c.C,{present:r||l.open,children:l.disableHoverableContent?(0,v.jsx)(U,{side:o,...i,ref:t}):(0,v.jsx)(I,{side:o,...i,ref:t})})}),I=r.forwardRef((e,t)=>{let n=M(P,e.__scopeTooltip),o=T(P,e.__scopeTooltip),l=r.useRef(null),a=(0,i.s)(t,l),[u,s]=r.useState(null),{trigger:c,onClose:d}=n,p=l.current,{onPointerInTransitChange:f}=o,m=r.useCallback(()=>{s(null),f(!1)},[f]),g=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&p){let e=e=>g(e,p),t=e=>g(e,c);return c.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[c,p,g,m]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=s>r&&n<(u-l)*(r-a)/(s-a)+l&&(o=!o)}return o}(n,u);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,p,u,d,m]),(0,v.jsx)(U,{...e,ref:a})}),[A,D]=g(E,{isInside:!1}),U=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...c}=e,d=M(P,n),f=y(n),{onClose:g}=d;return r.useEffect(()=>(document.addEventListener(w,g),()=>document.removeEventListener(w,g)),[g]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&g()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,g]),(0,v.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:g,children:(0,v.jsxs)(s.UC,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,v.jsx)(p.xV,{children:o}),(0,v.jsx)(A,{scope:n,isInside:!0,children:(0,v.jsx)(m.b,{id:d.contentId,role:"tooltip",children:i||o})})]})})});j.displayName=P;var S="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=y(n);return D(S,n).isInside?null:(0,v.jsx)(s.i3,{...o,...r,ref:t})}).displayName=S;var B=C,F=k,W=L,H=j}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3048-a6b509fac24a1f29.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3048-a6b509fac24a1f29.js new file mode 100644 index 0000000..3fa30be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3048-a6b509fac24a1f29.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3048],{54245:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(20107),o=n(64236),i=n(54122),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[o,l]=r.useState(),u=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(u.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=u.current,n=s.current;if(n!==e){let r=c.current,o=a(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=e}},[e,p]),(0,i.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=a(u.current).includes(e.animationName);if(e.target===o&&r&&(p("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=a(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),s=(0,o.s)(l.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||l.isPresent?r.cloneElement(u,{ref:s}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},43048:(e,t,n)=>{n.d(t,{Kq:()=>B,UC:()=>H,bL:()=>F,l9:()=>W});var r=n(20107),o=n(94521),i=n(64236),l=n(45170),a=n(55302),u=n(72763),s=n(57563),c=(n(41913),n(54245)),d=n(34544),p=n(61837),f=n(13061),m=n(91475),v=n(20475),[g,x]=(0,l.A)("Tooltip",[s.Bk]),y=(0,s.Bk)(),h="TooltipProvider",w="tooltip.open",[b,T]=g(h),C=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,[a,u]=r.useState(!0),s=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(b,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),u(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>u(!0),o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:r.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})};C.displayName=h;var E="Tooltip",[N,M]=g(E),k=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,d=T(E,e.__scopeTooltip),p=y(t),[m,g]=r.useState(null),x=(0,u.B)(),h=r.useRef(0),b=null!=a?a:d.disableHoverableContent,C=null!=c?c:d.delayDuration,M=r.useRef(!1),[k=!1,O]=(0,f.i)({prop:o,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==l||l(e)}}),L=r.useMemo(()=>k?M.current?"delayed-open":"instant-open":"closed",[k]),R=r.useCallback(()=>{window.clearTimeout(h.current),M.current=!1,O(!0)},[O]),_=r.useCallback(()=>{window.clearTimeout(h.current),O(!1)},[O]),P=r.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{M.current=!0,O(!0)},C)},[C,O]);return r.useEffect(()=>()=>window.clearTimeout(h.current),[]),(0,v.jsx)(s.bL,{...p,children:(0,v.jsx)(N,{scope:t,contentId:x,open:k,stateAttribute:L,trigger:m,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayed?P():R()},[d.isOpenDelayed,P,R]),onTriggerLeave:r.useCallback(()=>{b?_():window.clearTimeout(h.current)},[_,b]),onOpen:R,onClose:_,disableHoverableContent:b,children:n})})};k.displayName=E;var O="TooltipTrigger",L=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...l}=e,a=M(O,n),u=T(O,n),c=y(n),p=r.useRef(null),f=(0,i.s)(t,p,a.onTriggerChange),m=r.useRef(!1),g=r.useRef(!1),x=r.useCallback(()=>m.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),(0,v.jsx)(s.Mz,{asChild:!0,...c,children:(0,v.jsx)(d.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:f,onPointerMove:(0,o.m)(e.onPointerMove,e=>{"touch"===e.pointerType||g.current||u.isPointerInTransitRef.current||(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:(0,o.m)(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:(0,o.m)(e.onPointerDown,()=>{m.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:(0,o.m)(e.onFocus,()=>{m.current||a.onOpen()}),onBlur:(0,o.m)(e.onBlur,a.onClose),onClick:(0,o.m)(e.onClick,a.onClose)})})});L.displayName=O;var[R,_]=g("TooltipPortal",{forceMount:void 0}),P="TooltipContent",j=r.forwardRef((e,t)=>{let n=_(P,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=M(P,e.__scopeTooltip);return(0,v.jsx)(c.C,{present:r||l.open,children:l.disableHoverableContent?(0,v.jsx)(U,{side:o,...i,ref:t}):(0,v.jsx)(I,{side:o,...i,ref:t})})}),I=r.forwardRef((e,t)=>{let n=M(P,e.__scopeTooltip),o=T(P,e.__scopeTooltip),l=r.useRef(null),a=(0,i.s)(t,l),[u,s]=r.useState(null),{trigger:c,onClose:d}=n,p=l.current,{onPointerInTransitChange:f}=o,m=r.useCallback(()=>{s(null),f(!1)},[f]),g=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&p){let e=e=>g(e,p),t=e=>g(e,c);return c.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[c,p,g,m]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=s>r&&n<(u-l)*(r-a)/(s-a)+l&&(o=!o)}return o}(n,u);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,p,u,d,m]),(0,v.jsx)(U,{...e,ref:a})}),[A,D]=g(E,{isInside:!1}),U=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...c}=e,d=M(P,n),f=y(n),{onClose:g}=d;return r.useEffect(()=>(document.addEventListener(w,g),()=>document.removeEventListener(w,g)),[g]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&g()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,g]),(0,v.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:g,children:(0,v.jsxs)(s.UC,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,v.jsx)(p.xV,{children:o}),(0,v.jsx)(A,{scope:n,isInside:!0,children:(0,v.jsx)(m.b,{id:d.contentId,role:"tooltip",children:i||o})})]})})});j.displayName=P;var S="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=y(n);return D(S,n).isInside?null:(0,v.jsx)(s.i3,{...o,...r,ref:t})}).displayName=S;var B=C,F=k,W=L,H=j}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3095-9b41897dca47b121.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3095-9b41897dca47b121.js new file mode 100644 index 0000000..33d4487 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3095-9b41897dca47b121.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3095],{39997:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:d,iconNode:u,...p}=e;return(0,n.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:r,strokeWidth:s?24*Number(l)/Number(o):l,className:a("lucide",c),...p},[...u.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:s,...c}=r;return(0,n.createElement)(l,{ref:i,iconNode:t,className:a("lucide-".concat(o(e)),s),...c})});return r.displayName="".concat(e),r}},91994:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},54379:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(20107),o=r(20475);function a(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,a){let i=n.createContext(a),l=r.length;function s(t){let{scope:r,children:a,...s}=t,c=r?.[e][l]||i,d=n.useMemo(()=>s,Object.values(s));return(0,o.jsx)(c.Provider,{value:d,children:a})}return r=[...r,a],s.displayName=t+"Provider",[s,function(r,o){let s=o?.[e][l]||i,c=n.useContext(s);if(c)return c;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},57563:(e,t,r)=>{r.d(t,{Mz:()=>M,i3:()=>H,UC:()=>z,bL:()=>_,Bk:()=>m});var n=r(20107),o=r(9895),a=r(84069),i=r(34544),l=r(20475),s=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,l.jsx)(i.sG.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})});s.displayName="Arrow";var c=r(64236),d=r(54379),u=r(46774),p=r(54122),f=r(63620),v="Popper",[h,m]=(0,d.A)(v),[y,g]=h(v),w=e=>{let{__scopePopper:t,children:r}=e,[o,a]=n.useState(null);return(0,l.jsx)(y,{scope:t,anchor:o,onAnchorChange:a,children:r})};w.displayName=v;var b="PopperAnchor",x=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...a}=e,s=g(b,r),d=n.useRef(null),u=(0,c.s)(t,d);return n.useEffect(()=>{s.onAnchorChange((null==o?void 0:o.current)||d.current)}),o?null:(0,l.jsx)(i.sG.div,{...a,ref:u})});x.displayName=b;var O="PopperContent",[j,N]=h(O),A=n.forwardRef((e,t)=>{var r,s,d,v,h,m,y,w;let{__scopePopper:b,side:x="bottom",sideOffset:N=0,align:A="center",alignOffset:P=0,arrowPadding:C=0,avoidCollisions:k=!0,collisionBoundary:_=[],collisionPadding:M=0,sticky:z="partial",hideWhenDetached:H=!1,updatePositionStrategy:$="optimized",onPlaced:L,...W}=e,B=g(O,b),[D,Y]=n.useState(null),G=(0,c.s)(t,e=>Y(e)),[U,X]=n.useState(null),I=(0,f.X)(U),F=null!==(y=null==I?void 0:I.width)&&void 0!==y?y:0,q=null!==(w=null==I?void 0:I.height)&&void 0!==w?w:0,T="number"==typeof M?M:{top:0,right:0,bottom:0,left:0,...M},V=Array.isArray(_)?_:[_],Z=V.length>0,J={padding:T,boundary:V.filter(E),altBoundary:Z},{refs:K,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:er}=(0,o.we)({strategy:"fixed",placement:x+("center"!==A?"-"+A:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:a,height:i}=r.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(n,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),U&&(0,o.UE)({element:U,padding:C}),S({arrowWidth:F,arrowHeight:q}),H&&(0,o.jD)({strategy:"referenceHidden",...J})]}),[en,eo]=R(ee),ea=(0,u.c)(L);(0,p.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null===(r=er.arrow)||void 0===r?void 0:r.x,el=null===(s=er.arrow)||void 0===s?void 0:s.y,es=(null===(d=er.arrow)||void 0===d?void 0:d.centerOffset)!==0,[ec,ed]=n.useState();return(0,p.N)(()=>{D&&ed(window.getComputedStyle(D).zIndex)},[D]),(0,l.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(v=er.transformOrigin)||void 0===v?void 0:v.x,null===(h=er.transformOrigin)||void 0===h?void 0:h.y].join(" "),...(null===(m=er.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,l.jsx)(j,{scope:b,placedSide:en,onArrowChange:X,arrowX:ei,arrowY:el,shouldHideArrow:es,children:(0,l.jsx)(i.sG.div,{"data-side":en,"data-align":eo,...W,ref:G,style:{...W.style,animation:et?void 0:"none"}})})})});A.displayName=O;var P="PopperArrow",C={top:"bottom",right:"left",bottom:"top",left:"right"},k=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=N(P,r),a=C[o.placedSide];return(0,l.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(s,{...n,ref:t,style:{...n.style,display:"block"}})})});function E(e){return null!==e}k.displayName=P;var S=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,i;let{placement:l,rects:s,middlewareData:c}=t,d=(null===(r=c.arrow)||void 0===r?void 0:r.centerOffset)!==0,u=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[f,v]=R(l),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(a=null===(n=c.arrow)||void 0===n?void 0:n.x)&&void 0!==a?a:0)+u/2,y=(null!==(i=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+p/2,g="",w="";return"bottom"===f?(g=d?h:"".concat(m,"px"),w="".concat(-p,"px")):"top"===f?(g=d?h:"".concat(m,"px"),w="".concat(s.floating.height+p,"px")):"right"===f?(g="".concat(-p,"px"),w=d?h:"".concat(y,"px")):"left"===f&&(g="".concat(s.floating.width+p,"px"),w=d?h:"".concat(y,"px")),{data:{x:g,y:w}}}});function R(e){let[t,r="center"]=e.split("-");return[t,r]}var _=w,M=x,z=A,H=k},91475:(e,t,r)=>{r.d(t,{b:()=>l,s:()=>i});var n=r(20107),o=r(34544),a=r(20475),i=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var l=i},45930:(e,t,r)=>{r.d(t,{k5:()=>d});var n=r(20107),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=n.createContext&&n.createContext(o),i=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement(u,l({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,c({key:r},t.attr),e(t.child)))}(e.child))}function u(e){var t=t=>{var r,{attr:o,size:a,title:s}=e,d=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i),u=a||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,d,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&n.createElement("title",null,s),e.children)};return void 0!==a?n.createElement(a.Consumer,null,e=>t(e)):t(o)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3188-db9106725bf61f37.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3188-db9106725bf61f37.js deleted file mode 100644 index 49ff619..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3188-db9106725bf61f37.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3188],{67401:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(12115);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,r=Array(e),t=0;t!!e&&t.indexOf(e)===r).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,o.forwardRef)((e,r)=>{let{color:t="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:c="",children:d,iconNode:u,...f}=e;return(0,o.createElement)("svg",{ref:r,...i,width:n,height:n,stroke:t,strokeWidth:s?24*Number(a)/Number(n):a,className:l("lucide",c),...f},[...u.map(e=>{let[r,t]=e;return(0,o.createElement)(r,t)}),...Array.isArray(d)?d:[d]])}),s=(e,r)=>{let t=(0,o.forwardRef)((t,i)=>{let{className:s,...c}=t;return(0,o.createElement)(a,{ref:i,iconNode:r,className:l("lucide-".concat(n(e)),s),...c})});return t.displayName="".concat(e),t}},61786:(e,r,t)=>{t.d(r,{q:()=>o});function o(e,[r,t]){return Math.min(t,Math.max(r,e))}},4256:(e,r,t)=>{t.d(r,{jH:()=>l});var o=t(12115);t(95155);var n=o.createContext(void 0);function l(e){let r=o.useContext(n);return e||r||"ltr"}},21868:(e,r,t)=>{t.d(r,{LM:()=>q,OK:()=>$,VM:()=>C,bL:()=>G,lr:()=>H});var o=t(12115),n=t(23360),l=t(17028),i=t(18166),a=t(88068),s=t(41524),c=t(4256),d=t(46611),u=t(61786),f=t(93610),p=t(95155),h="ScrollArea",[v,w]=(0,i.A)(h),[g,m]=v(h),b=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,type:l="hover",dir:i,scrollHideDelay:s=600,...d}=e,[u,f]=o.useState(null),[h,v]=o.useState(null),[w,m]=o.useState(null),[b,S]=o.useState(null),[E,x]=o.useState(null),[C,y]=o.useState(0),[R,T]=o.useState(0),[L,P]=o.useState(!1),[j,_]=o.useState(!1),A=(0,a.s)(r,e=>f(e)),D=(0,c.jH)(i);return(0,p.jsx)(g,{scope:t,type:l,dir:D,scrollHideDelay:s,scrollArea:u,viewport:h,onViewportChange:v,content:w,onContentChange:m,scrollbarX:b,onScrollbarXChange:S,scrollbarXEnabled:L,onScrollbarXEnabledChange:P,scrollbarY:E,onScrollbarYChange:x,scrollbarYEnabled:j,onScrollbarYEnabledChange:_,onCornerWidthChange:y,onCornerHeightChange:T,children:(0,p.jsx)(n.sG.div,{dir:D,...d,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":R+"px",...e.style}})})});b.displayName=h;var S="ScrollAreaViewport",E=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,children:l,nonce:i,...s}=e,c=m(S,t),d=o.useRef(null),u=(0,a.s)(r,d,c.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,p.jsx)(n.sG.div,{"data-radix-scroll-area-viewport":"",...s,ref:u,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,p.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});E.displayName=S;var x="ScrollAreaScrollbar",C=o.forwardRef((e,r)=>{let{forceMount:t,...n}=e,l=m(x,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===e.orientation;return o.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),"hover"===l.type?(0,p.jsx)(y,{...n,ref:r,forceMount:t}):"scroll"===l.type?(0,p.jsx)(R,{...n,ref:r,forceMount:t}):"auto"===l.type?(0,p.jsx)(T,{...n,ref:r,forceMount:t}):"always"===l.type?(0,p.jsx)(L,{...n,ref:r}):null});C.displayName=x;var y=o.forwardRef((e,r)=>{let{forceMount:t,...n}=e,i=m(x,e.__scopeScrollArea),[a,s]=o.useState(!1);return o.useEffect(()=>{let e=i.scrollArea,r=0;if(e){let t=()=>{window.clearTimeout(r),s(!0)},o=()=>{r=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",o),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",o)}}},[i.scrollArea,i.scrollHideDelay]),(0,p.jsx)(l.C,{present:t||a,children:(0,p.jsx)(T,{"data-state":a?"visible":"hidden",...n,ref:r})})}),R=o.forwardRef((e,r)=>{var t,n;let{forceMount:i,...a}=e,s=m(x,e.__scopeScrollArea),c="horizontal"===e.orientation,d=F(()=>h("SCROLL_END"),100),[u,h]=(t="hidden",n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},o.useReducer((e,r)=>{let t=n[e][r];return null!=t?t:e},t));return o.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>h("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,s.scrollHideDelay,h]),o.useEffect(()=>{let e=s.viewport,r=c?"scrollLeft":"scrollTop";if(e){let t=e[r],o=()=>{let o=e[r];t!==o&&(h("SCROLL"),d()),t=o};return e.addEventListener("scroll",o),()=>e.removeEventListener("scroll",o)}},[s.viewport,c,h,d]),(0,p.jsx)(l.C,{present:i||"hidden"!==u,children:(0,p.jsx)(L,{"data-state":"hidden"===u?"hidden":"visible",...a,ref:r,onPointerEnter:(0,f.m)(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:(0,f.m)(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),T=o.forwardRef((e,r)=>{let t=m(x,e.__scopeScrollArea),{forceMount:n,...i}=e,[a,s]=o.useState(!1),c="horizontal"===e.orientation,d=F(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{orientation:t="vertical",...n}=e,l=m(x,e.__scopeScrollArea),i=o.useRef(null),a=o.useRef(0),[s,c]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=X(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:!!(d>0&&d<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,r){return function(e,r,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",n=Y(t),l=r||n/2,i=t.scrollbar.paddingStart+l,a=t.scrollbar.size-t.scrollbar.paddingEnd-(n-l),s=t.content-t.viewport;return M([i,a],"ltr"===o?[0,s]:[-1*s,0])(e)}(e,a.current,s,r)}return"horizontal"===t?(0,p.jsx)(P,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=U(l.viewport.scrollLeft,s,l.dir);i.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===t?(0,p.jsx)(j,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=U(l.viewport.scrollTop,s);i.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null}),P=o.forwardRef((e,r)=>{let{sizes:t,onSizesChange:n,...l}=e,i=m(x,e.__scopeScrollArea),[s,c]=o.useState(),d=o.useRef(null),u=(0,a.s)(r,d,i.onScrollbarXChange);return o.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(D,{"data-orientation":"horizontal",...l,ref:u,sizes:t,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Y(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.x),onDragScroll:r=>e.onDragScroll(r.x),onWheelScroll:(r,t)=>{if(i.viewport){let o=i.viewport.scrollLeft+r.deltaX;e.onWheelScroll(o),function(e,r){return e>0&&e{d.current&&i.viewport&&s&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:I(s.paddingLeft),paddingEnd:I(s.paddingRight)}})}})}),j=o.forwardRef((e,r)=>{let{sizes:t,onSizesChange:n,...l}=e,i=m(x,e.__scopeScrollArea),[s,c]=o.useState(),d=o.useRef(null),u=(0,a.s)(r,d,i.onScrollbarYChange);return o.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(D,{"data-orientation":"vertical",...l,ref:u,sizes:t,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Y(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.y),onDragScroll:r=>e.onDragScroll(r.y),onWheelScroll:(r,t)=>{if(i.viewport){let o=i.viewport.scrollTop+r.deltaY;e.onWheelScroll(o),function(e,r){return e>0&&e{d.current&&i.viewport&&s&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:I(s.paddingTop),paddingEnd:I(s.paddingBottom)}})}})}),[_,A]=v(x),D=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,sizes:l,hasThumb:i,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:u,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:w,onResize:g,...b}=e,S=m(x,t),[E,C]=o.useState(null),y=(0,a.s)(r,e=>C(e)),R=o.useRef(null),T=o.useRef(""),L=S.viewport,P=l.content-l.viewport,j=(0,s.c)(w),A=(0,s.c)(h),D=F(g,10);function N(e){R.current&&v({x:e.clientX-R.current.left,y:e.clientY-R.current.top})}return o.useEffect(()=>{let e=e=>{let r=e.target;(null==E?void 0:E.contains(r))&&j(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[L,E,P,j]),o.useEffect(A,[l,A]),V(E,D),V(S.content,D),(0,p.jsx)(_,{scope:t,scrollbar:E,hasThumb:i,onThumbChange:(0,s.c)(c),onThumbPointerUp:(0,s.c)(d),onThumbPositionChange:A,onThumbPointerDown:(0,s.c)(u),children:(0,p.jsx)(n.sG.div,{...b,ref:y,style:{position:"absolute",...b.style},onPointerDown:(0,f.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),R.current=E.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),N(e))}),onPointerMove:(0,f.m)(e.onPointerMove,N),onPointerUp:(0,f.m)(e.onPointerUp,e=>{let r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=T.current,S.viewport&&(S.viewport.style.scrollBehavior=""),R.current=null})})})}),N="ScrollAreaThumb",H=o.forwardRef((e,r)=>{let{forceMount:t,...o}=e,n=A(N,e.__scopeScrollArea);return(0,p.jsx)(l.C,{present:t||n.hasThumb,children:(0,p.jsx)(W,{ref:r,...o})})}),W=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,style:l,...i}=e,s=m(N,t),c=A(N,t),{onThumbPositionChange:d}=c,u=(0,a.s)(r,e=>c.onThumbChange(e)),h=o.useRef(void 0),v=F(()=>{h.current&&(h.current(),h.current=void 0)},100);return o.useEffect(()=>{let e=s.viewport;if(e){let r=()=>{if(v(),!h.current){let r=B(e,d);h.current=r,d()}};return d(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,v,d]),(0,p.jsx)(n.sG.div,{"data-state":c.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,f.m)(e.onPointerDownCapture,e=>{let r=e.target.getBoundingClientRect(),t=e.clientX-r.left,o=e.clientY-r.top;c.onThumbPointerDown({x:t,y:o})}),onPointerUp:(0,f.m)(e.onPointerUp,c.onThumbPointerUp)})});H.displayName=N;var k="ScrollAreaCorner",z=o.forwardRef((e,r)=>{let t=m(k,e.__scopeScrollArea),o=!!(t.scrollbarX&&t.scrollbarY);return"scroll"!==t.type&&o?(0,p.jsx)(O,{...e,ref:r}):null});z.displayName=k;var O=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,...l}=e,i=m(k,t),[a,s]=o.useState(0),[c,d]=o.useState(0),u=!!(a&&c);return V(i.scrollbarX,()=>{var e;let r=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(r),d(r)}),V(i.scrollbarY,()=>{var e;let r=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(r),s(r)}),u?(0,p.jsx)(n.sG.div,{...l,ref:r,style:{width:a,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function I(e){return e?parseInt(e,10):0}function X(e,r){let t=e/r;return isNaN(t)?0:t}function Y(e){let r=X(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-t)*r,18)}function U(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",o=Y(r),n=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-n,i=r.content-r.viewport,a=(0,u.q)(e,"ltr"===t?[0,i]:[-1*i,0]);return M([0,i],[0,l-o])(a)}function M(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(t-e[0])}}var B=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},t={left:e.scrollLeft,top:e.scrollTop},o=0;return!function n(){let l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,a=t.top!==l.top;(i||a)&&r(),t=l,o=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(o)};function F(e,r){let t=(0,s.c)(e),n=o.useRef(0);return o.useEffect(()=>()=>window.clearTimeout(n.current),[]),o.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(t,r)},[t,r])}function V(e,r){let t=(0,s.c)(r);(0,d.N)(()=>{let r=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,t])}var G=b,q=E,$=z}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-1e7922659f5b386a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-1e7922659f5b386a.js new file mode 100644 index 0000000..ec96bf0 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-1e7922659f5b386a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{51873:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},32474:(e,t,r)=>{r.d(t,{N:()=>u});var n=r(20107),o=r(54379),a=r(64236),l=r(61837),i=r(20475);function u(e){let t=e+"CollectionProvider",[r,u]=(0,o.A)(t),[s,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(s,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),u=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(l.DX,{ref:u,children:n})});p.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",b=n.forwardRef((e,t)=>{let{scope:r,children:o,...u}=e,s=n.useRef(null),d=(0,a.s)(t,s),f=c(v,r);return n.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,i.jsx)(l.DX,{[m]:"",ref:d,children:o})});return b.displayName=v,[{Provider:d,Slot:p,ItemSlot:b},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}},71856:(e,t,r)=>{r.d(t,{RG:()=>R,bL:()=>M,q7:()=>T});var n=r(20107),o=r(94521),a=r(32474),l=r(64236),i=r(54379),u=r(72763),s=r(34544),c=r(46774),d=r(13061),f=r(76056),p=r(20475),v="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[y,h,w]=(0,a.N)(b),[x,R]=(0,i.A)(b,[w]),[g,C]=x(b),A=n.forwardRef((e,t)=>(0,p.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(j,{...e,ref:t})})}));A.displayName=b;var j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:u,currentTabStopId:b,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:w,onEntryFocus:x,preventScrollOnEntryFocus:R=!1,...C}=e,A=n.useRef(null),j=(0,l.s)(t,A),I=(0,f.jH)(u),[D=null,F]=(0,d.i)({prop:b,defaultProp:y,onChange:w}),[M,T]=n.useState(!1),E=(0,c.c)(x),G=h(r),N=n.useRef(!1),[S,K]=n.useState(0);return n.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(v,E),()=>e.removeEventListener(v,E)},[E]),(0,p.jsx)(g,{scope:r,orientation:a,dir:I,loop:i,currentTabStopId:D,onItemFocus:n.useCallback(e=>F(e),[F]),onItemShiftTab:n.useCallback(()=>T(!0),[]),onFocusableItemAdd:n.useCallback(()=>K(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>K(e=>e-1),[]),children:(0,p.jsx)(s.sG.div,{tabIndex:M||0===S?-1:0,"data-orientation":a,...C,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!M){let t=new CustomEvent(v,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=G().filter(e=>e.focusable);k([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),R)}}N.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>T(!1))})})}),I="RovingFocusGroupItem",D=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:l=!1,tabStopId:i,...c}=e,d=(0,u.B)(),f=i||d,v=C(I,r),m=v.currentTabStopId===f,b=h(r),{onFocusableItemAdd:w,onFocusableItemRemove:x}=v;return n.useEffect(()=>{if(a)return w(),()=>x()},[a,w,x]),(0,p.jsx)(y.ItemSlot,{scope:r,id:f,focusable:a,active:l,children:(0,p.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...c,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?v.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>v.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return F[o]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=v.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>k(r))}})})})});D.displayName=I;var F={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var M=A,T=D},93677:(e,t,r)=>{r.d(t,{B8:()=>k,UC:()=>T,bL:()=>F,l9:()=>M});var n=r(20107),o=r(94521),a=r(45170),l=r(71856),i=r(54245),u=r(34544),s=r(76056),c=r(13061),d=r(72763),f=r(20475),p="Tabs",[v,m]=(0,a.A)(p,[l.RG]),b=(0,l.RG)(),[y,h]=v(p),w=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:i,activationMode:p="automatic",...v}=e,m=(0,s.jH)(i),[b,h]=(0,c.i)({prop:n,onChange:o,defaultProp:a});return(0,f.jsx)(y,{scope:r,baseId:(0,d.B)(),value:b,onValueChange:h,orientation:l,dir:m,activationMode:p,children:(0,f.jsx)(u.sG.div,{dir:m,"data-orientation":l,...v,ref:t})})});w.displayName=p;var x="TabsList",R=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=h(x,r),i=b(r);return(0,f.jsx)(l.bL,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:(0,f.jsx)(u.sG.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});R.displayName=x;var g="TabsTrigger",C=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...i}=e,s=h(g,r),c=b(r),d=I(s.baseId,n),p=D(s.baseId,n),v=n===s.value;return(0,f.jsx)(l.q7,{asChild:!0,...c,focusable:!a,active:v,children:(0,f.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":p,"data-state":v?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(n)}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(n)}),onFocus:(0,o.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;v||a||!e||s.onValueChange(n)})})})});C.displayName=g;var A="TabsContent",j=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:a,children:l,...s}=e,c=h(A,r),d=I(c.baseId,o),p=D(c.baseId,o),v=o===c.value,m=n.useRef(v);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(i.C,{present:a||v,children:r=>{let{present:n}=r;return(0,f.jsx)(u.sG.div,{"data-state":v?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:p,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:n&&l})}})});function I(e,t){return"".concat(e,"-trigger-").concat(t)}function D(e,t){return"".concat(e,"-content-").concat(t)}j.displayName=A;var F=w,k=R,M=C,T=j}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-59569df86cb1327e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-59569df86cb1327e.js new file mode 100644 index 0000000..6107e3c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-59569df86cb1327e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{39997:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:u="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:r,strokeWidth:s?24*Number(i)/Number(o):i,className:a("lucide",u),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,l)=>{let{className:s,...u}=r;return(0,n.createElement)(i,{ref:l,iconNode:t,className:a("lucide-".concat(o(e)),s),...u})});return r.displayName="".concat(e),r}},51873:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},32474:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(20107),o=r(54379),a=r(64236),l=r(61837),i=r(20475);function s(e){let t=e+"CollectionProvider",[r,s]=(0,o.A)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(u,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",m=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),s=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(l.DX,{ref:s,children:n})});m.displayName=f;let v=e+"CollectionItemSlot",p="data-radix-collection-item",h=n.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,u=n.useRef(null),d=(0,a.s)(t,u),f=c(v,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...s}),()=>void f.itemMap.delete(u))),(0,i.jsx)(l.DX,{[p]:"",ref:d,children:o})});return h.displayName=v,[{Provider:d,Slot:m,ItemSlot:h},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},71856:(e,t,r)=>{r.d(t,{RG:()=>g,bL:()=>E,q7:()=>N});var n=r(20107),o=r(94521),a=r(32474),l=r(64236),i=r(54379),s=r(72763),u=r(34544),c=r(46774),d=r(13061),f=r(76056),m=r(20475),v="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[w,b,y]=(0,a.N)(h),[x,g]=(0,i.A)(h,[y]),[R,A]=x(h),C=n.forwardRef((e,t)=>(0,m.jsx)(w.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(w.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(k,{...e,ref:t})})}));C.displayName=h;var k=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:s,currentTabStopId:h,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:g=!1,...A}=e,C=n.useRef(null),k=(0,l.s)(t,C),j=(0,f.jH)(s),[I=null,D]=(0,d.i)({prop:h,defaultProp:w,onChange:y}),[E,N]=n.useState(!1),M=(0,c.c)(x),T=b(r),G=n.useRef(!1),[L,S]=n.useState(0);return n.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(v,M),()=>e.removeEventListener(v,M)},[M]),(0,m.jsx)(R,{scope:r,orientation:a,dir:j,loop:i,currentTabStopId:I,onItemFocus:n.useCallback(e=>D(e),[D]),onItemShiftTab:n.useCallback(()=>N(!0),[]),onFocusableItemAdd:n.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>S(e=>e-1),[]),children:(0,m.jsx)(u.sG.div,{tabIndex:E||0===L?-1:0,"data-orientation":a,...A,ref:k,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{G.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!G.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(v,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>e.focusable);F([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),g)}}G.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>N(!1))})})}),j="RovingFocusGroupItem",I=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:l=!1,tabStopId:i,...c}=e,d=(0,s.B)(),f=i||d,v=A(j,r),p=v.currentTabStopId===f,h=b(r),{onFocusableItemAdd:y,onFocusableItemRemove:x}=v;return n.useEffect(()=>{if(a)return y(),()=>x()},[a,y,x]),(0,m.jsx)(w.ItemSlot,{scope:r,id:f,focusable:a,active:l,children:(0,m.jsx)(u.sG.span,{tabIndex:p?0:-1,"data-orientation":v.orientation,...c,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?v.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>v.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return D[o]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=v.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>F(r))}})})})});I.displayName=j;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function F(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var E=C,N=I},93677:(e,t,r)=>{r.d(t,{B8:()=>F,UC:()=>N,bL:()=>D,l9:()=>E});var n=r(20107),o=r(94521),a=r(45170),l=r(71856),i=r(54245),s=r(34544),u=r(76056),c=r(13061),d=r(72763),f=r(20475),m="Tabs",[v,p]=(0,a.A)(m,[l.RG]),h=(0,l.RG)(),[w,b]=v(m),y=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:i,activationMode:m="automatic",...v}=e,p=(0,u.jH)(i),[h,b]=(0,c.i)({prop:n,onChange:o,defaultProp:a});return(0,f.jsx)(w,{scope:r,baseId:(0,d.B)(),value:h,onValueChange:b,orientation:l,dir:p,activationMode:m,children:(0,f.jsx)(s.sG.div,{dir:p,"data-orientation":l,...v,ref:t})})});y.displayName=m;var x="TabsList",g=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=b(x,r),i=h(r);return(0,f.jsx)(l.bL,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:(0,f.jsx)(s.sG.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});g.displayName=x;var R="TabsTrigger",A=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...i}=e,u=b(R,r),c=h(r),d=j(u.baseId,n),m=I(u.baseId,n),v=n===u.value;return(0,f.jsx)(l.q7,{asChild:!0,...c,focusable:!a,active:v,children:(0,f.jsx)(s.sG.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":m,"data-state":v?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,o.m)(e.onFocus,()=>{let e="manual"!==u.activationMode;v||a||!e||u.onValueChange(n)})})})});A.displayName=R;var C="TabsContent",k=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:a,children:l,...u}=e,c=b(C,r),d=j(c.baseId,o),m=I(c.baseId,o),v=o===c.value,p=n.useRef(v);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(i.C,{present:a||v,children:r=>{let{present:n}=r;return(0,f.jsx)(s.sG.div,{"data-state":v?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:m,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&l})}})});function j(e,t){return"".concat(e,"-trigger-").concat(t)}function I(e,t){return"".concat(e,"-content-").concat(t)}k.displayName=C;var D=y,F=g,E=A,N=k}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-5a90e5e264d15a53.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-5a90e5e264d15a53.js new file mode 100644 index 0000000..3403944 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3453-5a90e5e264d15a53.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{39997:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:r,strokeWidth:u?24*Number(i)/Number(o):i,className:a("lucide",s),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),u=(e,t)=>{let r=(0,n.forwardRef)((r,l)=>{let{className:u,...s}=r;return(0,n.createElement)(i,{ref:l,iconNode:t,className:a("lucide-".concat(o(e)),u),...s})});return r.displayName="".concat(e),r}},51873:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},32474:(e,t,r)=>{r.d(t,{N:()=>u});var n=r(20107),o=r(54379),a=r(64236),l=r(61837),i=r(20475);function u(e){let t=e+"CollectionProvider",[r,u]=(0,o.A)(t),[s,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(s,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",m=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),u=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(l.DX,{ref:u,children:n})});m.displayName=f;let p=e+"CollectionItemSlot",v="data-radix-collection-item",h=n.forwardRef((e,t)=>{let{scope:r,children:o,...u}=e,s=n.useRef(null),d=(0,a.s)(t,s),f=c(p,r);return n.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,i.jsx)(l.DX,{[v]:"",ref:d,children:o})});return h.displayName=p,[{Provider:d,Slot:m,ItemSlot:h},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}},54379:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(20107),o=r(20475);function a(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return l.scopeName=e,[function(t,a){let l=n.createContext(a),i=r.length;function u(t){let{scope:r,children:a,...u}=t,s=r?.[e][i]||l,c=n.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:a})}return r=[...r,a],u.displayName=t+"Provider",[u,function(r,o){let u=o?.[e][i]||l,s=n.useContext(u);if(s)return s;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(l,...t)]}},71856:(e,t,r)=>{r.d(t,{RG:()=>g,bL:()=>D,q7:()=>E});var n=r(20107),o=r(94521),a=r(32474),l=r(64236),i=r(54379),u=r(72763),s=r(34544),c=r(46774),d=r(13061),f=r(76056),m=r(20475),p="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[w,b,y]=(0,a.N)(h),[x,g]=(0,i.A)(h,[y]),[R,C]=x(h),A=n.forwardRef((e,t)=>(0,m.jsx)(w.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(w.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(j,{...e,ref:t})})}));A.displayName=h;var j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:g=!1,...C}=e,A=n.useRef(null),j=(0,l.s)(t,A),N=(0,f.jH)(u),[k=null,I]=(0,d.i)({prop:h,defaultProp:w,onChange:y}),[D,E]=n.useState(!1),F=(0,c.c)(x),T=b(r),G=n.useRef(!1),[S,_]=n.useState(0);return n.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(p,F),()=>e.removeEventListener(p,F)},[F]),(0,m.jsx)(R,{scope:r,orientation:a,dir:N,loop:i,currentTabStopId:k,onItemFocus:n.useCallback(e=>I(e),[I]),onItemShiftTab:n.useCallback(()=>E(!0),[]),onFocusableItemAdd:n.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>_(e=>e-1),[]),children:(0,m.jsx)(s.sG.div,{tabIndex:D||0===S?-1:0,"data-orientation":a,...C,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{G.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!G.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(p,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),g)}}G.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>E(!1))})})}),N="RovingFocusGroupItem",k=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:l=!1,tabStopId:i,...c}=e,d=(0,u.B)(),f=i||d,p=C(N,r),v=p.currentTabStopId===f,h=b(r),{onFocusableItemAdd:y,onFocusableItemRemove:x}=p;return n.useEffect(()=>{if(a)return y(),()=>x()},[a,y,x]),(0,m.jsx)(w.ItemSlot,{scope:r,id:f,focusable:a,active:l,children:(0,m.jsx)(s.sG.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return I[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=p.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>M(r))}})})})});k.displayName=N;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var D=A,E=k},93677:(e,t,r)=>{r.d(t,{B8:()=>M,UC:()=>E,bL:()=>I,l9:()=>D});var n=r(20107),o=r(94521),a=r(45170),l=r(71856),i=r(54245),u=r(34544),s=r(76056),c=r(13061),d=r(72763),f=r(20475),m="Tabs",[p,v]=(0,a.A)(m,[l.RG]),h=(0,l.RG)(),[w,b]=p(m),y=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:i,activationMode:m="automatic",...p}=e,v=(0,s.jH)(i),[h,b]=(0,c.i)({prop:n,onChange:o,defaultProp:a});return(0,f.jsx)(w,{scope:r,baseId:(0,d.B)(),value:h,onValueChange:b,orientation:l,dir:v,activationMode:m,children:(0,f.jsx)(u.sG.div,{dir:v,"data-orientation":l,...p,ref:t})})});y.displayName=m;var x="TabsList",g=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=b(x,r),i=h(r);return(0,f.jsx)(l.bL,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:(0,f.jsx)(u.sG.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});g.displayName=x;var R="TabsTrigger",C=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...i}=e,s=b(R,r),c=h(r),d=N(s.baseId,n),m=k(s.baseId,n),p=n===s.value;return(0,f.jsx)(l.q7,{asChild:!0,...c,focusable:!a,active:p,children:(0,f.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":m,"data-state":p?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(n)}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(n)}),onFocus:(0,o.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;p||a||!e||s.onValueChange(n)})})})});C.displayName=R;var A="TabsContent",j=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:a,children:l,...s}=e,c=b(A,r),d=N(c.baseId,o),m=k(c.baseId,o),p=o===c.value,v=n.useRef(p);return n.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(i.C,{present:a||p,children:r=>{let{present:n}=r;return(0,f.jsx)(u.sG.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:m,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:n&&l})}})});function N(e,t){return"".concat(e,"-trigger-").concat(t)}function k(e,t){return"".concat(e,"-content-").concat(t)}j.displayName=A;var I=y,M=g,D=C,E=j}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3494-8f1a6a2a7daec1ca.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3494-8f1a6a2a7daec1ca.js new file mode 100644 index 0000000..7f1c3f2 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3494-8f1a6a2a7daec1ca.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3494],{39997:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(20107);let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:u="",children:d,iconNode:c,...p}=e;return(0,n.createElement)("svg",{ref:t,...a,width:l,height:l,stroke:r,strokeWidth:s?24*Number(i)/Number(l):i,className:o("lucide",u),...p},[...c.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:s,...u}=r;return(0,n.createElement)(i,{ref:a,iconNode:t,className:o("lucide-".concat(l(e)),s),...u})});return r.displayName="".concat(e),r}},56703:(e,t,r)=>{r.d(t,{q:()=>n});function n(e,[t,r]){return Math.min(r,Math.max(t,e))}},32474:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(20107),l=r(54379),o=r(64236),a=r(61837),i=r(20475);function s(e){let t=e+"CollectionProvider",[r,s]=(0,l.A)(t),[u,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,l=n.useRef(null),o=n.useRef(new Map).current;return(0,i.jsx)(u,{scope:t,itemMap:o,collectionRef:l,children:r})};c.displayName=t;let p=e+"CollectionSlot",f=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=d(p,r),s=(0,o.s)(t,l.collectionRef);return(0,i.jsx)(a.DX,{ref:s,children:n})});f.displayName=p;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=n.forwardRef((e,t)=>{let{scope:r,children:l,...s}=e,u=n.useRef(null),c=(0,o.s)(t,u),p=d(v,r);return n.useEffect(()=>(p.itemMap.set(u,{ref:u,...s}),()=>void p.itemMap.delete(u))),(0,i.jsx)(a.DX,{[h]:"",ref:c,children:l})});return m.displayName=v,[{Provider:c,Slot:f,ItemSlot:m},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},76056:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(20107);r(20475);var l=n.createContext(void 0);function o(e){let t=n.useContext(l);return e||t||"ltr"}},21840:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(20107),l=r(34544),o=r(20475),a=n.forwardRef((e,t)=>(0,o.jsx)(l.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var i=a},95257:(e,t,r)=>{r.d(t,{In:()=>eI,JU:()=>eB,LM:()=>eA,PP:()=>eG,UC:()=>eL,VF:()=>eO,WT:()=>eM,YJ:()=>eH,ZL:()=>eD,bL:()=>eE,l9:()=>eP,p4:()=>eV,q7:()=>e_,wn:()=>eW,wv:()=>eF});var n=r(20107),l=r(25642),o=r(56703),a=r(94521),i=r(32474),s=r(64236),u=r(45170),d=r(76056),c=r(55302),p=r(10201),f=r(38573),v=r(72763),h=r(57563),m=r(41913),w=r(34544),g=r(61837),x=r(46774),y=r(13061),b=r(54122),S=r(65163),C=r(91475),j=r(58020),R=r(9543),N=r(20475),k=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],E="Select",[P,M,I]=(0,i.N)(E),[D,L]=(0,u.A)(E,[I,h.Bk]),A=(0,h.Bk)(),[H,B]=D(E),[_,V]=D(E),O=e=>{let{__scopeSelect:t,children:r,open:l,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:u,dir:c,name:p,autoComplete:f,disabled:m,required:w,form:g}=e,x=A(t),[b,S]=n.useState(null),[C,j]=n.useState(null),[R,k]=n.useState(!1),T=(0,d.jH)(c),[E=!1,M]=(0,y.i)({prop:l,defaultProp:o,onChange:a}),[I,D]=(0,y.i)({prop:i,defaultProp:s,onChange:u}),L=n.useRef(null),B=!b||g||!!b.closest("form"),[V,O]=n.useState(new Set),G=Array.from(V).map(e=>e.props.value).join(";");return(0,N.jsx)(h.bL,{...x,children:(0,N.jsxs)(H,{required:w,scope:t,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:R,onValueNodeHasChildrenChange:k,contentId:(0,v.B)(),value:I,onValueChange:D,open:E,onOpenChange:M,dir:T,triggerPointerDownPosRef:L,disabled:m,children:[(0,N.jsx)(P.Provider,{scope:t,children:(0,N.jsx)(_,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{O(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),B?(0,N.jsxs)(eN,{"aria-hidden":!0,required:w,tabIndex:-1,name:p,autoComplete:f,value:I,onChange:e=>D(e.target.value),disabled:m,form:g,children:[void 0===I?(0,N.jsx)("option",{value:""}):null,Array.from(V)]},G):null]})})};O.displayName=E;var G="SelectTrigger",W=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:l=!1,...o}=e,i=A(r),u=B(G,r),d=u.disabled||l,c=(0,s.s)(t,u.onTriggerChange),p=M(r),f=n.useRef("touch"),[v,m,g]=ek(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eT(t,e,r);void 0!==n&&u.onValueChange(n.value)}),x=e=>{d||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,N.jsx)(h.Mz,{asChild:!0,...i,children:(0,N.jsx)(w.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":eR(u.value)?"":void 0,...o,ref:c,onClick:(0,a.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&x(e)}),onPointerDown:(0,a.m)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,a.m)(o.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&k.includes(e.key)&&(x(),e.preventDefault())})})})});W.displayName=G;var F="SelectValue",K=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:l,children:o,placeholder:a="",...i}=e,u=B(F,r),{onValueNodeHasChildrenChange:d}=u,c=void 0!==o,p=(0,s.s)(t,u.onValueNodeChange);return(0,b.N)(()=>{d(c)},[d,c]),(0,N.jsx)(w.sG.span,{...i,ref:p,style:{pointerEvents:"none"},children:eR(u.value)?(0,N.jsx)(N.Fragment,{children:a}):o})});K.displayName=F;var U=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...l}=e;return(0,N.jsx)(w.sG.span,{"aria-hidden":!0,...l,ref:t,children:n||"▼"})});U.displayName="SelectIcon";var q=e=>(0,N.jsx)(m.Z,{asChild:!0,...e});q.displayName="SelectPortal";var z="SelectContent",Z=n.forwardRef((e,t)=>{let r=B(z,e.__scopeSelect),[o,a]=n.useState();return((0,b.N)(()=>{a(new DocumentFragment)},[]),r.open)?(0,N.jsx)(J,{...e,ref:t}):o?l.createPortal((0,N.jsx)(X,{scope:e.__scopeSelect,children:(0,N.jsx)(P.Slot,{scope:e.__scopeSelect,children:(0,N.jsx)("div",{children:e.children})})}),o):null});Z.displayName=z;var[X,Y]=D(z),J=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:u,side:d,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C,...k}=e,T=B(z,r),[E,P]=n.useState(null),[I,D]=n.useState(null),L=(0,s.s)(t,e=>P(e)),[A,H]=n.useState(null),[_,V]=n.useState(null),O=M(r),[G,W]=n.useState(!1),F=n.useRef(!1);n.useEffect(()=>{if(E)return(0,j.Eq)(E)},[E]),(0,p.Oh)();let K=n.useCallback(e=>{let[t,...r]=O().map(e=>e.ref.current),[n]=r.slice(-1),l=document.activeElement;for(let r of e)if(r===l||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&I&&(I.scrollTop=0),r===n&&I&&(I.scrollTop=I.scrollHeight),null==r||r.focus(),document.activeElement!==l))return},[O,I]),U=n.useCallback(()=>K([A,E]),[K,A,E]);n.useEffect(()=>{G&&U()},[G,U]);let{onOpenChange:q,triggerPointerDownPosRef:Z}=T;n.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{var r,n,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(l=null===(r=Z.current)||void 0===r?void 0:r.x)&&void 0!==l?l:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=Z.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():E.contains(r.target)||q(!1),document.removeEventListener("pointermove",t),Z.current=null};return null!==Z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[E,q,Z]),n.useEffect(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[Y,J]=ek(e=>{let t=O().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eT(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!F.current&&!r;(void 0!==T.value&&T.value===t||n)&&(H(e),n&&(F.current=!0))},[T.value]),et=n.useCallback(()=>null==E?void 0:E.focus(),[E]),er=n.useCallback((e,t,r)=>{let n=!F.current&&!r;(void 0!==T.value&&T.value===t||n)&&V(e)},[T.value]),en="popper"===l?Q:$,el=en===Q?{side:d,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C}:{};return(0,N.jsx)(X,{scope:r,content:E,viewport:I,onViewportChange:D,itemRefCallback:ee,selectedItem:A,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:U,selectedItemText:_,position:l,isPositioned:G,searchRef:Y,children:(0,N.jsx)(R.A,{as:g.DX,allowPinchZoom:!0,children:(0,N.jsx)(f.n,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(o,e=>{var t;null===(t=T.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,N.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,N.jsx)(en,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...k,...el,onPlaced:()=>W(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:(0,a.m)(k.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>K(t)),e.preventDefault()}})})})})})})});J.displayName="SelectContentImpl";var $=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:l,...a}=e,i=B(z,r),u=Y(z,r),[d,c]=n.useState(null),[p,f]=n.useState(null),v=(0,s.s)(t,e=>f(e)),h=M(r),m=n.useRef(!1),g=n.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=u,j=n.useCallback(()=>{if(i.trigger&&i.valueNode&&d&&p&&x&&y&&S){let e=i.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==i.dir){let l=n.left-t.left,a=r.left-l,i=e.left-a,s=e.width+i,u=Math.max(s,t.width),c=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.left=p+"px"}else{let l=t.right-n.right,a=window.innerWidth-r.right-l,i=window.innerWidth-e.right-a,s=e.width+i,u=Math.max(s,t.width),c=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.right=p+"px"}let a=h(),s=window.innerHeight-20,u=x.scrollHeight,c=window.getComputedStyle(p),f=parseInt(c.borderTopWidth,10),v=parseInt(c.paddingTop,10),w=parseInt(c.borderBottomWidth,10),g=f+v+u+parseInt(c.paddingBottom,10)+w,b=Math.min(5*y.offsetHeight,g),C=window.getComputedStyle(x),j=parseInt(C.paddingTop,10),R=parseInt(C.paddingBottom,10),N=e.top+e.height/2-10,k=y.offsetHeight/2,T=f+v+(y.offsetTop+k);if(T<=N){let e=a.length>0&&y===a[a.length-1].ref.current;d.style.bottom="0px";let t=Math.max(s-N,k+(e?R:0)+(p.clientHeight-x.offsetTop-x.offsetHeight)+w);d.style.height=T+t+"px"}else{let e=a.length>0&&y===a[0].ref.current;d.style.top="0px";let t=Math.max(N,f+x.offsetTop+(e?j:0)+k);d.style.height=t+(g-T)+"px",x.scrollTop=T-N+x.offsetTop}d.style.margin="".concat(10,"px 0"),d.style.minHeight=b+"px",d.style.maxHeight=s+"px",null==l||l(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,d,p,x,y,S,i.dir,l]);(0,b.N)(()=>j(),[j]);let[R,k]=n.useState();(0,b.N)(()=>{p&&k(window.getComputedStyle(p).zIndex)},[p]);let T=n.useCallback(e=>{e&&!0===g.current&&(j(),null==C||C(),g.current=!1)},[j,C]);return(0,N.jsx)(ee,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:(0,N.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,N.jsx)(w.sG.div,{...a,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});$.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:l=10,...o}=e,a=A(r);return(0,N.jsx)(h.UC,{...a,...o,ref:t,align:n,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=D(z,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:l,...o}=e,i=Y(er,r),u=et(er,r),d=(0,s.s)(t,i.onViewportChange),c=n.useRef(0);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,N.jsx)(P.Slot,{scope:r,children:(0,N.jsx)(w.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(c.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,l=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(l0?i:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});en.displayName=er;var el="SelectGroup",[eo,ea]=D(el),ei=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=(0,v.B)();return(0,N.jsx)(eo,{scope:r,id:l,children:(0,N.jsx)(w.sG.div,{role:"group","aria-labelledby":l,...n,ref:t})})});ei.displayName=el;var es="SelectLabel",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=ea(es,r);return(0,N.jsx)(w.sG.div,{id:l.id,...n,ref:t})});eu.displayName=es;var ed="SelectItem",[ec,ep]=D(ed),ef=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:l,disabled:o=!1,textValue:i,...u}=e,d=B(ed,r),c=Y(ed,r),p=d.value===l,[f,h]=n.useState(null!=i?i:""),[m,g]=n.useState(!1),x=(0,s.s)(t,e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,l,o)}),y=(0,v.B)(),b=n.useRef("touch"),S=()=>{o||(d.onValueChange(l),d.onOpenChange(!1))};if(""===l)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,N.jsx)(ec,{scope:r,value:l,disabled:o,textId:y,isSelected:p,onItemTextChange:n.useCallback(e=>{h(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,N.jsx)(P.ItemSlot,{scope:r,value:l,disabled:o,textValue:f,children:(0,N.jsx)(w.sG.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":p&&m,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:x,onFocus:(0,a.m)(u.onFocus,()=>g(!0)),onBlur:(0,a.m)(u.onBlur,()=>g(!1)),onClick:(0,a.m)(u.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,a.m)(u.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,a.m)(u.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,a.m)(u.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}}),onKeyDown:(0,a.m)(u.onKeyDown,e=>{var t;(null===(t=c.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(T.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});ef.displayName=ed;var ev="SelectItemText",eh=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...i}=e,u=B(ev,r),d=Y(ev,r),c=ep(ev,r),p=V(ev,r),[f,v]=n.useState(null),h=(0,s.s)(t,e=>v(e),c.onItemTextChange,e=>{var t;return null===(t=d.itemTextRefCallback)||void 0===t?void 0:t.call(d,e,c.value,c.disabled)}),m=null==f?void 0:f.textContent,g=n.useMemo(()=>(0,N.jsx)("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=p;return(0,b.N)(()=>(x(g),()=>y(g)),[x,y,g]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(w.sG.span,{id:c.textId,...i,ref:h}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren?l.createPortal(i.children,u.valueNode):null]})});eh.displayName=ev;var em="SelectItemIndicator",ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ep(em,r).isSelected?(0,N.jsx)(w.sG.span,{"aria-hidden":!0,...n,ref:t}):null});ew.displayName=em;var eg="SelectScrollUpButton",ex=n.forwardRef((e,t)=>{let r=Y(eg,e.__scopeSelect),l=et(eg,e.__scopeSelect),[o,a]=n.useState(!1),i=(0,s.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,N.jsx)(eS,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ex.displayName=eg;var ey="SelectScrollDownButton",eb=n.forwardRef((e,t)=>{let r=Y(ey,e.__scopeSelect),l=et(ey,e.__scopeSelect),[o,a]=n.useState(!1),i=(0,s.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,N.jsx)(eS,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eb.displayName=ey;var eS=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:l,...o}=e,i=Y("SelectScrollButton",r),s=n.useRef(null),u=M(r),d=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>d(),[d]),(0,b.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,N.jsx)(w.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.m)(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(l,50))}),onPointerMove:(0,a.m)(o.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===s.current&&(s.current=window.setInterval(l,50))}),onPointerLeave:(0,a.m)(o.onPointerLeave,()=>{d()})})}),eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,N.jsx)(w.sG.div,{"aria-hidden":!0,...n,ref:t})});eC.displayName="SelectSeparator";var ej="SelectArrow";function eR(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=A(r),o=B(ej,r),a=Y(ej,r);return o.open&&"popper"===a.position?(0,N.jsx)(h.i3,{...l,...n,ref:t}):null}).displayName=ej;var eN=n.forwardRef((e,t)=>{let{value:r,...l}=e,o=n.useRef(null),a=(0,s.s)(t,o),i=(0,S.Z)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[i,r]),(0,N.jsx)(C.s,{asChild:!0,children:(0,N.jsx)("select",{...l,ref:a,defaultValue:r})})});function ek(e){let t=(0,x.c)(e),r=n.useRef(""),l=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(l.current),""!==t&&(l.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(l.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(l.current),[]),[r,o,a]}function eT(e,t,r){var n;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===l.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return a!==r?a:void 0}eN.displayName="BubbleSelect";var eE=O,eP=W,eM=K,eI=U,eD=q,eL=Z,eA=en,eH=ei,eB=eu,e_=ef,eV=eh,eO=ew,eG=ex,eW=eb,eF=eC},65163:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(20107);function l(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},91475:(e,t,r)=>{r.d(t,{b:()=>i,s:()=>a});var n=r(20107),l=r(34544),o=r(20475),a=n.forwardRef((e,t)=>(0,o.jsx)(l.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var i=a}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3494-d763154adf622bee.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3494-d763154adf622bee.js new file mode 100644 index 0000000..fa081d1 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3494-d763154adf622bee.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3494],{39997:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(20107);let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:d="",children:u,iconNode:c,...p}=e;return(0,n.createElement)("svg",{ref:t,...a,width:l,height:l,stroke:r,strokeWidth:s?24*Number(i)/Number(l):i,className:o("lucide",d),...p},[...c.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:s,...d}=r;return(0,n.createElement)(i,{ref:a,iconNode:t,className:o("lucide-".concat(l(e)),s),...d})});return r.displayName="".concat(e),r}},56703:(e,t,r)=>{r.d(t,{q:()=>n});function n(e,[t,r]){return Math.min(r,Math.max(t,e))}},32474:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(20107),l=r(54379),o=r(64236),a=r(61837),i=r(20475);function s(e){let t=e+"CollectionProvider",[r,s]=(0,l.A)(t),[d,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,l=n.useRef(null),o=n.useRef(new Map).current;return(0,i.jsx)(d,{scope:t,itemMap:o,collectionRef:l,children:r})};c.displayName=t;let p=e+"CollectionSlot",f=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=u(p,r),s=(0,o.s)(t,l.collectionRef);return(0,i.jsx)(a.DX,{ref:s,children:n})});f.displayName=p;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=n.forwardRef((e,t)=>{let{scope:r,children:l,...s}=e,d=n.useRef(null),c=(0,o.s)(t,d),p=u(v,r);return n.useEffect(()=>(p.itemMap.set(d,{ref:d,...s}),()=>void p.itemMap.delete(d))),(0,i.jsx)(a.DX,{[h]:"",ref:c,children:l})});return m.displayName=v,[{Provider:c,Slot:f,ItemSlot:m},function(t){let r=u(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},54379:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(20107),l=r(20475);function o(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let l=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:l}}),[r,l])}};return a.scopeName=e,[function(t,o){let a=n.createContext(o),i=r.length;function s(t){let{scope:r,children:o,...s}=t,d=r?.[e][i]||a,u=n.useMemo(()=>s,Object.values(s));return(0,l.jsx)(d.Provider,{value:u,children:o})}return r=[...r,o],s.displayName=t+"Provider",[s,function(r,l){let s=l?.[e][i]||a,d=n.useContext(s);if(d)return d;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let l=r.reduce((t,{useScope:r,scopeName:n})=>{let l=r(e)[`__scope${n}`];return{...t,...l}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}(a,...t)]}},76056:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(20107);r(20475);var l=n.createContext(void 0);function o(e){let t=n.useContext(l);return e||t||"ltr"}},21840:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(20107),l=r(34544),o=r(20475),a=n.forwardRef((e,t)=>(0,o.jsx)(l.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var i=a},57563:(e,t,r)=>{r.d(t,{Mz:()=>I,i3:()=>L,UC:()=>D,bL:()=>T,Bk:()=>m});var n=r(20107),l=r(9895),o=r(84069),a=r(34544),i=r(20475),s=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:l=5,...o}=e;return(0,i.jsx)(a.sG.svg,{...o,ref:t,width:n,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})});s.displayName="Arrow";var d=r(64236),u=r(54379),c=r(46774),p=r(54122),f=r(63620),v="Popper",[h,m]=(0,u.A)(v),[w,g]=h(v),x=e=>{let{__scopePopper:t,children:r}=e,[l,o]=n.useState(null);return(0,i.jsx)(w,{scope:t,anchor:l,onAnchorChange:o,children:r})};x.displayName=v;var y="PopperAnchor",b=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:l,...o}=e,s=g(y,r),u=n.useRef(null),c=(0,d.s)(t,u);return n.useEffect(()=>{s.onAnchorChange((null==l?void 0:l.current)||u.current)}),l?null:(0,i.jsx)(a.sG.div,{...o,ref:c})});b.displayName=y;var S="PopperContent",[C,j]=h(S),N=n.forwardRef((e,t)=>{var r,s,u,v,h,m,w,x;let{__scopePopper:y,side:b="bottom",sideOffset:j=0,align:N="center",alignOffset:R=0,arrowPadding:k=0,avoidCollisions:P=!0,collisionBoundary:T=[],collisionPadding:I=0,sticky:D="partial",hideWhenDetached:L=!1,updatePositionStrategy:H="optimized",onPlaced:_,...B}=e,O=g(S,y),[G,V]=n.useState(null),W=(0,d.s)(t,e=>V(e)),[F,U]=n.useState(null),K=(0,f.X)(F),z=null!==(w=null==K?void 0:K.width)&&void 0!==w?w:0,q=null!==(x=null==K?void 0:K.height)&&void 0!==x?x:0,X="number"==typeof I?I:{top:0,right:0,bottom:0,left:0,...I},Y=Array.isArray(T)?T:[T],$=Y.length>0,Z={padding:X,boundary:Y.filter(A),altBoundary:$},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:er}=(0,l.we)({strategy:"fixed",placement:b+("center"!==N?"-"+N:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r{let{elements:t,rects:r,availableWidth:n,availableHeight:l}=e,{width:o,height:a}=r.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width","".concat(n,"px")),i.setProperty("--radix-popper-available-height","".concat(l,"px")),i.setProperty("--radix-popper-anchor-width","".concat(o,"px")),i.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),F&&(0,l.UE)({element:F,padding:k}),E({arrowWidth:z,arrowHeight:q}),L&&(0,l.jD)({strategy:"referenceHidden",...Z})]}),[en,el]=M(ee),eo=(0,c.c)(_);(0,p.N)(()=>{et&&(null==eo||eo())},[et,eo]);let ea=null===(r=er.arrow)||void 0===r?void 0:r.x,ei=null===(s=er.arrow)||void 0===s?void 0:s.y,es=(null===(u=er.arrow)||void 0===u?void 0:u.centerOffset)!==0,[ed,eu]=n.useState();return(0,p.N)(()=>{G&&eu(window.getComputedStyle(G).zIndex)},[G]),(0,i.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ed,"--radix-popper-transform-origin":[null===(v=er.transformOrigin)||void 0===v?void 0:v.x,null===(h=er.transformOrigin)||void 0===h?void 0:h.y].join(" "),...(null===(m=er.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(C,{scope:y,placedSide:en,onArrowChange:U,arrowX:ea,arrowY:ei,shouldHideArrow:es,children:(0,i.jsx)(a.sG.div,{"data-side":en,"data-align":el,...B,ref:W,style:{...B.style,animation:et?void 0:"none"}})})})});N.displayName=S;var R="PopperArrow",k={top:"bottom",right:"left",bottom:"top",left:"right"},P=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,l=j(R,r),o=k[l.placedSide];return(0,i.jsx)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:(0,i.jsx)(s,{...n,ref:t,style:{...n.style,display:"block"}})})});function A(e){return null!==e}P.displayName=R;var E=e=>({name:"transformOrigin",options:e,fn(t){var r,n,l,o,a;let{placement:i,rects:s,middlewareData:d}=t,u=(null===(r=d.arrow)||void 0===r?void 0:r.centerOffset)!==0,c=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[f,v]=M(i),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(o=null===(n=d.arrow)||void 0===n?void 0:n.x)&&void 0!==o?o:0)+c/2,w=(null!==(a=null===(l=d.arrow)||void 0===l?void 0:l.y)&&void 0!==a?a:0)+p/2,g="",x="";return"bottom"===f?(g=u?h:"".concat(m,"px"),x="".concat(-p,"px")):"top"===f?(g=u?h:"".concat(m,"px"),x="".concat(s.floating.height+p,"px")):"right"===f?(g="".concat(-p,"px"),x=u?h:"".concat(w,"px")):"left"===f&&(g="".concat(s.floating.width+p,"px"),x=u?h:"".concat(w,"px")),{data:{x:g,y:x}}}});function M(e){let[t,r="center"]=e.split("-");return[t,r]}var T=x,I=b,D=N,L=P},95257:(e,t,r)=>{r.d(t,{In:()=>eT,JU:()=>e_,LM:()=>eL,PP:()=>eV,UC:()=>eD,VF:()=>eG,WT:()=>eM,YJ:()=>eH,ZL:()=>eI,bL:()=>eA,l9:()=>eE,p4:()=>eO,q7:()=>eB,wn:()=>eW,wv:()=>eF});var n=r(20107),l=r(25642),o=r(56703),a=r(94521),i=r(32474),s=r(64236),d=r(45170),u=r(76056),c=r(55302),p=r(10201),f=r(38573),v=r(72763),h=r(57563),m=r(41913),w=r(34544),g=r(61837),x=r(46774),y=r(13061),b=r(54122),S=r(65163),C=r(91475),j=r(58020),N=r(9543),R=r(20475),k=[" ","Enter","ArrowUp","ArrowDown"],P=[" ","Enter"],A="Select",[E,M,T]=(0,i.N)(A),[I,D]=(0,d.A)(A,[T,h.Bk]),L=(0,h.Bk)(),[H,_]=I(A),[B,O]=I(A),G=e=>{let{__scopeSelect:t,children:r,open:l,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:d,dir:c,name:p,autoComplete:f,disabled:m,required:w,form:g}=e,x=L(t),[b,S]=n.useState(null),[C,j]=n.useState(null),[N,k]=n.useState(!1),P=(0,u.jH)(c),[A=!1,M]=(0,y.i)({prop:l,defaultProp:o,onChange:a}),[T,I]=(0,y.i)({prop:i,defaultProp:s,onChange:d}),D=n.useRef(null),_=!b||g||!!b.closest("form"),[O,G]=n.useState(new Set),V=Array.from(O).map(e=>e.props.value).join(";");return(0,R.jsx)(h.bL,{...x,children:(0,R.jsxs)(H,{required:w,scope:t,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:N,onValueNodeHasChildrenChange:k,contentId:(0,v.B)(),value:T,onValueChange:I,open:A,onOpenChange:M,dir:P,triggerPointerDownPosRef:D,disabled:m,children:[(0,R.jsx)(E.Provider,{scope:t,children:(0,R.jsx)(B,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{G(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{G(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),_?(0,R.jsxs)(eR,{"aria-hidden":!0,required:w,tabIndex:-1,name:p,autoComplete:f,value:T,onChange:e=>I(e.target.value),disabled:m,form:g,children:[void 0===T?(0,R.jsx)("option",{value:""}):null,Array.from(O)]},V):null]})})};G.displayName=A;var V="SelectTrigger",W=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:l=!1,...o}=e,i=L(r),d=_(V,r),u=d.disabled||l,c=(0,s.s)(t,d.onTriggerChange),p=M(r),f=n.useRef("touch"),[v,m,g]=ek(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===d.value),n=eP(t,e,r);void 0!==n&&d.onValueChange(n.value)}),x=e=>{u||(d.onOpenChange(!0),g()),e&&(d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,R.jsx)(h.Mz,{asChild:!0,...i,children:(0,R.jsx)(w.sG.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":eN(d.value)?"":void 0,...o,ref:c,onClick:(0,a.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&x(e)}),onPointerDown:(0,a.m)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,a.m)(o.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&k.includes(e.key)&&(x(),e.preventDefault())})})})});W.displayName=V;var F="SelectValue",U=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:l,children:o,placeholder:a="",...i}=e,d=_(F,r),{onValueNodeHasChildrenChange:u}=d,c=void 0!==o,p=(0,s.s)(t,d.onValueNodeChange);return(0,b.N)(()=>{u(c)},[u,c]),(0,R.jsx)(w.sG.span,{...i,ref:p,style:{pointerEvents:"none"},children:eN(d.value)?(0,R.jsx)(R.Fragment,{children:a}):o})});U.displayName=F;var K=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...l}=e;return(0,R.jsx)(w.sG.span,{"aria-hidden":!0,...l,ref:t,children:n||"▼"})});K.displayName="SelectIcon";var z=e=>(0,R.jsx)(m.Z,{asChild:!0,...e});z.displayName="SelectPortal";var q="SelectContent",X=n.forwardRef((e,t)=>{let r=_(q,e.__scopeSelect),[o,a]=n.useState();return((0,b.N)(()=>{a(new DocumentFragment)},[]),r.open)?(0,R.jsx)(Z,{...e,ref:t}):o?l.createPortal((0,R.jsx)(Y,{scope:e.__scopeSelect,children:(0,R.jsx)(E.Slot,{scope:e.__scopeSelect,children:(0,R.jsx)("div",{children:e.children})})}),o):null});X.displayName=q;var[Y,$]=I(q),Z=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:d,side:u,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C,...k}=e,P=_(q,r),[A,E]=n.useState(null),[T,I]=n.useState(null),D=(0,s.s)(t,e=>E(e)),[L,H]=n.useState(null),[B,O]=n.useState(null),G=M(r),[V,W]=n.useState(!1),F=n.useRef(!1);n.useEffect(()=>{if(A)return(0,j.Eq)(A)},[A]),(0,p.Oh)();let U=n.useCallback(e=>{let[t,...r]=G().map(e=>e.ref.current),[n]=r.slice(-1),l=document.activeElement;for(let r of e)if(r===l||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&T&&(T.scrollTop=0),r===n&&T&&(T.scrollTop=T.scrollHeight),null==r||r.focus(),document.activeElement!==l))return},[G,T]),K=n.useCallback(()=>U([L,A]),[U,L,A]);n.useEffect(()=>{V&&K()},[V,K]);let{onOpenChange:z,triggerPointerDownPosRef:X}=P;n.useEffect(()=>{if(A){let e={x:0,y:0},t=t=>{var r,n,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(l=null===(r=X.current)||void 0===r?void 0:r.x)&&void 0!==l?l:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=X.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():A.contains(r.target)||z(!1),document.removeEventListener("pointermove",t),X.current=null};return null!==X.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[A,z,X]),n.useEffect(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[$,Z]=ek(e=>{let t=G().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eP(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!F.current&&!r;(void 0!==P.value&&P.value===t||n)&&(H(e),n&&(F.current=!0))},[P.value]),et=n.useCallback(()=>null==A?void 0:A.focus(),[A]),er=n.useCallback((e,t,r)=>{let n=!F.current&&!r;(void 0!==P.value&&P.value===t||n)&&O(e)},[P.value]),en="popper"===l?Q:J,el=en===Q?{side:u,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C}:{};return(0,R.jsx)(Y,{scope:r,content:A,viewport:T,onViewportChange:I,itemRefCallback:ee,selectedItem:L,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:K,selectedItemText:B,position:l,isPositioned:V,searchRef:$,children:(0,R.jsx)(N.A,{as:g.DX,allowPinchZoom:!0,children:(0,R.jsx)(f.n,{asChild:!0,trapped:P.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(o,e=>{var t;null===(t=P.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,R.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:(0,R.jsx)(en,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:e=>e.preventDefault(),...k,...el,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:(0,a.m)(k.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=G().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});Z.displayName="SelectContentImpl";var J=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:l,...a}=e,i=_(q,r),d=$(q,r),[u,c]=n.useState(null),[p,f]=n.useState(null),v=(0,s.s)(t,e=>f(e)),h=M(r),m=n.useRef(!1),g=n.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=d,j=n.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&p&&x&&y&&S){let e=i.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==i.dir){let l=n.left-t.left,a=r.left-l,i=e.left-a,s=e.width+i,d=Math.max(s,t.width),c=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,c-d)]);u.style.minWidth=s+"px",u.style.left=p+"px"}else{let l=t.right-n.right,a=window.innerWidth-r.right-l,i=window.innerWidth-e.right-a,s=e.width+i,d=Math.max(s,t.width),c=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,c-d)]);u.style.minWidth=s+"px",u.style.right=p+"px"}let a=h(),s=window.innerHeight-20,d=x.scrollHeight,c=window.getComputedStyle(p),f=parseInt(c.borderTopWidth,10),v=parseInt(c.paddingTop,10),w=parseInt(c.borderBottomWidth,10),g=f+v+d+parseInt(c.paddingBottom,10)+w,b=Math.min(5*y.offsetHeight,g),C=window.getComputedStyle(x),j=parseInt(C.paddingTop,10),N=parseInt(C.paddingBottom,10),R=e.top+e.height/2-10,k=y.offsetHeight/2,P=f+v+(y.offsetTop+k);if(P<=R){let e=a.length>0&&y===a[a.length-1].ref.current;u.style.bottom="0px";let t=Math.max(s-R,k+(e?N:0)+(p.clientHeight-x.offsetTop-x.offsetHeight)+w);u.style.height=P+t+"px"}else{let e=a.length>0&&y===a[0].ref.current;u.style.top="0px";let t=Math.max(R,f+x.offsetTop+(e?j:0)+k);u.style.height=t+(g-P)+"px",x.scrollTop=P-R+x.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=b+"px",u.style.maxHeight=s+"px",null==l||l(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,u,p,x,y,S,i.dir,l]);(0,b.N)(()=>j(),[j]);let[N,k]=n.useState();(0,b.N)(()=>{p&&k(window.getComputedStyle(p).zIndex)},[p]);let P=n.useCallback(e=>{e&&!0===g.current&&(j(),null==C||C(),g.current=!1)},[j,C]);return(0,R.jsx)(ee,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:(0,R.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:(0,R.jsx)(w.sG.div,{...a,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:l=10,...o}=e,a=L(r);return(0,R.jsx)(h.UC,{...a,...o,ref:t,align:n,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=I(q,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:l,...o}=e,i=$(er,r),d=et(er,r),u=(0,s.s)(t,i.onViewportChange),c=n.useRef(0);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,R.jsx)(E.Slot,{scope:r,children:(0,R.jsx)(w.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=d;if((null==n?void 0:n.current)&&r){let e=Math.abs(c.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,l=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(l0?i:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});en.displayName=er;var el="SelectGroup",[eo,ea]=I(el),ei=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=(0,v.B)();return(0,R.jsx)(eo,{scope:r,id:l,children:(0,R.jsx)(w.sG.div,{role:"group","aria-labelledby":l,...n,ref:t})})});ei.displayName=el;var es="SelectLabel",ed=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=ea(es,r);return(0,R.jsx)(w.sG.div,{id:l.id,...n,ref:t})});ed.displayName=es;var eu="SelectItem",[ec,ep]=I(eu),ef=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:l,disabled:o=!1,textValue:i,...d}=e,u=_(eu,r),c=$(eu,r),p=u.value===l,[f,h]=n.useState(null!=i?i:""),[m,g]=n.useState(!1),x=(0,s.s)(t,e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,l,o)}),y=(0,v.B)(),b=n.useRef("touch"),S=()=>{o||(u.onValueChange(l),u.onOpenChange(!1))};if(""===l)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,R.jsx)(ec,{scope:r,value:l,disabled:o,textId:y,isSelected:p,onItemTextChange:n.useCallback(e=>{h(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,R.jsx)(E.ItemSlot,{scope:r,value:l,disabled:o,textValue:f,children:(0,R.jsx)(w.sG.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":p&&m,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...d,ref:x,onFocus:(0,a.m)(d.onFocus,()=>g(!0)),onBlur:(0,a.m)(d.onBlur,()=>g(!1)),onClick:(0,a.m)(d.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,a.m)(d.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,a.m)(d.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,a.m)(d.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.m)(d.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}}),onKeyDown:(0,a.m)(d.onKeyDown,e=>{var t;(null===(t=c.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(P.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});ef.displayName=eu;var ev="SelectItemText",eh=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...i}=e,d=_(ev,r),u=$(ev,r),c=ep(ev,r),p=O(ev,r),[f,v]=n.useState(null),h=(0,s.s)(t,e=>v(e),c.onItemTextChange,e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,c.value,c.disabled)}),m=null==f?void 0:f.textContent,g=n.useMemo(()=>(0,R.jsx)("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=p;return(0,b.N)(()=>(x(g),()=>y(g)),[x,y,g]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(w.sG.span,{id:c.textId,...i,ref:h}),c.isSelected&&d.valueNode&&!d.valueNodeHasChildren?l.createPortal(i.children,d.valueNode):null]})});eh.displayName=ev;var em="SelectItemIndicator",ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ep(em,r).isSelected?(0,R.jsx)(w.sG.span,{"aria-hidden":!0,...n,ref:t}):null});ew.displayName=em;var eg="SelectScrollUpButton",ex=n.forwardRef((e,t)=>{let r=$(eg,e.__scopeSelect),l=et(eg,e.__scopeSelect),[o,a]=n.useState(!1),i=(0,s.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,R.jsx)(eS,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ex.displayName=eg;var ey="SelectScrollDownButton",eb=n.forwardRef((e,t)=>{let r=$(ey,e.__scopeSelect),l=et(ey,e.__scopeSelect),[o,a]=n.useState(!1),i=(0,s.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,R.jsx)(eS,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eb.displayName=ey;var eS=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:l,...o}=e,i=$("SelectScrollButton",r),s=n.useRef(null),d=M(r),u=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>u(),[u]),(0,b.N)(()=>{var e;let t=d().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[d]),(0,R.jsx)(w.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.m)(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(l,50))}),onPointerMove:(0,a.m)(o.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===s.current&&(s.current=window.setInterval(l,50))}),onPointerLeave:(0,a.m)(o.onPointerLeave,()=>{u()})})}),eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,R.jsx)(w.sG.div,{"aria-hidden":!0,...n,ref:t})});eC.displayName="SelectSeparator";var ej="SelectArrow";function eN(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=L(r),o=_(ej,r),a=$(ej,r);return o.open&&"popper"===a.position?(0,R.jsx)(h.i3,{...l,...n,ref:t}):null}).displayName=ej;var eR=n.forwardRef((e,t)=>{let{value:r,...l}=e,o=n.useRef(null),a=(0,s.s)(t,o),i=(0,S.Z)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[i,r]),(0,R.jsx)(C.s,{asChild:!0,children:(0,R.jsx)("select",{...l,ref:a,defaultValue:r})})});function ek(e){let t=(0,x.c)(e),r=n.useRef(""),l=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(l.current),""!==t&&(l.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(l.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(l.current),[]),[r,o,a]}function eP(e,t,r){var n;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===l.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return a!==r?a:void 0}eR.displayName="BubbleSelect";var eA=G,eE=W,eM=U,eT=K,eI=z,eD=X,eL=en,eH=ei,e_=ed,eB=ef,eO=eh,eG=ew,eV=ex,eW=eb,eF=eC},65163:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(20107);function l(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},91475:(e,t,r)=>{r.d(t,{b:()=>i,s:()=>a});var n=r(20107),l=r(34544),o=r(20475),a=n.forwardRef((e,t)=>(0,o.jsx)(l.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var i=a}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3572-2b8db37d34ea53e3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3572-2b8db37d34ea53e3.js deleted file mode 100644 index 0fa54bb..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3572-2b8db37d34ea53e3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3572],{83572:(e,t,n)=>{n.d(t,{UC:()=>P,VY:()=>S,ZD:()=>L,ZL:()=>F,bL:()=>T,hE:()=>k,hJ:()=>M,l9:()=>_,rc:()=>U});var r=n(12115),o=n(18166),a=n(88068),i=n(66217),l=n(93610),s=n(12317),u=n(95155),d="AlertDialog",[c,f]=(0,o.A)(d,[i.Hs]),p=(0,i.Hs)(),m=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,u.jsx)(i.bL,{...r,...n,modal:!0})};m.displayName=d;var g=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.l9,{...o,...r,ref:t})});g.displayName="AlertDialogTrigger";var v=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,u.jsx)(i.ZL,{...r,...n})};v.displayName="AlertDialogPortal";var y=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.hJ,{...o,...r,ref:t})});y.displayName="AlertDialogOverlay";var N="AlertDialogContent",[h,D]=c(N),b=(0,s.Dc)("AlertDialogContent"),x=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:o,...s}=e,d=p(n),c=r.useRef(null),f=(0,a.s)(t,c),m=r.useRef(null);return(0,u.jsx)(i.G$,{contentName:N,titleName:w,docsSlug:"alert-dialog",children:(0,u.jsx)(h,{scope:n,cancelRef:m,children:(0,u.jsxs)(i.UC,{role:"alertdialog",...d,...s,ref:f,onOpenAutoFocus:(0,l.m)(s.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,u.jsx)(b,{children:o}),(0,u.jsx)(E,{contentRef:c})]})})})});x.displayName=N;var w="AlertDialogTitle",R=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.hE,{...o,...r,ref:t})});R.displayName=w;var j="AlertDialogDescription",O=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.VY,{...o,...r,ref:t})});O.displayName=j;var A=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.bm,{...o,...r,ref:t})});A.displayName="AlertDialogAction";var C="AlertDialogCancel",I=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=D(C,n),l=p(n),s=(0,a.s)(t,o);return(0,u.jsx)(i.bm,{...l,...r,ref:s})});I.displayName=C;var E=e=>{let{contentRef:t}=e,n="`".concat(N,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(N,"` by passing a `").concat(j,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(N,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},T=m,_=g,F=v,M=y,P=x,U=A,L=I,k=R,S=O},66217:(e,t,n)=>{n.d(t,{G$:()=>J,Hs:()=>b,UC:()=>en,VY:()=>eo,ZL:()=>ee,bL:()=>Q,bm:()=>ea,hE:()=>er,hJ:()=>et,l9:()=>X});var r=n(12115),o=n(93610),a=n(88068),i=n(18166),l=n(67668),s=n(1488),u=n(59674),d=n(20196),c=n(17323),f=n(17028),p=n(23360),m=n(62292),g=n(64065),v=n(15587),y=n(12317),N=n(95155),h="Dialog",[D,b]=(0,i.A)(h),[x,w]=D(h),R=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f=!1,p]=(0,s.i)({prop:o,defaultProp:a,onChange:i});return(0,N.jsx)(x,{scope:t,triggerRef:d,contentRef:c,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};R.displayName=h;var j="DialogTrigger",O=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=w(j,n),l=(0,a.s)(t,i.triggerRef);return(0,N.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":H(i.open),...r,ref:l,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});O.displayName=j;var A="DialogPortal",[C,I]=D(A,{forceMount:void 0}),E=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=w(A,t);return(0,N.jsx)(C,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,N.jsx)(f.C,{present:n||i.open,children:(0,N.jsx)(c.Z,{asChild:!0,container:a,children:e})}))})};E.displayName=A;var T="DialogOverlay",_=r.forwardRef((e,t)=>{let n=I(T,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=w(T,e.__scopeDialog);return a.modal?(0,N.jsx)(f.C,{present:r||a.open,children:(0,N.jsx)(M,{...o,ref:t})}):null});_.displayName=T;var F=(0,y.TL)("DialogOverlay.RemoveScroll"),M=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(T,n);return(0,N.jsx)(g.A,{as:F,allowPinchZoom:!0,shards:[o.contentRef],children:(0,N.jsx)(p.sG.div,{"data-state":H(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),P="DialogContent",U=r.forwardRef((e,t)=>{let n=I(P,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=w(P,e.__scopeDialog);return(0,N.jsx)(f.C,{present:r||a.open,children:a.modal?(0,N.jsx)(L,{...o,ref:t}):(0,N.jsx)(k,{...o,ref:t})})});U.displayName=P;var L=r.forwardRef((e,t)=>{let n=w(P,e.__scopeDialog),i=r.useRef(null),l=(0,a.s)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,v.Eq)(e)},[]),(0,N.jsx)(S,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),k=r.forwardRef((e,t)=>{let n=w(P,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,N.jsx)(S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),S=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=w(P,n),f=r.useRef(null),p=(0,a.s)(t,f);return(0,m.Oh)(),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,N.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":H(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K,{titleId:c.titleId}),(0,N.jsx)(z,{contentRef:f,descriptionId:c.descriptionId})]})]})}),W="DialogTitle",G=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(W,n);return(0,N.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});G.displayName=W;var B="DialogDescription",Z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(B,n);return(0,N.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});Z.displayName=B;var q="DialogClose",V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=w(q,n);return(0,N.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})});function H(e){return e?"open":"closed"}V.displayName=q;var Y="DialogTitleWarning",[J,$]=(0,i.q)(Y,{contentName:P,titleName:W,docsSlug:"dialog"}),K=e=>{let{titleId:t}=e,n=$(Y),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},z=e=>{let{contentRef:t,descriptionId:n}=e,o=$("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(a)},[a,t,n]),null},Q=R,X=O,ee=E,et=_,en=U,er=G,eo=Z,ea=V},17028:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(12115),o=n(88068),a=n(46611),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[o,i]=r.useState(),s=r.useRef({}),u=r.useRef(e),d=r.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(s.current);d.current="mounted"===c?e:"none"},[c]),(0,a.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=d.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(d.current=l(s.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),i(e)},[])}}(t),s="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),u=(0,o.s)(i.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||i.isPresent?r.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3662-239bb8b0fc7d6649.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3662-239bb8b0fc7d6649.js new file mode 100644 index 0000000..4be2faa --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3662-239bb8b0fc7d6649.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3662],{17799:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},98969:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},32024:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},46361:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},26780:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},59166:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1870:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]])},97801:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},52161:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},51873:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},10528:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("UserRoundPen",[["path",{d:"M2 21a8 8 0 0 1 10.821-7.487",key:"1c8h7z"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}]])},48547:(e,t,n)=>{n.d(t,{Mz:()=>td,UC:()=>tp,ZL:()=>tf,bL:()=>tc,l9:()=>ts});var r,o,a=n(20107);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:n,...r}=e,o=a.Children.toArray(n),i=o.find(m);if(i){let e=i.props.children,n=o.map(t=>t!==i?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,f.jsx)(v,{...r,ref:t,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,f.jsx)(v,{...r,ref:t,children:n})});p.displayName="Slot";var v=a.forwardRef((e,t)=>{let{children:n,...r}=e;if(a.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),o=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?u(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null});v.displayName="SlotClone";var h=({children:e})=>(0,f.jsx)(f.Fragment,{children:e});function m(e){return a.isValidElement(e)&&e.type===h}var y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=a.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?p:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),g=n(46774),w=n(91624),b="dismissableLayer.update",E=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=a.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:s,onInteractOutside:p,onDismiss:v,...h}=e,m=a.useContext(E),[x,A]=a.useState(null),P=null!==(r=null==x?void 0:x.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,N]=a.useState({}),R=c(t,e=>A(e)),O=Array.from(m.layers),[M]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),S=O.indexOf(M),L=x?O.indexOf(x):-1,j=m.layersWithOutsidePointerEventsDisabled.size>0,T=L>=S,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,g.c)(e),o=a.useRef(!1),i=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){k("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...m.branches].some(e=>e.contains(t));!T||n||(null==d||d(e),null==p||p(e),e.defaultPrevented||null==v||v())},P),F=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,g.c)(e),o=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!o.current&&k("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...m.branches].some(e=>e.contains(t))||(null==s||s(e),null==p||p(e),e.defaultPrevented||null==v||v())},P);return(0,w.U)(e=>{L!==m.layers.size-1||(null==u||u(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},P),a.useEffect(()=>{if(x)return l&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(o=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(x)),m.layers.add(x),C(),()=>{l&&1===m.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=o)}},[x,P,l,m]),a.useEffect(()=>()=>{x&&(m.layers.delete(x),m.layersWithOutsidePointerEventsDisabled.delete(x),C())},[x,m]),a.useEffect(()=>{let e=()=>N({});return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,f.jsx)(y.div,{...h,ref:R,style:{pointerEvents:j?T?"auto":"none":void 0,...e.style},onFocusCapture:i(e.onFocusCapture,F.onFocusCapture),onBlurCapture:i(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:i(e.onPointerDownCapture,D.onPointerDownCapture)})});function C(){let e=new CustomEvent(b);document.dispatchEvent(e)}function k(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&a.addEventListener(e,t,{once:!0}),o)?a&&s.flushSync(()=>a.dispatchEvent(i)):a.dispatchEvent(i)}x.displayName="DismissableLayer",a.forwardRef((e,t)=>{let n=a.useContext(E),r=a.useRef(null),o=c(t,r);return a.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(y.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var A=n(10201),P="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",R={bubbles:!1,cancelable:!0},O=a.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[u,d]=a.useState(null),s=(0,g.c)(o),p=(0,g.c)(i),v=a.useRef(null),h=c(t,e=>d(e)),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(m.paused||!u)return;let t=e.target;u.contains(t)?v.current=t:L(v.current,{select:!0})},t=function(e){if(m.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||L(v.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&L(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,m.paused]),a.useEffect(()=>{if(u){j.add(m);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(P,R);u.addEventListener(P,s),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(L(r,{select:t}),document.activeElement!==n)return}(M(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&L(u))}return()=>{u.removeEventListener(P,s),setTimeout(()=>{let t=new CustomEvent(N,R);u.addEventListener(N,p),u.dispatchEvent(t),t.defaultPrevented||L(null!=e?e:document.body,{select:!0}),u.removeEventListener(N,p),j.remove(m)},0)}}},[u,s,p,m]);let w=a.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=M(e);return[S(t,e),S(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&L(a,{select:!0})):(e.preventDefault(),n&&L(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,f.jsx)(y.div,{tabIndex:-1,...l,ref:h,onKeyDown:w})});function M(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function S(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function L(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var j=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=T(e,t)).unshift(t)},remove(t){var n;null===(n=(e=T(e,t))[0])||void 0===n||n.resume()}}}();function T(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var D=n(72763),F=n(9895),I=n(84069),W=a.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,f.jsx)(y.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});W.displayName="Arrow";var U=n(54122),_=n(63620),z="Popper",[B,H]=(0,d.A)(z),[Y,X]=B(z),K=e=>{let{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return(0,f.jsx)(Y,{scope:t,anchor:r,onAnchorChange:o,children:n})};K.displayName=z;var V="PopperAnchor",Z=a.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=X(V,n),l=a.useRef(null),u=c(t,l);return a.useEffect(()=>{i.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,f.jsx)(y.div,{...o,ref:u})});Z.displayName=V;var q="PopperContent",[G,$]=B(q),J=a.forwardRef((e,t)=>{var n,r,o,i,l,u,d,s;let{__scopePopper:p,side:v="bottom",sideOffset:h=0,align:m="center",alignOffset:w=0,arrowPadding:b=0,avoidCollisions:E=!0,collisionBoundary:x=[],collisionPadding:C=0,sticky:k="partial",hideWhenDetached:A=!1,updatePositionStrategy:P="optimized",onPlaced:N,...R}=e,O=X(q,p),[M,S]=a.useState(null),L=c(t,e=>S(e)),[j,T]=a.useState(null),D=(0,_.X)(j),W=null!==(d=null==D?void 0:D.width)&&void 0!==d?d:0,z=null!==(s=null==D?void 0:D.height)&&void 0!==s?s:0,B="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},H=Array.isArray(x)?x:[x],Y=H.length>0,K={padding:B,boundary:H.filter(en),altBoundary:Y},{refs:V,floatingStyles:Z,placement:$,isPositioned:J,middlewareData:Q}=(0,F.we)({strategy:"fixed",placement:v+("center"!==m?"-"+m:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),j&&(0,F.UE)({element:j,padding:b}),er({arrowWidth:W,arrowHeight:z}),A&&(0,F.jD)({strategy:"referenceHidden",...K})]}),[ee,et]=eo($),ea=(0,g.c)(N);(0,U.N)(()=>{J&&(null==ea||ea())},[J,ea]);let ei=null===(n=Q.arrow)||void 0===n?void 0:n.x,el=null===(r=Q.arrow)||void 0===r?void 0:r.y,eu=(null===(o=Q.arrow)||void 0===o?void 0:o.centerOffset)!==0,[ec,ed]=a.useState();return(0,U.N)(()=>{M&&ed(window.getComputedStyle(M).zIndex)},[M]),(0,f.jsx)("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:J?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(i=Q.transformOrigin)||void 0===i?void 0:i.x,null===(l=Q.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=Q.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(G,{scope:p,placedSide:ee,onArrowChange:T,arrowX:ei,arrowY:el,shouldHideArrow:eu,children:(0,f.jsx)(y.div,{"data-side":ee,"data-align":et,...R,ref:L,style:{...R.style,animation:J?void 0:"none"}})})})});J.displayName=q;var Q="PopperArrow",ee={top:"bottom",right:"left",bottom:"top",left:"right"},et=a.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=$(Q,n),a=ee[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(W,{...r,ref:t,style:{...r.style,display:"block"}})})});function en(e){return null!==e}et.displayName=Q;var er=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:u,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,s=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,v]=eo(l),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+s/2,y=(null!==(i=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+f/2,g="",w="";return"bottom"===p?(g=d?h:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(g=d?h:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),w=d?h:"".concat(y,"px")):"left"===p&&(g="".concat(u.floating.width+f,"px"),w=d?h:"".concat(y,"px")),{data:{x:g,y:w}}}});function eo(e){let[t,n="center"]=e.split("-");return[t,n]}var ea=a.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[l,u]=a.useState(!1);(0,U.N)(()=>u(!0),[]);let c=o||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?s.createPortal((0,f.jsx)(y.div,{...i,ref:t}),c):null});ea.displayName="Portal";var ei=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=a.useState(),i=a.useRef({}),l=a.useRef(e),u=a.useRef("none"),[c,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return a.useEffect(()=>{let e=el(i.current);u.current="mounted"===c?e:"none"},[c]),(0,U.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=u.current,o=el(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,U.N)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=el(i.current).includes(e.animationName);if(e.target===r&&o&&(d("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(u.current=el(i.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(e=>{e&&(i.current=getComputedStyle(e)),o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=c(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function el(e){return(null==e?void 0:e.animationName)||"none"}ei.displayName="Presence";var eu=n(13061),ec=n(58020),ed=function(){return(ed=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create;var ef=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ep="width-before-scroll-bar";function ev(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eh="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,em=new WeakMap;function ey(e){return e}var eg=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=ey),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return o.options=ed({async:!0,ssr:!1},e),o}(),ew=function(){},eb=a.forwardRef(function(e,t){var n,r,o,i,l=a.useRef(null),u=a.useState({onScrollCapture:ew,onWheelCapture:ew,onTouchMoveCapture:ew}),c=u[0],d=u[1],s=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,y=e.sideCar,g=e.noIsolation,w=e.inert,b=e.allowPinchZoom,E=e.as,x=e.gapMode,C=es(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[l,t],r=function(e){return n.forEach(function(t){return ev(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,eh(function(){var e=em.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||ev(e,null)}),r.forEach(function(e){t.has(e)||ev(e,o)})}em.set(i,n)},[n]),i),A=ed(ed({},C),c);return a.createElement(a.Fragment,null,h&&a.createElement(y,{sideCar:eg,removeScrollBar:v,shards:m,noIsolation:g,inert:w,setCallbacks:d,allowPinchZoom:!!b,lockRef:l,gapMode:x}),s?a.cloneElement(a.Children.only(f),ed(ed({},A),{ref:k})):a.createElement(void 0===E?"div":E,ed({},A,{className:p,ref:k}),f))});eb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eb.classNames={fullWidth:ep,zeroRight:ef};var eE=function(e){var t=e.sideCar,n=es(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,ed({},n))};eE.isSideCarExport=!0;var ex=n(91059),eC=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,ex.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ek=function(){var e=eC();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eA=function(){var e=ek();return function(t){return e(t.styles,t.dynamic),null}},eP={left:0,top:0,right:0,gap:0},eN=function(e){return parseInt(e||"",10)||0},eR=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eN(n),eN(r),eN(o)]},eO=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return eP;var t=eR(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eM=eA(),eS="data-scroll-locked",eL=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(eS,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ef," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ep," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ef," .").concat(ef," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ep," .").concat(ep," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(eS,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},ej=function(){var e=parseInt(document.body.getAttribute(eS)||"0",10);return isFinite(e)?e:0},eT=function(){a.useEffect(function(){return document.body.setAttribute(eS,(ej()+1).toString()),function(){var e=ej()-1;e<=0?document.body.removeAttribute(eS):document.body.setAttribute(eS,e.toString())}},[])},eD=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eT();var i=a.useMemo(function(){return eO(o)},[o]);return a.createElement(eM,{styles:eL(i,!t,o,n?"":"!important")})},eF=!1;if("undefined"!=typeof window)try{var eI=Object.defineProperty({},"passive",{get:function(){return eF=!0,!0}});window.addEventListener("test",eI,eI),window.removeEventListener("test",eI,eI)}catch(e){eF=!1}var eW=!!eF&&{passive:!1},eU=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},e_=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ez(e,r)){var o=eB(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ez=function(e,t){return"v"===e?eU(t,"overflowY"):eU(t,"overflowX")},eB=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eH=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,u=n.target,c=t.contains(u),d=!1,s=l>0,f=0,p=0;do{var v=eB(e,u),h=v[0],m=v[1]-v[2]-i*h;(h||m)&&ez(e,u)&&(f+=m,p+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return s&&(o&&1>Math.abs(f)||!o&&l>f)?d=!0:!s&&(o&&1>Math.abs(p)||!o&&-l>p)&&(d=!0),d},eY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eX=function(e){return[e.deltaX,e.deltaY]},eK=function(e){return e&&"current"in e?e.current:e},eV=0,eZ=[];let eq=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(eV++)[0],i=a.useState(eA)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oMath.abs(c)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=e_(s,d);if(!f)return!0;if(f?o=s:(o="v"===s?"h":"v",f=e_(s,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return eH(p,t,e,"h"===p?u:c,!0)},[]),c=a.useCallback(function(e){if(eZ.length&&eZ[eZ.length-1]===i){var n="deltaY"in e?eX(e):eY(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(eK).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=a.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=a.useCallback(function(e){n.current=eY(e),r.current=void 0},[]),f=a.useCallback(function(t){d(t.type,eX(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){d(t.type,eY(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return eZ.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,eW),document.addEventListener("touchmove",c,eW),document.addEventListener("touchstart",s,eW),function(){eZ=eZ.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,eW),document.removeEventListener("touchmove",c,eW),document.removeEventListener("touchstart",s,eW)}},[]);var v=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?a.createElement(eD,{gapMode:e.gapMode}):null)},eg.useMedium(r),eE);var eG=a.forwardRef(function(e,t){return a.createElement(eb,ed({},e,{ref:t,sideCar:eq}))});eG.classNames=eb.classNames;var e$="Popover",[eJ,eQ]=(0,d.A)(e$,[H]),e0=H(),[e1,e2]=eJ(e$),e9=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!1}=e,u=e0(t),c=a.useRef(null),[d,s]=a.useState(!1),[p=!1,v]=(0,eu.i)({prop:r,defaultProp:o,onChange:i});return(0,f.jsx)(K,{...u,children:(0,f.jsx)(e1,{scope:t,contentId:(0,D.B)(),triggerRef:c,open:p,onOpenChange:v,onOpenToggle:a.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:d,onCustomAnchorAdd:a.useCallback(()=>s(!0),[]),onCustomAnchorRemove:a.useCallback(()=>s(!1),[]),modal:l,children:n})})};e9.displayName=e$;var e3="PopoverAnchor",e7=a.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e2(e3,n),i=e0(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=o;return a.useEffect(()=>(l(),()=>u()),[l,u]),(0,f.jsx)(Z,{...i,...r,ref:t})});e7.displayName=e3;var e8="PopoverTrigger",e5=a.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e2(e8,n),a=e0(n),l=c(t,o.triggerRef),u=(0,f.jsx)(y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tu(o.open),...r,ref:l,onClick:i(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,f.jsx)(Z,{asChild:!0,...a,children:u})});e5.displayName=e8;var e6="PopoverPortal",[e4,te]=eJ(e6,{forceMount:void 0}),tt=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=e2(e6,t);return(0,f.jsx)(e4,{scope:t,forceMount:n,children:(0,f.jsx)(ei,{present:n||a.open,children:(0,f.jsx)(ea,{asChild:!0,container:o,children:r})})})};tt.displayName=e6;var tn="PopoverContent",tr=a.forwardRef((e,t)=>{let n=te(tn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=e2(tn,e.__scopePopover);return(0,f.jsx)(ei,{present:r||a.open,children:a.modal?(0,f.jsx)(to,{...o,ref:t}):(0,f.jsx)(ta,{...o,ref:t})})});tr.displayName=tn;var to=a.forwardRef((e,t)=>{let n=e2(tn,e.__scopePopover),r=a.useRef(null),o=c(t,r),l=a.useRef(!1);return a.useEffect(()=>{let e=r.current;if(e)return(0,ec.Eq)(e)},[]),(0,f.jsx)(eG,{as:p,allowPinchZoom:!0,children:(0,f.jsx)(ti,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:i(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:i(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;l.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:i(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ta=a.forwardRef((e,t)=>{let n=e2(tn,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return(0,f.jsx)(ti,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),ti=a.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...s}=e,p=e2(tn,n),v=e0(n);return(0,A.Oh)(),(0,f.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,f.jsx)(x,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:(0,f.jsx)(J,{"data-state":tu(p.open),role:"dialog",id:p.contentId,...v,...s,ref:t,style:{...s.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tl="PopoverClose";function tu(e){return e?"open":"closed"}a.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e2(tl,n);return(0,f.jsx)(y.button,{type:"button",...r,ref:t,onClick:i(e.onClick,()=>o.onOpenChange(!1))})}).displayName=tl,a.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e0(n);return(0,f.jsx)(et,{...o,...r,ref:t})}).displayName="PopoverArrow";var tc=e9,td=e7,ts=e5,tf=tt,tp=tr}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3740-cc1b7d8d60f56d79.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3740-cc1b7d8d60f56d79.js deleted file mode 100644 index e64f9da..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3740-cc1b7d8d60f56d79.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3740],{45686:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(67401).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},49741:(e,t,r)=>{r.d(t,{N:()=>u});var n=r(12115),o=r(18166),a=r(88068),l=r(12317),i=r(95155);function u(e){let t=e+"CollectionProvider",[r,u]=(0,o.A)(t),[s,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(s,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=(0,l.TL)(f),v=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),l=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(p,{ref:l,children:n})});v.displayName=f;let m=e+"CollectionItemSlot",b="data-radix-collection-item",y=(0,l.TL)(m),h=n.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,u=n.useRef(null),s=(0,a.s)(t,u),d=c(m,r);return n.useEffect(()=>(d.itemMap.set(u,{ref:u,...l}),()=>void d.itemMap.delete(u))),(0,i.jsx)(y,{[b]:"",ref:s,children:o})});return h.displayName=m,[{Provider:d,Slot:v,ItemSlot:h},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(b,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}},67357:(e,t,r)=>{r.d(t,{RG:()=>R,bL:()=>D,q7:()=>M});var n=r(12115),o=r(93610),a=r(49741),l=r(88068),i=r(18166),u=r(67668),s=r(23360),c=r(41524),d=r(1488),f=r(4256),p=r(95155),v="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[y,h,w]=(0,a.N)(b),[x,R]=(0,i.A)(b,[w]),[g,C]=x(b),A=n.forwardRef((e,t)=>(0,p.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(j,{...e,ref:t})})}));A.displayName=b;var j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:u,currentTabStopId:b,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:w,onEntryFocus:x,preventScrollOnEntryFocus:R=!1,...C}=e,A=n.useRef(null),j=(0,l.s)(t,A),I=(0,f.jH)(u),[F=null,k]=(0,d.i)({prop:b,defaultProp:y,onChange:w}),[D,M]=n.useState(!1),E=(0,c.c)(x),G=h(r),N=n.useRef(!1),[S,L]=n.useState(0);return n.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(v,E),()=>e.removeEventListener(v,E)},[E]),(0,p.jsx)(g,{scope:r,orientation:a,dir:I,loop:i,currentTabStopId:F,onItemFocus:n.useCallback(e=>k(e),[k]),onItemShiftTab:n.useCallback(()=>M(!0),[]),onFocusableItemAdd:n.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(s.sG.div,{tabIndex:D||0===S?-1:0,"data-orientation":a,...C,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(v,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=G().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===F),...e].filter(Boolean).map(e=>e.ref.current),R)}}N.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>M(!1))})})}),I="RovingFocusGroupItem",F=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:l=!1,tabStopId:i,...c}=e,d=(0,u.B)(),f=i||d,v=C(I,r),m=v.currentTabStopId===f,b=h(r),{onFocusableItemAdd:w,onFocusableItemRemove:x}=v;return n.useEffect(()=>{if(a)return w(),()=>x()},[a,w,x]),(0,p.jsx)(y.ItemSlot,{scope:r,id:f,focusable:a,active:l,children:(0,p.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...c,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?v.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>v.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return k[o]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=v.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>T(r))}})})})});F.displayName=I;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var D=A,M=F},58629:(e,t,r)=>{r.d(t,{B8:()=>T,UC:()=>M,bL:()=>k,l9:()=>D});var n=r(12115),o=r(93610),a=r(18166),l=r(67357),i=r(17028),u=r(23360),s=r(4256),c=r(1488),d=r(67668),f=r(95155),p="Tabs",[v,m]=(0,a.A)(p,[l.RG]),b=(0,l.RG)(),[y,h]=v(p),w=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:i,activationMode:p="automatic",...v}=e,m=(0,s.jH)(i),[b,h]=(0,c.i)({prop:n,onChange:o,defaultProp:a});return(0,f.jsx)(y,{scope:r,baseId:(0,d.B)(),value:b,onValueChange:h,orientation:l,dir:m,activationMode:p,children:(0,f.jsx)(u.sG.div,{dir:m,"data-orientation":l,...v,ref:t})})});w.displayName=p;var x="TabsList",R=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=h(x,r),i=b(r);return(0,f.jsx)(l.bL,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:(0,f.jsx)(u.sG.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});R.displayName=x;var g="TabsTrigger",C=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...i}=e,s=h(g,r),c=b(r),d=I(s.baseId,n),p=F(s.baseId,n),v=n===s.value;return(0,f.jsx)(l.q7,{asChild:!0,...c,focusable:!a,active:v,children:(0,f.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":p,"data-state":v?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(n)}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(n)}),onFocus:(0,o.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;v||a||!e||s.onValueChange(n)})})})});C.displayName=g;var A="TabsContent",j=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:a,children:l,...s}=e,c=h(A,r),d=I(c.baseId,o),p=F(c.baseId,o),v=o===c.value,m=n.useRef(v);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(i.C,{present:a||v,children:r=>{let{present:n}=r;return(0,f.jsx)(u.sG.div,{"data-state":v?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:p,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:n&&l})}})});function I(e,t){return"".concat(e,"-trigger-").concat(t)}function F(e,t){return"".concat(e,"-content-").concat(t)}j.displayName=A;var k=w,T=R,D=C,M=j}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3746-654c7d406af2e140.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3746-654c7d406af2e140.js new file mode 100644 index 0000000..3486584 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3746-654c7d406af2e140.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3746],{84069:(t,e,n)=>{n.d(e,{UE:()=>ta,ll:()=>tr,rD:()=>td,UU:()=>tf,jD:()=>tc,ER:()=>ts,cY:()=>to,BN:()=>tl,Ej:()=>tu});let i=["top","right","bottom","left"],r=Math.min,o=Math.max,l=Math.round,f=Math.floor,u=t=>({x:t,y:t}),c={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function s(t,e){return"function"==typeof t?t(e):t}function d(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function g(t){return["top","bottom"].includes(d(t))?"y":"x"}function y(t){return t.replace(/start|end/g,t=>a[t])}function w(t){return t.replace(/left|right|bottom|top/g,t=>c[t])}function x(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function v(t){let{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function b(t,e,n){let i,{reference:r,floating:o}=t,l=g(e),f=p(g(e)),u=m(f),c=d(e),a="y"===l,s=r.x+r.width/2-o.width/2,y=r.y+r.height/2-o.height/2,w=r[u]/2-o[u]/2;switch(c){case"top":i={x:s,y:r.y-o.height};break;case"bottom":i={x:s,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:y};break;case"left":i={x:r.x-o.width,y:y};break;default:i={x:r.x,y:r.y}}switch(h(e)){case"start":i[f]-=w*(n&&a?-1:1);break;case"end":i[f]+=w*(n&&a?-1:1)}return i}let R=async(t,e,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:l}=n,f=o.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(e)),c=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:a,y:s}=b(c,i,u),d=i,h={},p=0;for(let n=0;nt[e]>=0)}async function T(t,e){let{placement:n,platform:i,elements:r}=t,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),l=d(n),f=h(n),u="y"===g(n),c=["left","top"].includes(l)?-1:1,a=o&&u?-1:1,p=s(e,t),{mainAxis:m,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return f&&"number"==typeof w&&(y="end"===f?-1*w:w),u?{x:y*a,y:m*c}:{x:m*c,y:y*a}}function D(){return"undefined"!=typeof window}function O(t){return C(t)?(t.nodeName||"").toLowerCase():"#document"}function S(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function k(t){var e;return null==(e=(C(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function C(t){return!!D()&&(t instanceof Node||t instanceof S(t).Node)}function P(t){return!!D()&&(t instanceof Element||t instanceof S(t).Element)}function H(t){return!!D()&&(t instanceof HTMLElement||t instanceof S(t).HTMLElement)}function F(t){return!!D()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof S(t).ShadowRoot)}function M(t){let{overflow:e,overflowX:n,overflowY:i,display:r}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function W(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(t){return!1}})}function B(t){let e=N(),n=P(t)?z(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function N(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function j(t){return["html","body","#document"].includes(O(t))}function z(t){return S(t).getComputedStyle(t)}function U(t){return P(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function V(t){if("html"===O(t))return t;let e=t.assignedSlot||t.parentNode||F(t)&&t.host||k(t);return F(e)?e.host:e}function _(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);let r=function t(e){let n=V(e);return j(n)?e.ownerDocument?e.ownerDocument.body:e.body:H(n)&&M(n)?n:t(n)}(t),o=r===(null==(i=t.ownerDocument)?void 0:i.body),l=S(r);if(o){let t=Y(l);return e.concat(l,l.visualViewport||[],M(r)?r:[],t&&n?_(t):[])}return e.concat(r,_(r,[],n))}function Y(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function I(t){let e=z(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,r=H(t),o=r?t.offsetWidth:n,f=r?t.offsetHeight:i,u=l(n)!==o||l(i)!==f;return u&&(n=o,i=f),{width:n,height:i,$:u}}function $(t){return P(t)?t:t.contextElement}function q(t){let e=$(t);if(!H(e))return u(1);let n=e.getBoundingClientRect(),{width:i,height:r,$:o}=I(e),f=(o?l(n.width):n.width)/i,c=(o?l(n.height):n.height)/r;return f&&Number.isFinite(f)||(f=1),c&&Number.isFinite(c)||(c=1),{x:f,y:c}}let X=u(0);function G(t){let e=S(t);return N()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:X}function J(t,e,n,i){var r;void 0===e&&(e=!1),void 0===n&&(n=!1);let o=t.getBoundingClientRect(),l=$(t),f=u(1);e&&(i?P(i)&&(f=q(i)):f=q(t));let c=(void 0===(r=n)&&(r=!1),i&&(!r||i===S(l))&&r)?G(l):u(0),a=(o.left+c.x)/f.x,s=(o.top+c.y)/f.y,d=o.width/f.x,h=o.height/f.y;if(l){let t=S(l),e=i&&P(i)?S(i):i,n=t,r=Y(n);for(;r&&i&&e!==n;){let t=q(r),e=r.getBoundingClientRect(),i=z(r),o=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,l=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;a*=t.x,s*=t.y,d*=t.x,h*=t.y,a+=o,s+=l,r=Y(n=S(r))}}return v({width:d,height:h,x:a,y:s})}function K(t,e){let n=U(t).scrollLeft;return e?e.left+n:J(k(t)).left+n}function Q(t,e,n){let i;if("viewport"===e)i=function(t,e){let n=S(t),i=k(t),r=n.visualViewport,o=i.clientWidth,l=i.clientHeight,f=0,u=0;if(r){o=r.width,l=r.height;let t=N();(!t||t&&"fixed"===e)&&(f=r.offsetLeft,u=r.offsetTop)}return{width:o,height:l,x:f,y:u}}(t,n);else if("document"===e)i=function(t){let e=k(t),n=U(t),i=t.ownerDocument.body,r=o(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=o(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),f=-n.scrollLeft+K(t),u=-n.scrollTop;return"rtl"===z(i).direction&&(f+=o(e.clientWidth,i.clientWidth)-r),{width:r,height:l,x:f,y:u}}(k(t));else if(P(e))i=function(t,e){let n=J(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,o=H(t)?q(t):u(1),l=t.clientWidth*o.x;return{width:l,height:t.clientHeight*o.y,x:r*o.x,y:i*o.y}}(e,n);else{let n=G(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return v(i)}function Z(t){return"static"===z(t).position}function tt(t,e){if(!H(t)||"fixed"===z(t).position)return null;if(e)return e(t);let n=t.offsetParent;return k(t)===n&&(n=n.ownerDocument.body),n}function te(t,e){let n=S(t);if(W(t))return n;if(!H(t)){let e=V(t);for(;e&&!j(e);){if(P(e)&&!Z(e))return e;e=V(e)}return n}let i=tt(t,e);for(;i&&["table","td","th"].includes(O(i))&&Z(i);)i=tt(i,e);return i&&j(i)&&Z(i)&&!B(i)?n:i||function(t){let e=V(t);for(;H(e)&&!j(e);){if(B(e))return e;if(W(e))break;e=V(e)}return null}(t)||n}let tn=async function(t){let e=this.getOffsetParent||te,n=this.getDimensions,i=await n(t.floating);return{reference:function(t,e,n){let i=H(e),r=k(e),o="fixed"===n,l=J(t,!0,o,e),f={scrollLeft:0,scrollTop:0},c=u(0);if(i||!i&&!o){if(("body"!==O(e)||M(r))&&(f=U(e)),i){let t=J(e,!0,o,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else r&&(c.x=K(r))}let a=0,s=0;if(r&&!i&&!o){let t=r.getBoundingClientRect();s=t.top+f.scrollTop,a=t.left+f.scrollLeft-K(r,t)}return{x:l.left+f.scrollLeft-c.x-a,y:l.top+f.scrollTop-c.y-s,width:l.width,height:l.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},ti={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t,o="fixed"===r,l=k(i),f=!!e&&W(e.floating);if(i===l||f&&o)return n;let c={scrollLeft:0,scrollTop:0},a=u(1),s=u(0),d=H(i);if((d||!d&&!o)&&(("body"!==O(i)||M(l))&&(c=U(i)),H(i))){let t=J(i);a=q(i),s.x=t.x+i.clientLeft,s.y=t.y+i.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+s.x,y:n.y*a.y-c.scrollTop*a.y+s.y}},getDocumentElement:k,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:l}=t,f=[..."clippingAncestors"===n?W(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let i=_(t,[],!1).filter(t=>P(t)&&"body"!==O(t)),r=null,o="fixed"===z(t).position,l=o?V(t):t;for(;P(l)&&!j(l);){let e=z(l),n=B(l);n||"fixed"!==e.position||(r=null),(o?!n&&!r:!n&&"static"===e.position&&!!r&&["absolute","fixed"].includes(r.position)||M(l)&&!n&&function t(e,n){let i=V(e);return!(i===n||!P(i)||j(i))&&("fixed"===z(i).position||t(i,n))}(t,l))?i=i.filter(t=>t!==l):r=e,l=V(l)}return e.set(t,i),i}(e,this._c):[].concat(n),i],u=f[0],c=f.reduce((t,n)=>{let i=Q(e,n,l);return t.top=o(i.top,t.top),t.right=r(i.right,t.right),t.bottom=r(i.bottom,t.bottom),t.left=o(i.left,t.left),t},Q(e,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:te,getElementRects:tn,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=I(t);return{width:e,height:n}},getScale:q,isElement:P,isRTL:function(t){return"rtl"===z(t).direction}};function tr(t,e,n,i){let l;void 0===i&&(i={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,h=$(t),p=u||c?[...h?_(h):[],..._(e)]:[];p.forEach(t=>{u&&t.addEventListener("scroll",n,{passive:!0}),c&&t.addEventListener("resize",n)});let m=h&&s?function(t,e){let n,i=null,l=k(t);function u(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return!function c(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),u();let{left:d,top:h,width:p,height:m}=t.getBoundingClientRect();if(a||e(),!p||!m)return;let g=f(h),y=f(l.clientWidth-(d+p)),w={rootMargin:-g+"px "+-y+"px "+-f(l.clientHeight-(h+m))+"px "+-f(d)+"px",threshold:o(0,r(1,s))||1},x=!0;function v(t){let e=t[0].intersectionRatio;if(e!==s){if(!x)return c();e?c(!1,e):n=setTimeout(()=>{c(!1,1e-7)},1e3)}x=!1}try{i=new IntersectionObserver(v,{...w,root:l.ownerDocument})}catch(t){i=new IntersectionObserver(v,w)}i.observe(t)}(!0),u}(h,n):null,g=-1,y=null;a&&(y=new ResizeObserver(t=>{let[i]=t;i&&i.target===h&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),h&&!d&&y.observe(h),y.observe(e));let w=d?J(t):null;return d&&function e(){let i=J(t);w&&(i.x!==w.x||i.y!==w.y||i.width!==w.width||i.height!==w.height)&&n(),w=i,l=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach(t=>{u&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=y)||t.disconnect(),y=null,d&&cancelAnimationFrame(l)}}let to=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:r,y:o,placement:l,middlewareData:f}=e,u=await T(e,t);return l===(null==(n=f.offset)?void 0:n.placement)&&null!=(i=f.arrow)&&i.alignmentOffset?{}:{x:r+u.x,y:o+u.y,data:{...u,placement:l}}}}},tl=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:l}=e,{mainAxis:f=!0,crossAxis:u=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...a}=s(t,e),h={x:n,y:i},m=await E(e,a),y=g(d(l)),w=p(y),x=h[w],v=h[y];if(f){let t="y"===w?"top":"left",e="y"===w?"bottom":"right",n=x+m[t],i=x-m[e];x=o(n,r(x,i))}if(u){let t="y"===y?"top":"left",e="y"===y?"bottom":"right",n=v+m[t],i=v-m[e];v=o(n,r(v,i))}let b=c.fn({...e,[w]:x,[y]:v});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[w]:f,[y]:u}}}}}},tf=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i,r,o,l;let{placement:f,middlewareData:u,rects:c,initialPlacement:a,platform:x,elements:v}=e,{mainAxis:b=!0,crossAxis:R=!0,fallbackPlacements:A,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:D=!0,...O}=s(t,e);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let S=d(f),k=g(a),C=d(a)===a,P=await (null==x.isRTL?void 0:x.isRTL(v.floating)),H=A||(C||!D?[w(a)]:function(t){let e=w(t);return[y(t),e,y(e)]}(a)),F="none"!==T;!A&&F&&H.push(...function(t,e,n,i){let r=h(t),o=function(t,e,n){let i=["left","right"],r=["right","left"];switch(t){case"top":case"bottom":if(n)return e?r:i;return e?i:r;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(d(t),"start"===n,i);return r&&(o=o.map(t=>t+"-"+r),e&&(o=o.concat(o.map(y)))),o}(a,D,T,P));let M=[a,...H],W=await E(e,O),B=[],N=(null==(i=u.flip)?void 0:i.overflows)||[];if(b&&B.push(W[S]),R){let t=function(t,e,n){void 0===n&&(n=!1);let i=h(t),r=p(g(t)),o=m(r),l="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=w(l)),[l,w(l)]}(f,c,P);B.push(W[t[0]],W[t[1]])}if(N=[...N,{placement:f,overflows:B}],!B.every(t=>t<=0)){let t=((null==(r=u.flip)?void 0:r.index)||0)+1,e=M[t];if(e)return{data:{index:t,overflows:N},reset:{placement:e}};let n=null==(o=N.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!n)switch(L){case"bestFit":{let t=null==(l=N.filter(t=>{if(F){let e=g(t.placement);return e===k||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:l[0];t&&(n=t);break}case"initialPlacement":n=a}if(f!==n)return{reset:{placement:n}}}return{}}}},tu=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;let l,f;let{placement:u,rects:c,platform:a,elements:p}=e,{apply:m=()=>{},...y}=s(t,e),w=await E(e,y),x=d(u),v=h(u),b="y"===g(u),{width:R,height:A}=c.floating;"top"===x||"bottom"===x?(l=x,f=v===(await (null==a.isRTL?void 0:a.isRTL(p.floating))?"start":"end")?"left":"right"):(f=x,l="end"===v?"top":"bottom");let L=A-w.top-w.bottom,T=R-w.left-w.right,D=r(A-w[l],L),O=r(R-w[f],T),S=!e.middlewareData.shift,k=D,C=O;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(C=T),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(k=L),S&&!v){let t=o(w.left,0),e=o(w.right,0),n=o(w.top,0),i=o(w.bottom,0);b?C=R-2*(0!==t||0!==e?t+e:o(w.left,w.right)):k=A-2*(0!==n||0!==i?n+i:o(w.top,w.bottom))}await m({...e,availableWidth:C,availableHeight:k});let P=await a.getDimensions(p.floating);return R!==P.width||A!==P.height?{reset:{rects:!0}}:{}}}},tc=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...r}=s(t,e);switch(i){case"referenceHidden":{let t=A(await E(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:L(t)}}}case"escaped":{let t=A(await E(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:L(t)}}}default:return{}}}}},ta=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:l,rects:f,platform:u,elements:c,middlewareData:a}=e,{element:d,padding:y=0}=s(t,e)||{};if(null==d)return{};let w=x(y),v={x:n,y:i},b=p(g(l)),R=m(b),E=await u.getDimensions(d),A="y"===b,L=A?"clientHeight":"clientWidth",T=f.reference[R]+f.reference[b]-v[b]-f.floating[R],D=v[b]-f.reference[b],O=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),S=O?O[L]:0;S&&await (null==u.isElement?void 0:u.isElement(O))||(S=c.floating[L]||f.floating[R]);let k=S/2-E[R]/2-1,C=r(w[A?"top":"left"],k),P=r(w[A?"bottom":"right"],k),H=S-E[R]-P,F=S/2-E[R]/2+(T/2-D/2),M=o(C,r(F,H)),W=!a.arrow&&null!=h(l)&&F!==M&&f.reference[R]/2-(Fn&&(y=n)}if(c){var b,R;let t="y"===m?"width":"height",e=["top","left"].includes(d(r)),n=o.reference[h]-o.floating[t]+(e&&(null==(b=l.offset)?void 0:b[h])||0)+(e?0:v.crossAxis),i=o.reference[h]+o.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[h])||0)-(e?v.crossAxis:0);wi&&(w=i)}return{[m]:y,[h]:w}}}},td=(t,e,n)=>{let i=new Map,r={platform:ti,...n},o={...r.platform,_c:i};return R(t,e,{...r,platform:o})}},9895:(t,e,n)=>{n.d(e,{BN:()=>p,ER:()=>m,Ej:()=>y,UE:()=>x,UU:()=>g,cY:()=>h,jD:()=>w,we:()=>s});var i=n(84069),r=n(20107),o=n(25642),l="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function f(t,e){let n,i,r;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(i=n;0!=i--;)if(!f(t[i],e[i]))return!1;return!0}if((n=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!t.$$typeof)&&!f(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function u(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function c(t,e){let n=u(t);return Math.round(e*n)/n}function a(t){let e=r.useRef(t);return l(()=>{e.current=t}),e}function s(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:s=[],platform:d,elements:{reference:h,floating:p}={},transform:m=!0,whileElementsMounted:g,open:y}=t,[w,x]=r.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[v,b]=r.useState(s);f(v,s)||b(s);let[R,E]=r.useState(null),[A,L]=r.useState(null),T=r.useCallback(t=>{t!==k.current&&(k.current=t,E(t))},[]),D=r.useCallback(t=>{t!==C.current&&(C.current=t,L(t))},[]),O=h||R,S=p||A,k=r.useRef(null),C=r.useRef(null),P=r.useRef(w),H=null!=g,F=a(g),M=a(d),W=a(y),B=r.useCallback(()=>{if(!k.current||!C.current)return;let t={placement:e,strategy:n,middleware:v};M.current&&(t.platform=M.current),(0,i.rD)(k.current,C.current,t).then(t=>{let e={...t,isPositioned:!1!==W.current};N.current&&!f(P.current,e)&&(P.current=e,o.flushSync(()=>{x(e)}))})},[v,e,n,M,W]);l(()=>{!1===y&&P.current.isPositioned&&(P.current.isPositioned=!1,x(t=>({...t,isPositioned:!1})))},[y]);let N=r.useRef(!1);l(()=>(N.current=!0,()=>{N.current=!1}),[]),l(()=>{if(O&&(k.current=O),S&&(C.current=S),O&&S){if(F.current)return F.current(O,S,B);B()}},[O,S,B,F,H]);let j=r.useMemo(()=>({reference:k,floating:C,setReference:T,setFloating:D}),[T,D]),z=r.useMemo(()=>({reference:O,floating:S}),[O,S]),U=r.useMemo(()=>{let t={position:n,left:0,top:0};if(!z.floating)return t;let e=c(z.floating,w.x),i=c(z.floating,w.y);return m?{...t,transform:"translate("+e+"px, "+i+"px)",...u(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:i}},[n,m,z.floating,w.x,w.y]);return r.useMemo(()=>({...w,update:B,refs:j,elements:z,floatingStyles:U}),[w,B,j,z,U])}let d=t=>({name:"arrow",options:t,fn(e){let{element:n,padding:r}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,i.UE)({element:n.current,padding:r}).fn(e):{}:n?(0,i.UE)({element:n,padding:r}).fn(e):{}}}),h=(t,e)=>({...(0,i.cY)(t),options:[t,e]}),p=(t,e)=>({...(0,i.BN)(t),options:[t,e]}),m=(t,e)=>({...(0,i.ER)(t),options:[t,e]}),g=(t,e)=>({...(0,i.UU)(t),options:[t,e]}),y=(t,e)=>({...(0,i.Ej)(t),options:[t,e]}),w=(t,e)=>({...(0,i.jD)(t),options:[t,e]}),x=(t,e)=>({...d(t),options:[t,e]})},63620:(t,e,n)=>{n.d(e,{X:()=>o});var i=n(20107),r=n(54122);function o(t){let[e,n]=i.useState(void 0);return(0,r.N)(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let i,r;if(!Array.isArray(e)||!e.length)return;let o=e[0];if("borderBoxSize"in o){let t=o.borderBoxSize,e=Array.isArray(t)?t[0]:t;i=e.inlineSize,r=e.blockSize}else i=t.offsetWidth,r=t.offsetHeight;n({width:i,height:r})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),e}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3838-5ba37d257cf1cf08.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3838-5ba37d257cf1cf08.js deleted file mode 100644 index 428f74e..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3838-5ba37d257cf1cf08.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3838],{68373:(e,t,s)=>{s.r(t),s.d(t,{default:()=>y});var a=s(95155),l=s(12115),r=s(35007),i=s(50745),o=s(14085),c=s(89282),n=s(9955),d=s(15785),u=s(59162),h=s(39286),m=s(48686),p=s(67401);let v=(0,p.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);var g=s(87780),w=s(4834),x=s(20241),N=s(39677);let C=(0,p.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var f=s(26336);let j=(0,p.A)("Clock1",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 8",key:"12zbmj"}]]),b=(0,p.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),R=e=>{let{loading:t,scheduleData:s,onStartTimeChange:i,onEndTimeChange:c,onSchedulingToggle:u}=e,[h,p]=(0,l.useState)({text:"Disabled",color:"text-red-600",icon:C}),v=()=>{if(!s.enabled){p({text:"Disabled",color:"text-red-600",icon:C});return}let e=new Date,t=60*e.getHours()+e.getMinutes(),[a,l]=s.startTime.split(":").map(Number),[r,i]=s.endTime.split(":").map(Number),o=60*a+l,c=60*r+i;o<=c?t>=o&&t<=c?p({text:"Active",color:"text-green-600",icon:f.A}):p({text:"Inactive",color:"text-yellow-500",icon:j}):t>=o||t<=c?p({text:"Active",color:"text-green-600",icon:f.A}):p({text:"Inactive",color:"text-yellow-500",icon:j})},g=()=>{s.active?p({text:"Active",color:"text-green-600",icon:f.A}):s.enabled&&!s.active?p({text:"Inactive",color:"text-yellow-500",icon:j}):p({text:"Disabled",color:"text-red-600",icon:C})};(0,l.useEffect)(()=>{g();let e=setInterval(v,6e4);return()=>{clearInterval(e)}},[s]);let w=h.icon;return(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)(r.aR,{children:[(0,a.jsxs)(r.ZB,{className:"flex items-center justify-between",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{children:"Cell Locking Scheduler"})}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(w,{className:"h-4 w-4 mr-1 ".concat(h.color)}),(0,a.jsx)("div",{className:"text-sm text-gray-500",children:h.text})]})]}),(0,a.jsx)(r.BT,{children:"Schedule the device to lock to specific cells at certain times."})]}),(0,a.jsxs)(r.Wu,{children:[s.enabled&&(0,a.jsxs)(N.Fc,{className:"mb-6",children:[(0,a.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(N.XL,{children:"Scheduled Cell Locking Active"}),(0,a.jsx)(N.TN,{children:"Cell locking is currently being managed by the scheduler. Manual changes to cell locks may be overridden during scheduled hours."})]}),(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"start-time",children:"Start Time"}),(0,a.jsx)(n.p,{type:"time",id:"start-time",value:s.startTime,onChange:e=>i(e.target.value),disabled:t||s.enabled,placeholder:"START TIME"})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"end-time",children:"End Time"}),(0,a.jsx)(n.p,{type:"time",id:"end-time",value:s.endTime,onChange:e=>c(e.target.value),disabled:t||s.enabled,placeholder:"END TIME"})]}),(0,a.jsx)("div",{className:"lg:col-span-2 col-span-1",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Make sure to properly set the timezone using Luci for this to properly work. The scheduler will lock the device to the selected cells during the specified time range. The scheduler will not lock the device if the time range is not valid (e.g. start time is after end time)."})})]})]}),(0,a.jsx)(r.wL,{className:"border-t py-4",children:(0,a.jsxs)(o.$,{onClick:()=>u(!s.enabled),disabled:t||!s.locked&&!s.enabled,children:[(0,a.jsx)(b,{className:"h-4 w-4"}),s.enabled?"Disable Scheduler":"Enable Scheduler"]})})]})};var A=s(89622);let y=()=>{let{toast:e}=(0,x.dj)(),[t,s]=(0,l.useState)(!1),[p,N]=(0,l.useState)(!1),[C,f]=(0,l.useState)(!1),[j,b]=(0,l.useState)(!1),[y,E]=(0,l.useState)({enabled:!1,startTime:"",endTime:"",active:!1,status:"",message:"",locked:!1}),[k,F]=(0,l.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[T,P]=(0,l.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),S=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},I=async()=>{try{s(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=8"),t=await e.json();if(!e.ok)throw Error("Failed to fetch current status");console.log("Current cell locking status:",t);let a=S(t[2].response);console.log("Persist status:",a),a&&a.length>=2&&(f("1"===a[1]),b("1"===a[2]));let l=S(t[0].response);if(console.log("Current LTE lock status:",l),l){let e={EARFCN1:l[2],PCI1:l[3],EARFCN2:l[4],PCI2:l[5],EARFCN3:l[6],PCI3:l[7]};F(e),console.log("New LTE state:",e),parseInt(l[1])>0&&N(!0)}let r=S(t[1].response);if(console.log("Current NR5G lock status:",r),r&&r.length>=5){let e={NRPCI:r[1],NRARFCN:r[2],SCS:r[3],NRBAND:r[4]};P(e),console.log("New NR5G state:",e),parseInt(r[1])>0&&N(!0)}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{s(!1)}},L=async t=>{try{let a;if(s(!0),t&&(!y.startTime||!y.endTime))throw Error("Please set both start and end times");let l=t?{enabled:!0,startTime:y.startTime,endTime:y.endTime}:{enabled:!1},r=await fetch("/cgi-bin/quecmanager/cell-locking/handle_scheduled_locking.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}),i=await r.text();if(!r.ok)throw Error("Server responded with status: ".concat(r.status));try{a=JSON.parse(i)}catch(e){throw Error("Failed to parse response: ".concat(i))}if("success"===a.status)E(e=>({...e,enabled:t})),e({title:"Success",description:t?"Cell locking schedule enabled":"Cell locking schedule disabled"});else throw Error(a.message||"Failed to update scheduling")}catch(e){}finally{s(!1),await I()}},_=async()=>{try{var t,a,l,r;s(!0);let i=[];if(k.EARFCN1&&k.PCI1&&i.push([k.EARFCN1,k.PCI1]),k.EARFCN2&&k.PCI2&&i.push([k.EARFCN2,k.PCI2]),k.EARFCN3&&k.PCI3&&i.push([k.EARFCN3,k.PCI3]),0===i.length)throw Error("Please fill at least one EARFCN and PCI pair");let o='AT+QNWLOCK="common/4g",'.concat(i.length);i.forEach(e=>{let[t,s]=e;o+=",".concat(t,",").concat(s)});let c=await (0,A.a)(o,!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(l=c.response)||void 0===l?void 0:l.raw_output)||"Failed to lock LTE cells");await new Promise(e=>setTimeout(e,1e3));let n=await (0,A.a)('AT+QNWLOCK="save_ctrl",1,0',!0);if((null===(a=n.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=n.response)||void 0===r?void 0:r.raw_output)||"Failed to save LTE lock configuration");await I(),e({title:"Success",description:"LTE cells locked successfully with ".concat(i.length," pair").concat(i.length>1?"s":"")})}catch(t){s(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},G=async()=>{try{var t,a,l,r;if(s(!0),!T.NRPCI||!T.NRARFCN||!T.SCS||!T.NRBAND)throw Error("Please fill all NR5G fields");let i='AT+QNWLOCK="common/5g",'.concat(T.NRPCI,",").concat(T.NRARFCN,",").concat(T.SCS,",").concat(T.NRBAND),o=await (0,A.a)(i,!0);if((null===(t=o.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(l=o.response)||void 0===l?void 0:l.raw_output)||"Failed to lock NR5G cell");await new Promise(e=>setTimeout(e,1e3));let c=await (0,A.a)('AT+QNWLOCK="save_ctrl",0,1',!0);if((null===(a=c.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=c.response)||void 0===r?void 0:r.raw_output)||"Failed to save NR5G lock configuration");await I(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){s(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},D=async()=>{try{var t,a,l,r,i,o,c,n;s(!0);let d=await (0,A.a)('AT+QNWLOCK="common/4g",0',!0);if((null===(t=d.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=d.response)||void 0===i?void 0:i.raw_output)||"Failed to reset LTE lock");await new Promise(e=>setTimeout(e,1e3));let u=await (0,A.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(a=u.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save LTE reset configuration");let h=await (0,A.a)("AT+COPS=2",!0);if((null===(l=h.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(c=h.response)||void 0===c?void 0:c.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let m=await (0,A.a)("AT+COPS=0",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to reconnect to network");await I(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){s(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},O=async()=>{try{var t,a,l,r,i,o,c,n;s(!0);let d=await (0,A.a)('AT+QNWLOCK="common/5g",0',!0);if((null===(t=d.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=d.response)||void 0===i?void 0:i.raw_output)||"Failed to reset NR5G lock");let u=await (0,A.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(a=u.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save NR5G reset configuration");let h=await (0,A.a)("AT+COPS=2",!0);if((null===(l=h.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(c=h.response)||void 0===c?void 0:c.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let m=await (0,A.a)("AT+COPS=0",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to reconnect to network");await I(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){s(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},B=async t=>{try{var a,l;s(!0);let r=await (0,A.a)('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(j?"1":"0"),!0);if((null===(a=r.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(l=r.response)||void 0===l?void 0:l.raw_output)||"Failed to update LTE persist setting");await I(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{s(!1)}},W=async t=>{try{var a,l;s(!0);let r=await (0,A.a)('AT+QNWLOCK="save_ctrl",'.concat(C?"1":"0",",").concat(t?"1":"0"),!0);if((null===(a=r.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(l=r.response)||void 0===l?void 0:l.raw_output)||"Failed to update NR5G persist setting");await I(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{s(!1)}};return(0,l.useEffect)(()=>{(async()=>{let e=await fetch("/cgi-bin/quecmanager/cell-locking/get_cell_lock.sh"),t=await e.json();E({enabled:t.enabled,startTime:t.start_time||"",endTime:t.end_time||"",active:t.active,status:t.status,message:t.message,locked:t.locked}),N(t.locked),f("1"===t.ltePersist),b("1"===t.nr5gPersist),await I()})()},[]),(0,l.useEffect)(()=>{E(e=>({...e,locked:p}))},[p]),(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)(r.aR,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(r.ZB,{children:"4G LTE Cellular Locking"}),(0,a.jsx)(h.E,{children:p?(0,a.jsxs)("p",{className:"flex items-center gap-x-1",children:[(0,a.jsx)(m.A,{className:"h-3 w-3"}),"Locked"]}):(0,a.jsxs)("p",{className:"flex items-center gap-x-1",children:[(0,a.jsx)(v,{className:"h-3 w-3"}),"Unlocked"]})})]}),(0,a.jsx)(r.BT,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,a.jsx)(r.Wu,{children:(0,a.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,a.jsx)(n.p,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:k.EARFCN1,onChange:e=>F(t=>({...t,EARFCN1:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"PCI1",children:"PCI 1"}),(0,a.jsx)(n.p,{type:"text",id:"PCI1",placeholder:"PCI 1",value:k.PCI1,onChange:e=>F(t=>({...t,PCI1:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsx)(c.w,{className:"my-1 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,a.jsx)(n.p,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:k.EARFCN2,onChange:e=>F(t=>({...t,EARFCN2:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"PCI2",children:"PCI 2"}),(0,a.jsx)(n.p,{type:"text",id:"PCI2",placeholder:"PCI 2",value:k.PCI2,onChange:e=>F(t=>({...t,PCI2:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsx)(c.w,{className:"my-1 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,a.jsx)(n.p,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:k.EARFCN3,onChange:e=>F(t=>({...t,EARFCN3:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"PCI3",children:"PCI 3"}),(0,a.jsx)(n.p,{type:"text",id:"PCI3",placeholder:"PCI 3",value:k.PCI3,onChange:e=>F(t=>({...t,PCI3:e.target.value})),disabled:t||y.enabled&&p})]})]})}),(0,a.jsxs)(r.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,a.jsxs)(o.$,{onClick:_,disabled:t||y.enabled,children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,a.jsxs)(u.l,{pressed:C,onPressedChange:B,disabled:t||y.enabled,children:[(0,a.jsx)(g.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,a.jsxs)(o.$,{variant:"secondary",onClick:D,disabled:t||y.enabled,children:[(0,a.jsx)(w.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)(r.aR,{children:[(0,a.jsx)(r.ZB,{children:"NR5G-SA Cellular Locking"}),(0,a.jsx)(r.BT,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,a.jsx)(r.Wu,{children:(0,a.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,a.jsx)(n.p,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:T.NRARFCN,onChange:e=>P(t=>({...t,NRARFCN:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,a.jsx)(n.p,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:T.NRPCI,onChange:e=>P(t=>({...t,NRPCI:e.target.value})),disabled:t||y.enabled&&p})]}),(0,a.jsx)(c.w,{className:"my-0.5 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"SCS",children:"SCS"}),(0,a.jsxs)(i.l6,{value:T.SCS,onValueChange:e=>P(t=>({...t,SCS:e})),disabled:t||y.enabled&&p,children:[(0,a.jsx)(i.bq,{id:"SCS",children:(0,a.jsx)(i.yv,{placeholder:"SCS"})}),(0,a.jsx)(i.gC,{children:(0,a.jsxs)(i.s3,{children:[(0,a.jsx)(i.TR,{children:"SCS"}),(0,a.jsx)(i.eb,{value:"15",children:"15 kHz"}),(0,a.jsx)(i.eb,{value:"30",children:"30 kHz"}),(0,a.jsx)(i.eb,{value:"60",children:"60 kHz"}),(0,a.jsx)(i.eb,{value:"120",children:"120 kHz"}),(0,a.jsx)(i.eb,{value:"240",children:"240 kHz"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(d.J,{htmlFor:"NRBAND",children:"NR Band"}),(0,a.jsx)(n.p,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:T.NRBAND,onChange:e=>P(t=>({...t,NRBAND:e.target.value})),disabled:t||y.enabled&&p})]})]})}),(0,a.jsxs)(r.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,a.jsxs)(o.$,{onClick:G,disabled:t||y.enabled,children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,a.jsxs)(u.l,{pressed:j,onPressedChange:W,disabled:t||y.enabled,children:[(0,a.jsx)(g.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,a.jsxs)(o.$,{variant:"secondary",onClick:O,disabled:t||y.enabled,children:[(0,a.jsx)(w.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,a.jsx)(R,{loading:t,scheduleData:y,onStartTimeChange:e=>{E(t=>({...t,startTime:e}))},onEndTimeChange:e=>{E(t=>({...t,endTime:e}))},onSchedulingToggle:L})]})}},59162:(e,t,s)=>{s.d(t,{l:()=>h});var a=s(95155),l=s(12115),r=s(93610),i=s(1488),o=s(23360),c=l.forwardRef((e,t)=>{let{pressed:s,defaultPressed:l=!1,onPressedChange:c,...n}=e,[d=!1,u]=(0,i.i)({prop:s,onChange:c,defaultProp:l});return(0,a.jsx)(o.sG.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0,...n,ref:t,onClick:(0,r.m)(e.onClick,()=>{e.disabled||u(!d)})})});c.displayName="Toggle";var n=s(31027),d=s(29602);let u=(0,n.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),h=l.forwardRef((e,t)=>{let{className:s,variant:l,size:r,...i}=e;return(0,a.jsx)(c,{ref:t,className:(0,d.cn)(u({variant:l,size:r,className:s})),...i})});h.displayName=c.displayName},48686:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(67401).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},89622:(e,t,s)=>{s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let l=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(l),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);t&&(i+="&wait=1&timeout=".concat(s));let o=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let c=await o.json();if(c.error)throw Error("AT queue error: ".concat(c.error));if(t&&(null===(a=c.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return c}catch(e){throw console.error("AT Command error:",e),e}}},90434:(e,t,s)=>{s.d(t,{b:()=>n});var a=s(12115),l=s(23360),r=s(95155),i="horizontal",o=["horizontal","vertical"],c=a.forwardRef((e,t)=>{let{decorative:s,orientation:a=i,...c}=e,n=o.includes(a)?a:i;return(0,r.jsx)(l.sG.div,{"data-orientation":n,...s?{role:"none"}:{"aria-orientation":"vertical"===n?n:void 0,role:"separator"},...c,ref:t})});c.displayName="Separator";var n=c}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3914-7ed615bd3fa6fffd.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3914-7ed615bd3fa6fffd.js deleted file mode 100644 index 966c76d..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3914-7ed615bd3fa6fffd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3914],{93914:(e,t,s)=>{s.r(t),s.d(t,{default:()=>v});var a=s(95155),r=s(12115),l=s(35007),n=s(50745),o=s(25858),d=s(20241),i=s(14085),c=s(15785),u=s(25488),m=s(89282),h=s(34330),p=s(89622),f=s(12118);let x=(0,s(67401).A)("EthernetPort",[["path",{d:"m15 20 3-3h2a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2l3 3z",key:"rbahqx"}],["path",{d:"M6 8v1",key:"1636ez"}],["path",{d:"M10 8v1",key:"1talb4"}],["path",{d:"M14 8v1",key:"1rsfgr"}],["path",{d:"M18 8v1",key:"gnkwox"}]]),g=e=>{if("Unknown!"===e)return"-";let t=e.match(/(\d+)/);if(!t)return e;let s=parseInt(t[1],10);return s>=1e3?"".concat(s/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(s).concat((e.includes("Mb"),"Mb/s"))},j=()=>{let[e,t]=(0,r.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[s,n]=(0,r.useState)(!0),[o,d]=(0,r.useState)(null);return((0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let s=await e.json();t(s),n(!1)}catch(e){d("Failed to fetch Ethernet information"),n(!1)}})()},[]),o)?(0,a.jsxs)(l.Zp,{children:[(0,a.jsx)(l.aR,{children:(0,a.jsx)(l.ZB,{children:"Ethernet Information"})}),(0,a.jsx)(l.Wu,{className:"flex items-center justify-center",children:(0,a.jsx)("div",{className:"text-red-500",children:o})})]}):(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"Ethernet Information"}),(0,a.jsx)(l.BT,{children:"Shows the status of the Ethernet connection and its speed."})]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4 place-items-center",children:[(0,a.jsx)("div",{className:"flex justify-center items-center rounded-full bg-gray-100 dark:bg-gray-800 w-36 h-36 lg:p-6 p-4",children:"yes"===e.link_status?(0,a.jsx)(x,{className:"size-full text-emerald-500 animate-pulse"}):(0,a.jsx)(x,{className:"size-full text-red-500 animate-pulse"})}),(0,a.jsxs)("div",{className:"flex flex-row items-start justify-between gap-x-2 w-full lg:col-span-2 col-span-1 lg:px-4 px-1",children:[(0,a.jsxs)("div",{className:"grid gap-1",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,a.jsx)("span",{className:"text-base font-bold",children:s?(0,a.jsx)(u.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,a.jsxs)("div",{className:"grid gap-1",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,a.jsx)("span",{className:"text-base font-bold",children:s?(0,a.jsx)(u.E,{className:"h-8 w-full"}):g(e.link_speed)})]}),(0,a.jsxs)("div",{className:"grid gap-1",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,a.jsx)("span",{className:"text-base font-bold",children:s?(0,a.jsx)(u.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})]})})]})},v=()=>{let{toast:e}=(0,d.dj)(),[t,s]=(0,r.useState)(!0),[x,g]=(0,r.useState)([]),[v,b]=(0,r.useState)(!1),[y,w]=(0,r.useState)(""),[N,P]=(0,r.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),[S,E]=(0,r.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),A={passthrough:{disabled:'+QMAP="MPDN_rule",0;+QMAPWAC=1;+QPOWD=1',ETH:e=>'+QMAP="MPDN_rule",0,1,0,1,1,"'.concat(e,'";+QPOWD=1'),USB:e=>'+QMAP="MPDN_rule",0,1,0,3,1,"'.concat(e,'";+QPOWD=1')},modemProtocol:{rmnet:'+QCFG="usbnet",0;+QPOWD=1',ecm:'+QCFG="usbnet",1;+QPOWD=1',mbim:'+QCFG="usbnet",2;+QPOWD=1',rndis:'+QCFG="usbnet",3;+QPOWD=1'},dnsProxy:{enabled:'+QMAP="DHCPV4DNS","enable"',disabled:'+QMAP="DHCPV4DNS","disable"'}},T=e=>{let t={passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null};return e.forEach(e=>{let{response:s}=e;if(s.includes("MPDN_rule")){let e=s.split("\n")[1];e.includes('MPDN_rule",0,1,0,1,1')?t.passthrough="ETH":e.includes('MPDN_rule",0,1,0,3,1')?t.passthrough="USB":e.includes('MPDN_rule",0,0,0,0,0')&&(t.passthrough="disabled")}if(s.includes("usbnet")){let e=s.match(/usbnet",(\d)/);e&&(t.modemProtocol=({0:"rmnet",1:"ecm",2:"mbim",3:"rndis"})[e[1]])}s.includes("DHCPV4DNS")&&(s.includes('"enable"')?t.dnsProxy="enabled":s.includes('"disable"')&&(t.dnsProxy="disabled"))}),t},M=()=>{let e=[],t=Object.entries(S).reduce((e,t)=>{let[s,a]=t;return a!==N[s]&&(e[s]=a),e},{});if("passthrough"in t){if("disabled"===t.passthrough)e.push(A.passthrough.disabled.replace(";+QPOWD=1",""));else if(t.passthrough){let e=A.passthrough[t.passthrough](S.selectedMac);return"AT".concat(e.replace(";+QPOWD=1",""))}}if("modemProtocol"in t&&t.modemProtocol){let s=A.modemProtocol[t.modemProtocol];if(1===Object.keys(t).length)return"AT".concat(s.replace(";+QPOWD=1",""));e.push(s.replace(";+QPOWD=1",""))}if("dnsProxy"in t&&t.dnsProxy){let s=A.dnsProxy[t.dnsProxy];if(1===Object.keys(t).length)return"AT".concat(s);e.push(s)}return e.length>0?"AT".concat(e.join(";")):""},D=async()=>{try{var t,s;let a=await (0,p.a)("AT+QPOWD=1",!0);if((null===(t=a.response)||void 0===t?void 0:t.status)==="success")e({title:"Success",description:"Settings saved and device is rebooting..."}),setTimeout(()=>{window.location.reload()},9e4);else throw Error((null===(s=a.response)||void 0===s?void 0:s.raw_output)||"Failed to reboot device")}catch(t){e({variant:"destructive",title:"Error",description:"Failed to reboot device",action:(0,a.jsx)(h.A,{})})}},C=async()=>{try{let e=M();w(e),b(!0)}catch(t){e({variant:"destructive",title:"Error",description:"Failed to prepare settings",action:(0,a.jsx)(h.A,{})})}},R=async()=>{try{var t,s;let e=await (0,p.a)(y,!0);if((null===(t=e.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(s=e.response)||void 0===s?void 0:s.raw_output)||"Command execution failed");P({...S}),await D()}catch(t){e({variant:"destructive",title:"Error",description:"Failed to save settings",action:(0,a.jsx)(h.A,{})})}};return(0,r.useEffect)(()=>{(async()=>{try{let[e,t]=await Promise.all([fetch("/cgi-bin/quecmanager/advance/fetch_macs.sh"),fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=4")]),[a,r]=await Promise.all([e.json(),t.json()]);g(a);let l=T(r);P(l),E(l),s(!1)}catch(t){s(!1),e({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch connectivity settings",action:(0,a.jsx)(h.A,{})})}})()},[]),(0,a.jsxs)("div",{className:"grid gap-4",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"Connectivity Settings"}),(0,a.jsx)(l.BT,{children:"Configure your device's connectivity settings."})]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"passthrough",children:"IP Passthrough Mode"}),t?(0,a.jsx)(u.E,{className:"w-full h-8"}):(0,a.jsxs)(n.l6,{onValueChange:e=>E(t=>({...t,passthrough:e})),value:S.passthrough||void 0,children:[(0,a.jsx)(n.bq,{children:(0,a.jsx)(n.yv,{placeholder:"Select IP Passthrough Mode"})}),(0,a.jsx)(n.gC,{children:(0,a.jsxs)(n.s3,{children:[(0,a.jsx)(n.TR,{children:"Passthrough Mode"}),(0,a.jsx)(n.eb,{value:"disabled",children:"Disabled"}),(0,a.jsx)(n.eb,{value:"ETH",children:"ETH Passthrough Enabled"}),(0,a.jsx)(n.eb,{value:"USB",children:"USB Passthrough Enabled"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"mac",children:"Connected MAC"}),t?(0,a.jsx)(u.E,{className:"w-full h-8"}):(0,a.jsxs)(n.l6,{onValueChange:e=>E(t=>({...t,selectedMac:e})),value:S.selectedMac||void 0,disabled:!S.passthrough||"disabled"===S.passthrough,children:[(0,a.jsx)(n.bq,{children:(0,a.jsx)(n.yv,{placeholder:"Select Active MAC"})}),(0,a.jsx)(n.gC,{children:(0,a.jsxs)(n.s3,{children:[(0,a.jsx)(n.TR,{children:"Active MAC"}),x.map(e=>(0,a.jsx)(n.eb,{value:e.mac,children:"".concat(e.hostname," - ").concat(e.mac)},e.mac))]})})]})]}),(0,a.jsx)(m.w,{className:"lg:col-span-2 col-span-1 my-2"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"modemProtocol",children:"USB Modem Protocol"}),t?(0,a.jsx)(u.E,{className:"w-full h-8"}):(0,a.jsxs)(n.l6,{onValueChange:e=>E(t=>({...t,modemProtocol:e})),value:S.modemProtocol||void 0,children:[(0,a.jsx)(n.bq,{children:(0,a.jsx)(n.yv,{placeholder:"Select USB Modem Protocol"})}),(0,a.jsx)(n.gC,{children:(0,a.jsxs)(n.s3,{children:[(0,a.jsx)(n.TR,{children:"USB Modem Protocol"}),(0,a.jsx)(n.eb,{value:"rmnet",children:"RMNET"}),(0,a.jsx)(n.eb,{value:"ecm",children:"ECM (Recommended)"}),(0,a.jsx)(n.eb,{value:"mbim",children:"MBIM"}),(0,a.jsx)(n.eb,{value:"rndis",children:"RNDIS"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"dnsProxy",children:"Onboard DNS Proxy Mode"}),t?(0,a.jsx)(u.E,{className:"w-full h-8"}):(0,a.jsxs)(n.l6,{onValueChange:e=>E(t=>({...t,dnsProxy:e})),value:S.dnsProxy||void 0,children:[(0,a.jsx)(n.bq,{children:(0,a.jsx)(n.yv,{placeholder:"Select DNS Proxy Mode"})}),(0,a.jsx)(n.gC,{children:(0,a.jsxs)(n.s3,{children:[(0,a.jsx)(n.TR,{children:"DNS Proxy Mode"}),(0,a.jsx)(n.eb,{value:"enabled",children:"Enabled"}),(0,a.jsx)(n.eb,{value:"disabled",children:"Disabled (Recommended for Passthrough)"})]})})]})]})]})}),(0,a.jsx)(l.wL,{className:"grid border-t py-4",children:(0,a.jsx)(i.$,{onClick:C,disabled:!Object.entries(S).some(e=>{let[t,s]=e;return s!==N[t]})||!(!S.passthrough||"disabled"===S.passthrough||S.selectedMac),children:"Save"})})]}),(0,a.jsx)(j,{}),(0,a.jsx)(o.Lt,{open:v,onOpenChange:b,children:(0,a.jsxs)(o.EO,{children:[(0,a.jsxs)(o.wd,{children:[(0,a.jsx)(o.r7,{children:"Reboot Required"}),(0,a.jsx)(o.$v,{children:"The changes you made require a device reboot to take effect. Would you like to reboot now?"})]}),(0,a.jsxs)(o.ck,{children:[(0,a.jsx)(o.Zr,{children:"Later"}),(0,a.jsxs)(o.Rx,{onClick:R,children:[(0,a.jsx)(f.A,{className:"w-4 h-4"}),"Save & Reboot Now"]})]})]})})]})}},34330:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(95155),r=s(14085),l=s(87365);let n=()=>(0,a.jsx)(r.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,a.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,a.jsx)(l.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},25858:(e,t,s)=>{s.d(t,{$v:()=>x,EO:()=>m,Lt:()=>d,Rx:()=>g,Zr:()=>j,ck:()=>p,r7:()=>f,tv:()=>i,wd:()=>h});var a=s(95155),r=s(12115),l=s(83572),n=s(29602),o=s(14085);let d=l.bL,i=l.l9,c=l.ZL,u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.hJ,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r,ref:t})});u.displayName=l.hJ.displayName;let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsx)(l.UC,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...r})]})});m.displayName=l.UC.displayName;let h=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};h.displayName="AlertDialogHeader";let p=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};p.displayName="AlertDialogFooter";let f=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.hE,{ref:t,className:(0,n.cn)("text-lg font-semibold",s),...r})});f.displayName=l.hE.displayName;let x=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...r})});x.displayName=l.VY.displayName;let g=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.rc,{ref:t,className:(0,n.cn)((0,o.r)(),s),...r})});g.displayName=l.rc.displayName;let j=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.ZD,{ref:t,className:(0,n.cn)((0,o.r)({variant:"outline"}),"mt-2 sm:mt-0",s),...r})});j.displayName=l.ZD.displayName},14085:(e,t,s)=>{s.d(t,{$:()=>i,r:()=>d});var a=s(95155),r=s(12115),l=s(12317),n=s(31027),o=s(29602);let d=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),i=r.forwardRef((e,t)=>{let{className:s,variant:r,size:n,asChild:i=!1,...c}=e,u=i?l.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(d({variant:r,size:n,className:s})),ref:t,...c})});i.displayName="Button"},35007:(e,t,s)=>{s.d(t,{BT:()=>i,Wu:()=>c,ZB:()=>d,Zp:()=>n,aR:()=>o,wL:()=>u});var a=s(95155),r=s(12115),l=s(29602);let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});n.displayName="Card";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",s),...r})});o.displayName="CardHeader";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",s),...r})});d.displayName="CardTitle";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...r})});i.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",s),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},15785:(e,t,s)=>{s.d(t,{J:()=>i});var a=s(95155),r=s(12115),l=s(46195),n=s(31027),o=s(29602);let d=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.b,{ref:t,className:(0,o.cn)(d(),s),...r})});i.displayName=l.b.displayName},50745:(e,t,s)=>{s.d(t,{TR:()=>f,bq:()=>u,eb:()=>x,gC:()=>p,l6:()=>d,s3:()=>i,yv:()=>c});var a=s(95155),r=s(12115),l=s(87365),n=s(63409),o=s(29602);let d=n.bL,i=n.YJ,c=n.WT,u=r.forwardRef((e,t)=>{let{className:s,children:r,...d}=e;return(0,a.jsxs)(n.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...d,children:[r,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(l.Mtm,{})})});m.displayName=n.PP.displayName;let h=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(l.D3D,{})})});h.displayName=n.wn.displayName;let p=r.forwardRef((e,t)=>{let{className:s,children:r,position:l="popper",...d}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:l,...d,children:[(0,a.jsx)(m,{}),(0,a.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(h,{})]})})});p.displayName=n.UC.displayName;let f=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",s),...r})});f.displayName=n.JU.displayName;let x=r.forwardRef((e,t)=>{let{className:s,children:r,...d}=e;return(0,a.jsxs)(n.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...d,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:r})]})});x.displayName=n.q7.displayName,r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",s),...r})}).displayName=n.wv.displayName},89282:(e,t,s)=>{s.d(t,{w:()=>o});var a=s(95155),r=s(12115),l=s(90434),n=s(29602);let o=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:o=!0,...d}=e;return(0,a.jsx)(l.b,{ref:t,decorative:o,orientation:r,className:(0,n.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...d})});o.displayName=l.b.displayName},25488:(e,t,s)=>{s.d(t,{E:()=>l});var a=s(95155),r=s(29602);function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",t),...s})}},20241:(e,t,s)=>{s.d(t,{dj:()=>m,oR:()=>u});var a=s(12115);let r=0,l=new Map,n=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],i={toasts:[]};function c(e){i=o(i,e),d.forEach(e=>{e(i)})}function u(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=a.useState(i);return a.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,s)=>{s.d(t,{cn:()=>l});var a=s(43463),r=s(69795);function l(){for(var e=arguments.length,t=Array(e),s=0;s{s.d(t,{A:()=>a});let a=(0,s(67401).A)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},89622:(e,t,s)=>{s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),l=encodeURIComponent(r),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(l);t&&(n+="&wait=1&timeout=".concat(s));let o=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let d=await o.json();if(d.error)throw Error("AT queue error: ".concat(d.error));if(t&&(null===(a=d.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return d}catch(e){throw console.error("AT Command error:",e),e}}},90434:(e,t,s)=>{s.d(t,{b:()=>i});var a=s(12115),r=s(23360),l=s(95155),n="horizontal",o=["horizontal","vertical"],d=a.forwardRef((e,t)=>{let{decorative:s,orientation:a=n,...d}=e,i=o.includes(a)?a:n;return(0,l.jsx)(r.sG.div,{"data-orientation":i,...s?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"},...d,ref:t})});d.displayName="Separator";var i=d}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3944-ffb1c1d96801233d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3944-ffb1c1d96801233d.js deleted file mode 100644 index f9deba6..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3944-ffb1c1d96801233d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3944],{77163:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]])},14505:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},21773:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},20853:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(67401).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},85217:(e,r,t)=>{t.d(r,{UC:()=>ei,Y9:()=>en,q7:()=>ea,bL:()=>et,l9:()=>eo});var a=t(12115),n=t(18166),o=t(49741),i=t(88068),l=t(93610),s=t(1488),c=t(23360),d=t(46611),u=t(17028),p=t(67668),f=t(95155),v="Collapsible",[m,h]=(0,n.A)(v),[b,y]=m(v),g=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:i,onOpenChange:l,...d}=e,[u=!1,v]=(0,s.i)({prop:n,defaultProp:o,onChange:l});return(0,f.jsx)(b,{scope:t,disabled:i,contentId:(0,p.B)(),open:u,onOpenToggle:a.useCallback(()=>v(e=>!e),[v]),children:(0,f.jsx)(c.sG.div,{"data-state":C(u),"data-disabled":i?"":void 0,...d,ref:r})})});g.displayName=v;var w="CollapsibleTrigger",x=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,...a}=e,n=y(w,t);return(0,f.jsx)(c.sG.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":C(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...a,ref:r,onClick:(0,l.m)(e.onClick,n.onOpenToggle)})});x.displayName=w;var j="CollapsibleContent",O=a.forwardRef((e,r)=>{let{forceMount:t,...a}=e,n=y(j,e.__scopeCollapsible);return(0,f.jsx)(u.C,{present:t||n.open,children:e=>{let{present:t}=e;return(0,f.jsx)(k,{...a,ref:r,present:t})}})});O.displayName=j;var k=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:n,children:o,...l}=e,s=y(j,t),[u,p]=a.useState(n),v=a.useRef(null),m=(0,i.s)(r,v),h=a.useRef(0),b=h.current,g=a.useRef(0),w=g.current,x=s.open||u,O=a.useRef(x),k=a.useRef(void 0);return a.useEffect(()=>{let e=requestAnimationFrame(()=>O.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{let e=v.current;if(e){k.current=k.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();h.current=r.height,g.current=r.width,O.current||(e.style.transitionDuration=k.current.transitionDuration,e.style.animationName=k.current.animationName),p(n)}},[s.open,n]),(0,f.jsx)(c.sG.div,{"data-state":C(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x,...l,ref:m,style:{"--radix-collapsible-content-height":b?"".concat(b,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:x&&o})});function C(e){return e?"open":"closed"}var A=t(4256),N="Accordion",R=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[P,I,D]=(0,o.N)(N),[_,E]=(0,n.A)(N,[D,h]),S=h(),M=a.forwardRef((e,r)=>{let{type:t,...a}=e;return(0,f.jsx)(P.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,f.jsx)(T,{...a,ref:r}):(0,f.jsx)(L,{...a,ref:r})})});M.displayName=N;var[G,q]=_(N),[z,H]=_(N,{collapsible:!1}),L=a.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[c,d]=(0,s.i)({prop:t,defaultProp:n,onChange:o});return(0,f.jsx)(G,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:d,onItemClose:a.useCallback(()=>i&&d(""),[i,d]),children:(0,f.jsx)(z,{scope:e.__scopeAccordion,collapsible:i,children:(0,f.jsx)(F,{...l,ref:r})})})}),T=a.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=e,[l=[],c]=(0,s.i)({prop:t,defaultProp:n,onChange:o}),d=a.useCallback(e=>c(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[c]),u=a.useCallback(e=>c(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[c]);return(0,f.jsx)(G,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:u,children:(0,f.jsx)(z,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(F,{...i,ref:r})})})}),[U,B]=_(N),F=a.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:n,dir:o,orientation:s="vertical",...d}=e,u=a.useRef(null),p=(0,i.s)(u,r),v=I(t),m="ltr"===(0,A.jH)(o),h=(0,l.m)(e.onKeyDown,e=>{var r;if(!R.includes(e.key))return;let t=e.target,a=v().filter(e=>{var r;return!(null===(r=e.ref.current)||void 0===r?void 0:r.disabled)}),n=a.findIndex(e=>e.ref.current===t),o=a.length;if(-1===n)return;e.preventDefault();let i=n,l=o-1,c=()=>{(i=n+1)>l&&(i=0)},d=()=>{(i=n-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===s&&(m?c():d());break;case"ArrowDown":"vertical"===s&&c();break;case"ArrowLeft":"horizontal"===s&&(m?d():c());break;case"ArrowUp":"vertical"===s&&d()}null===(r=a[i%o].ref.current)||void 0===r||r.focus()});return(0,f.jsx)(U,{scope:t,disabled:n,direction:o,orientation:s,children:(0,f.jsx)(P.Slot,{scope:t,children:(0,f.jsx)(c.sG.div,{...d,"data-orientation":s,ref:p,onKeyDown:n?void 0:h})})})}),K="AccordionItem",[V,W]=_(K),Y=a.forwardRef((e,r)=>{let{__scopeAccordion:t,value:a,...n}=e,o=B(K,t),i=q(K,t),l=S(t),s=(0,p.B)(),c=a&&i.value.includes(a)||!1,d=o.disabled||e.disabled;return(0,f.jsx)(V,{scope:t,open:c,disabled:d,triggerId:s,children:(0,f.jsx)(g,{"data-orientation":o.orientation,"data-state":er(c),...l,...n,ref:r,disabled:d,open:c,onOpenChange:e=>{e?i.onItemOpen(a):i.onItemClose(a)}})})});Y.displayName=K;var Z="AccordionHeader",J=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=B(N,t),o=W(Z,t);return(0,f.jsx)(c.sG.h3,{"data-orientation":n.orientation,"data-state":er(o.open),"data-disabled":o.disabled?"":void 0,...a,ref:r})});J.displayName=Z;var Q="AccordionTrigger",X=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=B(N,t),o=W(Q,t),i=H(Q,t),l=S(t);return(0,f.jsx)(P.ItemSlot,{scope:t,children:(0,f.jsx)(x,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...l,...a,ref:r})})});X.displayName=Q;var $="AccordionContent",ee=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=B(N,t),o=W($,t),i=S(t);return(0,f.jsx)(O,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...i,...a,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=$;var et=M,ea=Y,en=J,eo=X,ei=ee},16838:(e,r,t)=>{t.d(r,{C1:()=>x,bL:()=>w});var a=t(12115),n=t(18166),o=t(23360),i=t(95155),l="Progress",[s,c]=(0,n.A)(l),[d,u]=s(l),p=a.forwardRef((e,r)=>{var t,a,n,l;let{__scopeProgress:s,value:c=null,max:u,getValueLabel:p=m,...f}=e;(u||0===u)&&!y(u)&&console.error((t="".concat(u),a="Progress","Invalid prop `max` of value `".concat(t,"` supplied to `").concat(a,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let v=y(u)?u:100;null===c||g(c,v)||console.error((n="".concat(c),l="Progress","Invalid prop `value` of value `".concat(n,"` supplied to `").concat(l,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let w=g(c,v)?c:null,x=b(w)?p(w,v):void 0;return(0,i.jsx)(d,{scope:s,value:w,max:v,children:(0,i.jsx)(o.sG.div,{"aria-valuemax":v,"aria-valuemin":0,"aria-valuenow":b(w)?w:void 0,"aria-valuetext":x,role:"progressbar","data-state":h(w,v),"data-value":null!=w?w:void 0,"data-max":v,...f,ref:r})})});p.displayName=l;var f="ProgressIndicator",v=a.forwardRef((e,r)=>{var t;let{__scopeProgress:a,...n}=e,l=u(f,a);return(0,i.jsx)(o.sG.div,{"data-state":h(l.value,l.max),"data-value":null!==(t=l.value)&&void 0!==t?t:void 0,"data-max":l.max,...n,ref:r})});function m(e,r){return"".concat(Math.round(e/r*100),"%")}function h(e,r){return null==e?"indeterminate":e===r?"complete":"loading"}function b(e){return"number"==typeof e}function y(e){return b(e)&&!isNaN(e)&&e>0}function g(e,r){return b(e)&&!isNaN(e)&&e<=r&&e>=0}v.displayName=f;var w=p,x=v},63543:(e,r,t)=>{t.d(r,{b:()=>l,s:()=>i});var a=t(12115),n=t(23360),o=t(95155),i=a.forwardRef((e,r)=>(0,o.jsx)(n.sG.span,{...e,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var l=i},93435:(e,r,t)=>{t.d(r,{k5:()=>d});var a=t(12115),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=a.createContext&&a.createContext(n),i=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var r=1;ra.createElement(u,l({attr:c({},e.attr)},r),function e(r){return r&&r.map((r,t)=>a.createElement(r.tag,c({key:t},r.attr),e(r.child)))}(e.child))}function u(e){var r=r=>{var t,{attr:n,size:o,title:s}=e,d=function(e,r){if(null==e)return{};var t,a,n=function(e,r){if(null==e)return{};var t={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(r.indexOf(a)>=0)continue;t[a]=e[a]}return t}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,i),u=o||r.size||"1em";return r.className&&(t=r.className),e.className&&(t=(t?t+" ":"")+e.className),a.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,d,{className:t,style:c(c({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&a.createElement("title",null,s),e.children)};return void 0!==o?a.createElement(o.Consumer,null,e=>r(e)):r(n)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3993.84dc2c07c5289739.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3993.84dc2c07c5289739.js new file mode 100644 index 0000000..8428a9f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3993.84dc2c07c5289739.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3993],{73993:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let u=l(20173),n=l(25105),a=u._(l(58101)),o=l(59975);async function r(e){let{Component:t,ctx:l}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,l)}}class s extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,n.jsx)(e,{...t})}}s.origGetInitialProps=r,s.getInitialProps=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4094-7a548ce559af5ece.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4094-7a548ce559af5ece.js deleted file mode 100644 index c151df9..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4094-7a548ce559af5ece.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4094],{26795:function(t,e,r){var n;!function(o){"use strict";var i,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",s=c+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=f(1286742750677284.5),y={};function v(t,e){var r,n,o,i,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?P(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=s.length):(n=s,o=a,c=l.length),i>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=s.length)<0&&(i=c,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/1e7|0,l[i]%=1e7;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=o,u?P(e,p):e}function b(t,e,r){if(t!==~~t||tr)throw Error(l+t)}function m(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;et.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(o=t.d.length)?n:o;et.d[e]^this.s<0?1:-1;return n===o?0:n>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return g(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return P(g(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,r=this.constructor,n=r.precision,o=n+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(c+"NaN");if(this.s<1)throw Error(c+(this.s?"NaN":"-Infinity"));return this.eq(i)?new r(0):(u=!1,e=g(S(this,o),S(t,o),o),u=!0,P(e,n))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?E(this,t):v(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(c+"NaN");return this.s?(u=!1,e=g(this,t,0,1).times(t),u=!0,this.minus(e)):P(new r(this),n)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?v(this,t):E(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=O(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},y.squareRoot=y.sqrt=function(){var t,e,r,n,o,i,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(c+"NaN")}for(t=O(this),u=!1,0==(o=Math.sqrt(+this))||o==1/0?(((e=m(this.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new l(o.toString()),o=a=(r=l.precision)+3;;)if(n=(i=n).plus(g(this,i,a+2)).times(.5),m(i.d).slice(0,a)===(e=m(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(P(i,r+1,0),i.times(i).eq(this)){n=i;break}}else if("9999"!=e)break;a+=4}return u=!0,P(n,r)},y.times=y.mul=function(t){var e,r,n,o,i,a,c,l,s,f=this.constructor,p=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(l=p.length)<(s=h.length)&&(i=p,p=h,h=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)c=i[o]+h[n]*p[o-n-1]+e,i[o--]=c%1e7|0,e=c/1e7|0;i[o]=(i[o]+e)%1e7|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,u?P(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var r=this,n=r.constructor;return(r=new n(r),void 0===t)?r:(b(t,0,1e9),void 0===e?e=n.rounding:b(e,0,8),P(r,t+O(r)+1,e))},y.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=M(n,!0):(b(t,0,1e9),void 0===e?e=o.rounding:b(e,0,8),r=M(n=P(new o(n),t+1,e),!0,t+1)),r},y.toFixed=function(t,e){var r,n,o=this.constructor;return void 0===t?M(this):(b(t,0,1e9),void 0===e?e=o.rounding:b(e,0,8),r=M((n=P(new o(this),t+O(this)+1,e)).abs(),!1,t+O(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var t=this.constructor;return P(new t(this),O(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,r,n,o,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(i);if(!(s=new p(s)).s){if(t.s<1)throw Error(c+"Infinity");return s}if(s.eq(i))return s;if(n=p.precision,t.eq(i))return P(s,n);if(l=(e=t.e)>=(r=t.d.length-1),a=s.s,l){if((r=h<0?-h:h)<=0x1fffffffffffff){for(o=new p(i),e=Math.ceil(n/7+4),u=!1;r%2&&k((o=o.times(s)).d,e),0!==(r=f(r/2));)k((s=s.times(s)).d,e);return u=!0,t.s<0?new p(i).div(o):P(o,n)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,u=!1,o=t.times(S(s,n+12)),u=!0,(o=x(o)).s=a,o},y.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?(r=O(o),n=M(o,r<=i.toExpNeg||r>=i.toExpPos)):(b(t,1,1e9),void 0===e?e=i.rounding:b(e,0,8),r=O(o=P(new i(o),t,e)),n=M(o,t<=r||r<=i.toExpNeg,t)),n},y.toSignificantDigits=y.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(b(t,1,1e9),void 0===e?e=r.rounding:b(e,0,8)),P(new r(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=O(this),e=this.constructor;return M(this,t<=e.toExpNeg||t>=e.toExpPos)};var g=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;oe[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]1;)t.shift()}return function(n,o,i,a){var u,l,s,f,p,h,d,y,v,b,m,g,x,w,j,S,A,E,M=n.constructor,k=n.s==o.s?1:-1,_=n.d,T=o.d;if(!n.s)return new M(n);if(!o.s)throw Error(c+"Division by zero");for(s=0,l=n.e-o.e,A=T.length,j=_.length,y=(d=new M(k)).d=[];T[s]==(_[s]||0);)++s;if(T[s]>(_[s]||0)&&--l,(g=null==i?i=M.precision:a?i+(O(n)-O(o))+1:i)<0)return new M(0);if(g=g/7+2|0,s=0,1==A)for(f=0,T=T[0],g++;(s1&&(T=t(T,f),_=t(_,f),A=T.length,j=_.length),w=A,b=(v=_.slice(0,A)).length;b=1e7/2&&++S;do f=0,(u=e(T,v,A,b))<0?(m=v[0],A!=b&&(m=1e7*m+(v[1]||0)),(f=m/S|0)>1?(f>=1e7&&(f=1e7-1),h=(p=t(T,f)).length,b=v.length,1==(u=e(p,v,h,b))&&(f--,r(p,A16)throw Error(s+O(t));if(!t.s)return new h(i);for(null==e?(u=!1,c=d):c=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=o=new h(i),h.precision=c;;){if(n=P(n.times(t),c),r=r.times(++l),m((a=o.plus(g(n,r,c))).d).slice(0,c)===m(o.d).slice(0,c)){for(;f--;)o=P(o.times(o),c);return h.precision=d,null==e?(u=!0,P(o,d)):o}o=a}}function O(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function w(t,e,r){if(e>t.LN10.sd())throw u=!0,r&&(t.precision=r),Error(c+"LN10 precision limit exceeded");return P(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function S(t,e){var r,n,o,a,l,s,f,p,h,d=1,y=t,v=y.d,b=y.constructor,x=b.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new b(0);if(null==e?(u=!1,p=x):p=e,y.eq(10))return null==e&&(u=!0),w(b,p);if(p+=10,b.precision=p,n=(r=m(v)).charAt(0),!(15e14>Math.abs(a=O(y))))return f=w(b,p+2,x).times(a+""),y=S(new b(n+"."+r.slice(1)),p-10).plus(f),b.precision=x,null==e?(u=!0,P(y,x)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=m((y=y.times(t)).d)).charAt(0),d++;for(a=O(y),n>1?(y=new b("0."+r),a++):y=new b(n+"."+r.slice(1)),s=l=y=g(y.minus(i),y.plus(i),p),h=P(y.times(y),p),o=3;;){if(l=P(l.times(h),p),m((f=s.plus(g(l,new b(o),p))).d).slice(0,p)===m(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(w(b,p+2,x).times(a+""))),s=g(s,new b(d),p),b.precision=x,null==e?(u=!0,P(s,x)):s;s=f,o+=2}}function A(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=f(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),nd||t.e<-d))throw Error(s+r)}else t.s=0,t.e=0,t.d=[0];return t}function P(t,e,r){var n,o,i,a,c,l,h,y,v=t.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,h=v[y=0];else{if((y=Math.ceil((n+1)/7))>=(i=v.length))return t;for(a=1,h=i=v[y];i>=10;i/=10)a++;n%=7,o=n-7+a}if(void 0!==r&&(c=h/(i=p(10,a-o-1))%10|0,l=e<0||void 0!==v[y+1]||h%i,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?h/p(10,a-o):0:v[y-1])%10&1||r==(t.s<0?8:7))),e<1||!v[0])return l?(i=O(t),v.length=1,e=e-i-1,v[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==n?(v.length=y,i=1,y--):(v.length=y+1,i=p(10,7-n),v[y]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==y){1e7==(v[0]+=i)&&(v[0]=1,++t.e);break}if(v[y]+=i,1e7!=v[y])break;v[y--]=0,i=1}for(n=v.length;0===v[--n];)v.pop();if(u&&(t.e>d||t.e<-d))throw Error(s+O(t));return t}function E(t,e){var r,n,o,i,a,c,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?P(e,d):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,c=p.length):(r=p,n=s,c=l.length),a>(o=Math.max(Math.ceil(d/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(c=p.length))&&(c=o),o=0;o0;--o)l[c++]=0;for(o=p.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+j(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,r&&(n=r-a)>0&&(i+=j(n))):o>=a?(i+=j(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+j(n))):((n=o+1)0&&(o+1===a&&(i+="."),i+=j(n))),t.s<0?"-"+i:i}function k(t,e){if(t.length>e)return t.length=e,!0}function _(t){if(!t||"object"!=typeof t)throw Error(c+"Object expected");var e,r,n,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=o[e+1]&&n<=o[e+2])this[r]=n;else throw Error(l+r+": "+n)}if(void 0!==(n=t[r="LN10"])){if(n==Math.LN10)this[r]=new this(n);else throw Error(l+r+": "+n)}return this}(a=function t(e){var r,n,o;function i(t){if(!(this instanceof i))return new i(t);if(this.constructor=i,t instanceof i){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return A(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))A(this,t);else throw Error(l+t)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=_,void 0===e&&(e={}),e)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];r{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=Array(i);o{var n=r(4528)(r(62673),"DataView");t.exports=n},21957:(t,e,r)=>{var n=r(27334),o=r(17482),i=r(51499),a=r(93831),u=r(57151);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(338),o=r(97598),i=r(31327),a=r(73379),u=r(9323);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(4528)(r(62673),"Map");t.exports=n},39745:(t,e,r)=>{var n=r(75562),o=r(62534),i=r(59559),a=r(47259),u=r(91827);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(4528)(r(62673),"Promise");t.exports=n},19119:(t,e,r)=>{var n=r(4528)(r(62673),"Set");t.exports=n},69039:(t,e,r)=>{var n=r(39745),o=r(30786),i=r(5633);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e{var n=r(49737),o=r(68488),i=r(13688),a=r(82849),u=r(86109),c=r(65853);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=c,t.exports=l},41933:(t,e,r)=>{var n=r(62673).Symbol;t.exports=n},49368:(t,e,r)=>{var n=r(62673).Uint8Array;t.exports=n},59401:(t,e,r)=>{var n=r(4528)(r(62673),"WeakMap");t.exports=n},32051:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},21733:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r{var n=r(28173);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},48823:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n{var n=r(8326),o=r(77232),i=r(3293),a=r(27118),u=r(89499),c=r(62477),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&c(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)(e||l.call(t,v))&&!(h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y)))&&d.push(v);return d}},58812:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t){return t.split("")}},9405:(t,e,r)=>{var n=r(76706);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},52814:(t,e,r)=>{var n=r(55351);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},70901:(t,e,r)=>{var n=r(25625),o=r(37453)(n);t.exports=o},98547:(t,e,r)=>{var n=r(70901);t.exports=function(t,e){var r=!0;return n(t,function(t,n,o){return r=!!e(t,n,o)}),r}},11831:(t,e,r)=>{var n=r(83480);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i{var n=r(61950),o=r(27349);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},45571:(t,e,r)=>{var n=r(2731)();t.exports=n},25625:(t,e,r)=>{var n=r(45571),o=r(95656);t.exports=function(t,e){return t&&n(t,e,o)}},2496:(t,e,r)=>{var n=r(56589),o=r(54019);t.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r{var n=r(61950),o=r(3293);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},43600:(t,e,r)=>{var n=r(41933),o=r(8273),i=r(96798),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},93923:t=>{t.exports=function(t,e){return t>e}},47039:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},28173:(t,e,r)=>{var n=r(30905),o=r(43653),i=r(79317);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},4600:(t,e,r)=>{var n=r(43600),o=r(34480);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},4756:(t,e,r)=>{var n=r(39582),o=r(34480);t.exports=function t(e,r,i,a,u){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,a,t,u):e!=e&&r!=r)}},39582:(t,e,r)=>{var n=r(30243),o=r(3861),i=r(6090),a=r(49993),u=r(40981),c=r(3293),l=r(27118),s=r(62477),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,b){var m=c(t),g=c(e),x=m?p:u(t),O=g?p:u(e);x=x==f?h:x,O=O==f?h:O;var w=x==h,j=O==h,S=x==O;if(S&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(S&&!w)return b||(b=new n),m||s(t)?o(t,e,r,y,v,b):i(t,e,x,r,y,v,b);if(!(1&r)){var A=w&&d.call(t,"__wrapped__"),P=j&&d.call(e,"__wrapped__");if(A||P){var E=A?t.value():t,M=P?e.value():e;return b||(b=new n),v(E,M,r,y,b)}}return!!S&&(b||(b=new n),a(t,e,r,y,v,b))}},32677:(t,e,r)=>{var n=r(30243),o=r(4756);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a{t.exports=function(t){return t!=t}},21635:(t,e,r)=>{var n=r(33196),o=r(20744),i=r(95255),a=r(80477),u=/^\[object .+?Constructor\]$/,c=Object.prototype,l=Function.prototype.toString,s=c.hasOwnProperty,f=RegExp("^"+l.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:u).test(a(t))}},70885:(t,e,r)=>{var n=r(43600),o=r(91620),i=r(34480),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},70793:(t,e,r)=>{var n=r(52785),o=r(57508),i=r(21846),a=r(3293),u=r(12197);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},42800:(t,e,r)=>{var n=r(4221),o=r(79710),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},1316:t=>{t.exports=function(t,e){return t{var n=r(70901),o=r(60370);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,function(t,n,o){i[++r]=e(t,n,o)}),i}},52785:(t,e,r)=>{var n=r(32677),o=r(8876),i=r(4959);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},57508:(t,e,r)=>{var n=r(4756),o=r(50920),i=r(19607),a=r(48724),u=r(4040),c=r(4959),l=r(54019);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},23649:(t,e,r)=>{var n=r(58812),o=r(2496),i=r(70793),a=r(48058),u=r(53001),c=r(93479),l=r(75204),s=r(21846),f=r(3293);t.exports=function(t,e,r){e=e.length?n(e,function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t}):[s];var p=-1;return e=n(e,c(i)),u(a(t,function(t,r,o){return{criteria:n(e,function(e){return e(t)}),index:++p,value:t}}),function(t,e){return l(t,e,r)})}},14989:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},31979:(t,e,r)=>{var n=r(2496);t.exports=function(t){return function(e){return n(e,t)}}},87781:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,u=r(e((n-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},70598:(t,e,r)=>{var n=r(21846),o=r(94813),i=r(67007);t.exports=function(t,e){return i(o(t,e,n),t+"")}},84684:(t,e,r)=>{var n=r(65396),o=r(55351),i=r(21846),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},91470:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n{var n=r(70901);t.exports=function(t,e){var r;return n(t,function(t,n,o){return!(r=e(t,n,o))}),!!r}},53001:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},8326:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{var n=r(41933),o=r(58812),i=r(3293),a=r(83480),u=1/0,c=n?n.prototype:void 0,l=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return l?l.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},31004:(t,e,r)=>{var n=r(77550),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},93479:t=>{t.exports=function(t){return function(e){return t(e)}}},3929:(t,e,r)=>{var n=r(69039),o=r(60187),i=r(48823),a=r(65755),u=r(68359),c=r(50315);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l{t.exports=function(t,e){return t.has(e)}},56589:(t,e,r)=>{var n=r(3293),o=r(48724),i=r(69422),a=r(80756);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},85164:(t,e,r)=>{var n=r(91470);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},70870:(t,e,r)=>{var n=r(83480);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,c=null===e,l=e==e,s=n(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t{var n=r(70870);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=r.length;++o=c)return l;return l*("desc"==r[o]?-1:1)}}return t.index-e.index}},54705:(t,e,r)=>{var n=r(62673)["__core-js_shared__"];t.exports=n},37453:(t,e,r)=>{var n=r(60370);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},84373:(t,e,r)=>{var n=r(85164),o=r(65630),i=r(40394),a=r(80756);t.exports=function(t){return function(e){var r=o(e=a(e))?i(e):void 0,u=r?r[0]:e.charAt(0),c=r?n(r,1).join(""):e.slice(1);return u[t]()+c}}},59226:(t,e,r)=>{var n=r(70793),o=r(60370),i=r(95656);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},58218:(t,e,r)=>{var n=r(87781),o=r(64360),i=r(53958);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e{var n=r(19119),o=r(57464),i=r(50315),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},55351:(t,e,r)=>{var n=r(4528),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},3861:(t,e,r)=>{var n=r(69039),o=r(94458),i=r(65755);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++d{var n=r(41933),o=r(49368),i=r(76706),a=r(3861),u=r(91705),c=r(50315),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=u;case"[object Set]":var d=1&n;if(h||(h=c),t.size!=e.size&&!d)break;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},49993:(t,e,r)=>{var n=r(36626),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},36626:(t,e,r)=>{var n=r(7455),o=r(18036),i=r(95656);t.exports=function(t){return n(t,i,o)}},86303:(t,e,r)=>{var n=r(59120);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},8876:(t,e,r)=>{var n=r(4040),o=r(95656);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},4528:(t,e,r)=>{var n=r(21635),o=r(54232);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},75655:(t,e,r)=>{var n=r(7805)(Object.getPrototypeOf,Object);t.exports=n},8273:(t,e,r)=>{var n=r(41933),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},18036:(t,e,r)=>{var n=r(56640),o=r(90397),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:n(a(t=Object(t)),function(e){return i.call(t,e)})}:o;t.exports=u},40981:(t,e,r)=>{var n=r(89644),o=r(58965),i=r(98122),a=r(19119),u=r(59401),c=r(43600),l=r(80477),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),b=l(i),m=l(a),g=l(u),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=h)&&(x=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case b:return f;case m:return p;case g:return h}return e}),t.exports=x},54232:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},67024:(t,e,r)=>{var n=r(56589),o=r(77232),i=r(3293),a=r(89499),u=r(91620),c=r(54019);t.exports=function(t,e,r){e=n(e,t);for(var l=-1,s=e.length,f=!1;++l{var e=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},27334:(t,e,r)=>{var n=r(40670);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},17482:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},51499:(t,e,r)=>{var n=r(40670),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},93831:(t,e,r)=>{var n=r(40670),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},57151:(t,e,r)=>{var n=r(40670);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},27349:(t,e,r)=>{var n=r(41933),o=r(77232),i=r(3293),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},89499:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{var n=r(76706),o=r(60370),i=r(89499),a=r(95255);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return("number"==u?!!(o(r)&&i(e,r.length)):"string"==u&&e in r)&&n(r[e],t)}},48724:(t,e,r)=>{var n=r(3293),o=r(83480),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},59120:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},20744:(t,e,r)=>{var n=r(54705),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},4221:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},4040:(t,e,r)=>{var n=r(95255);t.exports=function(t){return t==t&&!n(t)}},338:t=>{t.exports=function(){this.__data__=[],this.size=0}},97598:(t,e,r)=>{var n=r(9405),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},31327:(t,e,r)=>{var n=r(9405);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},73379:(t,e,r)=>{var n=r(9405);t.exports=function(t){return n(this.__data__,t)>-1}},9323:(t,e,r)=>{var n=r(9405);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},75562:(t,e,r)=>{var n=r(21957),o=r(49737),i=r(58965);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},62534:(t,e,r)=>{var n=r(86303);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},59559:(t,e,r)=>{var n=r(86303);t.exports=function(t){return n(this,t).get(t)}},47259:(t,e,r)=>{var n=r(86303);t.exports=function(t){return n(this,t).has(t)}},91827:(t,e,r)=>{var n=r(86303);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},91705:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},4959:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},5250:(t,e,r)=>{var n=r(15188);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},40670:(t,e,r)=>{var n=r(4528)(Object,"create");t.exports=n},79710:(t,e,r)=>{var n=r(7805)(Object.keys,Object);t.exports=n},97673:(t,e,r)=>{t=r.nmd(t);var n=r(34952),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},96798:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7805:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},94813:(t,e,r)=>{var n=r(32051),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a{var n=r(34952),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},30786:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},5633:t=>{t.exports=function(t){return this.__data__.has(t)}},50315:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},67007:(t,e,r)=>{var n=r(84684),o=r(7307)(n);t.exports=o},7307:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},68488:(t,e,r)=>{var n=r(49737);t.exports=function(){this.__data__=new n,this.size=0}},13688:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},82849:t=>{t.exports=function(t){return this.__data__.get(t)}},86109:t=>{t.exports=function(t){return this.__data__.has(t)}},65853:(t,e,r)=>{var n=r(49737),o=r(58965),i=r(39745);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},79317:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n{var n=r(18622),o=r(65630),i=r(97490);t.exports=function(t){return o(t)?i(t):n(t)}},69422:(t,e,r)=>{var n=r(5250),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e});t.exports=a},54019:(t,e,r)=>{var n=r(83480),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},80477:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},77550:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},97490:t=>{var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",o="[^"+e+"]",i="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+r+"|"+n+")?",c="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[o,i,a].join("|")+")"+c+u+")*",s=RegExp(n+"(?="+n+")|(?:"+[o+r+"?",r,i,a,"["+e+"]"].join("|")+")"+(c+u+l),"g");t.exports=function(t){return t.match(s)||[]}},65396:t=>{t.exports=function(t){return function(){return t}}},70719:(t,e,r)=>{var n=r(95255),o=r(91332),i=r(32816),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,h,d=0,y=!1,v=!1,b=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,d=e,f=t.apply(n,r)}function g(t){var r=t-h,n=t-d;return void 0===h||r>=e||r<0||v&&n>=s}function x(){var t,r,n,i=o();if(g(i))return O(i);p=setTimeout(x,(t=i-h,r=i-d,n=e-t,v?u(n,s-r):n))}function O(t){return(p=void 0,b&&c)?m(t):(c=l=void 0,f)}function w(){var t,r=o(),n=g(r);if(c=arguments,l=this,h=r,n){if(void 0===p)return d=t=h,p=setTimeout(x,e),y?m(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),m(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},w.flush=function(){return void 0===p?f:O(o())},w}},76706:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},7211:(t,e,r)=>{var n=r(21733),o=r(98547),i=r(70793),a=r(3293),u=r(64360);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(t,i(e,3))}},84631:(t,e,r)=>{var n=r(59226)(r(93201));t.exports=n},93201:(t,e,r)=>{var n=r(30905),o=r(70793),i=r(58149),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return -1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},76251:(t,e,r)=>{var n=r(13938),o=r(35890);t.exports=function(t,e){return n(o(t,e),1)}},50920:(t,e,r)=>{var n=r(2496);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},19607:(t,e,r)=>{var n=r(47039),o=r(67024);t.exports=function(t,e){return null!=t&&o(t,e,n)}},21846:t=>{t.exports=function(t){return t}},77232:(t,e,r)=>{var n=r(4600),o=r(34480),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},3293:t=>{var e=Array.isArray;t.exports=e},60370:(t,e,r)=>{var n=r(33196),o=r(91620);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},45992:(t,e,r)=>{var n=r(43600),o=r(34480);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},27118:(t,e,r)=>{t=r.nmd(t);var n=r(62673),o=r(41695),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,c=u?u.isBuffer:void 0;t.exports=c||o},41436:(t,e,r)=>{var n=r(4756);t.exports=function(t,e){return n(t,e)}},33196:(t,e,r)=>{var n=r(43600),o=r(95255);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},91620:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},58845:(t,e,r)=>{var n=r(11353);t.exports=function(t){return n(t)&&t!=+t}},87727:t=>{t.exports=function(t){return null==t}},11353:(t,e,r)=>{var n=r(43600),o=r(34480);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},95255:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},34480:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},28499:(t,e,r)=>{var n=r(43600),o=r(75655),i=r(34480),a=Object.prototype,u=Function.prototype.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},57957:(t,e,r)=>{var n=r(43600),o=r(3293),i=r(34480);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},83480:(t,e,r)=>{var n=r(43600),o=r(34480);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},62477:(t,e,r)=>{var n=r(70885),o=r(93479),i=r(97673),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},95656:(t,e,r)=>{var n=r(8805),o=r(42800),i=r(60370);t.exports=function(t){return i(t)?n(t):o(t)}},59184:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},35890:(t,e,r)=>{var n=r(58812),o=r(70793),i=r(48058),a=r(3293);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},23636:(t,e,r)=>{var n=r(52814),o=r(25625),i=r(70793);t.exports=function(t,e){var r={};return e=i(e,3),o(t,function(t,o,i){n(r,o,e(t,o,i))}),r}},77066:(t,e,r)=>{var n=r(11831),o=r(93923),i=r(21846);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},15188:(t,e,r)=>{var n=r(39745);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},65136:(t,e,r)=>{var n=r(11831),o=r(1316),i=r(21846);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},57464:t=>{t.exports=function(){}},91332:(t,e,r)=>{var n=r(62673);t.exports=function(){return n.Date.now()}},12197:(t,e,r)=>{var n=r(14989),o=r(31979),i=r(48724),a=r(54019);t.exports=function(t){return i(t)?n(a(t)):o(t)}},13917:(t,e,r)=>{var n=r(58218)();t.exports=n},38076:(t,e,r)=>{var n=r(94458),o=r(70793),i=r(59812),a=r(3293),u=r(64360);t.exports=function(t,e,r){var c=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),c(t,o(e,3))}},66561:(t,e,r)=>{var n=r(13938),o=r(23649),i=r(70598),a=r(64360),u=i(function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])});t.exports=u},90397:t=>{t.exports=function(){return[]}},41695:t=>{t.exports=function(){return!1}},48640:(t,e,r)=>{var n=r(70719),o=r(95255);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},53958:(t,e,r)=>{var n=r(32816),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-o?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},58149:(t,e,r)=>{var n=r(53958);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},32816:(t,e,r)=>{var n=r(31004),o=r(95255),i=r(83480),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=c.test(t);return r||l.test(t)?s(t.slice(2),r?2:8):u.test(t)?a:+t}},80756:(t,e,r)=>{var n=r(34892);t.exports=function(t){return null==t?"":n(t)}},6928:(t,e,r)=>{var n=r(70793),o=r(3929);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},94994:(t,e,r)=>{var n=r(84373)("toUpperCase");t.exports=n},65192:(t,e,r)=>{"use strict";var n=r(80859);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},81996:(t,e,r)=>{t.exports=r(65192)()},80859:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},29479:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>tS});var n=r(12115),o=r(81996),i=r.n(o),a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty;function l(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function s(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var u=t(e,r,n);return o.delete(e),o.delete(r),u}}function f(t){return a(t).concat(u(t))}var p=Object.hasOwn||function(t,e){return c.call(t,e)};function h(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var d=Object.getOwnPropertyDescriptor,y=Object.keys;function v(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function b(t,e){return h(t.getTime(),e.getTime())}function m(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function g(t,e){return t===e}function x(t,e,r){var n,o,i=t.size;if(i!==e.size)return!1;if(!i)return!0;for(var a=Array(i),u=t.entries(),c=0;(n=u.next())&&!n.done;){for(var l=e.entries(),s=!1,f=0;(o=l.next())&&!o.done;){if(a[f]){f++;continue}var p=n.value,h=o.value;if(r.equals(p[0],h[0],c,f,t,e,r)&&r.equals(p[1],h[1],p[0],h[0],t,e,r)){s=a[f]=!0;break}f++}if(!s)return!1;c++}return!0}function O(t,e,r){var n=y(t),o=n.length;if(y(e).length!==o)return!1;for(;o-- >0;)if(!M(t,e,r,n[o]))return!1;return!0}function w(t,e,r){var n,o,i,a=f(t),u=a.length;if(f(e).length!==u)return!1;for(;u-- >0;)if(!M(t,e,r,n=a[u])||(o=d(t,n),i=d(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function j(t,e){return h(t.valueOf(),e.valueOf())}function S(t,e){return t.source===e.source&&t.flags===e.flags}function A(t,e,r){var n,o,i=t.size;if(i!==e.size)return!1;if(!i)return!0;for(var a=Array(i),u=t.values();(n=u.next())&&!n.done;){for(var c=e.values(),l=!1,s=0;(o=c.next())&&!o.done;){if(!a[s]&&r.equals(n.value,o.value,n.value,o.value,t,e,r)){l=a[s]=!0;break}s++}if(!l)return!1}return!0}function P(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function E(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function M(t,e,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!t.$$typeof||!!e.$$typeof)||p(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var k=Array.isArray,_="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,T=Object.assign,C=Object.prototype.toString.call.bind(Object.prototype.toString),I=D();function D(t){void 0===t&&(t={});var e,r,n,o,i,a,u,c,f,p,d,y,M,I=t.circular,D=t.createInternalComparator,N=t.createState,B=t.strict,R=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?w:v,areDatesEqual:b,areErrorsEqual:m,areFunctionsEqual:g,areMapsEqual:n?l(x,w):x,areNumbersEqual:h,areObjectsEqual:n?w:O,arePrimitiveWrappersEqual:j,areRegExpsEqual:S,areSetsEqual:n?l(A,w):A,areTypedArraysEqual:n?w:P,areUrlsEqual:E};if(r&&(o=T({},o,r(o))),e){var i=s(o.areArraysEqual),a=s(o.areMapsEqual),u=s(o.areObjectsEqual),c=s(o.areSetsEqual);o=T({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return o}(t)).areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,u=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,p=e.areRegExpsEqual,d=e.areSetsEqual,y=e.areTypedArraysEqual,M=e.areUrlsEqual,function(t,e,l){if(t===e)return!0;if(null==t||null==e)return!1;var s=typeof t;if(s!==typeof e)return!1;if("object"!==s)return"number"===s?u(t,e,l):"function"===s&&i(t,e,l);var h=t.constructor;if(h!==e.constructor)return!1;if(h===Object)return c(t,e,l);if(k(t))return r(t,e,l);if(null!=_&&_(t))return y(t,e,l);if(h===Date)return n(t,e,l);if(h===RegExp)return p(t,e,l);if(h===Map)return a(t,e,l);if(h===Set)return d(t,e,l);var v=C(t);return"[object Date]"===v?n(t,e,l):"[object RegExp]"===v?p(t,e,l):"[object Map]"===v?a(t,e,l):"[object Set]"===v?d(t,e,l):"[object Object]"===v?"function"!=typeof t.then&&"function"!=typeof e.then&&c(t,e,l):"[object URL]"===v?M(t,e,l):"[object Error]"===v?o(t,e,l):"[object Arguments]"===v?c(t,e,l):("[object Boolean]"===v||"[object Number]"===v||"[object String]"===v)&&f(t,e,l)}),L=D?D(R):function(t,e,r,n,o,i,a){return R(t,e,a)};return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var u=n(),c=u.cache;return r(t,a,{cache:void 0===c?e?new WeakMap:void 0:c,equals:o,meta:u.meta,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:void 0!==I&&I,comparator:R,createState:N,equals:L,strict:void 0!==B&&B})}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(o){if(r<0&&(r=o),o-r>e)t(o),r=-1;else{var i;i=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=K(i,u),h=K(a,c),d=(t=i,e=u,function(r){var n;return G([].concat(function(t){if(Array.isArray(t))return V(t)}(n=Y(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||H(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o,i=p(r)-e,a=d(r);if(1e-4>Math.abs(i-e)||a<1e-4)break;r=(o=r-i/a)>1?1:o<0?0:o}return h(r)};return y.isStepper=!1,y},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return 1e-4>Math.abs(u-e)&&1e-4>Math.abs(i)?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u},Q=function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r0?r[o-1]:n,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(th(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=q(p,i,u),d=tv(tv(tv({},f.style),c),{},{transition:h});return[].concat(th(t),[d,i,s]).filter(F)},[a,Math.max(void 0===u?0:u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){if(!this.manager){var e,r,n;this.manager=(e=function(){return null},r=!1,n=function t(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var o=function(t){if(Array.isArray(t))return t}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return R(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(t,void 0)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);if("number"==typeof i){N(t.bind(null,a),i);return}t(i),N(t.bind(null,a));return}"object"===B(n)&&e(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(t){r=!1,n(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}})}var o=t.begin,i=t.duration,a=t.attributeName,u=t.to,c=t.easing,l=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof p||"spring"===c){this.runJSAnimation(t);return}if(f.length>1){this.runStepAnimation(t);return}var d=a?tb({},a,u):u,y=q(Object.keys(d),i,c);h.start([l,o,tv(tv({},d),{},{transition:y}),i,s])}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),o=(t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,tp)),a=n.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!o||0===a||r<=0)return e;var c=function(t){var e=t.props,r=e.style,o=e.className;return(0,n.cloneElement)(t,tv(tv({},i),{},{style:tv(tv({},void 0===r?{}:r),u),className:o}))};return 1===a?c(n.Children.only(e)):n.createElement("div",null,n.Children.map(e,function(t){return c(t)}))}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{y:()=>U});var n=r(12115),o=r(43463),i=r(29479),a=r(41436),u=r.n(a),c=r(87727),l=r.n(c),s=r(26941),f=r(67820),p=function(t){return null};p.displayName="Cell";var h=r(40654),d=r(82954),y=r(12401),v=r(27878),b=r(95286),m=r(32230),g=r(37254),x=r(80582),O=["x","y"];function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,O),i=parseInt("".concat(r),10),a=parseInt("".concat(n),10),u=parseInt("".concat(e.height||o.height),10),c=parseInt("".concat(e.width||o.width),10);return A(A(A(A(A({},e),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:u,width:c,name:e.name,radius:e.radius})}function E(t){return n.createElement(x.yp,j({shapeType:"rectangle",propTransformer:P,activeClassName:"recharts-active-bar"},t))}var M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||(0,g.A)(!1),e)}},k=["value","background"];function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(){return(T=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,k);if(!u)return null;var l=I(I(I(I(I({},c),{},{fill:"#eee"},u),a),(0,m.XC)(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:o,index:r,className:"recharts-bar-background-rectangle"});return n.createElement(E,T({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,u=r.layout,c=r.children,l=(0,y.aS)(c,f.u);if(!l)return null;var p="vertical"===u?o[0].height/2:o[0].width/2,h=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:(0,b.kr)(t,e)}};return n.createElement(s.W,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return n.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:u,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,i=t.className,a=t.xAxis,u=t.yAxis,c=t.left,f=t.top,p=t.width,d=t.height,y=t.isAnimationActive,v=t.background,b=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,g=(0,o.A)("recharts-bar",i),x=a&&a.allowDataOverflow,O=u&&u.allowDataOverflow,w=x||O,j=l()(b)?this.id:b;return n.createElement(s.W,{className:g},x||O?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(j)},n.createElement("rect",{x:x?c:c-p/2,y:O?f:f-d/2,width:x?p:2*p,height:O?d:2*d}))):null,n.createElement(s.W,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(j,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,j),(!y||m)&&h.Z.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&D(a.prototype,e),r&&D(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);L(U,"displayName","Bar"),L(U,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!v.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),L(U,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,v=(0,b.xi)(n,r);if(!v)return null;var m=e.layout,g=r.type.defaultProps,x=void 0!==g?I(I({},g),r.props):r.props,O=x.dataKey,w=x.children,j=x.minPointSize,S="horizontal"===m?a:i,A=l?S.scale.domain():null,P=(0,b.DW)({numericAxis:S}),E=(0,y.aS)(w,p),k=f.map(function(t,e){l?f=(0,b._f)(l[s+e],A):Array.isArray(f=(0,b.kr)(t,O))||(f=[P,f]);var n=M(j,U.defaultProps.minPointSize)(f[1],e);if("horizontal"===m){var f,p,h,y,g,x,w,S=[a.scale(f[0]),a.scale(f[1])],k=S[0],_=S[1];p=(0,b.y2)({axis:i,ticks:u,bandSize:o,offset:v.offset,entry:t,index:e}),h=null!==(w=null!=_?_:k)&&void 0!==w?w:void 0,y=v.size;var T=k-_;if(g=Number.isNaN(T)?0:T,x={x:p,y:a.y,width:y,height:a.height},Math.abs(n)>0&&Math.abs(g)0&&Math.abs(y){"use strict";r.d(e,{u:()=>T});var n=r(12115),o=r(33196),i=r.n(o),a=r(50920),u=r.n(a),c=r(43463),l=r(64433),s=r(26941),f=r(59596),p=r(34790),h=r(82954),d=r(32230),y=r(12401),v=r(35400),b=["viewBox"],m=["viewBox"],g=["ticks"];function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function A(t,e){for(var r=0;r0?this.props:d)),o<=0||a<=0||!y||!y.length)?null:n.createElement(s.W,{className:(0,c.A)("recharts-cartesian-axis",l),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p.J.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,r){return n.isValidElement(t)?n.cloneElement(t,e):i()(t)?t(e):n.createElement(f.E,O({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],e&&A(o.prototype,e),r&&A(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.Component);k(T,"displayName","CartesianAxis"),k(T,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},67820:(t,e,r)=>{"use strict";r.d(e,{u:()=>v});var n=r(12115),o=r(37254),i=r(26941),a=r(12401),u=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),b=(0,a.J9)(v,!1);"x"===this.props.direction&&"number"!==d.type&&(0,o.A)(!1);var m=p.map(function(t){var o,a,u=h(t,f),p=u.x,v=u.y,m=u.value,g=u.errorVal;if(!g)return null;var x=[];if(Array.isArray(g)){var O=function(t){if(Array.isArray(t))return t}(g)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{for(i=(r=r.call(t)).next;!(c=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(g,2)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,2)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=O[0],a=O[1]}else o=a=g;if("vertical"===r){var w=d.scale,j=v+e,S=j+c,A=j-c,P=w(m-o),E=w(m+a);x.push({x1:E,y1:S,x2:E,y2:A}),x.push({x1:P,y1:j,x2:E,y2:j}),x.push({x1:P,y1:S,x2:P,y2:A})}else if("horizontal"===r){var M=y.scale,k=p+e,_=k-c,T=k+c,C=M(m-o),I=M(m+a);x.push({x1:_,y1:I,x2:T,y2:I}),x.push({x1:k,y1:C,x2:k,y2:I}),x.push({x1:_,y1:C,x2:T,y2:C})}return n.createElement(i.W,l({className:"recharts-errorBar",key:"bar-".concat(x.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},b),x.map(function(t){return n.createElement("line",l({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return n.createElement(i.W,{className:"recharts-errorBars"},m)}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{W:()=>v});var n=r(12115),o=r(43463),i=r(51634),a=r(70710),u=r(95286);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function d(){return(d=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{h:()=>v});var n=r(12115),o=r(43463),i=r(51634),a=r(70710),u=r(95286);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function d(){return(d=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{f:()=>d});var n=r(33196),o=r.n(n),i=r(82954),a=r(80452),u=r(27878),c=r(94430);function l(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;ot*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e=2?(0,i.sA)(b[1].coordinate-b[0].coordinate):1,k=(n="width"===A,f=m.x,p=m.y,d=m.width,y=m.height,1===M?{start:n?f:p,end:n?f+d:p+y}:{start:n?f+d:p+y,end:n?f:p});return"equidistantPreserveStart"===O?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),u=e.start,c=e.end,f=0,p=1,h=u;p<=a.length;)if(i=function(){var e,i=null==n?void 0:n[f];if(void 0===i)return{v:l(n,p)};var a=f,d=function(){return void 0===e&&(e=r(i,a)),e},y=i.coordinate,v=0===f||s(t,y,d,h,c);v||(f=0,h=u,p+=1),v&&(h=y+t*(d()/2+o),f+=p)}())return i.v;return[]}(M,k,E,b,g):("preserveStart"===O||"preserveStartEnd"===O?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,c=e.start,l=e.end;if(i){var f=n[u-1],p=r(f,u-1),d=t*(f.coordinate+t*p/2-l);a[u-1]=f=h(h({},f),{},{tickCoord:d>0?f.coordinate-d*t:f.coordinate}),s(t,f.tickCoord,function(){return p},c,l)&&(l=f.tickCoord-t*(p/2+o),a[u-1]=h(h({},f),{},{isShow:!0}))}for(var y=i?u-1:u,v=function(e){var n,i=a[e],u=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var f=t*(i.coordinate-t*u()/2-c);a[e]=i=h(h({},i),{},{tickCoord:f<0?i.coordinate-f*t:i.coordinate})}else a[e]=i=h(h({},i),{},{tickCoord:i.coordinate});s(t,i.tickCoord,u,c,l)&&(c=i.tickCoord+t*(u()/2+o),a[e]=h(h({},i),{},{isShow:!0}))},b=0;b0?l.coordinate-p*t:l.coordinate})}else i[e]=l=h(h({},l),{},{tickCoord:l.coordinate});s(t,l.tickCoord,f,u,c)&&(c=l.tickCoord-t*(f()/2+o),i[e]=h(h({},l),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return i}(M,k,E,b,g)).filter(function(t){return t.isShow})}},36561:(t,e,r)=>{"use strict";r.d(e,{gu:()=>eC});var n=r(12115),o=r(87727),i=r.n(o),a=r(33196),u=r.n(a),c=r(13917),l=r.n(c),s=r(50920),f=r.n(s),p=r(66561),h=r.n(p),d=r(48640),y=r.n(d),v=r(43463),b=r(37254),m=r(27195),g=r(26941),x=r(27112),O=r(86354),w=r(89085),j=r(89151),S=r(12401),A=r(79702),P=r(59596),E=r(95286),M=r(82954);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0&&e.handleDrag(t.changedTouches[0])}),W(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})}),e.detachDragEndListener()}),W(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),W(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),W(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),W(e,"handleSlideDragStart",function(t){var r=H(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(o,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,i=this.props,a=i.gap,u=i.data.length-1,c=Math.min(e,r),l=Math.max(e,r),s=o.getIndexInRange(n,c),f=o.getIndexInRange(n,l);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=(0,E.kr)(r[t],o,t);return u()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});(h.startIndex!==l||h.endIndex!==s)&&f&&f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=H(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[n]=a+y;var v=this.getIndex(d),b=v.startIndex,m=v.endIndex,g=function(){var t=h.length-1;return"startX"===n&&(o>i?b%p==0:m%p==0)||oi?m%p==0:b%p==0)||o>i&&m===t};this.setState(W(W({},n,a+y),"brushMoveStartX",t.pageX),function(){f&&g()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var l=c+t;if(-1!==l&&!(l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(W({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,o=t.width,i=t.height,a=t.fill,u=t.stroke;return n.createElement("rect",{stroke:u,fill:a,x:e,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,o=t.width,i=t.height,a=t.data,u=t.children,c=t.padding,l=n.Children.only(u);return l?n.cloneElement(l,{x:e,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var r,i,a=this,u=this.props,c=u.y,l=u.travellerWidth,s=u.height,f=u.traveller,p=u.ariaLabel,h=u.data,d=u.startIndex,y=u.endIndex,v=Math.max(t,this.props.x),b=L(L({},(0,S.J9)(this.props,!1)),{},{x:v,y:c,width:l,height:s}),m=p||"Min value: ".concat(null===(r=h[d])||void 0===r?void 0:r.name,", Max value: ").concat(null===(i=h[y])||void 0===i?void 0:i.name);return n.createElement(g.W,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},o.renderTraveller(f,b))}},{key:"renderSlide",value:function(t,e){var r=this.props,o=r.y,i=r.height,a=r.stroke,u=r.travellerWidth,c=Math.min(t,e)+u,l=Math.max(Math.abs(e-t)-u,0);return n.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,o=t.y,i=t.height,a=t.travellerWidth,u=t.stroke,c=this.state,l=c.startX,s=c.endX,f={pointerEvents:"none",fill:u};return n.createElement(g.W,{className:"recharts-brush-texts"},n.createElement(P.E,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(e)),n.createElement(P.E,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,o=t.children,i=t.x,a=t.y,u=t.width,c=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,d=s.isSlideMoving,y=s.isTravellerMoving,b=s.isTravellerFocused;if(!e||!e.length||!(0,M.Et)(i)||!(0,M.Et)(a)||!(0,M.Et)(u)||!(0,M.Et)(c)||u<=0||c<=0)return null;var m=(0,v.A)("recharts-brush",r),x=1===n.Children.count(o),O=D("userSelect","none");return n.createElement(g.W,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||y||b||l)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,o=t.width,i=t.height,a=t.stroke,u=Math.floor(r+i/2)-1;return n.createElement(n.Fragment,null,n.createElement("rect",{x:e,y:r,width:o,height:i,fill:a,stroke:"none"}),n.createElement("line",{x1:e+1,y1:u,x2:e+o-1,y2:u,fill:"none",stroke:"#fff"}),n.createElement("line",{x1:e+1,y1:u+2,x2:e+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return n.isValidElement(t)?n.cloneElement(t,e):u()(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return L({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?X({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,o=r-1;o-n>1;){var i=Math.floor((n+o)/2);t[i]>e?o=i:n=i}return e>=t[o]?o:n}}],e&&z(o.prototype,e),r&&z(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);W(V,"displayName","Brush"),W(V,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Y=r(80452),G=r(46484),K=r(34790),J=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},Z=r(94430),Q=r(10930);function tt(){return(tt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,t0));return(0,M.Et)(r)&&(0,M.Et)(i)&&(0,M.Et)(f)&&(0,M.Et)(h)&&(0,M.Et)(u)&&(0,M.Et)(l)?n.createElement("path",t1({},(0,S.J9)(y,!0),{className:(0,v.A)("recharts-cross",d),d:"M".concat(r,",").concat(u,"v").concat(h,"M").concat(l,",").concat(i,"h").concat(f)})):null};function t5(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[(0,t$.IZ)(e,r,n,o),(0,t$.IZ)(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}var t4=r(37852);function t9(t){return(t9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function t6(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function t8(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ea(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ea=function(){return!!t})()}function eu(t){return(eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ec(t,e){return(ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function el(t){return function(t){if(Array.isArray(t))return ef(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||es(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function es(t,e){if(t){if("string"==typeof t)return ef(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ef(t,e)}}function ef(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?i:t&&t.length&&(0,M.Et)(n)&&(0,M.Et)(o)?t.slice(n,o+1):[]};function ew(t){return"number"===t?[0,"auto"]:void 0}var ej=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=eO(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,u){var c,l,s=null!==(c=u.props.data)&&void 0!==c?c:e;if(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===s?a:s;l=(0,M.eP)(f,i.dataKey,n)}else l=s&&s[r]||a[r];return l?[].concat(el(o),[(0,E.zb)(u,l)]):o},[])},eS=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=(0,E.gH)(i,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=ej(t,e,l,s),p=ex(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},eA=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,a=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,f=t.layout,p=t.children,h=t.stackOffset,d=(0,E._L)(f,o);return r.reduce(function(e,r){var y=void 0!==r.type.defaultProps?eh(eh({},r.type.defaultProps),r.props):r.props,v=y.type,b=y.dataKey,m=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,w=y.includeHidden,j=y[a];if(e[j])return e;var S=eO(t.data,{graphicalItems:n.filter(function(t){var e;return(a in t.props?t.props[a]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[a])===j}),dataStartIndex:c,dataEndIndex:s}),A=S.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&(0,M.Et)(n)&&(0,M.Et)(o))return!0}return!1})(y.domain,m,v)&&(_=(0,E.AQ)(y.domain,null,m),d&&("number"===v||"auto"!==x)&&(C=(0,E.Ay)(S,b,"category")));var P=ew(v);if(!_||0===_.length){var k,_,T,C,I,D=null!==(I=y.domain)&&void 0!==I?I:P;if(b){if(_=(0,E.Ay)(S,b,v),"category"===v&&d){var N=(0,M.CG)(_);g&&N?(T=_,_=l()(0,A)):g||(_=(0,E.KC)(D,_,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(el(t),[e])},[]))}else if("category"===v)_=g?_.filter(function(t){return""!==t&&!i()(t)}):(0,E.KC)(D,_,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||i()(e)?t:[].concat(el(t),[e])},[]);else if("number"===v){var B=(0,E.A1)(S,n.filter(function(t){var e,r,n=a in t.props?t.props[a]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[a],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===j&&(w||!o)}),b,o,f);B&&(_=B)}d&&("number"===v||"auto"!==x)&&(C=(0,E.Ay)(S,b,"category"))}else _=d?l()(0,A):u&&u[j]&&u[j].hasStack&&"number"===v?"expand"===h?[0,1]:(0,E.Mk)(u[j].stackGroups,c,s):(0,E.vf)(S,n.filter(function(t){var e=a in t.props?t.props[a]:t.type.defaultProps[a],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===j&&(w||!r)}),v,f,!0);"number"===v?(_=tU(p,_,j,o,O),D&&(_=(0,E.AQ)(D,_,m))):"category"===v&&D&&_.every(function(t){return D.indexOf(t)>=0})&&(_=D)}return eh(eh({},e),{},ed({},j,eh(eh({},y),{},{axisType:o,domain:_,categoricalDomain:C,duplicateDomain:T,originalDomain:null!==(k=y.domain)&&void 0!==k?k:P,isCategorical:d,layout:f})))},{})},eP=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,p=t.children,h=eO(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),d=h.length,y=(0,E._L)(s,o),v=-1;return r.reduce(function(t,e){var b,m=(void 0!==e.type.defaultProps?eh(eh({},e.type.defaultProps),e.props):e.props)[i],g=ew("number");return t[m]?t:(v++,b=y?l()(0,d):a&&a[m]&&a[m].hasStack?tU(p,b=(0,E.Mk)(a[m].stackGroups,u,c),m,o):tU(p,b=(0,E.AQ)(g,(0,E.vf)(h,r.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===m&&!o}),"number",s),n.defaultProps.allowDataOverflow),m,o),eh(eh({},t),{},ed({},m,eh(eh({axisType:o},n.defaultProps),{},{hide:!0,orientation:f()(ev,"".concat(o,".").concat(v%2),null),domain:b,originalDomain:g,isCategorical:y,layout:s}))))},{})},eE=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=(0,S.aS)(l,o),p={};return f&&f.length?p=eA(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=eP(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},eM=function(t){var e=(0,M.lX)(t),r=(0,E.Rh)(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:h()(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,E.Hj)(e,r)}},ek=function(t){var e=t.children,r=t.defaultShowTooltip,n=(0,S.BU)(e,V),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!r}},e_=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},eT=function(t,e){var r=t.props,n=t.graphicalItems,o=t.xAxisMap,i=void 0===o?{}:o,a=t.yAxisMap,u=void 0===a?{}:a,c=r.width,l=r.height,s=r.children,p=r.margin||{},h=(0,S.BU)(s,V),d=(0,S.BU)(s,O.s),y=Object.keys(u).reduce(function(t,e){var r=u[e],n=r.orientation;return r.mirror||r.hide?t:eh(eh({},t),{},ed({},n,t[n]+r.width))},{left:p.left||0,right:p.right||0}),v=Object.keys(i).reduce(function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:eh(eh({},t),{},ed({},n,f()(t,"".concat(n))+r.height))},{top:p.top||0,bottom:p.bottom||0}),b=eh(eh({},v),y),m=b.bottom;h&&(b.bottom+=h.props.height||V.defaultProps.height),d&&e&&(b=(0,E.s0)(b,n,r,e));var g=c-b.left-b.right,x=l-b.top-b.bottom;return eh(eh({brushBottom:m},b),{},{width:Math.max(g,0),height:Math.max(x,0)})},eC=function(t){var e=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,a=void 0===o?"axis":o,c=t.validateTooltipEventTypes,l=void 0===c?["axis"]:c,s=t.axisComponents,p=t.legendContent,h=t.formatAxisMap,d=t.defaultProps,O=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,a=e.updateId,u=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,f=t.layout,p=t.barGap,h=t.barCategoryGap,d=t.maxBarSize,y=e_(f),v=y.numericAxisName,m=y.cateAxisName,g=!!r&&!!r.length&&r.some(function(t){var e=(0,S.Mn)(t&&t.type);return e&&e.indexOf("Bar")>=0}),x=[];return r.forEach(function(r,y){var O=eO(t.data,{graphicalItems:[r],dataStartIndex:u,dataEndIndex:c}),w=void 0!==r.type.defaultProps?eh(eh({},r.type.defaultProps),r.props):r.props,j=w.dataKey,A=w.maxBarSize,P=w["".concat(v,"Id")],M=w["".concat(m,"Id")],k=s.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],o=w["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||(0,b.A)(!1);var i=n[o];return eh(eh({},t),{},ed(ed({},r.axisType,i),"".concat(r.axisType,"Ticks"),(0,E.Rh)(i)))},{}),_=k[m],T=k["".concat(m,"Ticks")],C=n&&n[P]&&n[P].hasStack&&(0,E.kA)(r,n[P].stackGroups),I=(0,S.Mn)(r.type).indexOf("Bar")>=0,D=(0,E.Hj)(_,T),N=[],B=g&&(0,E.tA)({barSize:l,stackGroups:n,totalSize:"xAxis"===m?k[m].width:"yAxis"===m?k[m].height:void 0});if(I){var R,L,z=i()(A)?d:A,U=null!==(R=null!==(L=(0,E.Hj)(_,T,!0))&&void 0!==L?L:z)&&void 0!==R?R:0;N=(0,E.BX)({barGap:p,barCategoryGap:h,bandSize:U!==D?U:D,sizeList:B[M],maxBarSize:z}),U!==D&&(N=N.map(function(t){return eh(eh({},t),{},{position:eh(eh({},t.position),{},{offset:t.position.offset-U/2})})}))}var $=r&&r.type&&r.type.getComposedData;$&&x.push({props:eh(eh({},$(eh(eh({},k),{},{displayedData:O,props:t,dataKey:j,item:r,bandSize:D,barPosition:N,offset:o,stackedData:C,layout:f,dataStartIndex:u,dataEndIndex:c}))),{},ed(ed(ed({key:r.key||"item-".concat(y)},v,k[v]),m,k[m]),"animationId",a)),childIndex:(0,S.AW)(r,t.children),item:r})}),x},A=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!(0,S.Me)({props:o}))return null;var c=o.children,l=o.layout,f=o.stackOffset,p=o.data,d=o.reverseStackOrder,y=e_(l),v=y.numericAxisName,b=y.cateAxisName,m=(0,S.aS)(c,r),g=(0,E.Mn)(p,m,"".concat(v,"Id"),"".concat(b,"Id"),f,d),x=s.reduce(function(t,e){var r="".concat(e.axisType,"Map");return eh(eh({},t),{},ed({},r,eE(o,eh(eh({},e),{},{graphicalItems:m,stackGroups:e.axisType===v&&g,dataStartIndex:i,dataEndIndex:a}))))},{}),w=eT(eh(eh({},x),{},{props:o,graphicalItems:m}),null==n?void 0:n.legendBBox);Object.keys(x).forEach(function(t){x[t]=h(o,x[t],w,t.replace("Map",""),e)});var j=eM(x["".concat(b,"Map")]),A=O(o,eh(eh({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:m,stackGroups:g,offset:w}));return eh(eh({formattedGraphicalItems:A,graphicalItems:m,offset:w,stackGroups:g},j),x)},P=function(t){var r;function o(t){var r,a,c,l,s;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),l=o,s=[t],l=eu(l),ed(c=function(t,e){if(e&&("object"===er(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,ea()?Reflect.construct(l,s||[],eu(this).constructor):l.apply(this,s)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ed(c,"accessibilityManager",new tK),ed(c,"handleLegendBBoxUpdate",function(t){if(t){var e=c.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;c.setState(eh({legendBBox:t},A({props:c.props,dataStartIndex:r,dataEndIndex:n,updateId:o},eh(eh({},c.state),{},{legendBBox:t}))))}}),ed(c,"handleReceiveSyncEvent",function(t,e,r){c.props.syncId===t&&(r!==c.eventEmitterSymbol||"function"==typeof c.props.syncMethod)&&c.applySyncEvent(e)}),ed(c,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==c.state.dataStartIndex||r!==c.state.dataEndIndex){var n=c.state.updateId;c.setState(function(){return eh({dataStartIndex:e,dataEndIndex:r},A({props:c.props,dataStartIndex:e,dataEndIndex:r,updateId:n},c.state))}),c.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),ed(c,"handleMouseEnter",function(t){var e=c.getMouseInfo(t);if(e){var r=eh(eh({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseEnter;u()(n)&&n(r,t)}}),ed(c,"triggeredAfterMouseMove",function(t){var e=c.getMouseInfo(t),r=e?eh(eh({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseMove;u()(n)&&n(r,t)}),ed(c,"handleItemMouseEnter",function(t){c.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),ed(c,"handleItemMouseLeave",function(){c.setState(function(){return{isTooltipActive:!1}})}),ed(c,"handleMouseMove",function(t){t.persist(),c.throttleTriggeredAfterMouseMove(t)}),ed(c,"handleMouseLeave",function(t){c.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};c.setState(e),c.triggerSyncEvent(e);var r=c.props.onMouseLeave;u()(r)&&r(e,t)}),ed(c,"handleOuterEvent",function(t){var e,r=(0,S.X_)(t),n=f()(c.props,"".concat(r));r&&u()(n)&&n(null!==(e=/.*touch.*/i.test(r)?c.getMouseInfo(t.changedTouches[0]):c.getMouseInfo(t))&&void 0!==e?e:{},t)}),ed(c,"handleClick",function(t){var e=c.getMouseInfo(t);if(e){var r=eh(eh({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onClick;u()(n)&&n(r,t)}}),ed(c,"handleMouseDown",function(t){var e=c.props.onMouseDown;u()(e)&&e(c.getMouseInfo(t),t)}),ed(c,"handleMouseUp",function(t){var e=c.props.onMouseUp;u()(e)&&e(c.getMouseInfo(t),t)}),ed(c,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),ed(c,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseDown(t.changedTouches[0])}),ed(c,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseUp(t.changedTouches[0])}),ed(c,"handleDoubleClick",function(t){var e=c.props.onDoubleClick;u()(e)&&e(c.getMouseInfo(t),t)}),ed(c,"handleContextMenu",function(t){var e=c.props.onContextMenu;u()(e)&&e(c.getMouseInfo(t),t)}),ed(c,"triggerSyncEvent",function(t){void 0!==c.props.syncId&&tq.emit(tX,c.props.syncId,t,c.eventEmitterSymbol)}),ed(c,"applySyncEvent",function(t){var e=c.props,r=e.layout,n=e.syncMethod,o=c.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)c.setState(eh({dataStartIndex:i,dataEndIndex:a},A({props:c.props,dataStartIndex:i,dataEndIndex:a,updateId:o},c.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=c.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var d=0;d=0){if(s.dataKey&&!s.allowDuplicatedCategory){var T="function"==typeof s.dataKey?function(t){return"function"==typeof s.dataKey?s.dataKey(t.payload):null}:"payload.".concat(s.dataKey.toString());I=(0,M.eP)(v,T,p),D=b&&m&&(0,M.eP)(m,T,p)}else I=null==v?void 0:v[f],D=b&&m&&m[f];if(A||j){var C=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,n.cloneElement)(t,eh(eh(eh({},o.props),k),{},{activeIndex:C})),null,null]}if(!i()(I))return[_].concat(el(c.renderActivePoints({item:o,activePoint:I,basePoint:D,childIndex:f,isRange:b})))}else{var I,D,N,B=(null!==(N=c.getItemByXY(c.state.activeCoordinate))&&void 0!==N?N:{graphicalItem:_}).graphicalItem,R=B.item,L=void 0===R?t:R,z=B.childIndex,U=eh(eh(eh({},o.props),k),{},{activeIndex:z});return[(0,n.cloneElement)(L,U),null,null]}}return b?[_,null,null]:[_,null]}),ed(c,"renderCustomized",function(t,e,r){return(0,n.cloneElement)(t,eh(eh({key:"recharts-customized-".concat(r)},c.props),c.state))}),ed(c,"renderMap",{CartesianGrid:{handler:eg,once:!0},ReferenceArea:{handler:c.renderReferenceElement},ReferenceLine:{handler:eg},ReferenceDot:{handler:c.renderReferenceElement},XAxis:{handler:eg},YAxis:{handler:eg},Brush:{handler:c.renderBrush,once:!0},Bar:{handler:c.renderGraphicChild},Line:{handler:c.renderGraphicChild},Area:{handler:c.renderGraphicChild},Radar:{handler:c.renderGraphicChild},RadialBar:{handler:c.renderGraphicChild},Scatter:{handler:c.renderGraphicChild},Pie:{handler:c.renderGraphicChild},Funnel:{handler:c.renderGraphicChild},Tooltip:{handler:c.renderCursor,once:!0},PolarGrid:{handler:c.renderPolarGrid,once:!0},PolarAngleAxis:{handler:c.renderPolarAxis},PolarRadiusAxis:{handler:c.renderPolarAxis},Customized:{handler:c.renderCustomized}}),c.clipPathId="".concat(null!==(r=t.id)&&void 0!==r?r:(0,M.NF)("recharts"),"-clip"),c.throttleTriggeredAfterMouseMove=y()(c.triggeredAfterMouseMove,null!==(a=t.throttleDelay)&&void 0!==a?a:1e3/60),c.state={},c}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ec(t,e)}(o,t),r=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=(0,S.BU)(e,x.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=ej(this.state,r,a,u),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=eh(eh({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,S.OV)([(0,S.BU)(t.children,x.m)],[(0,S.BU)(this.props.children,x.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,S.BU)(this.props.children,x.m);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:a}return a}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n=(0,Y.A3)(r),o={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},i=r.width/e.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var u=this.state,c=u.xAxisMap,l=u.yAxisMap,s=this.getTooltipEventType(),f=eS(this.state,this.props.data,this.props.layout,a);if("axis"!==s&&c&&l){var p=(0,M.lX)(c).scale,h=(0,M.lX)(l).scale,d=p&&p.invert?p.invert(o.chartX):null,y=h&&h.invert?h.invert(o.chartY):null;return eh(eh({},o),{},{xValue:d,yValue:y},f)}return f?eh(eh({},o),f):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=(0,M.lX)(c);return(0,t$.yy)({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=(0,S.BU)(t,x.m),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),eh(eh({},(0,tH._U)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){tq.on(tX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tq.removeListener(tX,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o{"use strict";r.d(e,{J:()=>A});var n=r(12115),o=r(87727),i=r.n(o),a=r(33196),u=r.n(a),c=r(95255),l=r.n(c),s=r(43463),f=r(59596),p=r(12401),h=r(82954),d=r(31172);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var v=["offset"];function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1;"insideStart"===u?(o=m+S*l,a=O):"insideEnd"===u?(o=g-S*l,a=!O):"end"===u&&(o=g+S*l,a=O),a=j<=0?a:!a;var A=(0,d.IZ)(p,y,w,o),P=(0,d.IZ)(p,y,w,o+(a?1:-1)*359),E="M".concat(A.x,",").concat(A.y,"\n A").concat(w,",").concat(w,",0,1,").concat(a?0:1,",\n ").concat(P.x,",").concat(P.y),M=i()(t.id)?(0,h.NF)("recharts-radial-line-"):t.id;return n.createElement("text",x({},r,{dominantBaseline:"central",className:(0,s.A)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:M,d:E})),n.createElement("textPath",{xlinkHref:"#".concat(M)},e))},j=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e.cx,i=e.cy,a=e.innerRadius,u=e.outerRadius,c=(e.startAngle+e.endAngle)/2;if("outside"===n){var l=(0,d.IZ)(o,i,u+r,c),s=l.x;return{x:s,y:l.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(0,d.IZ)(o,i,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e.x,a=e.y,u=e.width,c=e.height,s=c>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",y=u>=0?1:-1,v=y*n,b=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return g(g({},{x:i+u/2,y:a-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(a-r.y,0),width:u}:{});if("bottom"===o)return g(g({},{x:i+u/2,y:a+c+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(a+c),0),width:u}:{});if("left"===o){var x={x:i-v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"};return g(g({},x),r?{width:Math.max(x.x-r.x,0),height:c}:{})}if("right"===o){var O={x:i+u+v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"};return g(g({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:c}:{})}var w=r?{width:u,height:c}:{};return"insideLeft"===o?g({x:i+v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?g({x:i+u-v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"},w):"insideTop"===o?g({x:i+u/2,y:a+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?g({x:i+u/2,y:a+c-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?g({x:i+v,y:a+f,textAnchor:m,verticalAnchor:d},w):"insideTopRight"===o?g({x:i+u-v,y:a+f,textAnchor:b,verticalAnchor:d},w):"insideBottomLeft"===o?g({x:i+v,y:a+c-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?g({x:i+u-v,y:a+c-f,textAnchor:b,verticalAnchor:p},w):l()(o)&&((0,h.Et)(o.x)||(0,h._3)(o.x))&&((0,h.Et)(o.y)||(0,h._3)(o.y))?g({x:i+(0,h.F4)(o.x,u),y:a+(0,h.F4)(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):g({x:i+u/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)};function A(t){var e,r=t.offset,o=g({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,v)),a=o.viewBox,c=o.position,l=o.value,d=o.children,y=o.content,b=o.className,m=o.textBreakAll;if(!a||i()(l)&&i()(d)&&!(0,n.isValidElement)(y)&&!u()(y))return null;if((0,n.isValidElement)(y))return(0,n.cloneElement)(y,o);if(u()(y)){if(e=(0,n.createElement)(y,o),(0,n.isValidElement)(e))return e}else e=O(o);var A="cx"in a&&(0,h.Et)(a.cx),P=(0,p.J9)(o,!0);if(A&&("insideStart"===c||"insideEnd"===c||"end"===c))return w(o,e,P);var E=A?j(o):S(o);return n.createElement(f.E,x({className:(0,s.A)("recharts-label",void 0===b?"":b)},P,E,{breakAll:m}),e)}A.displayName="Label";var P=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,y=t.width,v=t.height,b=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,h.Et)(y)&&(0,h.Et)(v)){if((0,h.Et)(s)&&(0,h.Et)(f))return{x:s,y:f,width:y,height:v};if((0,h.Et)(p)&&(0,h.Et)(d))return{x:p,y:d,width:y,height:v}}return(0,h.Et)(s)&&(0,h.Et)(f)?{x:s,y:f,width:0,height:0}:(0,h.Et)(e)&&(0,h.Et)(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:b}:t.viewBox?t.viewBox:{}};A.parseViewBox=P,A.renderCallByParent=function(t,e){var r,o,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var a=t.children,c=P(t),s=(0,p.aS)(a,A).map(function(t,r){return(0,n.cloneElement)(t,{viewBox:e||c,key:"label-".concat(r)})});return i?[(r=t.label,o=e||c,r?!0===r?n.createElement(A,{key:"label-implicit",viewBox:o}):(0,h.vh)(r)?n.createElement(A,{key:"label-implicit",viewBox:o,value:r}):(0,n.isValidElement)(r)?r.type===A?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:o}):n.createElement(A,{key:"label-implicit",content:r,viewBox:o}):u()(r)?n.createElement(A,{key:"label-implicit",content:r,viewBox:o}):l()(r)?n.createElement(A,x({viewBox:o},r,{key:"label-implicit"})):null:null)].concat(function(t){if(Array.isArray(t))return b(t)}(s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return b(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(t,void 0)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):s}},40654:(t,e,r)=>{"use strict";r.d(e,{Z:()=>A});var n=r(12115),o=r(87727),i=r.n(o),a=r(95255),u=r.n(a),c=r(33196),l=r.n(c),s=r(59184),f=r.n(s),p=r(34790),h=r(26941),d=r(12401),y=r(95286);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var b=["valueAccessor"],m=["data","dataKey","clockWise","id","textBreakAll"];function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var S=function(t){return Array.isArray(t.value)?f()(t.value):t.value};function A(t){var e=t.valueAccessor,r=void 0===e?S:e,o=j(t,b),a=o.data,u=o.dataKey,c=o.clockWise,l=o.id,s=o.textBreakAll,f=j(o,m);return a&&a.length?n.createElement(h.W,{className:"recharts-label-list"},a.map(function(t,e){var o=i()(u)?r(t,e):(0,y.kr)(t&&t.payload,u),a=i()(l)?{}:{id:"".concat(l,"-").concat(e)};return n.createElement(p.J,x({},(0,d.J9)(t,!0),f,a,{parentViewBox:t.parentViewBox,value:o,textBreakAll:s,viewBox:p.J.parseViewBox(i()(c)?t:w(w({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))})):null}A.displayName="LabelList",A.renderCallByParent=function(t,e){var r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=(0,d.aS)(i,A).map(function(t,r){return(0,n.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return o?[(r=t.label)?!0===r?n.createElement(A,{key:"labelList-implicit",data:e}):n.isValidElement(r)||l()(r)?n.createElement(A,{key:"labelList-implicit",data:e,content:r}):u()(r)?n.createElement(A,x({data:e},r,{key:"labelList-implicit"})):null:null].concat(function(t){if(Array.isArray(t))return g(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return g(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},86354:(t,e,r)=>{"use strict";r.d(e,{s:()=>I});var n=r(12115),o=r(33196),i=r.n(o),a=r(43463),u=r(10930),c=r(27195),l=r(94507),s=r(32230);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var x=e.inactive?h:e.color;return n.createElement("li",p({className:m,style:y,key:"legend-item-".concat(r)},(0,s.XC)(t.props,e,r)),n.createElement(c.u,{width:o,height:o,viewBox:d,style:v},t.renderIcon(e)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},l?l(g,e,r):g))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,o=t.align;return e&&e.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?o:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?A({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,c=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),A(A({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,o=e.width,i=e.height,a=e.wrapperStyle,u=e.payloadUniqBy,c=e.payload,l=A(A({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return n.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(n.isValidElement(t))return n.cloneElement(t,e);if("function"==typeof t)return n.createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,j);return n.createElement(g,r)}(r,A(A({},this.props),{},{payload:(0,O.s)(c,u,C)})))}}],r=[{key:"getWithHeight",value:function(t,e){var r=A(A({},this.defaultProps),t.props).layout;return"vertical"===r&&(0,x.Et)(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],e&&P(o.prototype,e),r&&P(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);_(I,"displayName","Legend"),_(I,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},58581:(t,e,r)=>{"use strict";r.d(e,{u:()=>d});var n=r(43463),o=r(12115),i=r(48640),a=r.n(i),u=r(82954),c=r(10930),l=r(12401);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&(t=a()(t,S,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=k.current.getBoundingClientRect();return D(r.width,r.height),e.observe(k.current),function(){e.disconnect()}},[D,S]);var N=(0,o.useMemo)(function(){var t=C.containerWidth,e=C.containerHeight;if(t<0||e<0)return null;(0,c.R)((0,u._3)(y)||(0,u._3)(b),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,b),(0,c.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var r=(0,u._3)(y)?t:y,n=(0,u._3)(b)?e:b;i&&i>0&&(r?n=r/i:n&&(r=n*i),O&&n>O&&(n=O)),(0,c.R)(r>0||n>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,n,y,b,g,x,i);var a=!Array.isArray(w)&&(0,l.Mn)(w.type).endsWith("Chart");return o.Children.map(w,function(t){return o.isValidElement(t)?(0,o.cloneElement)(t,p({width:r,height:n},a?{style:p({height:"100%",width:"100%",maxHeight:n,maxWidth:r},t.props.style)}:{})):t})},[i,w,b,O,x,g,C,y]);return o.createElement("div",{id:A?"".concat(A):void 0,className:(0,n.A)("recharts-responsive-container",P),style:p(p({},void 0===M?{}:M),{},{width:y,height:b,minWidth:g,minHeight:x,maxHeight:O}),ref:k},N)})},59596:(t,e,r)=>{"use strict";r.d(e,{E:()=>R});var n=r(12115),o=r(87727),i=r.n(o),a=r(43463),u=r(82954),c=r(27878),l=r(12401),s=r(80452);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var i=e.word,a=e.width,u=t[t.length-1];return u&&(null==n||o||u.width+a+ra||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},y=0,v=c.length-1,b=0;y<=v&&b<=c.length-1;){var m=Math.floor((y+v)/2),g=k(d(m-1),2),x=g[0],O=g[1],w=k(d(m),1)[0];if(x||w||(y=m+1),x&&w&&(v=m-1),!x&&w){i=O;break}b++}return i||h},D=function(t){return[{words:i()(t)?[]:t.toString().split(T)}]},N=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!c.m.isSsr){var u=C({breakAll:i,children:n,style:o});return u?I({breakAll:i,children:n,maxLines:a,style:o},u.wordsWithComputedWidth,u.spaceWidth,e,r):D(n)}return D(n)},B="#808080",R=function(t){var e,r=t.x,o=void 0===r?0:r,i=t.y,c=void 0===i?0:i,s=t.lineHeight,f=void 0===s?"1em":s,p=t.capHeight,h=void 0===p?"0.71em":p,d=t.scaleToFit,y=void 0!==d&&d,v=t.textAnchor,b=t.verticalAnchor,m=t.fill,g=void 0===m?B:m,x=M(t,A),O=(0,n.useMemo)(function(){return N({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),w=x.dx,j=x.dy,k=x.angle,_=x.className,T=x.breakAll,C=M(x,P);if(!(0,u.vh)(o)||!(0,u.vh)(c))return null;var I=o+((0,u.Et)(w)?w:0),D=c+((0,u.Et)(j)?j:0);switch(void 0===b?"end":b){case"start":e=S("calc(".concat(h,")"));break;case"middle":e=S("calc(".concat((O.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:e=S("calc(".concat(O.length-1," * -").concat(f,")"))}var R=[];if(y){var L=O[0].width,z=x.width;R.push("scale(".concat(((0,u.Et)(z)?z/L:1)/L,")"))}return k&&R.push("rotate(".concat(k,", ").concat(I,", ").concat(D,")")),R.length&&(C.transform=R.join(" ")),n.createElement("text",E({},(0,l.J9)(C,!0),{x:I,y:D,className:(0,a.A)("recharts-text",_),textAnchor:void 0===v?"start":v,fill:g.includes("url")?B:g}),O.map(function(t,r){var o=t.words.join(T?"":" ");return n.createElement("tspan",{x:I,dy:0===r?e:f,key:"".concat(o,"-").concat(r)},o)}))}},27112:(t,e,r)=>{"use strict";r.d(e,{m:()=>F});var n=r(12115),o=r(66561),i=r.n(o),a=r(87727),u=r.n(a),c=r(43463),l=r(82954);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rc[n]+s?Math.max(f,c[n]):Math.max(p,c[n])}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function S(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,r,o,i,a,u,s,f,p,h,d,y,v,b,w,j,A,P,E=this,M=this.props,k=M.active,_=M.allowEscapeViewBox,T=M.animationDuration,C=M.animationEasing,I=M.children,D=M.coordinate,N=M.hasPayload,B=M.isAnimationActive,R=M.offset,L=M.position,z=M.reverseDirection,U=M.useTranslate3d,$=M.viewBox,F=M.wrapperStyle,W=(d=(t={allowEscapeViewBox:_,coordinate:D,offsetTopLeft:R,position:L,reverseDirection:z,tooltipBox:this.state.lastBoundingBox,useTranslate3d:U,viewBox:$}).allowEscapeViewBox,y=t.coordinate,v=t.offsetTopLeft,b=t.position,w=t.reverseDirection,j=t.tooltipBox,A=t.useTranslate3d,P=t.viewBox,j.height>0&&j.width>0&&y?(r=(e={translateX:p=O({allowEscapeViewBox:d,coordinate:y,key:"x",offsetTopLeft:v,position:b,reverseDirection:w,tooltipDimension:j.width,viewBox:P,viewBoxDimension:P.width}),translateY:h=O({allowEscapeViewBox:d,coordinate:y,key:"y",offsetTopLeft:v,position:b,reverseDirection:w,tooltipDimension:j.height,viewBox:P,viewBoxDimension:P.height}),useTranslate3d:A}).translateX,o=e.translateY,f={transform:e.useTranslate3d?"translate3d(".concat(r,"px, ").concat(o,"px, 0)"):"translate(".concat(r,"px, ").concat(o,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(i={translateX:p,translateY:h,coordinate:y}).coordinate,u=i.translateX,s=i.translateY,(0,c.A)(g,m(m(m(m({},"".concat(g,"-right"),(0,l.Et)(u)&&a&&(0,l.Et)(a.x)&&u>=a.x),"".concat(g,"-left"),(0,l.Et)(u)&&a&&(0,l.Et)(a.x)&&u=a.y),"".concat(g,"-top"),(0,l.Et)(s)&&a&&(0,l.Et)(a.y)&&s0;return n.createElement(_,{allowEscapeViewBox:i,animationDuration:a,animationEasing:u,isAnimationActive:f,active:o,coordinate:l,hasPayload:w,offset:p,position:y,reverseDirection:b,useTranslate3d:m,viewBox:g,wrapperStyle:x},(t=N(N({},this.props),{},{payload:O}),n.isValidElement(c)?n.cloneElement(c,t):"function"==typeof c?n.createElement(c,t):n.createElement(v,t)))}}],function(t,e){for(var r=0;r{"use strict";r.d(e,{W:()=>c});var n=r(12115),o=r(43463),i=r(12401),a=["children","className"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a),s=(0,o.A)("recharts-layer",c);return n.createElement("g",u({className:s},(0,i.J9)(l,!0),{ref:e}),r)})},27195:(t,e,r)=>{"use strict";r.d(e,{u:()=>c});var n=r(12115),o=r(43463),i=r(12401),a=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a),y=l||{width:r,height:c,x:0,y:0},v=(0,o.A)("recharts-surface",s);return n.createElement("svg",u({},(0,i.J9)(d,!0,"svg"),{className:v,width:r,height:c,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,p),n.createElement("desc",null,h),e)}},51634:(t,e,r)=>{"use strict";r.d(e,{DR:()=>g,pj:()=>w,rY:()=>M,yi:()=>E,Yp:()=>x,hj:()=>P,sk:()=>A,AF:()=>O,Nk:()=>S,$G:()=>j});var n=r(12115),o=r(37254),i=r(84631),a=r.n(i),u=r(7211),c=r.n(u),l=r(15188),s=r.n(l)()(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),f=r(82954),p=(0,n.createContext)(void 0),h=(0,n.createContext)(void 0),d=(0,n.createContext)(void 0),y=(0,n.createContext)({}),v=(0,n.createContext)(void 0),b=(0,n.createContext)(0),m=(0,n.createContext)(0),g=function(t){var e=t.state,r=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=t.clipPathId,u=t.children,c=t.width,l=t.height,f=s(i);return n.createElement(p.Provider,{value:r},n.createElement(h.Provider,{value:o},n.createElement(y.Provider,{value:i},n.createElement(d.Provider,{value:f},n.createElement(v.Provider,{value:a},n.createElement(b.Provider,{value:l},n.createElement(m.Provider,{value:c},u)))))))},x=function(){return(0,n.useContext)(v)},O=function(t){var e=(0,n.useContext)(p);null!=e||(0,o.A)(!1);var r=e[t];return null!=r||(0,o.A)(!1),r},w=function(){var t=(0,n.useContext)(p);return(0,f.lX)(t)},j=function(){var t=(0,n.useContext)(h);return a()(t,function(t){return c()(t.domain,Number.isFinite)})||(0,f.lX)(t)},S=function(t){var e=(0,n.useContext)(h);null!=e||(0,o.A)(!1);var r=e[t];return null!=r||(0,o.A)(!1),r},A=function(){return(0,n.useContext)(d)},P=function(){return(0,n.useContext)(y)},E=function(){return(0,n.useContext)(m)},M=function(){return(0,n.useContext)(b)}},12027:(t,e,r)=>{"use strict";r.d(e,{I:()=>V});var n=r(12115);function o(){}function i(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function a(t){this._context=t}function u(t){this._context=t}function c(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function s(t){this._context=t}function f(t){this._context=t}function p(t){return new f(t)}function h(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*n)/(n+o)))||0}function d(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function y(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function v(t){this._context=t}function b(t){this._context=new m(t)}function m(t){this._context=t}function g(t){this._context=t}function x(t){var e,r,n=t.length-1,o=Array(n),i=Array(n),a=Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(e=0,i[n-1]=(t[n]+o[n-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var w=r(1578),j=r(59497),S=r(79740);function A(t){return t[0]}function P(t){return t[1]}function E(t,e){var r=(0,j.A)(!0),n=null,o=p,i=null,a=(0,S.i)(u);function u(u){var c,l,s,f=(u=(0,w.A)(u)).length,p=!1;for(null==n&&(i=o(s=a())),c=0;c<=f;++c)!(c=f;--p)u.point(b[p],m[p]);u.lineEnd(),u.areaEnd()}}v&&(b[s]=+t(h,s,l),m[s]=+e(h,s,l),u.point(n?+n(h,s,l):b[s],r?+r(h,s,l):m[s]))}if(d)return u=null,d+""||null}function s(){return E().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?A:(0,j.A)(+t),e="function"==typeof e?e:void 0===e?(0,j.A)(0):(0,j.A)(+e),r="function"==typeof r?r:void 0===r?P:(0,j.A)(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.A)(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.A)(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,j.A)(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.A)(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.A)(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,j.A)(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:(0,j.A)(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),l):i},l}var k=r(94994),_=r.n(k),T=r(33196),C=r.n(T),I=r(43463),D=r(32230),N=r(12401),B=r(82954);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(){return(L=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{c:()=>c});var n=r(12115),o=r(43463),i=r(32230),a=r(12401);function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.d(e,{J:()=>h,M:()=>y});var n=r(12115),o=r(43463),i=r(29479),a=r(12401);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1,c=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),i+="L ".concat(t+r-c*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-c*s[2],",").concat(e+n)),i+="L ".concat(t+c*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+r-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-c*p,",").concat(e+n,"\n L ").concat(t+c*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},h=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},d={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,r=f(f({},d),t),u=(0,n.useRef)(),s=function(t){if(Array.isArray(t))return t}(e=(0,n.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{for(i=(r=r.call(t)).next;!(c=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=s[0],y=s[1];(0,n.useEffect)(function(){if(u.current&&u.current.getTotalLength)try{var t=u.current.getTotalLength();t&&y(t)}catch(t){}},[]);var v=r.x,b=r.y,m=r.width,g=r.height,x=r.radius,O=r.className,w=r.animationEasing,j=r.animationDuration,S=r.animationBegin,A=r.isAnimationActive,P=r.isUpdateAnimationActive;if(v!==+v||b!==+b||m!==+m||g!==+g||0===m||0===g)return null;var E=(0,o.A)("recharts-rectangle",O);return P?n.createElement(i.Ay,{canBegin:h>0,from:{width:m,height:g,x:v,y:b},to:{width:m,height:g,x:v,y:b},duration:j,animationEasing:w,isActive:P},function(t){var e=t.width,o=t.height,l=t.x,s=t.y;return n.createElement(i.Ay,{canBegin:h>0,from:"0px ".concat(-1===h?1:h,"px"),to:"".concat(h,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,isActive:A,easing:w},n.createElement("path",c({},(0,a.J9)(r,!0),{className:E,d:p(l,s,e,o,x),ref:u})))}):n.createElement("path",c({},(0,a.J9)(r,!0),{className:E,d:p(v,b,m,g,x)}))}},37852:(t,e,r)=>{"use strict";r.d(e,{h:()=>v});var n=r(12115),o=r(43463),i=r(12401),a=r(31172),u=r(82954);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(i>s),",\n ").concat(p.x,",").concat(p.y,"\n ");if(n>0){var d=(0,a.IZ)(e,r,n,i),y=(0,a.IZ)(e,r,n,s);h+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(e,",").concat(r," Z");return h},d=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,s=t.endAngle,f=(0,u.sA)(s-l),d=p({cx:e,cy:r,radius:o,angle:l,sign:f,cornerRadius:i,cornerIsExternal:c}),y=d.circleTangency,v=d.lineTangency,b=d.theta,m=p({cx:e,cy:r,radius:o,angle:s,sign:-f,cornerRadius:i,cornerIsExternal:c}),g=m.circleTangency,x=m.lineTangency,O=m.theta,w=c?Math.abs(l-s):Math.abs(l-s)-b-O;if(w<0)return a?"M ".concat(v.x,",").concat(v.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(-(2*i),",0\n "):h({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:s});var j="M ".concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(n>0){var S=p({cx:e,cy:r,radius:n,angle:l,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),A=S.circleTangency,P=S.lineTangency,E=S.theta,M=p({cx:e,cy:r,radius:n,angle:s,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),k=M.circleTangency,_=M.lineTangency,T=M.theta,C=c?Math.abs(l-s):Math.abs(l-s)-E-T;if(C<0&&0===i)return"".concat(j,"L").concat(e,",").concat(r,"Z");j+="L".concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"\n A").concat(n,",").concat(n,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else j+="L".concat(e,",").concat(r,"Z");return j},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(t){var e,r=f(f({},y),t),a=r.cx,c=r.cy,s=r.innerRadius,p=r.outerRadius,v=r.cornerRadius,b=r.forceCornerRadius,m=r.cornerIsExternal,g=r.startAngle,x=r.endAngle,O=r.className;if(p0&&360>Math.abs(g-x)?d({cx:a,cy:c,innerRadius:s,outerRadius:p,cornerRadius:Math.min(S,j/2),forceCornerRadius:b,cornerIsExternal:m,startAngle:g,endAngle:x}):h({cx:a,cy:c,innerRadius:s,outerRadius:p,startAngle:g,endAngle:x}),n.createElement("path",l({},(0,i.J9)(r,!0),{className:w,d:e,role:"img"}))}},94507:(t,e,r)=>{"use strict";r.d(e,{i:()=>I});var n=r(12115),o=r(94994),i=r.n(o);let a=Math.cos,u=Math.sin,c=Math.sqrt,l=Math.PI,s=2*l,f={draw(t,e){let r=c(e/l);t.moveTo(r,0),t.arc(0,0,r,0,s)}},p=c(1/3),h=2*p,d=u(l/10)/u(7*l/10),y=u(s/10)*d,v=-a(s/10)*d,b=c(3),m=c(3)/2,g=1/c(12),x=(g/2+1)*3;var O=r(59497),w=r(79740);c(3),c(3);var j=r(43463),S=r(12401);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var P=["type","size","sizeType"];function E(){return(E=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,P)),{},{type:o,size:u,sizeType:l}),p=s.className,h=s.cx,d=s.cy,y=(0,S.J9)(s,!0);return h===+h&&d===+d&&u===+u?n.createElement("path",E({},y,{className:(0,j.A)("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(d,")"),d:(e=_["symbol".concat(i()(o))]||f,(function(t,e){let r=null,n=(0,w.i)(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:(0,O.A)(t||f),e="function"==typeof e?e:(0,O.A)(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.A)(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.A)(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o})().type(e).size(C(u,l,o))())})):null};I.registerSymbol=function(t,e){_["symbol".concat(i()(t))]=e}},80582:(t,e,r)=>{"use strict";r.d(e,{yp:()=>C,GG:()=>z,NE:()=>I,nZ:()=>D,xQ:()=>N});var n=r(12115),o=r(33196),i=r.n(o),a=r(28499),u=r.n(a),c=r(45992),l=r.n(c),s=r(41436),f=r.n(s),p=r(89151),h=r(43463),d=r(29479),y=r(12401);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(){return(b=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:s,lowerWidth:f,height:p,x:c,y:l},duration:j,animationEasing:g,isActive:A},function(t){var e=t.upperWidth,i=t.lowerWidth,u=t.height,c=t.x,l=t.y;return n.createElement(d.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,easing:g},n.createElement("path",b({},(0,y.J9)(r,!0),{className:P,d:O(c,l,e,i,u),ref:o})))}):n.createElement("g",null,n.createElement("path",b({},(0,y.J9)(r,!0),{className:P,d:O(c,l,s,f,p)})))},S=r(37852),A=r(26941),P=r(94507),E=["option","shapeType","propTransformer","activeClassName","isActive"];function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,E);if((0,n.isValidElement)(r))e=(0,n.cloneElement)(r,_(_({},f),(0,n.isValidElement)(r)?r.props:r));else if(i()(r))e=r(f);else if(u()(r)&&!l()(r)){var p=(void 0===a?function(t,e){return _(_({},e),t)}:a)(r,f);e=n.createElement(T,{shapeType:o,elementProps:p})}else e=n.createElement(T,{shapeType:o,elementProps:f});return s?n.createElement(A.W,{className:void 0===c?"recharts-active-shape":c},e):e}function I(t,e){return null!=e&&"trapezoids"in t.props}function D(t,e){return null!=e&&"sectors"in t.props}function N(t,e){return null!=e&&"points"in t.props}function B(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function R(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function L(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function z(t){var e,r,n,o=t.activeTooltipItem,i=t.graphicalItem,a=t.itemData,u=(I(i,o)?e="trapezoids":D(i,o)?e="sectors":N(i,o)&&(e="points"),e),c=I(i,o)?null===(r=o.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:D(i,o)?null===(n=o.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:N(i,o)?o.payload:{},l=a.filter(function(t,e){var r=f()(c,t),n=i.props[u].filter(function(t){var e;return(I(i,o)?e=B:D(i,o)?e=R:N(i,o)&&(e=L),e)(t,o)}),a=i.props[u].indexOf(n[n.length-1]);return r&&e===a});return a.indexOf(l[l.length-1])}},94430:(t,e,r)=>{"use strict";r.d(e,{P2:()=>O,bx:()=>w,pr:()=>b,sl:()=>m,vh:()=>g});var n=r(23636),o=r.n(n),i=r(7211),a=r.n(i),u=r(95286),c=r(12401),l=r(82954),s=r(87162);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var r=0;r0&&(M=Math.min((t||0)-(k[e-1]||0),M))}),Number.isFinite(M)){var _=M/E,T="vertical"===g.layout?r.height:r.width;if("gap"===g.padding&&(c=_*T/2),"no-gap"===g.padding){var C=(0,l.F4)(t.barCategoryGap,_*T),I=_*T/2;c=I-C-(I-C)/T*C}}}s="xAxis"===n?[r.left+(j.left||0)+(c||0),r.left+r.width-(j.right||0)-(c||0)]:"yAxis"===n?"horizontal"===f?[r.top+r.height-(j.bottom||0),r.top+(j.top||0)]:[r.top+(j.top||0)+(c||0),r.top+r.height-(j.bottom||0)-(c||0)]:g.range,A&&(s=[s[1],s[0]]);var D=(0,u.W7)(g,o,b),N=D.scale,B=D.realScaleType;N.domain(O).range(s),(0,u.YB)(N);var R=(0,u.w7)(N,d(d({},g),{},{realScaleType:B}));"xAxis"===n?(m="top"===x&&!S||"bottom"===x&&S,p=r.left,h=v[P]-m*g.height):"yAxis"===n&&(m="left"===x&&!S||"right"===x&&S,p=v[P]-m*g.width,h=r.top);var L=d(d(d({},g),R),{},{realScaleType:B,x:p,y:h,scale:N,width:"xAxis"===n?r.width:g.width,height:"yAxis"===n?r.height:g.height});return L.bandSize=(0,u.Hj)(L,R),g.hide||"xAxis"!==n?g.hide||(v[P]+=(m?-1:1)*L.width):v[P]+=(m?-1:1)*L.height,d(d({},i),{},y({},a,L))},{})},m=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},g=function(t){return m({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},x=function(){var t,e;function r(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&p(r.prototype,t),e&&p(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();y(x,"EPS",1e-4);var O=function(t){var e=Object.keys(t).reduce(function(e,r){return d(d({},e),{},y({},r,x.create(t[r])))},{});return d(d({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return o()(t,function(t,r){return e[r].apply(t,{bandAware:n,position:i})})},isInRange:function(t){return a()(t,function(t,r){return e[r].isInRange(t)})}})},w=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(n%180+180)%180*Math.PI/180,i=Math.atan(r/e);return Math.abs(o>i&&o{"use strict";r.d(e,{s0:()=>n5,gH:()=>n0,YB:()=>oo,HQ:()=>or,xi:()=>oi,Hj:()=>og,BX:()=>n3,tA:()=>n2,DW:()=>oh,y2:()=>op,nb:()=>of,PW:()=>n7,Ay:()=>nQ,vf:()=>n6,Mk:()=>oy,Ps:()=>n1,Mn:()=>ol,kA:()=>od,Rh:()=>ot,w7:()=>os,zb:()=>oO,kr:()=>nZ,_L:()=>n8,KC:()=>ox,A1:()=>n9,W7:()=>on,AQ:()=>om,_f:()=>oa});var n,o,i,a,u,c,l,s={};r.r(s),r.d(s,{scaleBand:()=>f.A,scaleDiverging:()=>function t(){var e=tN(rZ()(tv));return e.copy=function(){return rG(e,t())},tj.K.apply(e,arguments)},scaleDivergingLog:()=>function t(){var e=tq(rZ()).domain([.1,1,10]);return e.copy=function(){return rG(e,t()).base(e.base())},tj.K.apply(e,arguments)},scaleDivergingPow:()=>rQ,scaleDivergingSqrt:()=>r0,scaleDivergingSymlog:()=>function t(){var e=tV(rZ());return e.copy=function(){return rG(e,t()).constant(e.constant())},tj.K.apply(e,arguments)},scaleIdentity:()=>function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,td),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,td):[0,1],tN(n)},scaleImplicit:()=>tY.h,scaleLinear:()=>tB,scaleLog:()=>function t(){let e=tq(tO()).domain([1,10]);return e.copy=()=>tx(e,t()).base(e.base()),tj.C.apply(e,arguments),e},scaleOrdinal:()=>tY.A,scalePoint:()=>f.z,scalePow:()=>tQ,scaleQuantile:()=>function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=Array(e-1);++t=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[A(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],efunction t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function u(t){return null!=t&&t<=t?a[A(i,t,0,o)]:e}function c(){var t=-1;for(i=Array(o);++t=o?[i[o-1],n]:[i[e-1],i[e]]},u.unknown=function(t){return arguments.length&&(e=t),u},u.thresholds=function(){return i.slice()},u.copy=function(){return t().domain([r,n]).range(a).unknown(e)},tj.C.apply(tN(u),arguments)},scaleRadial:()=>function t(){var e,r=tw(),n=[0,1],o=!1;function i(t){var n,i=Math.sign(n=r(t))*Math.sqrt(Math.abs(n));return isNaN(i)?e:o?Math.round(i):i}return i.invert=function(t){return r.invert(t1(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,td)).map(t1)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},tj.C.apply(i,arguments),tN(i)},scaleSequential:()=>function t(){var e=tN(rY()(tv));return e.copy=function(){return rG(e,t())},tj.K.apply(e,arguments)},scaleSequentialLog:()=>function t(){var e=tq(rY()).domain([1,10]);return e.copy=function(){return rG(e,t()).base(e.base())},tj.K.apply(e,arguments)},scaleSequentialPow:()=>rK,scaleSequentialQuantile:()=>function t(){var e=[],r=tv;function n(t){if(null!=t&&!isNaN(t=+t))return r((A(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r=+r)||e.push(r);return e.sort(g),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e=+e))){if(e<=0||n<2)return t3(t);if(e>=1)return t2(t);var n,o=(n-1)*e,i=Math.floor(o),a=t2((function t(e,r,n=0,o=1/0,i){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),o=Math.floor(Math.min(e.length-1,o)),!(n<=r&&r<=o))return e;for(i=void 0===i?t5:function(t=g){if(t===g)return t5;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);o>n;){if(o-n>600){let a=o-n+1,u=r-n+1,c=Math.log(a),l=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1),f=Math.max(n,Math.floor(r-u*l/a+s)),p=Math.min(o,Math.floor(r+(a-u)*l/a+s));t(e,r,f,p,i)}let a=e[r],u=n,c=o;for(t4(e,n,r),i(e[o],a)>0&&t4(e,n,o);ui(e[u],a);)++u;for(;i(e[c],a)>0;)--c}0===i(e[n],a)?t4(e,n,c):t4(e,++c,o),c<=r&&(n=c+1),r<=c&&(o=c-1)}return e})(t,i).subarray(0,i+1));return a+(t3(t.subarray(i+1))-a)*(o-i)}})(e,n/t))},n.copy=function(){return t(r).domain(e)},tj.K.apply(n,arguments)},scaleSequentialSqrt:()=>rJ,scaleSequentialSymlog:()=>function t(){var e=tV(rY());return e.copy=function(){return rG(e,t()).constant(e.constant())},tj.K.apply(e,arguments)},scaleSqrt:()=>t0,scaleSymlog:()=>function t(){var e=tV(tO());return e.copy=function(){return tx(e,t()).constant(e.constant())},tj.C.apply(e,arguments)},scaleThreshold:()=>function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[A(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(o=Math.min((r=Array.from(t)).length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},tj.C.apply(i,arguments)},scaleTime:()=>rH,scaleUtc:()=>rV,tickFormat:()=>tD});var f=r(79702);let p=Math.sqrt(50),h=Math.sqrt(10),d=Math.sqrt(2);function y(t,e,r){let n,o,i;let a=(e-t)/Math.max(0,r),u=Math.floor(Math.log10(a)),c=a/Math.pow(10,u),l=c>=p?10:c>=h?5:c>=d?2:1;return(u<0?(n=Math.round(t*(i=Math.pow(10,-u)/l)),o=Math.round(e*i),n/ie&&--o,i=-i):(n=Math.round(t/(i=Math.pow(10,u)*l)),o=Math.round(e/i),n*ie&&--o),o0))return[];if(t===e)return[t];let n=e=o))return[];let u=i-o+1,c=Array(u);if(n){if(a<0)for(let t=0;te?1:t>=e?0:NaN}function x(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function O(t){let e,r,n;function o(t,n,i=0,a=t.length){if(i>>1;0>r(t[e],n)?i=e+1:a=e}while(ig(t(e),r),n=(e,r)=>t(e)-r):(e=t===g||t===x?t:w,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){let a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o>>1;0>=r(t[e],n)?o=e+1:i=e}while(o>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?q(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?q(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=I.exec(t))?new H(e[1],e[2],e[3],1):(e=D.exec(t))?new H(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?q(e[1],e[2],e[3],e[4]):(e=B.exec(t))?q(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=R.exec(t))?Z(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?Z(e[1],e[2]/100,e[3]/100,e[4]):z.hasOwnProperty(t)?W(z[t]):"transparent"===t?new H(NaN,NaN,NaN,0):null}function W(t){return new H(t>>16&255,t>>8&255,255&t,1)}function q(t,e,r,n){return n<=0&&(t=e=r=NaN),new H(t,e,r,n)}function X(t,e,r,n){var o;return 1==arguments.length?((o=t)instanceof M||(o=F(o)),o)?new H((o=o.rgb()).r,o.g,o.b,o.opacity):new H:new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function V(){return`#${J(this.r)}${J(this.g)}${J(this.b)}`}function Y(){let t=G(this.opacity);return`${1===t?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===t?")":`, ${t})`}`}function G(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function K(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function J(t){return((t=K(t))<16?"0":"")+t.toString(16)}function Z(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new tt(t,e,r,n)}function Q(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);if(t instanceof M||(t=F(t)),!t)return new tt;if(t instanceof tt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+(r0&&c<1?0:a,new tt(a,u,c,t.opacity)}function tt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function te(t){return(t=(t||0)%360)<0?t+360:t}function tr(t){return Math.max(0,Math.min(1,t||0))}function tn(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function to(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}P(M,F,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Q(this).formatHsl()},formatRgb:$,toString:$}),P(H,X,E(M,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new H(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new H(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new H(K(this.r),K(this.g),K(this.b),G(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatHex8:function(){return`#${J(this.r)}${J(this.g)}${J(this.b)}${J((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:Y,toString:Y})),P(tt,function(t,e,r,n){return 1==arguments.length?Q(t):new tt(t,e,r,null==n?1:n)},E(M,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new H(tn(t>=240?t-240:t+120,o,n),tn(t,o,n),tn(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new tt(te(this.h),tr(this.s),tr(this.l),G(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=G(this.opacity);return`${1===t?"hsl(":"hsla("}${te(this.h)}, ${100*tr(this.s)}%, ${100*tr(this.l)}%${1===t?")":`, ${t})`}`}}));let ti=t=>()=>t;function ta(t,e){var r=e-t;return r?function(e){return t+e*r}:ti(isNaN(t)?e:t)}let tu=function t(e){var r,n=1==(r=+(r=e))?ta:function(t,e){var n,o,i;return e-t?(n=t,o=e,n=Math.pow(n,i=r),o=Math.pow(o,i)-n,i=1/i,function(t){return Math.pow(n+t*o,i)}):ti(isNaN(t)?e:t)};function o(t,e){var r=n((t=X(t)).r,(e=X(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return o.gamma=t,o}(1);function tc(t){return function(e){var r,n,o=e.length,i=Array(o),a=Array(o),u=Array(o);for(r=0;r=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,u=nu&&(a=e.slice(u,a),l[c]?l[c]+=a:l[++c]=a),(o=o[0])===(i=i[0])?l[c]?l[c]+=i:l[++c]=i:(l[++c]=null,s.push({i:c,x:tl(o,i)})),u=tf.lastIndex;return ue&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=c>2?tg:tm,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(u,a.map(t),tl)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,td),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=th,s()},f.clamp=function(t){return arguments.length?(l=!!t||tv,s()):l!==tv},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function tw(){return tO()(tv,tv)}var tj=r(88258),tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tA(t){var e;if(!(e=tS.exec(t)))throw Error("invalid format: "+t);return new tP({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tP(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tE(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function tM(t){return(t=tE(Math.abs(t)))?t[1]:NaN}function tk(t,e){var r=tE(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}tA.prototype=tP.prototype,tP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let t_={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tk(100*t,e),r:tk,s:function(t,e){var r=tE(t,e);if(!r)return t+"";var o=r[0],i=r[1],a=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=o.length;return a===u?o:a>u?o+Array(a-u+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+tE(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tT(t){return t}var tC=Array.prototype.map,tI=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tD(t,e,r,n){var o,u,c=m(t,e,r);switch((n=tA(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tM(l)/3)))-tM(Math.abs(c))))||(n.precision=u),a(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(u=Math.max(0,tM(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(o=Math.abs(o=c)))-tM(o))+1)||(n.precision=u-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(u=Math.max(0,-tM(Math.abs(c))))||(n.precision=u-("%"===n.type)*2)}return i(n)}function tN(t){var e=t.domain;return t.ticks=function(t){var r=e();return v(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return tD(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l0;){if((o=b(c,l,r))===n)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else if(o<0)c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o;else break;n=o}return t},t}function tB(){var t=tw();return t.copy=function(){return tx(t,tB())},tj.C.apply(t,arguments),tN(t)}function tR(t,e){t=t.slice();var r,n=0,o=t.length-1,i=t[n],a=t[o];return a-t(-e,r)}function tq(t){let e,r;let n=t(tL,tz),o=n.domain,a=10;function u(){var i,u;return e=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),t=>Math.log(t)/i),r=10===(u=a)?tF:u===Math.E?Math.exp:t=>Math.pow(u,t),o()[0]<0?(e=tW(e),r=tW(r),t(tU,t$)):t(tL,tz),n}return n.base=function(t){return arguments.length?(a=+t,u()):a},n.domain=function(t){return arguments.length?(o(t),u()):o()},n.ticks=t=>{let n,i;let u=o(),c=u[0],l=u[u.length-1],s=l0){for(;f<=p;++f)for(n=1;nl)break;d.push(i)}}else for(;f<=p;++f)for(n=a-1;n>=1;--n)if(!((i=f>0?n/r(-f):n*r(f))l)break;d.push(i)}2*d.length{if(null==t&&(t=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=tA(o)).precision||(o.trim=!0),o=i(o)),t===1/0)return o;let u=Math.max(1,a*t/n.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*ao(tR(o(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),n}function tX(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tH(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tV(t){var e=1,r=t(tX(1),tH(e));return r.constant=function(r){return arguments.length?t(tX(e=+r),tH(e)):e},tN(r)}i=(o=function(t){var e,r,o,i=void 0===t.grouping||void 0===t.thousands?tT:(e=tC.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return i.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?tT:(o=tC.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return o[+t]})}),s=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",p=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=tA(t)).fill,r=t.align,o=t.sign,h=t.symbol,d=t.zero,y=t.width,v=t.comma,b=t.precision,m=t.trim,g=t.type;"n"===g?(v=!0,g="g"):t_[g]||(void 0===b&&(b=12),m=!0,g="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var x="$"===h?a:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",O="$"===h?u:/[%p]/.test(g)?s:"",w=t_[g],j=/[defgprs%]/.test(g);function S(t){var a,u,s,h=x,S=O;if("c"===g)S=w(t)+S,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?p:w(Math.abs(t),b),m&&(t=function(t){e:for(var e,r=t.length,n=1,o=-1;n0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==o&&(A=!1),h=(A?"("===o?o:f:"-"===o||"("===o?"":o)+h,S=("s"===g?tI[8+n/3]:"")+S+(A&&"("===o?")":""),j){for(a=-1,u=t.length;++a(s=t.charCodeAt(a))||s>57){S=(46===s?c+t.slice(a+1):t.slice(a))+S,t=t.slice(0,a);break}}}v&&!d&&(t=i(t,1/0));var P=h.length+t.length+S.length,E=P>1)+h+t+S+E.slice(P);break;default:t=E+h+t+S}return l(t)}return b=void 0===b?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var r=h(((t=tA(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(tM(e)/3))),o=Math.pow(10,-n),i=tI[8+n/3];return function(t){return r(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;var tY=r(35708);function tG(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tK(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tJ(t){return t<0?-t*t:t*t}function tZ(t){var e=t(tv,tv),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(tv,tv):.5===r?t(tK,tJ):t(tG(r),tG(1/r)):r},tN(e)}function tQ(){var t=tZ(tO());return t.copy=function(){return tx(t,tQ()).exponent(t.exponent())},tj.C.apply(t,arguments),t}function t0(){return tQ.apply(null,arguments).exponent(.5)}function t1(t){return Math.sign(t)*t*t}function t2(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r=o)&&(r=o)}return r}function t3(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function t5(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function t4(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}let t9=new Date,t6=new Date;function t8(t,e,r,n){function o(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{let e=o(t),r=o.ceil(t);return t-e(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{let a;let u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r0))return u;do u.push(a=new Date(+r)),e(r,i),t(r);while(at8(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t){if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}}),r&&(o.count=(e,n)=>(t9.setTime(+e),t6.setTime(+n),t(t9),t(t6),Math.floor(r(t9,t6))),o.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null),o}let t7=t8(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);t7.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?t8(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):t7:null,t7.range;let et=t8(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());et.range;let ee=t8(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());ee.range;let er=t8(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());er.range;let en=t8(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());en.range;let eo=t8(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());eo.range;let ei=t8(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);ei.range;let ea=t8(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);ea.range;let eu=t8(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function ec(t){return t8(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}eu.range;let el=ec(0),es=ec(1),ef=ec(2),ep=ec(3),eh=ec(4),ed=ec(5),ey=ec(6);function ev(t){return t8(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}el.range,es.range,ef.range,ep.range,eh.range,ed.range,ey.range;let eb=ev(0),em=ev(1),eg=ev(2),ex=ev(3),eO=ev(4),ew=ev(5),ej=ev(6);eb.range,em.range,eg.range,ex.range,eO.range,ew.range,ej.range;let eS=t8(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());eS.range;let eA=t8(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());eA.range;let eP=t8(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());eP.every=t=>isFinite(t=Math.floor(t))&&t>0?t8(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,eP.range;let eE=t8(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function eM(t,e,r,n,o,i){let a=[[et,1,1e3],[et,5,5e3],[et,15,15e3],[et,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function u(e,r,n){let o=Math.abs(r-e)/n,i=O(([,,t])=>t).right(a,o);if(i===a.length)return t.every(m(e/31536e6,r/31536e6,n));if(0===i)return t7.every(Math.max(m(e,r,n),1));let[u,c]=a[o/a[i-1][2]isFinite(t=Math.floor(t))&&t>0?t8(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,eE.range;let[ek,e_]=eM(eE,eA,eb,eu,eo,er),[eT,eC]=eM(eP,eS,el,ei,en,ee);function eI(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function eD(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eN(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var eB={"-":"",_:" ",0:"0"},eR=/^\s*\d+/,eL=/^%/,ez=/[\\^$*+?|[\]().{}]/g;function eU(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i[t.toLowerCase(),e]))}function eq(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function eX(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eH(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eV(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function eY(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function eG(t,e,r){var n=eR.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function eK(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eJ(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function eZ(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function eQ(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function e0(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function e1(t,e,r){var n=eR.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function e2(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function e3(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function e5(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function e4(t,e,r){var n=eR.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function e9(t,e,r){var n=eR.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function e6(t,e,r){var n=eL.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function e8(t,e,r){var n=eR.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function e7(t,e,r){var n=eR.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function rt(t,e){return eU(t.getDate(),e,2)}function re(t,e){return eU(t.getHours(),e,2)}function rr(t,e){return eU(t.getHours()%12||12,e,2)}function rn(t,e){return eU(1+ei.count(eP(t),t),e,3)}function ro(t,e){return eU(t.getMilliseconds(),e,3)}function ri(t,e){return ro(t,e)+"000"}function ra(t,e){return eU(t.getMonth()+1,e,2)}function ru(t,e){return eU(t.getMinutes(),e,2)}function rc(t,e){return eU(t.getSeconds(),e,2)}function rl(t){var e=t.getDay();return 0===e?7:e}function rs(t,e){return eU(el.count(eP(t)-1,t),e,2)}function rf(t){var e=t.getDay();return e>=4||0===e?eh(t):eh.ceil(t)}function rp(t,e){return t=rf(t),eU(eh.count(eP(t),t)+(4===eP(t).getDay()),e,2)}function rh(t){return t.getDay()}function rd(t,e){return eU(es.count(eP(t)-1,t),e,2)}function ry(t,e){return eU(t.getFullYear()%100,e,2)}function rv(t,e){return eU((t=rf(t)).getFullYear()%100,e,2)}function rb(t,e){return eU(t.getFullYear()%1e4,e,4)}function rm(t,e){var r=t.getDay();return eU((t=r>=4||0===r?eh(t):eh.ceil(t)).getFullYear()%1e4,e,4)}function rg(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+eU(e/60|0,"0",2)+eU(e%60,"0",2)}function rx(t,e){return eU(t.getUTCDate(),e,2)}function rO(t,e){return eU(t.getUTCHours(),e,2)}function rw(t,e){return eU(t.getUTCHours()%12||12,e,2)}function rj(t,e){return eU(1+ea.count(eE(t),t),e,3)}function rS(t,e){return eU(t.getUTCMilliseconds(),e,3)}function rA(t,e){return rS(t,e)+"000"}function rP(t,e){return eU(t.getUTCMonth()+1,e,2)}function rE(t,e){return eU(t.getUTCMinutes(),e,2)}function rM(t,e){return eU(t.getUTCSeconds(),e,2)}function rk(t){var e=t.getUTCDay();return 0===e?7:e}function r_(t,e){return eU(eb.count(eE(t)-1,t),e,2)}function rT(t){var e=t.getUTCDay();return e>=4||0===e?eO(t):eO.ceil(t)}function rC(t,e){return t=rT(t),eU(eO.count(eE(t),t)+(4===eE(t).getUTCDay()),e,2)}function rI(t){return t.getUTCDay()}function rD(t,e){return eU(em.count(eE(t)-1,t),e,2)}function rN(t,e){return eU(t.getUTCFullYear()%100,e,2)}function rB(t,e){return eU((t=rT(t)).getUTCFullYear()%100,e,2)}function rR(t,e){return eU(t.getUTCFullYear()%1e4,e,4)}function rL(t,e){var r=t.getUTCDay();return eU((t=r>=4||0===r?eO(t):eO.ceil(t)).getUTCFullYear()%1e4,e,4)}function rz(){return"+0000"}function rU(){return"%"}function r$(t){return+t}function rF(t){return Math.floor(+t/1e3)}function rW(t){return new Date(t)}function rq(t){return t instanceof Date?+t:+new Date(+t)}function rX(t,e,r,n,o,i,a,u,c,l){var s=tw(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),b=l("%a %d"),m=l("%b %d"),g=l("%B"),x=l("%Y");function O(t){return(c(t)1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:r$,s:rF,S:rc,u:rl,U:rs,V:rp,w:rh,W:rd,x:null,X:null,y:ry,Y:rb,Z:rg,"%":rU},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:rx,e:rx,f:rA,g:rB,G:rL,H:rO,I:rw,j:rj,L:rS,m:rP,M:rE,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:r$,s:rF,S:rM,u:rk,U:r_,V:rC,w:rI,W:rD,x:null,X:null,y:rN,Y:rR,Z:rz,"%":rU},O={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=b.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:e0,e:e0,f:e9,g:eK,G:eG,H:e2,I:e2,j:e1,L:e4,m:eQ,M:e3,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:eZ,Q:e8,s:e7,S:e5,u:eX,U:eH,V:eV,w:eq,W:eY,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:eK,Y:eG,Z:eJ,"%":e6};function w(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++u53)return null;"w"in i||(i.w=1),"Z"in i?(n=(o=(n=eD(eN(i.y,0,1))).getUTCDay())>4||0===o?em.ceil(n):em(n),n=ea.offset(n,(i.V-1)*7),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(n=(o=(n=eI(eN(i.y,0,1))).getDay())>4||0===o?es.ceil(n):es(n),n=ei.offset(n,(i.V-1)*7),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?eD(eN(i.y,0,1)).getUTCDay():eI(eN(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,eD(i)):eI(i)}}function S(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a=c)return -1;if(37===(o=e.charCodeAt(a++))){if(!(i=O[(o=e.charAt(a++))in eB?e.charAt(a++):o])||(n=i(t,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}return g.x=w(r,g),g.X=w(n,g),g.c=w(e,g),x.x=w(r,x),x.X=w(n,x),x.c=w(e,x),{format:function(t){var e=w(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,u.parse,l=u.utcFormat,u.utcParse;var r2=r(1578),r3=r(59497);function r5(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function r4(t,e){return t[e]}function r9(t){let e=[];return e.key=t,e}var r6=r(77066),r8=r.n(r6),r7=r(65136),nt=r.n(r7),ne=r(87727),nr=r.n(ne),nn=r(33196),no=r.n(nn),ni=r(57957),na=r.n(ni),nu=r(50920),nc=r.n(nu),nl=r(76251),ns=r.n(nl),nf=r(58845),np=r.n(nf),nh=r(94994),nd=r.n(nh),ny=r(41436),nv=r.n(ny),nb=r(66561),nm=r.n(nb),ng=r(26795),nx=r.n(ng);function nO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=e?r.apply(void 0,o):t(e-a,nA(function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var r=0,n=Array(e);rn&&(o=n,i=r),[o,i]}function nL(t,e,r){if(t.lte(0))return new(nx())(0);var n=nC.getDigitCount(t.toNumber()),o=new(nx())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new(nx())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new(nx())(Math.ceil(u))}function nz(t,e,r){var n=1,o=new(nx())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(nx())(10).pow(nC.getDigitCount(t)-1),o=new(nx())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(nx())(Math.floor(t)))}else 0===t?o=new(nx())(Math.floor((e-1)/2)):r||(o=new(nx())(Math.floor(t)));var a=Math.floor((e-1)/2);return nk(nM(function(t){return o.add(new(nx())(t-a).mul(n)).toNumber()}),nE)(0,e)}var nU=nT(function(t){var e=nD(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=nD(nR([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(nI(nE(0,o-1).map(function(){return 1/0}))):[].concat(nI(nE(0,o-1).map(function(){return-1/0})),[l]);return r>n?n_(s):s}if(c===l)return nz(c,o,i);var f=function t(e,r,n,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new(nx())(0),tickMin:new(nx())(0),tickMax:new(nx())(0)};var u=nL(new(nx())(r).sub(e).div(n-1),o,a),c=Math.ceil((i=e<=0&&r>=0?new(nx())(0):(i=new(nx())(e).add(r).div(2)).sub(new(nx())(i).mod(u))).sub(e).div(u).toNumber()),l=Math.ceil(new(nx())(r).sub(i).div(u).toNumber()),s=c+l+1;return s>n?t(e,r,n,o,a+1):(s0?l+(n-s):l,c=r>0?c:c+(n-s)),{step:u,tickMin:i.sub(new(nx())(c).mul(u)),tickMax:i.add(new(nx())(l).mul(u))})}(c,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=nC.rangeStep(h,d.add(new(nx())(.1).mul(p)),p);return r>n?n_(y):y});nT(function(t){var e=nD(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=nD(nR([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[r,n];if(c===l)return nz(c,o,i);var s=nL(new(nx())(l).sub(c).div(a-1),i,0),f=nk(nM(function(t){return new(nx())(c).add(new(nx())(t).mul(s)).toNumber()}),nE)(0,a).filter(function(t){return t>=c&&t<=l});return r>n?n_(f):f});var n$=nT(function(t,e){var r=nD(t,2),n=r[0],o=r[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=nD(nR([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var l=Math.max(e,2),s=nL(new(nx())(c).sub(u).div(l-1),i,0),f=[].concat(nI(nC.rangeStep(new(nx())(u),new(nx())(c).sub(new(nx())(.99).mul(s)),s)),[c]);return n>o?n_(f):f}),nF=r(67820),nW=r(82954),nq=r(12401),nX=r(46484);function nH(t){return(nH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nV(t){return function(t){if(Array.isArray(t))return nY(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return nY(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nY(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nY(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var u=o.range,c=0;c0?n[c-1].coordinate:n[a-1].coordinate,s=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if((0,nW.sA)(s-l)!==(0,nW.sA)(f-s)){var h=[];if((0,nW.sA)(f-s)===(0,nW.sA)(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[c].index;break}}else{var b=Math.min(l,f),m=Math.max(l,f);if(t>(b+s)/2&&t<=(m+s)/2){i=n[c].index;break}}}else for(var g=0;g0&&g(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i},n1=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?nK(nK({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},n2=function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),u=0,c=a.length;u=0});if(v&&v.length){var b=v[0].type.defaultProps,m=void 0!==b?nK(nK({},b),v[0].props):v[0].props,g=m.barSize,x=m[y];i[x]||(i[x]=[]);var O=nr()(g)?e:g;i[x].push({item:v[0],stackList:v.slice(1),barSize:nr()(O)?void 0:(0,nW.F4)(O,r,0)})}}return i},n3=function(t){var e,r=t.barGap,n=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=void 0===i?[]:i,u=t.maxBarSize,c=a.length;if(c<1)return null;var l=(0,nW.F4)(r,o,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/c,h=a.reduce(function(t,e){return t+e.barSize||0},0);(h+=(c-1)*l)>=o&&(h-=(c-1)*l,l=0),h>=o&&p>0&&(f=!0,p*=.9,h=c*p);var d={offset:((o-h)/2>>0)-l,size:0};e=a.reduce(function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(nV(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:d})}),n},s)}else{var y=(0,nW.F4)(n,o,0,!0);o-2*y-(c-1)*l<=0&&(l=0);var v=(o-2*y-(c-1)*l)/c;v>1&&(v>>=0);var b=u===+u?Math.min(v,u):v;e=a.reduce(function(t,e,r){var n=[].concat(nV(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-b)/2,size:b}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},s)}return e},n5=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=(0,nX.g)({children:o,legendWidth:u});if(c){var l=n||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&(0,nW.Et)(t[p]))return nK(nK({},t),{},nJ({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&(0,nW.Et)(t[h]))return nK(nK({},t),{},nJ({},h,t[h]+(f||0)))}return t},n4=function(t,e,r,n,o){var i=e.props.children,a=(0,nq.aS)(i,nF.u).filter(function(t){var e;return e=t.props.direction,!!nr()(o)||("horizontal"===n?"yAxis"===o:"vertical"===n||"x"===e?"xAxis"===o:"y"!==e||"yAxis"===o)});if(a&&a.length){var u=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=nZ(e,r);if(nr()(n))return t;var o=Array.isArray(n)?[nt()(n),r8()(n)]:[n,n],i=u.reduce(function(t,r){var n=nZ(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]},[1/0,-1/0])}return null},n9=function(t,e,r,n,o){var i=e.map(function(e){return n4(t,e,r,o,n)}).filter(function(t){return!nr()(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},n6=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&n4(t,e,i,n)||nQ(t,i,r,o)});if("number"===r)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return i.reduce(function(t,e){for(var r=0,n=e.length;r=2?2*(0,nW.sA)(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(o?o.indexOf(t):t)+c,value:t,offset:c}}).filter(function(t){return!np()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+c,value:t,offset:c}}):n.domain().map(function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}})},oe=new WeakMap,or=function(t,e){if("function"!=typeof e)return t;oe.has(t)||oe.set(t,new WeakMap);var r=oe.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},on=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:tB(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:tB(),realScaleType:"linear"};if(na()(n)){var u="scale".concat(nd()(n));return{scale:(s[u]||f.z)(),realScaleType:s[u]?u:"point"}}return no()(n)?{scale:n}:{scale:f.z(),realScaleType:"point"}},oo=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-1e-4,i=Math.max(n[0],n[1])+1e-4,a=t(e[0]),u=t(e[r-1]);(ai||ui)&&t.domain([e[0],e[r-1]])}},oi=function(t,e){if(!t)return null;for(var r=0,n=t.length;rn)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i0){for(var r,n=0,o=t[e[0]],i=o.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},oc=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=ou[r];return(function(){var t=(0,r3.A)([]),e=r5,r=r1,n=r4;function o(o){var i,a,u=Array.from(t.apply(this,arguments),r9),c=u.length,l=-1;for(let t of o)for(i=0,++l;i=0?0:o<0?o:n}return r[0]},od=function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?nK(nK({},t.type.defaultProps),t.props):t.props).stackId;if((0,nW.vh)(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null},oy=function(t,e,r){return Object.keys(t).reduce(function(n,o){var i=t[o].stackedData.reduce(function(t,n){var o=n.slice(e,r+1).reduce(function(t,e){return[nt()(e.concat([t[0]]).filter(nW.Et)),r8()(e.concat([t[1]]).filter(nW.Et))]},[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},ov=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ob=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,om=function(t,e,r){if(no()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if((0,nW.Et)(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(ov.test(t[0])){var o=+ov.exec(t[0])[1];n[0]=e[0]-o}else no()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if((0,nW.Et)(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(ob.test(t[1])){var i=+ob.exec(t[1])[1];n[1]=e[1]+i}else no()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},og=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=nm()(e,function(t){return t.coordinate}),i=1/0,a=1,u=o.length;a{"use strict";r.d(e,{A3:()=>f,Pu:()=>s});var n=r(27878);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||n.m.isSsr)return{width:0,height:0};var o=(Object.keys(e=a({},r)).forEach(function(t){e[t]||delete e[t]}),e),i=JSON.stringify({text:t,copyStyle:o});if(u.widthCache[i])return u.widthCache[i];try{var s=document.getElementById(l);s||((s=document.createElement("span")).setAttribute("id",l),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=a(a({},c),o);Object.assign(s.style,f),s.textContent="".concat(t);var p=s.getBoundingClientRect(),h={width:p.width,height:p.height};return u.widthCache[i]=h,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),h}catch(t){return{width:0,height:0}}},f=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},82954:(t,e,r)=>{"use strict";r.d(e,{CG:()=>g,Dj:()=>x,Et:()=>h,F4:()=>b,NF:()=>v,_3:()=>p,eP:()=>O,lX:()=>m,sA:()=>f,vh:()=>d});var n=r(57957),o=r.n(n),i=r(58845),a=r.n(i),u=r(50920),c=r.n(u),l=r(11353),s=r.n(l),f=function(t){return 0===t?0:t>0?1:-1},p=function(t){return o()(t)&&t.indexOf("%")===t.length-1},h=function(t){return s()(t)&&!a()(t)},d=function(t){return h(t)||o()(t)},y=0,v=function(t){var e=++y;return"".concat(t||"").concat(e)},b=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(t)&&!o()(t))return n;if(p(t)){var u=t.indexOf("%");r=e*parseFloat(t.slice(0,u))/100}else r=+t;return a()(r)&&(r=n),i&&r>e&&(r=e),r},m=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},g=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n{"use strict";r.d(e,{m:()=>n});var n={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return n[t]},set:function(t,e){if("string"==typeof t)n[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){n[e]=t[e]})}}}},10930:(t,e,r)=>{"use strict";r.d(e,{R:()=>n});var n=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;eu,Kg:()=>a,yy:()=>f}),r(87727),r(12115),r(33196);var a=Math.PI/180,u=function(t,e,r,n){return{x:t+Math.cos(-a*n)*r,y:e+Math.sin(-a*n)*r}},c=function(t,e){var r=t.x,n=t.y;return Math.sqrt(Math.pow(r-e.x,2)+Math.pow(n-e.y,2))},l=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=c({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var u=Math.acos((r-o)/a);return n>i&&(u=2*Math.PI-u),{radius:a,angle:180*u/Math.PI,angleInRadian:u}},s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.min(Math.floor(e/360),Math.floor(r/360));return{startAngle:e-360*n,endAngle:r-360*n}},f=function(t,e){var r,n=l({x:t.x,y:t.y},e),o=n.radius,a=n.angle,u=e.innerRadius,c=e.outerRadius;if(oc)return!1;if(0===o)return!0;var f=s(e),p=f.startAngle,h=f.endAngle,d=a;if(p<=h){for(;d>h;)d-=360;for(;d=p&&d<=h}else{for(;d>p;)d-=360;for(;d=h&&d<=p}return r?i(i({},e),{},{radius:o,angle:d+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null}},12401:(t,e,r)=>{"use strict";r.d(e,{AW:()=>L,BU:()=>M,J9:()=>I,Me:()=>k,Mn:()=>j,OV:()=>D,X_:()=>R,aS:()=>E,ee:()=>B,sT:()=>T});var n=r(50920),o=r.n(n),i=r(87727),a=r.n(i),u=r(57957),c=r.n(u),l=r(33196),s=r.n(l),f=r(95255),p=r.n(f),h=r(12115),d=r(69951),y=r(82954),v=r(64433),b=r(32230),m=["children"],g=["children"];function x(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},j=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,A=null,P=function t(e){if(e===S&&Array.isArray(A))return A;var r=[];return h.Children.forEach(e,function(e){a()(e)||((0,d.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))}),A=r,S=e,r};function E(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return j(t)}):[j(e)],P(t).forEach(function(t){var e=o()(t,"type.displayName")||o()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function M(t,e){var r=E(t,e);return r&&r[0]}var k=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!!(0,y.Et)(r)&&!(r<=0)&&!!(0,y.Et)(n)&&!(n<=0)},_=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],T=function(t){return t&&"object"===O(t)&&"clipDot"in t},C=function(t,e,r,n){var o,i=null!==(o=null===b.VU||void 0===b.VU?void 0:b.VU[n])&&void 0!==o?o:[];return e.startsWith("data-")||!s()(t)&&(n&&i.includes(e)||b.QQ.includes(e))||r&&b.j2.includes(e)},I=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,h.isValidElement)(t)&&(n=t.props),!p()(n))return null;var o={};return Object.keys(n).forEach(function(t){var i;C(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])}),o},D=function t(e,r){if(e===r)return!0;var n=h.Children.count(e);if(n!==h.Children.count(r))return!1;if(0===n)return!0;if(1===n)return N(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o=0)r.push(t);else if(t){var i=j(t.type),a=e[i]||{},u=a.handler,l=a.once;if(u&&(!l||!n[i])){var s=u(t,i,o);r.push(s),n[i]=!0}}}),r},R=function(t){var e=t&&t.type;return e&&w[e]?w[e]:null},L=function(t,e){return P(e).indexOf(t)}},64433:(t,e,r)=>{"use strict";function n(t,e){for(var r in t)if(({}).hasOwnProperty.call(t,r)&&(!({}).hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if(({}).hasOwnProperty.call(e,n)&&!({}).hasOwnProperty.call(t,n))return!1;return!0}r.d(e,{b:()=>n})},46484:(t,e,r)=>{"use strict";r.d(e,{g:()=>l});var n=r(86354),o=r(95286),i=r(12401);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e{"use strict";r.d(e,{s:()=>u});var n=r(6928),o=r.n(n),i=r(33196),a=r.n(i);function u(t,e,r){return!0===e?o()(t,r):a()(e)?o()(t,e):t}},32230:(t,e,r)=>{"use strict";r.d(e,{QQ:()=>u,VU:()=>l,XC:()=>p,_U:()=>f,j2:()=>s});var n=r(12115),o=r(95255),i=r.n(o);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],c=["points","pathLength"],l={svg:["viewBox","children"],polygon:c,polyline:c},s=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,n.isValidElement)(t)&&(r=t.props),!i()(r))return null;var o={};return Object.keys(r).forEach(function(t){s.includes(t)&&(o[t]=e||function(e){return r[t](r,e)})}),o},p=function(t,e,r){if(!i()(t)||"object"!==a(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];s.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t){return i(e,r,t),null})}),n}},88635:(t,e)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),e.isFragment=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case o:case a:case i:case f:case p:return t;default:switch(t=t&&t.$$typeof){case l:case c:case s:case d:case h:case u:return t;default:return e}}case n:return e}}}(t)===o}},69951:(t,e,r)=>{"use strict";t.exports=r(88635)},79702:(t,e,r)=>{"use strict";r.d(e,{A:()=>i,z:()=>a});var n=r(88258),o=r(35708);function i(){var t,e,r=(0,o.A)().unknown(void 0),a=r.domain,u=r.range,c=0,l=1,s=!1,f=0,p=0,h=.5;function d(){var r=a().length,n=l{"use strict";function n(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}r.d(e,{C:()=>n,K:()=>o})},35708:(t,e,r)=>{"use strict";r.d(e,{A:()=>function t(){var e=new n,r=[],o=[],i=u;function c(t){let n=e.get(t);if(void 0===n){if(i!==u)return i;e.set(t,n=r.push(t)-1)}return o[n%o.length]}return c.domain=function(t){if(!arguments.length)return r.slice();for(let o of(r=[],e=new n,t))e.has(o)||e.set(o,r.push(o)-1);return c},c.range=function(t){return arguments.length?(o=Array.from(t),c):o.slice()},c.unknown=function(t){return arguments.length?(i=t,c):i},c.copy=function(){return t(r,o).unknown(i)},a.C.apply(c,arguments),c},h:()=>u});class n extends Map{constructor(t,e=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function o({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function i(t){return null!==t&&"object"==typeof t?t.valueOf():t}var a=r(88258);let u=Symbol("implicit")},1578:(t,e,r)=>{"use strict";function n(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}r.d(e,{A:()=>n}),Array.prototype.slice},59497:(t,e,r)=>{"use strict";function n(t){return function(){return t}}r.d(e,{A:()=>n})},79740:(t,e,r)=>{"use strict";r.d(e,{i:()=>c});let n=Math.PI,o=2*n,i=o-1e-6;function a(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return a;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e1e-6){if(Math.abs(f*c-l*s)>1e-6&&i){let h=r-a,d=o-u,y=c*c+l*l,v=Math.sqrt(y),b=Math.sqrt(p),m=i*Math.tan((n-Math.acos((y+p-(h*h+d*d))/(2*v*b)))/2),g=m/b,x=m/v;Math.abs(g-1)>1e-6&&this._append`L${t+g*s},${e+g*f}`,this._append`A${i},${i},0,0,${+(f*h>s*d)},${this._x1=t+x*c},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,r,a,u,c){if(t=+t,e=+e,c=!!c,(r=+r)<0)throw Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),f=t+l,p=e+s,h=1^c,d=c?a-u:u-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,r&&(d<0&&(d=d%o+o),d>i?this._append`A${r},${r},0,1,${h},${t-l},${e-s}A${r},${r},0,1,${h},${this._x1=f},${this._y1=p}`:d>1e-6&&this._append`A${r},${r},0,${+(d>=n)},${h},${this._x1=t+r*Math.cos(u)},${this._y1=e+r*Math.sin(u)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new u(e)}u.prototype},37254:(t,e,r)=>{"use strict";function n(t,e){if(!t)throw Error("Invariant failed")}r.d(e,{A:()=>n})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4346-63dd0cdf0b379621.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4346-63dd0cdf0b379621.js deleted file mode 100644 index cf0eeb5..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4346-63dd0cdf0b379621.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4346],{14505:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},45686:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},66217:(e,t,n)=>{n.d(t,{G$:()=>K,Hs:()=>N,UC:()=>en,VY:()=>eo,ZL:()=>ee,bL:()=>Q,bm:()=>ea,hE:()=>er,hJ:()=>et,l9:()=>X});var r=n(12115),o=n(93610),a=n(88068),i=n(18166),l=n(67668),s=n(1488),u=n(59674),d=n(20196),c=n(17323),p=n(17028),f=n(23360),v=n(62292),m=n(64065),g=n(15587),h=n(12317),y=n(95155),x="Dialog",[C,N]=(0,i.A)(x),[R,w]=C(x),O=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[p=!1,f]=(0,s.i)({prop:o,defaultProp:a,onChange:i});return(0,y.jsx)(R,{scope:t,triggerRef:d,contentRef:c,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:p,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:n})};O.displayName=x;var j="DialogTrigger",b=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=w(j,n),l=(0,a.s)(t,i.triggerRef);return(0,y.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":V(i.open),...r,ref:l,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});b.displayName=j;var D="DialogPortal",[P,A]=C(D,{forceMount:void 0}),E=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=w(D,t);return(0,y.jsx)(P,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(p.C,{present:n||i.open,children:(0,y.jsx)(c.Z,{asChild:!0,container:a,children:e})}))})};E.displayName=D;var I="DialogOverlay",M=r.forwardRef((e,t)=>{let n=A(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=w(I,e.__scopeDialog);return a.modal?(0,y.jsx)(p.C,{present:r||a.open,children:(0,y.jsx)(_,{...o,ref:t})}):null});M.displayName=I;var F=(0,h.TL)("DialogOverlay.RemoveScroll"),_=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(I,n);return(0,y.jsx)(m.A,{as:F,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(f.sG.div,{"data-state":V(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),k="DialogContent",T=r.forwardRef((e,t)=>{let n=A(k,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=w(k,e.__scopeDialog);return(0,y.jsx)(p.C,{present:r||a.open,children:a.modal?(0,y.jsx)(U,{...o,ref:t}):(0,y.jsx)(L,{...o,ref:t})})});T.displayName=k;var U=r.forwardRef((e,t)=>{let n=w(k,e.__scopeDialog),i=r.useRef(null),l=(0,a.s)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(S,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),L=r.forwardRef((e,t)=>{let n=w(k,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,y.jsx)(S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),S=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=w(k,n),p=r.useRef(null),f=(0,a.s)(t,p);return(0,v.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,y.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":V(c.open),...s,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{titleId:c.titleId}),(0,y.jsx)($,{contentRef:p,descriptionId:c.descriptionId})]})]})}),G="DialogTitle",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(G,n);return(0,y.jsx)(f.sG.h2,{id:o.titleId,...r,ref:t})});W.displayName=G;var B="DialogDescription",q=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(B,n);return(0,y.jsx)(f.sG.p,{id:o.descriptionId,...r,ref:t})});q.displayName=B;var z="DialogClose",Z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=w(z,n);return(0,y.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})});function V(e){return e?"open":"closed"}Z.displayName=z;var H="DialogTitleWarning",[K,J]=(0,i.q)(H,{contentName:k,titleName:G,docsSlug:"dialog"}),Y=e=>{let{titleId:t}=e,n=J(H),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},$=e=>{let{contentRef:t,descriptionId:n}=e,o=J("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(a)},[a,t,n]),null},Q=O,X=b,ee=E,et=M,en=T,er=W,eo=q,ea=Z},80532:(e,t,n)=>{n.d(t,{Mz:()=>z,UC:()=>H,ZL:()=>V,bL:()=>q,l9:()=>Z});var r=n(12115),o=n(93610),a=n(88068),i=n(18166),l=n(59674),s=n(62292),u=n(20196),d=n(67668),c=n(19895),p=n(17323),f=n(17028),v=n(23360),m=n(12317),g=n(1488),h=n(15587),y=n(64065),x=n(95155),C="Popover",[N,R]=(0,i.A)(C,[c.Bk]),w=(0,c.Bk)(),[O,j]=N(C),b=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,s=w(t),u=r.useRef(null),[p,f]=r.useState(!1),[v=!1,m]=(0,g.i)({prop:o,defaultProp:a,onChange:i});return(0,x.jsx)(c.bL,{...s,children:(0,x.jsx)(O,{scope:t,contentId:(0,d.B)(),triggerRef:u,open:v,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:p,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:l,children:n})})};b.displayName=C;var D="PopoverAnchor",P=r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,a=j(D,n),i=w(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=a;return r.useEffect(()=>(l(),()=>s()),[l,s]),(0,x.jsx)(c.Mz,{...i,...o,ref:t})});P.displayName=D;var A="PopoverTrigger",E=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=j(A,n),l=w(n),s=(0,a.s)(t,i.triggerRef),u=(0,x.jsx)(v.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":B(i.open),...r,ref:s,onClick:(0,o.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,x.jsx)(c.Mz,{asChild:!0,...l,children:u})});E.displayName=A;var I="PopoverPortal",[M,F]=N(I,{forceMount:void 0}),_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=j(I,t);return(0,x.jsx)(M,{scope:t,forceMount:n,children:(0,x.jsx)(f.C,{present:n||a.open,children:(0,x.jsx)(p.Z,{asChild:!0,container:o,children:r})})})};_.displayName=I;var k="PopoverContent",T=r.forwardRef((e,t)=>{let n=F(k,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=j(k,e.__scopePopover);return(0,x.jsx)(f.C,{present:r||a.open,children:a.modal?(0,x.jsx)(L,{...o,ref:t}):(0,x.jsx)(S,{...o,ref:t})})});T.displayName=k;var U=(0,m.TL)("PopoverContent.RemoveScroll"),L=r.forwardRef((e,t)=>{let n=j(k,e.__scopePopover),i=r.useRef(null),l=(0,a.s)(t,i),s=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,h.Eq)(e)},[]),(0,x.jsx)(y.A,{as:U,allowPinchZoom:!0,children:(0,x.jsx)(G,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),S=r.forwardRef((e,t)=>{let n=j(k,e.__scopePopover),o=r.useRef(!1),a=r.useRef(!1);return(0,x.jsx)(G,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),G=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:v,...m}=e,g=j(k,n),h=w(n);return(0,s.Oh)(),(0,x.jsx)(u.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,x.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),children:(0,x.jsx)(c.UC,{"data-state":B(g.open),role:"dialog",id:g.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),W="PopoverClose";function B(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=j(W,n);return(0,x.jsx)(v.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=W,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=w(n);return(0,x.jsx)(c.i3,{...o,...r,ref:t})}).displayName="PopoverArrow";var q=b,z=P,Z=E,V=_,H=T},17028:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(12115),o=n(88068),a=n(46611),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[o,i]=r.useState(),s=r.useRef({}),u=r.useRef(e),d=r.useRef("none"),[c,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(s.current);d.current="mounted"===c?e:"none"},[c]),(0,a.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=d.current,o=l(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,a.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(p("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(d.current=l(s.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),i(e)},[])}}(t),s="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),u=(0,o.s)(i.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||i.isPresent?r.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},90434:(e,t,n)=>{n.d(t,{b:()=>u});var r=n(12115),o=n(23360),a=n(95155),i="horizontal",l=["horizontal","vertical"],s=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...s}=e,u=l.includes(r)?r:i;return(0,a.jsx)(o.sG.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...s,ref:t})});s.displayName="Separator";var u=s}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4458-2bc9e37a444e4472.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4458-2bc9e37a444e4472.js new file mode 100644 index 0000000..fbe0378 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4458-2bc9e37a444e4472.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4458],{39997:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(20107);let a=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var t=arguments.length,e=Array(t),n=0;n!!t&&n.indexOf(t)===e).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((t,e)=>{let{color:n="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:u="",children:s,iconNode:d,...f}=t;return(0,r.createElement)("svg",{ref:e,...o,width:a,height:a,stroke:n,strokeWidth:c?24*Number(l)/Number(a):l,className:i("lucide",u),...f},[...d.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(s)?s:[s]])}),c=(t,e)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:c,...u}=n;return(0,r.createElement)(l,{ref:o,iconNode:e,className:i("lucide-".concat(a(t)),c),...u})});return n.displayName="".concat(t),n}},17799:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},89463:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]])},622:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},98969:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},14389:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},8782:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},10964:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},99312:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},7778:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},25262:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},97801:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},90304:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},20633:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},12607:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},92823:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},92776:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(t);ae.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n};Object.defineProperty(e,"__esModule",{value:!0});var c=o(n(20107)),u=n(22184),s=n(30120),d=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];e.default=function(t){var e=t.loading,n=t.color,a=void 0===n?"#000000":n,i=t.speedMultiplier,o=void 0===i?1:i,s=t.cssOverride,f=t.size,p=l(t,["loading","color","speedMultiplier","cssOverride","size"]),m=(0,u.parseLengthAndUnit)(void 0===f?15:f),h=m.value,y=m.unit,v=r({display:"inherit",position:"relative"},void 0===s?{}:s),g=function(t){return{position:"absolute",fontSize:"".concat(h/3).concat(y),width:"".concat(h).concat(y),height:"".concat(h).concat(y),background:a,borderRadius:"50%",animation:"".concat(d[t]," ").concat(1.5/o,"s infinite"),animationFillMode:"forwards"}};return void 0===e||e?c.createElement("span",r({style:v},p),c.createElement("span",{style:g(0)}),c.createElement("span",{style:g(1)}),c.createElement("span",{style:g(2)}),c.createElement("span",{style:g(3)}),c.createElement("span",{style:g(4)}),c.createElement("span",{style:g(5)})):null}},71834:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(20107),a={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function i(t){var e=function(t){if("number"==typeof t)return{value:t,unit:"px"};var e,n=(t.match(/^[0-9.]*/)||"").toString();e=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(t.match(/[^0-9]*$/)||"").toString();return a[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}(t);return"".concat(e.value).concat(e.unit)}var o=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return i&&i.insertRule(o,0),r},l=function(){return(l=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(t);ae.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},u=[o("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),o("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];let s=function(t){var e=t.loading,n=t.color,a=void 0===n?"#000000":n,o=t.speedMultiplier,s=void 0===o?1:o,d=t.cssOverride,f=t.size,p=void 0===f?60:f,m=c(t,["loading","color","speedMultiplier","cssOverride","size"]),h=l({display:"inherit",position:"relative",width:i(p),height:i(p)},void 0===d?{}:d),y=function(t){return{position:"absolute",height:i(p),width:i(p),border:"thick solid ".concat(a),borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:"".concat(u[0],", ").concat(u[1]),animationDuration:"".concat(2/s,"s"),animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:1===t?"-1s":"0s"}};return void 0===e||e?r.createElement("span",l({style:h},m),r.createElement("span",{style:y(1)}),r.createElement("span",{style:y(2)})):null}},30120:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=void 0,e.createAnimation=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return i&&i.insertRule(o,0),r}},22184:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cssValue=e.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(t){if("number"==typeof t)return{value:t,unit:"px"};var e,r=(t.match(/^[0-9.]*/)||"").toString();e=r.includes(".")?parseFloat(r):parseInt(r,10);var a=(t.match(/[^0-9]*$/)||"").toString();return n[a]?{value:e,unit:a}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}e.parseLengthAndUnit=r,e.cssValue=function(t){var e=r(t);return"".concat(e.value).concat(e.unit)}},79492:(t,e,n)=>{n.d(e,{G:()=>I});var r=n(20107),a=n(64901),i=n(61075),o=n(14632),l=n.n(o),c=n(12838),u=n.n(c),s=n(87107),d=n.n(s),f=n(50801),p=n.n(f),m=n(6440),h=n.n(m),y=n(60992),v=n(42555),g=n(37819),w=n(58864),b=n(95392),x=n(89952),O=n(95492),E=n(61211),A=["layout","type","stroke","connectNulls","isRange","ref"],k=["key"];function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function S(){return(S=Object.assign?Object.assign.bind():function(t){for(var e=1;e0||!h()(l,r)||!h()(c,a))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,a,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,o=e.points,l=e.className,c=e.top,u=e.left,s=e.xAxis,f=e.yAxis,p=e.width,m=e.height,h=e.isAnimationActive,y=e.id;if(n||!o||!o.length)return null;var v=this.state.isAnimationFinished,b=1===o.length,x=(0,a.A)("recharts-area",l),O=s&&s.allowDataOverflow,A=f&&f.allowDataOverflow,k=O||A,P=d()(y)?this.id:y,j=null!==(t=(0,E.J9)(i,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=j.r,D=j.strokeWidth,M=((0,E.sT)(i)?i:{}).clipDot,R=void 0===M||M,T=2*(void 0===S?3:S)+(void 0===D?2:D);return r.createElement(g.W,{className:x},O||A?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(P)},r.createElement("rect",{x:O?u:u-p/2,y:A?c:c-m/2,width:O?p:2*p,height:A?m:2*m})),!R&&r.createElement("clipPath",{id:"clipPath-dots-".concat(P)},r.createElement("rect",{x:u-T/2,y:c-T/2,width:p+T,height:m+T}))):null,b?null:this.renderArea(k,P),(i||b)&&this.renderDots(k,R,P),(!h||v)&&w.Z.renderCallByParent(this.props,o))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],e&&R(o.prototype,e),n&&R(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.PureComponent);L(I,"displayName","Area"),L(I,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!b.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),L(I,"getBaseValue",function(t,e,n,r){var a=t.layout,i=t.baseValue,o=e.props.baseValue,l=null!=o?o:i;if((0,x.Et)(l)&&"number"==typeof l)return l;var c="horizontal"===a?r:n,u=c.scale.domain();if("number"===c.type){var s=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return"dataMin"===l?d:"dataMax"===l?s:s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===l?u[0]:"dataMax"===l?u[1]:u[0]}),L(I,"getComposedData",function(t){var e,n=t.props,r=t.item,a=t.xAxis,i=t.yAxis,o=t.xAxisTicks,l=t.yAxisTicks,c=t.bandSize,u=t.dataKey,s=t.stackedData,d=t.dataStartIndex,f=t.displayedData,p=t.offset,m=n.layout,h=s&&s.length,y=I.getBaseValue(n,r,a,i),v="horizontal"===m,g=!1,w=f.map(function(t,e){h?n=s[d+e]:Array.isArray(n=(0,O.kr)(t,u))?g=!0:n=[y,n];var n,r=null==n[1]||h&&null==(0,O.kr)(t,u);return v?{x:(0,O.nb)({axis:a,ticks:o,bandSize:c,entry:t,index:e}),y:r?null:i.scale(n[1]),value:n,payload:t}:{x:r?null:a.scale(n[1]),y:(0,O.nb)({axis:i,ticks:l,bandSize:c,entry:t,index:e}),value:n,payload:t}});return e=h||g?w.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return v?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?a.scale(e):null,y:t.y}}):v?i.scale(y):a.scale(y),M({points:w,baseLine:e,layout:m,isRange:g},p)}),L(I,"renderDotItem",function(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(l()(t))n=t(e);else{var i=(0,a.A)("recharts-area-dot","boolean"!=typeof t?t.className:""),o=e.key,c=j(e,k);n=r.createElement(v.c,S({},c,{key:o,className:i}))}return n})},94005:(t,e,n)=>{n.d(e,{d:()=>D});var r=n(20107),a=n(14632),i=n.n(a),o=n(42228),l=n(89952),c=n(61211),u=n(95492),s=n(62882),d=n(67064),f=n(25161),p=["x1","y1","x2","y2","key"],m=["offset"];function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function v(t){for(var e=1;e=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var b=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,a=t.x,i=t.y,o=t.width,l=t.height,c=t.ry;return r.createElement("rect",{x:a,y:i,ry:c,width:o,height:l,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function x(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(i()(t))n=t(e);else{var a=e.x1,o=e.y1,l=e.x2,u=e.y2,s=e.key,d=w(e,p),f=(0,c.J9)(d,!1),h=(f.offset,w(f,m));n=r.createElement("line",g({},h,{x1:a,y1:o,x2:l,y2:u,fill:"none",key:s}))}return n}function O(t){var e=t.x,n=t.width,a=t.horizontal,i=void 0===a||a,o=t.horizontalPoints;if(!i||!o||!o.length)return null;var l=o.map(function(r,a){return x(i,v(v({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(a),index:a}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function E(t){var e=t.y,n=t.height,a=t.vertical,i=void 0===a||a,o=t.verticalPoints;if(!i||!o||!o.length)return null;var l=o.map(function(r,a){return x(i,v(v({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(a),index:a}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function A(t){var e=t.horizontalFill,n=t.fillOpacity,a=t.x,i=t.y,o=t.width,l=t.height,c=t.horizontalPoints,u=t.horizontal;if(!(void 0===u||u)||!e||!e.length)return null;var s=c.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var d=s.map(function(t,c){var u=s[c+1]?s[c+1]-t:i+l-t;if(u<=0)return null;var d=c%e.length;return r.createElement("rect",{key:"react-".concat(c),y:t,x:a,height:u,width:o,stroke:"none",fill:e[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function k(t){var e=t.vertical,n=t.verticalFill,a=t.fillOpacity,i=t.x,o=t.y,l=t.width,c=t.height,u=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var s=u.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var d=s.map(function(t,e){var u=s[e+1]?s[e+1]-t:i+l-t;if(u<=0)return null;var d=e%n.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:o,width:u,height:c,stroke:"none",fill:n[d],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var P=function(t,e){var n=t.xAxis,r=t.width,a=t.height,i=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},d.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.left,i.left+i.width,e)},j=function(t,e){var n=t.yAxis,r=t.width,a=t.height,i=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},d.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.top,i.top+i.height,e)},S={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function D(t){var e,n,a,c,u,s,d=(0,f.yi)(),p=(0,f.rY)(),m=(0,f.hj)(),y=v(v({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:S.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:S.fill,horizontal:null!==(a=t.horizontal)&&void 0!==a?a:S.horizontal,horizontalFill:null!==(c=t.horizontalFill)&&void 0!==c?c:S.horizontalFill,vertical:null!==(u=t.vertical)&&void 0!==u?u:S.vertical,verticalFill:null!==(s=t.verticalFill)&&void 0!==s?s:S.verticalFill,x:(0,l.Et)(t.x)?t.x:m.left,y:(0,l.Et)(t.y)?t.y:m.top,width:(0,l.Et)(t.width)?t.width:m.width,height:(0,l.Et)(t.height)?t.height:m.height}),w=y.x,x=y.y,D=y.width,M=y.height,R=y.syncWithTicks,T=y.horizontalValues,C=y.verticalValues,N=(0,f.pj)(),L=(0,f.$G)();if(!(0,l.Et)(D)||D<=0||!(0,l.Et)(M)||M<=0||!(0,l.Et)(w)||w!==+w||!(0,l.Et)(x)||x!==+x)return null;var z=y.verticalCoordinatesGenerator||P,I=y.horizontalCoordinatesGenerator||j,F=y.horizontalPoints,B=y.verticalPoints;if((!F||!F.length)&&i()(I)){var W=T&&T.length,H=I({yAxis:L?v(v({},L),{},{ticks:W?T:L.ticks}):void 0,width:d,height:p,offset:m},!!W||R);(0,o.R)(Array.isArray(H),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h(H),"]")),Array.isArray(H)&&(F=H)}if((!B||!B.length)&&i()(z)){var _=C&&C.length,X=z({xAxis:N?v(v({},N),{},{ticks:_?C:N.ticks}):void 0,width:d,height:p,offset:m},!!_||R);(0,o.R)(Array.isArray(X),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h(X),"]")),Array.isArray(X)&&(B=X)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(b,{fill:y.fill,fillOpacity:y.fillOpacity,x:y.x,y:y.y,width:y.width,height:y.height,ry:y.ry}),r.createElement(O,g({},y,{offset:m,horizontalPoints:F,xAxis:N,yAxis:L})),r.createElement(E,g({},y,{offset:m,verticalPoints:B,xAxis:N,yAxis:L})),r.createElement(A,g({},y,{horizontalPoints:F})),r.createElement(k,g({},y,{verticalPoints:B})))}D.displayName="CartesianGrid"},53134:(t,e,n)=>{n.d(e,{Q:()=>c});var r=n(90805),a=n(79492),i=n(4538),o=n(41797),l=n(98456),c=(0,r.gu)({chartName:"AreaChart",GraphicalChild:a.G,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:o.h}],formatAxisMap:l.pr})},74043:(t,e,n)=>{n.d(e,{A:()=>k});var r=n(20107);function a(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function i(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&n.every(n=>{let r=t[n],o=e[n];return"function"==typeof r?`${r}`==`${o}`:a(r)&&a(o)?i(r,o):r===o})}function o(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function l(t){return"number"==typeof t}function c(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function d(t){return Math.abs(t)}function f(t){return Math.sign(t)}function p(t){return v(t).map(Number)}function m(t){return t[h(t)]}function h(t){return Math.max(0,t.length-1)}function y(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function v(t){return Object.keys(t)}function g(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function w(){let t=[],e={add:function(n,r,a,i={passive:!0}){let o;return"addEventListener"in n?(n.addEventListener(r,a,i),o=()=>n.removeEventListener(r,a,i)):(n.addListener(a),o=()=>n.removeListener(a)),t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function b(t=0,e=0){let n=d(t-e);function r(n){return ne}return{length:n,max:e,min:t,constrain:function(n){return r(n)?ne},reachedMin:function(e){return e(v(n).forEach(r=>{let a=e[r],i=n[r],o=s(a)&&s(i);e[r]=o?t(a,i):i}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){let r=n.breakpoints||{},a=v(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,n)=>e(t,n),{});return e(n,a)},optionsMediaQueries:function(e){return e.map(t=>v(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(j),D=(k=[],{init:function(t,e){return(k=e.filter(({options:t})=>!1!==S.optionsAtMedia(t).active)).forEach(e=>e.init(t,S)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){k=k.filter(t=>t.destroy())}}),M=w(),R=function(){let t,e={},n={init:function(e){t=e},emit:function(r){return(e[r]||[]).forEach(e=>e(t,r)),n},off:function(t,r){return e[t]=(e[t]||[]).filter(t=>t!==r),n},on:function(t,r){return e[t]=(e[t]||[]).concat([r]),n},clear:function(){e={}}};return n}(),{mergeOptions:T,optionsAtMedia:C,optionsMediaQueries:N}=S,{on:L,off:z,emit:I}=R,F=!1,B=T(E,A.globalOptions),W=T(B),H=[];function _(e,n){!F&&(W=C(B=T(B,e)),H=n||H,function(){let{container:e,slides:n}=W;i=(c(e)?t.querySelector(e):e)||t.children[0];let r=c(n)?i.querySelectorAll(n):n;o=[].slice.call(r||i.children)}(),r=function e(n){let r=function(t,e,n,r,a,i,o){let s,E;let{align:A,axis:k,direction:P,startIndex:j,loop:S,duration:D,dragFree:M,dragThreshold:R,inViewThreshold:T,slidesToScroll:C,skipSnaps:N,containScroll:L,watchResize:z,watchSlides:I,watchDrag:F,watchFocus:B}=i,W={measure:function(t){let{offsetTop:e,offsetLeft:n,offsetWidth:r,offsetHeight:a}=t;return{top:e,right:n+r,bottom:e+a,left:n,width:r,height:a}}},H=W.measure(e),_=n.map(W.measure),X=function(t,e){let n="rtl"===e,r="y"===t,a=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(t){let{height:e,width:n}=t;return r?e:n},direction:function(t){return t*a}}}(k,P),V=X.measureSize(H),U={measure:function(t){return t/100*V}},q=function(t,e){let n={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(r,a){return c(t)?n[t](r):t(e,r,a)}}}(A,V),Y=!S&&!!L,{slideSizes:$,slideSizesWithGaps:G,startGap:J,endGap:Z}=function(t,e,n,r,a,i){let{measureSize:o,startEdge:l,endEdge:c}=t,u=n[0]&&a,s=function(){if(!u)return 0;let t=n[0];return d(e[l]-t[l])}(),f=u?parseFloat(i.getComputedStyle(m(r)).getPropertyValue(`margin-${c}`)):0,p=n.map(o),y=n.map((t,e,n)=>{let r=e===h(n);return e?r?p[e]+f:n[e+1][l]-t[l]:p[e]+s}).map(d);return{slideSizes:p,slideSizesWithGaps:y,startGap:s,endGap:f}}(X,H,_,n,S||!!L,a),K=function(t,e,n,r,a,i,o,c,u){let{startEdge:s,endEdge:f,direction:y}=t,v=l(n);return{groupSlides:function(t){return v?p(t).filter(t=>t%n==0).map(e=>t.slice(e,e+n)):t.length?p(t).reduce((n,l,u)=>{let p=m(n)||0,v=l===h(t),g=a[s]-i[p][s],w=a[s]-i[l][f],b=r||0!==p?0:y(o),x=d(w-(!r&&v?y(c):0)-(g+b));return u&&x>e+2&&n.push(l),v&&n.push(t.length),n},[]).map((e,n,r)=>{let a=Math.max(r[n-1]||0);return t.slice(a,e)}):[]}}}(X,V,C,S,H,_,J,Z,0),{snaps:Q,snapsAligned:tt}=function(t,e,n,r,a){let{startEdge:i,endEdge:o}=t,{groupSlides:l}=a,c=l(r).map(t=>m(t)[o]-t[0][i]).map(d).map(e.measure),u=r.map(t=>n[i]-t[i]).map(t=>-d(t)),s=l(u).map(t=>t[0]).map((t,e)=>t+c[e]);return{snaps:u,snapsAligned:s}}(X,q,H,_,K),te=-m(Q)+m(G),{snapsContained:tn,scrollContainLimit:tr}=function(t,e,n,r,a){let i=b(-e+t,0),o=n.map((t,e)=>{let{min:r,max:a}=i,o=i.constrain(t),l=e===h(n);return e?l||1>d(r-o)?r:1>d(a-o)?a:o:a}).map(t=>parseFloat(t.toFixed(3))),l=function(){let t=o[0],e=m(o);return b(o.lastIndexOf(t),o.indexOf(e)+1)}();return{snapsContained:function(){if(e<=t+2)return[i.max];if("keepSnaps"===r)return o;let{min:n,max:a}=l;return o.slice(n,a)}(),scrollContainLimit:l}}(V,te,tt,L,0),ta=Y?tn:tt,{limit:ti}=function(t,e,n){let r=e[0];return{limit:b(n?r-t:m(e),r)}}(te,ta,S),to=function t(e,n,r){let{constrain:a}=b(0,e),i=e+1,o=l(n);function l(t){return r?d((i+t)%i):a(t)}function c(){return t(e,o,r)}let u={get:function(){return o},set:function(t){return o=l(t),u},add:function(t){return c().set(o+t)},clone:c};return u}(h(ta),j,S),tl=to.clone(),tc=p(n),tu=({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:r}},a)=>{r||n.constrain(t.pointerDown()),e.seek(a)},ts=({scrollBody:t,translate:e,location:n,offsetLocation:r,scrollLooper:a,slideLooper:i,dragHandler:o,animation:l,eventHandler:c,scrollBounds:u,options:{loop:s}},d)=>{let f=t.settled(),p=!u.shouldConstrain(),m=s?f:f&&p;m&&!o.pointerDown()&&(l.stop(),c.emit("settle")),m||c.emit("scroll");let h=n.get()*d+tm.get()*(1-d);r.set(h),s&&(a.loop(t.direction()),i.loop()),e.to(r.get())},td=function(t,e,n,r){let a=w(),i=1e3/60,o=null,l=0,c=0;function u(t){if(!c)return;o||(o=t);let a=t-o;for(o=t,l+=a;l>=i;)n(i),l-=i;r(l/i),c&&e.requestAnimationFrame(u)}function s(){e.cancelAnimationFrame(c),o=null,l=0,c=0}return{init:function(){a.add(t,"visibilitychange",()=>{t.hidden&&(o=null,l=0)})},destroy:function(){s(),a.clear()},start:function(){c||(c=e.requestAnimationFrame(u))},stop:s,update:()=>n(i),render:r}}(r,a,t=>tu(tk,t),t=>ts(tk,t)),tf=ta[to.get()],tp=x(tf),tm=x(tf),th=x(tf),ty=x(tf),tv=function(t,e,n,r,a,i){let o=0,l=0,c=a,u=.68,s=t.get(),p=0;function m(t){return c=t,y}function h(t){return u=t,y}let y={direction:function(){return l},duration:function(){return c},velocity:function(){return o},seek:function(e){let a=e/1e3,i=c*a,d=r.get()-t.get(),m=0;return c?(n.set(t),o+=d/i,o*=u,s+=o,t.add(o*a),m=s-p):(o=0,n.set(r),t.set(r),m=d),l=f(m),p=s,y},settled:function(){return .001>d(r.get()-e.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return m(a)},useFriction:h,useDuration:m};return y}(tp,th,tm,ty,D,0),tg=function(t,e,n,r,a){let{reachedAny:i,removeOffset:o,constrain:l}=r;function c(t){return t.concat().sort((t,e)=>d(t)-d(e))[0]}function u(e,r){let a=[e,e+n,e-n];if(!t)return e;if(!r)return c(a);let i=a.filter(t=>f(t)===r);return i.length?c(i):m(a)-n}return{byDistance:function(n,r){let c=a.get()+n,{index:s,distance:f}=function(n){let r=t?o(n):l(n),{index:a}=e.map((t,e)=>({diff:u(t-r,0),index:e})).sort((t,e)=>d(t.diff)-d(e.diff))[0];return{index:a,distance:r}}(c),p=!t&&i(c);if(!r||p)return{index:s,distance:n};let m=n+u(e[s]-f,0);return{index:s,distance:m}},byIndex:function(t,n){let r=u(e[t]-a.get(),n);return{index:t,distance:r}},shortcut:u}}(S,ta,te,ti,ty),tw=function(t,e,n,r,a,i,o){function l(a){let l=a.distance,c=a.index!==e.get();i.add(l),l&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),c&&(n.set(e.get()),e.set(a.index),o.emit("select"))}return{distance:function(t,e){l(a.byDistance(t,e))},index:function(t,n){let r=e.clone().set(t);l(a.byIndex(r.get(),n))}}}(td,to,tl,tv,tg,ty,o),tb=function(t){let{max:e,length:n}=t;return{get:function(t){return n?-((t-e)/n):0}}}(ti),tx=w(),tO=function(t,e,n,r){let a;let i={},o=null,l=null,c=!1;return{init:function(){a=new IntersectionObserver(t=>{c||(t.forEach(t=>{i[e.indexOf(t.target)]=t}),o=null,l=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(t=>a.observe(t))},destroy:function(){a&&a.disconnect(),c=!0},get:function(t=!0){if(t&&o)return o;if(!t&&l)return l;let e=v(i).reduce((e,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(t&&a||!t&&!a)&&e.push(r),e},[]);return t&&(o=e),t||(l=e),e}}}(e,n,o,T),{slideRegistry:tE}=function(t,e,n,r,a,i){let{groupSlides:o}=a,{min:l,max:c}=r;return{slideRegistry:function(){let r=o(i);return 1===n.length?[i]:t&&"keepSnaps"!==e?r.slice(l,c).map((t,e,n)=>{let r=e===h(n);return e?r?y(h(i)-m(n)[0]+1,m(n)[0]):t:y(m(n[0])+1)}):r}()}}(Y,L,ta,tr,K,tc),tA=function(t,e,n,r,a,i,o,c){let s={passive:!0,capture:!0},d=0;function f(t){"Tab"===t.code&&(d=new Date().getTime())}return{init:function(p){c&&(i.add(document,"keydown",f,!1),e.forEach((e,f)=>{i.add(e,"focus",e=>{(u(c)||c(p,e))&&function(e){if(new Date().getTime()-d>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;let i=n.findIndex(t=>t.includes(e));l(i)&&(a.useDuration(0),r.index(i,0),o.emit("slideFocus"))}(f)},s)}))}}}(t,n,tE,tw,tv,tx,o,B),tk={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:H,slideRects:_,animation:td,axis:X,dragHandler:function(t,e,n,r,a,i,o,l,c,s,p,m,h,y,v,x,O,E,A){let{cross:k,direction:P}=t,j=["INPUT","SELECT","TEXTAREA"],S={passive:!1},D=w(),M=w(),R=b(50,225).constrain(y.measure(20)),T={mouse:300,touch:400},C={mouse:500,touch:600},N=v?43:25,L=!1,z=0,I=0,F=!1,B=!1,W=!1,H=!1;function _(t){if(!g(t,r)&&t.touches.length>=2)return X(t);let e=i.readPoint(t),n=i.readPoint(t,k),o=d(e-z),c=d(n-I);if(!B&&!H&&(!t.cancelable||!(B=o>c)))return X(t);let u=i.pointerMove(t);o>x&&(W=!0),s.useFriction(.3).useDuration(.75),l.start(),a.add(P(u)),t.preventDefault()}function X(t){let e=p.byDistance(0,!1).index!==m.get(),n=i.pointerUp(t)*(v?C:T)[H?"mouse":"touch"],r=function(t,e){let n=m.add(-1*f(t)),r=p.byDistance(t,!v).distance;return v||d(t)t.preventDefault(),S).add(e,"touchmove",()=>void 0,S).add(e,"touchend",()=>void 0).add(e,"touchstart",l).add(e,"mousedown",l).add(e,"touchcancel",X).add(e,"contextmenu",X).add(e,"click",V,!0);function l(l){(u(A)||A(t,l))&&function(t){let l=g(t,r);H=l,W=v&&l&&!t.buttons&&L,L=d(a.get()-o.get())>=2,l&&0!==t.button||function(t){let e=t.nodeName||"";return j.includes(e)}(t.target)||(F=!0,i.pointerDown(t),s.useFriction(0).useDuration(0),a.set(o),function(){let t=H?n:e;M.add(t,"touchmove",_,S).add(t,"touchend",X).add(t,"mousemove",_,S).add(t,"mouseup",X)}(),z=i.readPoint(t),I=i.readPoint(t,k),h.emit("pointerDown"))}(l)}},destroy:function(){D.clear(),M.clear()},pointerDown:function(){return F}}}(X,t,r,a,ty,function(t,e){let n,r;function a(t){return t.timeStamp}function i(n,r){let a=r||t.scroll,i=`client${"x"===a?"X":"Y"}`;return(g(n,e)?n:n.touches[0])[i]}return{pointerDown:function(t){return n=t,r=t,i(t)},pointerMove:function(t){let e=i(t)-i(r),o=a(t)-a(n)>170;return r=t,o&&(n=t),e},pointerUp:function(t){if(!n||!r)return 0;let e=i(r)-i(n),o=a(t)-a(n),l=a(t)-a(r)>170,c=e/o;return o&&!l&&d(c)>.1?c:0},readPoint:i}}(X,a),tp,td,tw,tv,tg,to,o,U,M,R,N,0,F),eventStore:tx,percentOfView:U,index:to,indexPrevious:tl,limit:ti,location:tp,offsetLocation:th,previousLocation:tm,options:i,resizeHandler:function(t,e,n,r,a,i,o){let l,c;let s=[t].concat(r),f=[],p=!1;function m(t){return a.measureSize(o.measure(t))}return{init:function(a){i&&(c=m(t),f=r.map(m),l=new ResizeObserver(n=>{(u(i)||i(a,n))&&function(n){for(let i of n){if(p)return;let n=i.target===t,o=r.indexOf(i.target),l=n?c:f[o];if(d(m(n?t:r[o])-l)>=.5){a.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(t=>l.observe(t))}))},destroy:function(){p=!0,l&&l.disconnect()}}}(e,o,a,n,X,z,W),scrollBody:tv,scrollBounds:function(t,e,n,r,a){let i=a.measure(10),o=a.measure(50),l=b(.1,.99),c=!1;function u(){return!!(!c&&t.reachedAny(n.get())&&t.reachedAny(e.get()))}return{shouldConstrain:u,constrain:function(a){if(!u())return;let c=t.reachedMin(e.get())?"min":"max",s=d(t[c]-e.get()),f=n.get()-e.get(),p=l.constrain(s/o);n.subtract(f*p),!a&&d(f)t.add(o))}}}(te,ti,th,[tp,th,tm,ty]),scrollProgress:tb,scrollSnapList:ta.map(tb.get),scrollSnaps:ta,scrollTarget:tg,scrollTo:tw,slideLooper:function(t,e,n,r,a,i,o,l,c){let u=p(a),s=m(f(p(a).reverse(),o[0]),n,!1).concat(m(f(u,e-o[0]-1),-n,!0));function d(t,e){return t.reduce((t,e)=>t-a[e],e)}function f(t,e){return t.reduce((t,n)=>d(t,e)>0?t.concat([n]):t,[])}function m(a,o,u){let s=i.map((t,n)=>({start:t-r[n]+.5+o,end:t+e-.5+o}));return a.map(e=>{let r=u?0:-n,a=u?n:0,i=s[e][u?"end":"start"];return{index:e,loopPoint:i,slideLocation:x(-1),translate:O(t,c[e]),target:()=>l.get()>i?r:a}})}return{canLoop:function(){return s.every(({index:t})=>.1>=d(u.filter(e=>e!==t),e))},clear:function(){s.forEach(t=>t.translate.clear())},loop:function(){s.forEach(t=>{let{target:e,translate:n,slideLocation:r}=t,a=e();a!==r.get()&&(n.to(a),r.set(a))})},loopPoints:s}}(X,V,te,$,G,Q,ta,th,n),slideFocus:tA,slidesHandler:(E=!1,{init:function(t){I&&(s=new MutationObserver(e=>{!E&&(u(I)||I(t,e))&&function(e){for(let n of e)if("childList"===n.type){t.reInit(),o.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){s&&s.disconnect(),E=!0}}),slidesInView:tO,slideIndexes:tc,slideRegistry:tE,slidesToScroll:K,target:ty,translate:O(X,e)};return tk}(t,i,o,P,j,n,R);return n.loop&&!r.slideLooper.canLoop()?e(Object.assign({},n,{loop:!1})):r}(W),N([B,...H.map(({options:t})=>t)]).forEach(t=>M.add(t,"change",X)),W.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(Y),r.eventHandler.init(Y),r.resizeHandler.init(Y),r.slidesHandler.init(Y),r.options.loop&&r.slideLooper.loop(),i.offsetParent&&o.length&&r.dragHandler.init(Y),a=D.init(Y,H)))}function X(t,e){let n=q();V(),_(T({startIndex:n},t),e),R.emit("reInit")}function V(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),D.destroy(),M.clear()}function U(t,e,n){W.active&&!F&&(r.scrollBody.useBaseFriction().useDuration(!0===e?0:W.duration),r.scrollTo.index(t,n||0))}function q(){return r.index.get()}let Y={canScrollNext:function(){return r.index.add(1).get()!==q()},canScrollPrev:function(){return r.index.add(-1).get()!==q()},containerNode:function(){return i},internalEngine:function(){return r},destroy:function(){F||(F=!0,M.clear(),V(),R.emit("destroy"),R.clear())},off:z,on:L,emit:I,plugins:function(){return a},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:X,rootNode:function(){return t},scrollNext:function(t){U(r.index.add(1).get(),t,-1)},scrollPrev:function(t){U(r.index.add(-1).get(),t,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:U,selectedScrollSnap:q,slideNodes:function(){return o},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return _(e,n),setTimeout(()=>R.emit("init"),0),Y}function k(t={},e=[]){let n=(0,r.useRef)(t),a=(0,r.useRef)(e),[l,c]=(0,r.useState)(),[u,s]=(0,r.useState)(),d=(0,r.useCallback)(()=>{l&&l.reInit(n.current,a.current)},[l]);return(0,r.useEffect)(()=>{i(n.current,t)||(n.current=t,d())},[t,d]),(0,r.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let n=o(t),r=o(e);return n.every((t,e)=>i(t,r[e]))}(a.current,e)&&(a.current=e,d())},[e,d]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){A.globalOptions=k.globalOptions;let t=A(u,n.current,a.current);return c(t),()=>t.destroy()}c(void 0)},[u,c]),[s,l]}A.globalOptions=void 0,k.globalOptions=void 0},45930:(t,e,n)=>{n.d(e,{k5:()=>s});var r=n(20107),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(a),o=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;er.createElement(d,l({attr:u({},t.attr)},e),function t(e){return e&&e.map((e,n)=>r.createElement(e.tag,u({key:n},e.attr),t(e.child)))}(t.child))}function d(t){var e=e=>{var n,{attr:a,size:i,title:c}=t,s=function(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,o),d=i||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,a,s,{className:n,style:u(u({color:t.color||e.color},e.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&r.createElement("title",null,c),t.children)};return void 0!==i?r.createElement(i.Consumer,null,t=>e(t)):e(a)}},71602:(t,e,n)=>{let r;n.d(e,{_s:()=>I});var a=n(60241),i=n(20107);let o=i.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),l=()=>{let t=i.useContext(o);if(!t)throw Error("useDrawerContext must be used within a Drawer.Root");return t};function c(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function u(){return s(/^iPhone/)||s(/^iPad/)||s(/^Mac/)&&navigator.maxTouchPoints>1}function s(t){return"undefined"!=typeof window&&null!=window.navigator?t.test(window.navigator.platform):void 0}!function(t){if(!t||"undefined"==typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");let d="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function f(){for(var t=arguments.length,e=Array(t),n=0;n{t.removeEventListener(e,n,r)}}function w(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let e=h(t);if(e!==document.documentElement&&e!==document.body&&e!==t){let n=e.getBoundingClientRect().top,r=t.getBoundingClientRect().top;t.getBoundingClientRect().bottom>e.getBoundingClientRect().bottom+24&&(e.scrollTop+=r-n)}t=e.parentElement}}function b(t){return t instanceof HTMLInputElement&&!y.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function x(){for(var t=arguments.length,e=Array(t),n=0;ne.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}let O=new WeakMap;function E(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||!(t instanceof HTMLElement))return;let r={};Object.entries(e).forEach(e=>{let[n,a]=e;if(n.startsWith("--")){t.style.setProperty(n,a);return}r[n]=t.style[n],t.style[n]=a}),n||O.set(t,r)}let A=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function k(t,e){if(!t)return null;let n=window.getComputedStyle(t),r=n.transform||n.webkitTransform||n.mozTransform,a=r.match(/^matrix3d\((.+)\)$/);return a?parseFloat(a[1].split(", ")[A(e)?13:12]):(a=r.match(/^matrix\((.+)\)$/))?parseFloat(a[1].split(", ")[A(e)?5:4]):null}function P(t,e){if(!t)return()=>{};let n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}}let j={DURATION:.5,EASE:[.32,.72,0,1]},S="vaul-dragging";function D(t){let e=i.useRef(t);return i.useEffect(()=>{e.current=t}),i.useMemo(()=>function(){for(var t=arguments.length,n=Array(t),r=0;r{}}=t,[a,o]=function(t){let{defaultProp:e,onChange:n}=t,r=i.useState(e),[a]=r,o=i.useRef(a),l=D(n);return i.useEffect(()=>{o.current!==a&&(l(a),o.current=a)},[a,o,l]),r}({defaultProp:n,onChange:r}),l=void 0!==e,c=l?e:a,u=D(r);return[c,i.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[l,e,o,u])]}let R=()=>()=>{},T=null;function C(t){var e,n;let{open:l,onOpenChange:s,children:m,onDrag:y,onRelease:x,snapPoints:P,shouldScaleBackground:D=!1,setBackgroundColorOnScale:R=!0,closeThreshold:C=.25,scrollLockTimeout:N=100,dismissible:L=!0,handleOnly:z=!1,fadeFromIndex:I=P&&P.length-1,activeSnapPoint:F,setActiveSnapPoint:B,fixed:W,modal:H=!0,onClose:_,nested:X,noBodyStyles:V=!1,direction:U="bottom",defaultOpen:q=!1,disablePreventScroll:Y=!0,snapToSequentialPoint:$=!1,preventScrollRestoration:G=!1,repositionInputs:J=!0,onAnimationEnd:Z,container:K,autoFocus:Q=!1}=t,[tt=!1,te]=M({defaultProp:q,prop:l,onChange:t=>{null==s||s(t),t||X||tT(),setTimeout(()=>{null==Z||Z(t)},1e3*j.DURATION),t&&!H&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),t||(document.body.style.pointerEvents="auto")}}),[tn,tr]=i.useState(!1),[ta,ti]=i.useState(!1),[to,tl]=i.useState(!1),tc=i.useRef(null),tu=i.useRef(null),ts=i.useRef(null),td=i.useRef(null),tf=i.useRef(null),tp=i.useRef(!1),tm=i.useRef(null),th=i.useRef(0),ty=i.useRef(!1),tv=i.useRef(!q),tg=i.useRef(0),tw=i.useRef(null),tb=i.useRef((null==(e=tw.current)?void 0:e.getBoundingClientRect().height)||0),tx=i.useRef((null==(n=tw.current)?void 0:n.getBoundingClientRect().width)||0),tO=i.useRef(0),tE=i.useCallback(t=>{P&&t===tS.length-1&&(tu.current=new Date)},[]),{activeSnapPoint:tA,activeSnapPointIndex:tk,setActiveSnapPoint:tP,onRelease:tj,snapPointsOffset:tS,onDrag:tD,shouldFade:tM,getPercentageDragged:tR}=function(t){let{activeSnapPointProp:e,setActiveSnapPointProp:n,snapPoints:r,drawerRef:a,overlayRef:o,fadeFromIndex:l,onSnapPointChange:c,direction:u="bottom",container:s,snapToSequentialPoint:d}=t,[f,p]=M({prop:e,defaultProp:null==r?void 0:r[0],onChange:n}),[m,h]=i.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);i.useEffect(()=>{function t(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let y=i.useMemo(()=>f===(null==r?void 0:r[r.length-1])||null,[r,f]),v=i.useMemo(()=>{var t;return null!=(t=null==r?void 0:r.findIndex(t=>t===f))?t:null},[r,f]),g=r&&r.length>0&&(l||0===l)&&!Number.isNaN(l)&&r[l]===f||!r,w=i.useMemo(()=>{var t;let e=s?{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height}:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return null!=(t=null==r?void 0:r.map(t=>{let n="string"==typeof t,r=0;if(n&&(r=parseInt(t,10)),A(u)){let a=n?r:m?t*e.height:0;return m?"bottom"===u?e.height-a:-e.height+a:a}let a=n?r:m?t*e.width:0;return m?"right"===u?e.width-a:-e.width+a:a}))?t:[]},[r,m,s]),b=i.useMemo(()=>null!==v?null==w?void 0:w[v]:null,[w,v]),x=i.useCallback(t=>{var e;let n=null!=(e=null==w?void 0:w.findIndex(e=>e===t))?e:null;c(n),E(a.current,{transition:"transform ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")"),transform:A(u)?"translate3d(0, ".concat(t,"px, 0)"):"translate3d(".concat(t,"px, 0, 0)")}),w&&n!==w.length-1&&void 0!==l&&n!==l&&n{if(f||e){var t;let n=null!=(t=null==r?void 0:r.findIndex(t=>t===e||t===f))?t:-1;w&&-1!==n&&"number"==typeof w[n]&&x(w[n])}},[f,e,r,w,x]),{isLastSnapPoint:y,activeSnapPoint:f,shouldFade:g,getPercentageDragged:function(t,e){if(!r||"number"!=typeof v||!w||void 0===l)return null;let n=v===l-1;if(v>=l&&e)return 0;if(n&&!e)return 1;if(!g&&!n)return null;let a=n?v+1:v-1,i=t/Math.abs(n?w[a]-w[a-1]:w[a+1]-w[a]);return n?1-i:i},setActiveSnapPoint:p,activeSnapPointIndex:v,onRelease:function(t){let{draggedDistance:e,closeDrawer:n,velocity:a,dismissible:i}=t;if(void 0===l)return;let c="bottom"===u||"right"===u?(null!=b?b:0)-e:(null!=b?b:0)+e,s=v===l-1,f=0===v,p=e>0;if(s&&E(o.current,{transition:"opacity ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")")}),!d&&a>2&&!p){i?n():x(w[0]);return}if(!d&&a>2&&p&&w&&r){x(w[r.length-1]);return}let m=null==w?void 0:w.reduce((t,e)=>"number"!=typeof t||"number"!=typeof e?t:Math.abs(e-c).4&&Math.abs(e)<.4*h){let t=p?1:-1;if(t>0&&y&&r){x(w[r.length-1]);return}if(f&&t<0&&i&&n(),null===v)return;x(w[v+t]);return}x(m)},onDrag:function(t){let{draggedDistance:e}=t;if(null===b)return;let n="bottom"===u||"right"===u?b-e:b+e;("bottom"===u||"right"===u)&&nw[w.length-1]||E(a.current,{transform:A(u)?"translate3d(0, ".concat(n,"px, 0)"):"translate3d(".concat(n,"px, 0, 0)")})},snapPointsOffset:w}}({snapPoints:P,activeSnapPointProp:F,setActiveSnapPointProp:B,drawerRef:tw,fadeFromIndex:I,overlayRef:tc,onSnapPointChange:tE,direction:U,container:K,snapToSequentialPoint:$});!function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:e}=t;d(()=>{if(!e){var t,n,a;let e,i,o,l,c,s,d;return 1==++v&&u()&&(o=0,l=window.pageXOffset,c=window.pageYOffset,s=f((t=document.documentElement,n="paddingRight",a="".concat(window.innerWidth-document.documentElement.clientWidth,"px"),i=t.style[n],t.style[n]=a,()=>{t.style[n]=i})),window.scrollTo(0,0),d=f(g(document,"touchstart",t=>{((e=h(t.target))!==document.documentElement||e!==document.body)&&(o=t.changedTouches[0].pageY)},{passive:!1,capture:!0}),g(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}let n=t.changedTouches[0].pageY,r=e.scrollTop,a=e.scrollHeight-e.clientHeight;0!==a&&((r<=0&&n>o||r>=a&&n{let e=t.target;b(e)&&e!==document.activeElement&&(t.preventDefault(),e.style.transform="translateY(-2000px)",e.focus(),requestAnimationFrame(()=>{e.style.transform=""}))},{passive:!1,capture:!0}),g(document,"focus",t=>{let e=t.target;b(e)&&(e.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{e.style.transform="",p&&(p.height{w(e)}):p.addEventListener("resize",()=>w(e),{once:!0}))}))},!0),g(window,"scroll",()=>{window.scrollTo(0,0)})),r=()=>{s(),d(),window.scrollTo(l,c)}),()=>{0==--v&&(null==r||r())}}},[e])}({isDisabled:!tt||ta||!H||to||!tn||!J||!Y});let{restorePositionSetting:tT}=function(t){let{isOpen:e,modal:n,nested:r,hasBeenOpened:a,preventScrollRestoration:o,noBodyStyles:l}=t,[u,s]=i.useState(()=>"undefined"!=typeof window?window.location.href:""),d=i.useRef(0),f=i.useCallback(()=>{if(c()&&null===T&&e&&!l){T={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:t,innerHeight:e}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:"".concat(-d.current,"px"),left:"".concat(-t,"px"),right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let t=e-window.innerHeight;t&&d.current>=e&&(document.body.style.top="".concat(-(d.current+t),"px"))}),300)}},[e]),p=i.useCallback(()=>{if(c()&&null!==T&&!l){let t=-parseInt(document.body.style.top,10),e=-parseInt(document.body.style.left,10);Object.assign(document.body.style,T),window.requestAnimationFrame(()=>{if(o&&u!==window.location.href){s(window.location.href);return}window.scrollTo(e,t)}),T=null}},[u]);return i.useEffect(()=>{function t(){d.current=window.scrollY}return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[]),i.useEffect(()=>{if(n)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||p())}},[n,p]),i.useEffect(()=>{r||!a||(e?(window.matchMedia("(display-mode: standalone)").matches||f(),n||window.setTimeout(()=>{p()},500)):p())},[e,a,u,n,r,f,p]),{restorePositionSetting:p}}({isOpen:tt,modal:H,nested:null!=X&&X,hasBeenOpened:tn,preventScrollRestoration:G,noBodyStyles:V});function tC(){return(window.innerWidth-26)/window.innerWidth}function tN(t,e){var n;let r=t,a=null==(n=window.getSelection())?void 0:n.toString(),i=tw.current?k(tw.current,U):null,o=new Date;if("SELECT"===r.tagName||r.hasAttribute("data-vaul-no-drag")||r.closest("[data-vaul-no-drag]"))return!1;if("right"===U||"left"===U)return!0;if(tu.current&&o.getTime()-tu.current.getTime()<500)return!1;if(null!==i&&("bottom"===U?i>0:i<0))return!0;if(a&&a.length>0)return!1;if(tf.current&&o.getTime()-tf.current.getTime()r.clientHeight){if(0!==r.scrollTop)return tf.current=new Date,!1;if("dialog"===r.getAttribute("role"))break}r=r.parentNode}return!0}function tL(t){ta&&tw.current&&(tw.current.classList.remove(S),tp.current=!1,ti(!1),td.current=new Date),null==_||_(),t||te(!1),setTimeout(()=>{P&&tP(P[0])},1e3*j.DURATION)}function tz(){if(!tw.current)return;let t=document.querySelector("[data-vaul-drawer-wrapper]"),e=k(tw.current,U);E(tw.current,{transform:"translate3d(0, 0, 0)",transition:"transform ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")")}),E(tc.current,{transition:"opacity ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")"),opacity:"1"}),D&&e&&e>0&&tt&&E(t,{borderRadius:"".concat(8,"px"),overflow:"hidden",...A(U)?{transform:"scale(".concat(tC(),") translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)"),transformOrigin:"top"}:{transform:"scale(".concat(tC(),") translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)"),transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:"".concat(j.DURATION,"s"),transitionTimingFunction:"cubic-bezier(".concat(j.EASE.join(","),")")},!0)}return i.useEffect(()=>{window.requestAnimationFrame(()=>{tv.current=!0})},[]),i.useEffect(()=>{var t;function e(){if(tw.current&&J&&(b(document.activeElement)||ty.current)){var t;let e=(null==(t=window.visualViewport)?void 0:t.height)||0,n=window.innerHeight,r=n-e,a=tw.current.getBoundingClientRect().height||0;tO.current||(tO.current=a);let i=tw.current.getBoundingClientRect().top;if(Math.abs(tg.current-r)>60&&(ty.current=!ty.current),P&&P.length>0&&tS&&tk&&(r+=tS[tk]||0),tg.current=r,a>e||ty.current){let t=tw.current.getBoundingClientRect().height,o=t;t>e&&(o=e-(a>.8*n?i:26)),W?tw.current.style.height="".concat(t-Math.max(r,0),"px"):tw.current.style.height="".concat(Math.max(o,e-i),"px")}else!function(){let t=navigator.userAgent;return"undefined"!=typeof window&&(/Firefox/.test(t)&&/Mobile/.test(t)||/FxiOS/.test(t))}()&&(tw.current.style.height="".concat(tO.current,"px"));P&&P.length>0&&!ty.current?tw.current.style.bottom="0px":tw.current.style.bottom="".concat(Math.max(r,0),"px")}}return null==(t=window.visualViewport)||t.addEventListener("resize",e),()=>{var t;return null==(t=window.visualViewport)?void 0:t.removeEventListener("resize",e)}},[tk,P,tS]),i.useEffect(()=>(tt&&(E(document.documentElement,{scrollBehavior:"auto"}),tu.current=new Date),()=>{!function(t,e){if(!t||!(t instanceof HTMLElement))return;let n=O.get(t);n&&(t.style[e]=n[e])}(document.documentElement,"scrollBehavior")}),[tt]),i.useEffect(()=>{H||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[H]),i.createElement(a.bL,{defaultOpen:q,onOpenChange:t=>{(L||t)&&(t?tr(!0):tL(!0),te(t))},open:tt},i.createElement(o.Provider,{value:{activeSnapPoint:tA,snapPoints:P,setActiveSnapPoint:tP,drawerRef:tw,overlayRef:tc,onOpenChange:s,onPress:function(t){var e,n;(L||P)&&(!tw.current||tw.current.contains(t.target))&&(tb.current=(null==(e=tw.current)?void 0:e.getBoundingClientRect().height)||0,tx.current=(null==(n=tw.current)?void 0:n.getBoundingClientRect().width)||0,ti(!0),ts.current=new Date,u()&&window.addEventListener("touchend",()=>tp.current=!1,{once:!0}),t.target.setPointerCapture(t.pointerId),th.current=A(U)?t.pageY:t.pageX)},onRelease:function(t){var e,n;if(!ta||!tw.current)return;tw.current.classList.remove(S),tp.current=!1,ti(!1),td.current=new Date;let r=k(tw.current,U);if(!t||!tN(t.target,!1)||!r||Number.isNaN(r)||null===ts.current)return;let a=td.current.getTime()-ts.current.getTime(),i=th.current-(A(U)?t.pageY:t.pageX),o=Math.abs(i)/a;if(o>.05&&(tl(!0),setTimeout(()=>{tl(!1)},200)),P){tj({draggedDistance:i*("bottom"===U||"right"===U?1:-1),closeDrawer:tL,velocity:o,dismissible:L}),null==x||x(t,!0);return}if("bottom"===U||"right"===U?i>0:i<0){tz(),null==x||x(t,!0);return}if(o>.4){tL(),null==x||x(t,!1);return}let l=Math.min(null!=(e=tw.current.getBoundingClientRect().height)?e:0,window.innerHeight),c=Math.min(null!=(n=tw.current.getBoundingClientRect().width)?n:0,window.innerWidth);if(Math.abs(r)>=("left"===U||"right"===U?c:l)*C){tL(),null==x||x(t,!1);return}null==x||x(t,!0),tz()},onDrag:function(t){if(tw.current&&ta){let e="bottom"===U||"right"===U?1:-1,n=(th.current-(A(U)?t.pageY:t.pageX))*e,r=n>0,a=P&&!L&&!r;if(a&&0===tk)return;let i=Math.abs(n),o=document.querySelector("[data-vaul-drawer-wrapper]"),l=i/("bottom"===U||"top"===U?tb.current:tx.current),c=tR(i,r);if(null!==c&&(l=c),a&&l>=1||!tp.current&&!tN(t.target,r))return;if(tw.current.classList.add(S),tp.current=!0,E(tw.current,{transition:"none"}),E(tc.current,{transition:"none"}),P&&tD({draggedDistance:n}),r&&!P){let t=Math.min(-(8*(Math.log(n+1)-2)*1),0)*e;E(tw.current,{transform:A(U)?"translate3d(0, ".concat(t,"px, 0)"):"translate3d(".concat(t,"px, 0, 0)")});return}let u=1-l;if((tM||I&&tk===I-1)&&(null==y||y(t,l),E(tc.current,{opacity:"".concat(u),transition:"none"},!0)),o&&tc.current&&D){let t=Math.min(tC()+l*(1-tC()),1),e=8-8*l,n=Math.max(0,14-14*l);E(o,{borderRadius:"".concat(e,"px"),transform:A(U)?"scale(".concat(t,") translate3d(0, ").concat(n,"px, 0)"):"scale(".concat(t,") translate3d(").concat(n,"px, 0, 0)"),transition:"none"},!0)}if(!P){let t=i*e;E(tw.current,{transform:A(U)?"translate3d(0, ".concat(t,"px, 0)"):"translate3d(".concat(t,"px, 0, 0)")})}}},dismissible:L,shouldAnimate:tv,handleOnly:z,isOpen:tt,isDragging:ta,shouldFade:tM,closeDrawer:tL,onNestedDrag:function(t,e){if(e<0)return;let n=(window.innerWidth-16)/window.innerWidth,r=n+e*(1-n),a=-16+16*e;E(tw.current,{transform:A(U)?"scale(".concat(r,") translate3d(0, ").concat(a,"px, 0)"):"scale(".concat(r,") translate3d(").concat(a,"px, 0, 0)"),transition:"none"})},onNestedOpenChange:function(t){let e=t?(window.innerWidth-16)/window.innerWidth:1,n=t?-16:0;tm.current&&window.clearTimeout(tm.current),E(tw.current,{transition:"transform ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")"),transform:A(U)?"scale(".concat(e,") translate3d(0, ").concat(n,"px, 0)"):"scale(".concat(e,") translate3d(").concat(n,", 0, 0)")}),!t&&tw.current&&(tm.current=setTimeout(()=>{let t=k(tw.current,U);E(tw.current,{transition:"none",transform:A(U)?"translate3d(0, ".concat(t,"px, 0)"):"translate3d(".concat(t,"px, 0, 0)")})},500))},onNestedRelease:function(t,e){let n=A(U)?window.innerHeight:window.innerWidth,r=e?(n-16)/n:1,a=e?-16:0;e&&E(tw.current,{transition:"transform ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")"),transform:A(U)?"scale(".concat(r,") translate3d(0, ").concat(a,"px, 0)"):"scale(".concat(r,") translate3d(").concat(a,"px, 0, 0)")})},keyboardIsOpen:ty,modal:H,snapPointsOffset:tS,activeSnapPointIndex:tk,direction:U,shouldScaleBackground:D,setBackgroundColorOnScale:R,noBodyStyles:V,container:K,autoFocus:Q}},m))}let N=i.forwardRef(function(t,e){let{...n}=t,{overlayRef:r,snapPoints:o,onRelease:c,shouldFade:u,isOpen:s,modal:d,shouldAnimate:f}=l(),p=x(e,r),m=o&&o.length>0;if(!d)return null;let h=i.useCallback(t=>c(t),[c]);return i.createElement(a.hJ,{onMouseUp:h,ref:p,"data-vaul-overlay":"","data-vaul-snap-points":s&&m?"true":"false","data-vaul-snap-points-overlay":s&&u?"true":"false","data-vaul-animate":(null==f?void 0:f.current)?"true":"false",...n})});N.displayName="Drawer.Overlay";let L=i.forwardRef(function(t,e){let{onPointerDownOutside:n,style:r,onOpenAutoFocus:o,...c}=t,{drawerRef:u,onPress:s,onRelease:d,onDrag:f,keyboardIsOpen:p,snapPointsOffset:m,activeSnapPointIndex:h,modal:y,isOpen:v,direction:g,snapPoints:w,container:b,handleOnly:O,shouldAnimate:E,autoFocus:k}=l(),[S,D]=i.useState(!1),M=x(e,u),T=i.useRef(null),C=i.useRef(null),N=i.useRef(!1),L=w&&w.length>0;!function(){let{direction:t,isOpen:e,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:a}=l(),o=i.useRef(null),c=(0,i.useMemo)(()=>document.body.style.backgroundColor,[]);function u(){return(window.innerWidth-26)/window.innerWidth}i.useEffect(()=>{if(e&&n){o.current&&clearTimeout(o.current);let e=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!e)return;!function(){for(var t=arguments.length,e=Array(t),n=0;n{n(),o.current=window.setTimeout(()=>{c?document.body.style.background=c:document.body.style.removeProperty("background")},1e3*j.DURATION)}}},[e,n,c])}();let z=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(N.current)return!0;let r=Math.abs(t.y),a=Math.abs(t.x),i=a>r,o=["bottom","right"].includes(e)?1:-1;if("left"===e||"right"===e){if(!(t.x*o<0)&&a>=0&&a<=n)return i}else if(!(t.y*o<0)&&r>=0&&r<=n)return!i;return N.current=!0,!0};function I(t){T.current=null,N.current=!1,d(t)}return i.useEffect(()=>{L&&window.requestAnimationFrame(()=>{D(!0)})},[]),i.createElement(a.UC,{"data-vaul-drawer-direction":g,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":v&&L?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":(null==E?void 0:E.current)?"true":"false",...c,ref:M,style:m&&m.length>0?{"--snap-point-height":"".concat(m[null!=h?h:0],"px"),...r}:r,onPointerDown:t=>{O||(null==c.onPointerDown||c.onPointerDown.call(c,t),T.current={x:t.pageX,y:t.pageY},s(t))},onOpenAutoFocus:t=>{null==o||o(t),k||t.preventDefault()},onPointerDownOutside:t=>{if(null==n||n(t),!y||t.defaultPrevented){t.preventDefault();return}p.current&&(p.current=!1)},onFocusOutside:t=>{if(!y){t.preventDefault();return}},onPointerMove:t=>{if(C.current=t,O||(null==c.onPointerMove||c.onPointerMove.call(c,t),!T.current))return;let e=t.pageY-T.current.y,n=t.pageX-T.current.x,r="touch"===t.pointerType?10:2;z({x:n,y:e},g,r)?f(t):(Math.abs(n)>r||Math.abs(e)>r)&&(T.current=null)},onPointerUp:t=>{null==c.onPointerUp||c.onPointerUp.call(c,t),T.current=null,N.current=!1,d(t)},onPointerOut:t=>{null==c.onPointerOut||c.onPointerOut.call(c,t),I(C.current)},onContextMenu:t=>{null==c.onContextMenu||c.onContextMenu.call(c,t),C.current&&I(C.current)}})});L.displayName="Drawer.Content";let z=i.forwardRef(function(t,e){let{preventCycle:n=!1,children:r,...a}=t,{closeDrawer:o,isDragging:c,snapPoints:u,activeSnapPoint:s,setActiveSnapPoint:d,dismissible:f,handleOnly:p,isOpen:m,onPress:h,onDrag:y}=l(),v=i.useRef(null),g=i.useRef(!1);function w(){v.current&&window.clearTimeout(v.current),g.current=!1}return i.createElement("div",{onClick:function(){if(g.current){w();return}window.setTimeout(()=>{!function(){if(c||n||g.current){w();return}if(w(),!u||0===u.length){f||o();return}if(s===u[u.length-1]&&f){o();return}let t=u.findIndex(t=>t===s);-1!==t&&d(u[t+1])}()},120)},onPointerCancel:w,onPointerDown:t=>{p&&h(t),v.current=window.setTimeout(()=>{g.current=!0},250)},onPointerMove:t=>{p&&y(t)},ref:e,"data-vaul-drawer-visible":m?"true":"false","data-vaul-handle":"","aria-hidden":"true",...a},i.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});z.displayName="Drawer.Handle";let I={Root:C,NestedRoot:function(t){let{onDrag:e,onOpenChange:n,...r}=t,{onNestedDrag:a,onNestedOpenChange:o,onNestedRelease:c}=l();if(!a)throw Error("Drawer.NestedRoot must be placed in another drawer");return i.createElement(C,{nested:!0,onClose:()=>{o(!1)},onDrag:(t,n)=>{a(t,n),null==e||e(t,n)},onOpenChange:t=>{t&&o(t)},onRelease:c,...r})},Content:L,Overlay:N,Trigger:a.l9,Portal:function(t){let e=l(),{container:n=e.container,...r}=t;return i.createElement(a.ZL,{container:n,...r})},Handle:z,Close:a.bm,Title:a.hE,Description:a.VY}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4458-cf753779a05ab41e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4458-cf753779a05ab41e.js new file mode 100644 index 0000000..de9a509 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4458-cf753779a05ab41e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4458],{17799:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},89463:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]])},622:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},98969:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},14389:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},8782:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},10964:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},99312:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},7778:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},25262:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},97801:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},90304:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},20633:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},12607:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},92823:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},92776:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(t);ae.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n};Object.defineProperty(e,"__esModule",{value:!0});var c=o(n(20107)),u=n(22184),s=n(30120),d=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];e.default=function(t){var e=t.loading,n=t.color,a=void 0===n?"#000000":n,i=t.speedMultiplier,o=void 0===i?1:i,s=t.cssOverride,f=t.size,p=l(t,["loading","color","speedMultiplier","cssOverride","size"]),m=(0,u.parseLengthAndUnit)(void 0===f?15:f),h=m.value,y=m.unit,v=r({display:"inherit",position:"relative"},void 0===s?{}:s),g=function(t){return{position:"absolute",fontSize:"".concat(h/3).concat(y),width:"".concat(h).concat(y),height:"".concat(h).concat(y),background:a,borderRadius:"50%",animation:"".concat(d[t]," ").concat(1.5/o,"s infinite"),animationFillMode:"forwards"}};return void 0===e||e?c.createElement("span",r({style:v},p),c.createElement("span",{style:g(0)}),c.createElement("span",{style:g(1)}),c.createElement("span",{style:g(2)}),c.createElement("span",{style:g(3)}),c.createElement("span",{style:g(4)}),c.createElement("span",{style:g(5)})):null}},71834:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(20107),a={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function i(t){var e=function(t){if("number"==typeof t)return{value:t,unit:"px"};var e,n=(t.match(/^[0-9.]*/)||"").toString();e=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(t.match(/[^0-9]*$/)||"").toString();return a[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}(t);return"".concat(e.value).concat(e.unit)}var o=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return i&&i.insertRule(o,0),r},l=function(){return(l=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(t);ae.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},u=[o("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),o("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];let s=function(t){var e=t.loading,n=t.color,a=void 0===n?"#000000":n,o=t.speedMultiplier,s=void 0===o?1:o,d=t.cssOverride,f=t.size,p=void 0===f?60:f,m=c(t,["loading","color","speedMultiplier","cssOverride","size"]),h=l({display:"inherit",position:"relative",width:i(p),height:i(p)},void 0===d?{}:d),y=function(t){return{position:"absolute",height:i(p),width:i(p),border:"thick solid ".concat(a),borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:"".concat(u[0],", ").concat(u[1]),animationDuration:"".concat(2/s,"s"),animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:1===t?"-1s":"0s"}};return void 0===e||e?r.createElement("span",l({style:h},m),r.createElement("span",{style:y(1)}),r.createElement("span",{style:y(2)})):null}},30120:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=void 0,e.createAnimation=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return i&&i.insertRule(o,0),r}},22184:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cssValue=e.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(t){if("number"==typeof t)return{value:t,unit:"px"};var e,r=(t.match(/^[0-9.]*/)||"").toString();e=r.includes(".")?parseFloat(r):parseInt(r,10);var a=(t.match(/[^0-9]*$/)||"").toString();return n[a]?{value:e,unit:a}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}e.parseLengthAndUnit=r,e.cssValue=function(t){var e=r(t);return"".concat(e.value).concat(e.unit)}},79492:(t,e,n)=>{n.d(e,{G:()=>I});var r=n(20107),a=n(64901),i=n(61075),o=n(14632),l=n.n(o),c=n(12838),u=n.n(c),s=n(87107),d=n.n(s),f=n(50801),p=n.n(f),m=n(6440),h=n.n(m),y=n(60992),v=n(42555),g=n(37819),b=n(58864),w=n(95392),x=n(89952),O=n(95492),E=n(61211),A=["layout","type","stroke","connectNulls","isRange","ref"],P=["key"];function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function S(){return(S=Object.assign?Object.assign.bind():function(t){for(var e=1;e0||!h()(l,r)||!h()(c,a))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,a,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,o=e.points,l=e.className,c=e.top,u=e.left,s=e.xAxis,f=e.yAxis,p=e.width,m=e.height,h=e.isAnimationActive,y=e.id;if(n||!o||!o.length)return null;var v=this.state.isAnimationFinished,w=1===o.length,x=(0,a.A)("recharts-area",l),O=s&&s.allowDataOverflow,A=f&&f.allowDataOverflow,P=O||A,k=d()(y)?this.id:y,j=null!==(t=(0,E.J9)(i,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=j.r,D=j.strokeWidth,M=((0,E.sT)(i)?i:{}).clipDot,R=void 0===M||M,T=2*(void 0===S?3:S)+(void 0===D?2:D);return r.createElement(g.W,{className:x},O||A?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(k)},r.createElement("rect",{x:O?u:u-p/2,y:A?c:c-m/2,width:O?p:2*p,height:A?m:2*m})),!R&&r.createElement("clipPath",{id:"clipPath-dots-".concat(k)},r.createElement("rect",{x:u-T/2,y:c-T/2,width:p+T,height:m+T}))):null,w?null:this.renderArea(P,k),(i||w)&&this.renderDots(P,R,k),(!h||v)&&b.Z.renderCallByParent(this.props,o))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],e&&R(o.prototype,e),n&&R(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.PureComponent);L(I,"displayName","Area"),L(I,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!w.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),L(I,"getBaseValue",function(t,e,n,r){var a=t.layout,i=t.baseValue,o=e.props.baseValue,l=null!=o?o:i;if((0,x.Et)(l)&&"number"==typeof l)return l;var c="horizontal"===a?r:n,u=c.scale.domain();if("number"===c.type){var s=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return"dataMin"===l?d:"dataMax"===l?s:s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===l?u[0]:"dataMax"===l?u[1]:u[0]}),L(I,"getComposedData",function(t){var e,n=t.props,r=t.item,a=t.xAxis,i=t.yAxis,o=t.xAxisTicks,l=t.yAxisTicks,c=t.bandSize,u=t.dataKey,s=t.stackedData,d=t.dataStartIndex,f=t.displayedData,p=t.offset,m=n.layout,h=s&&s.length,y=I.getBaseValue(n,r,a,i),v="horizontal"===m,g=!1,b=f.map(function(t,e){h?n=s[d+e]:Array.isArray(n=(0,O.kr)(t,u))?g=!0:n=[y,n];var n,r=null==n[1]||h&&null==(0,O.kr)(t,u);return v?{x:(0,O.nb)({axis:a,ticks:o,bandSize:c,entry:t,index:e}),y:r?null:i.scale(n[1]),value:n,payload:t}:{x:r?null:a.scale(n[1]),y:(0,O.nb)({axis:i,ticks:l,bandSize:c,entry:t,index:e}),value:n,payload:t}});return e=h||g?b.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return v?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?a.scale(e):null,y:t.y}}):v?i.scale(y):a.scale(y),M({points:b,baseLine:e,layout:m,isRange:g},p)}),L(I,"renderDotItem",function(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(l()(t))n=t(e);else{var i=(0,a.A)("recharts-area-dot","boolean"!=typeof t?t.className:""),o=e.key,c=j(e,P);n=r.createElement(v.c,S({},c,{key:o,className:i}))}return n})},94005:(t,e,n)=>{n.d(e,{d:()=>D});var r=n(20107),a=n(14632),i=n.n(a),o=n(42228),l=n(89952),c=n(61211),u=n(95492),s=n(62882),d=n(67064),f=n(25161),p=["x1","y1","x2","y2","key"],m=["offset"];function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function v(t){for(var e=1;e=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var w=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,a=t.x,i=t.y,o=t.width,l=t.height,c=t.ry;return r.createElement("rect",{x:a,y:i,ry:c,width:o,height:l,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function x(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(i()(t))n=t(e);else{var a=e.x1,o=e.y1,l=e.x2,u=e.y2,s=e.key,d=b(e,p),f=(0,c.J9)(d,!1),h=(f.offset,b(f,m));n=r.createElement("line",g({},h,{x1:a,y1:o,x2:l,y2:u,fill:"none",key:s}))}return n}function O(t){var e=t.x,n=t.width,a=t.horizontal,i=void 0===a||a,o=t.horizontalPoints;if(!i||!o||!o.length)return null;var l=o.map(function(r,a){return x(i,v(v({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(a),index:a}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function E(t){var e=t.y,n=t.height,a=t.vertical,i=void 0===a||a,o=t.verticalPoints;if(!i||!o||!o.length)return null;var l=o.map(function(r,a){return x(i,v(v({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(a),index:a}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function A(t){var e=t.horizontalFill,n=t.fillOpacity,a=t.x,i=t.y,o=t.width,l=t.height,c=t.horizontalPoints,u=t.horizontal;if(!(void 0===u||u)||!e||!e.length)return null;var s=c.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var d=s.map(function(t,c){var u=s[c+1]?s[c+1]-t:i+l-t;if(u<=0)return null;var d=c%e.length;return r.createElement("rect",{key:"react-".concat(c),y:t,x:a,height:u,width:o,stroke:"none",fill:e[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function P(t){var e=t.vertical,n=t.verticalFill,a=t.fillOpacity,i=t.x,o=t.y,l=t.width,c=t.height,u=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var s=u.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var d=s.map(function(t,e){var u=s[e+1]?s[e+1]-t:i+l-t;if(u<=0)return null;var d=e%n.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:o,width:u,height:c,stroke:"none",fill:n[d],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var k=function(t,e){var n=t.xAxis,r=t.width,a=t.height,i=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},d.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.left,i.left+i.width,e)},j=function(t,e){var n=t.yAxis,r=t.width,a=t.height,i=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},d.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.top,i.top+i.height,e)},S={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function D(t){var e,n,a,c,u,s,d=(0,f.yi)(),p=(0,f.rY)(),m=(0,f.hj)(),y=v(v({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:S.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:S.fill,horizontal:null!==(a=t.horizontal)&&void 0!==a?a:S.horizontal,horizontalFill:null!==(c=t.horizontalFill)&&void 0!==c?c:S.horizontalFill,vertical:null!==(u=t.vertical)&&void 0!==u?u:S.vertical,verticalFill:null!==(s=t.verticalFill)&&void 0!==s?s:S.verticalFill,x:(0,l.Et)(t.x)?t.x:m.left,y:(0,l.Et)(t.y)?t.y:m.top,width:(0,l.Et)(t.width)?t.width:m.width,height:(0,l.Et)(t.height)?t.height:m.height}),b=y.x,x=y.y,D=y.width,M=y.height,R=y.syncWithTicks,T=y.horizontalValues,C=y.verticalValues,N=(0,f.pj)(),L=(0,f.$G)();if(!(0,l.Et)(D)||D<=0||!(0,l.Et)(M)||M<=0||!(0,l.Et)(b)||b!==+b||!(0,l.Et)(x)||x!==+x)return null;var z=y.verticalCoordinatesGenerator||k,I=y.horizontalCoordinatesGenerator||j,F=y.horizontalPoints,B=y.verticalPoints;if((!F||!F.length)&&i()(I)){var W=T&&T.length,H=I({yAxis:L?v(v({},L),{},{ticks:W?T:L.ticks}):void 0,width:d,height:p,offset:m},!!W||R);(0,o.R)(Array.isArray(H),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h(H),"]")),Array.isArray(H)&&(F=H)}if((!B||!B.length)&&i()(z)){var _=C&&C.length,X=z({xAxis:N?v(v({},N),{},{ticks:_?C:N.ticks}):void 0,width:d,height:p,offset:m},!!_||R);(0,o.R)(Array.isArray(X),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h(X),"]")),Array.isArray(X)&&(B=X)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(w,{fill:y.fill,fillOpacity:y.fillOpacity,x:y.x,y:y.y,width:y.width,height:y.height,ry:y.ry}),r.createElement(O,g({},y,{offset:m,horizontalPoints:F,xAxis:N,yAxis:L})),r.createElement(E,g({},y,{offset:m,verticalPoints:B,xAxis:N,yAxis:L})),r.createElement(A,g({},y,{horizontalPoints:F})),r.createElement(P,g({},y,{verticalPoints:B})))}D.displayName="CartesianGrid"},53134:(t,e,n)=>{n.d(e,{Q:()=>c});var r=n(90805),a=n(79492),i=n(4538),o=n(41797),l=n(98456),c=(0,r.gu)({chartName:"AreaChart",GraphicalChild:a.G,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:o.h}],formatAxisMap:l.pr})},74043:(t,e,n)=>{n.d(e,{A:()=>P});var r=n(20107);function a(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function i(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&n.every(n=>{let r=t[n],o=e[n];return"function"==typeof r?`${r}`==`${o}`:a(r)&&a(o)?i(r,o):r===o})}function o(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function l(t){return"number"==typeof t}function c(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function d(t){return Math.abs(t)}function f(t){return Math.sign(t)}function p(t){return v(t).map(Number)}function m(t){return t[h(t)]}function h(t){return Math.max(0,t.length-1)}function y(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function v(t){return Object.keys(t)}function g(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function b(){let t=[],e={add:function(n,r,a,i={passive:!0}){let o;return"addEventListener"in n?(n.addEventListener(r,a,i),o=()=>n.removeEventListener(r,a,i)):(n.addListener(a),o=()=>n.removeListener(a)),t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function w(t=0,e=0){let n=d(t-e);function r(n){return ne}return{length:n,max:e,min:t,constrain:function(n){return r(n)?ne},reachedMin:function(e){return e(v(n).forEach(r=>{let a=e[r],i=n[r],o=s(a)&&s(i);e[r]=o?t(a,i):i}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){let r=n.breakpoints||{},a=v(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,n)=>e(t,n),{});return e(n,a)},optionsMediaQueries:function(e){return e.map(t=>v(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(j),D=(P=[],{init:function(t,e){return(P=e.filter(({options:t})=>!1!==S.optionsAtMedia(t).active)).forEach(e=>e.init(t,S)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){P=P.filter(t=>t.destroy())}}),M=b(),R=function(){let t,e={},n={init:function(e){t=e},emit:function(r){return(e[r]||[]).forEach(e=>e(t,r)),n},off:function(t,r){return e[t]=(e[t]||[]).filter(t=>t!==r),n},on:function(t,r){return e[t]=(e[t]||[]).concat([r]),n},clear:function(){e={}}};return n}(),{mergeOptions:T,optionsAtMedia:C,optionsMediaQueries:N}=S,{on:L,off:z,emit:I}=R,F=!1,B=T(E,A.globalOptions),W=T(B),H=[];function _(e,n){!F&&(W=C(B=T(B,e)),H=n||H,function(){let{container:e,slides:n}=W;i=(c(e)?t.querySelector(e):e)||t.children[0];let r=c(n)?i.querySelectorAll(n):n;o=[].slice.call(r||i.children)}(),r=function e(n){let r=function(t,e,n,r,a,i,o){let s,E;let{align:A,axis:P,direction:k,startIndex:j,loop:S,duration:D,dragFree:M,dragThreshold:R,inViewThreshold:T,slidesToScroll:C,skipSnaps:N,containScroll:L,watchResize:z,watchSlides:I,watchDrag:F,watchFocus:B}=i,W={measure:function(t){let{offsetTop:e,offsetLeft:n,offsetWidth:r,offsetHeight:a}=t;return{top:e,right:n+r,bottom:e+a,left:n,width:r,height:a}}},H=W.measure(e),_=n.map(W.measure),X=function(t,e){let n="rtl"===e,r="y"===t,a=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(t){let{height:e,width:n}=t;return r?e:n},direction:function(t){return t*a}}}(P,k),V=X.measureSize(H),U={measure:function(t){return t/100*V}},q=function(t,e){let n={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(r,a){return c(t)?n[t](r):t(e,r,a)}}}(A,V),Y=!S&&!!L,{slideSizes:$,slideSizesWithGaps:G,startGap:J,endGap:K}=function(t,e,n,r,a,i){let{measureSize:o,startEdge:l,endEdge:c}=t,u=n[0]&&a,s=function(){if(!u)return 0;let t=n[0];return d(e[l]-t[l])}(),f=u?parseFloat(i.getComputedStyle(m(r)).getPropertyValue(`margin-${c}`)):0,p=n.map(o),y=n.map((t,e,n)=>{let r=e===h(n);return e?r?p[e]+f:n[e+1][l]-t[l]:p[e]+s}).map(d);return{slideSizes:p,slideSizesWithGaps:y,startGap:s,endGap:f}}(X,H,_,n,S||!!L,a),Z=function(t,e,n,r,a,i,o,c,u){let{startEdge:s,endEdge:f,direction:y}=t,v=l(n);return{groupSlides:function(t){return v?p(t).filter(t=>t%n==0).map(e=>t.slice(e,e+n)):t.length?p(t).reduce((n,l,u)=>{let p=m(n)||0,v=l===h(t),g=a[s]-i[p][s],b=a[s]-i[l][f],w=r||0!==p?0:y(o),x=d(b-(!r&&v?y(c):0)-(g+w));return u&&x>e+2&&n.push(l),v&&n.push(t.length),n},[]).map((e,n,r)=>{let a=Math.max(r[n-1]||0);return t.slice(a,e)}):[]}}}(X,V,C,S,H,_,J,K,0),{snaps:Q,snapsAligned:tt}=function(t,e,n,r,a){let{startEdge:i,endEdge:o}=t,{groupSlides:l}=a,c=l(r).map(t=>m(t)[o]-t[0][i]).map(d).map(e.measure),u=r.map(t=>n[i]-t[i]).map(t=>-d(t)),s=l(u).map(t=>t[0]).map((t,e)=>t+c[e]);return{snaps:u,snapsAligned:s}}(X,q,H,_,Z),te=-m(Q)+m(G),{snapsContained:tn,scrollContainLimit:tr}=function(t,e,n,r,a){let i=w(-e+t,0),o=n.map((t,e)=>{let{min:r,max:a}=i,o=i.constrain(t),l=e===h(n);return e?l||1>d(r-o)?r:1>d(a-o)?a:o:a}).map(t=>parseFloat(t.toFixed(3))),l=function(){let t=o[0],e=m(o);return w(o.lastIndexOf(t),o.indexOf(e)+1)}();return{snapsContained:function(){if(e<=t+2)return[i.max];if("keepSnaps"===r)return o;let{min:n,max:a}=l;return o.slice(n,a)}(),scrollContainLimit:l}}(V,te,tt,L,0),ta=Y?tn:tt,{limit:ti}=function(t,e,n){let r=e[0];return{limit:w(n?r-t:m(e),r)}}(te,ta,S),to=function t(e,n,r){let{constrain:a}=w(0,e),i=e+1,o=l(n);function l(t){return r?d((i+t)%i):a(t)}function c(){return t(e,o,r)}let u={get:function(){return o},set:function(t){return o=l(t),u},add:function(t){return c().set(o+t)},clone:c};return u}(h(ta),j,S),tl=to.clone(),tc=p(n),tu=({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:r}},a)=>{r||n.constrain(t.pointerDown()),e.seek(a)},ts=({scrollBody:t,translate:e,location:n,offsetLocation:r,scrollLooper:a,slideLooper:i,dragHandler:o,animation:l,eventHandler:c,scrollBounds:u,options:{loop:s}},d)=>{let f=t.settled(),p=!u.shouldConstrain(),m=s?f:f&&p;m&&!o.pointerDown()&&(l.stop(),c.emit("settle")),m||c.emit("scroll");let h=n.get()*d+tm.get()*(1-d);r.set(h),s&&(a.loop(t.direction()),i.loop()),e.to(r.get())},td=function(t,e,n,r){let a=b(),i=1e3/60,o=null,l=0,c=0;function u(t){if(!c)return;o||(o=t);let a=t-o;for(o=t,l+=a;l>=i;)n(i),l-=i;r(l/i),c&&e.requestAnimationFrame(u)}function s(){e.cancelAnimationFrame(c),o=null,l=0,c=0}return{init:function(){a.add(t,"visibilitychange",()=>{t.hidden&&(o=null,l=0)})},destroy:function(){s(),a.clear()},start:function(){c||(c=e.requestAnimationFrame(u))},stop:s,update:()=>n(i),render:r}}(r,a,t=>tu(tP,t),t=>ts(tP,t)),tf=ta[to.get()],tp=x(tf),tm=x(tf),th=x(tf),ty=x(tf),tv=function(t,e,n,r,a,i){let o=0,l=0,c=a,u=.68,s=t.get(),p=0;function m(t){return c=t,y}function h(t){return u=t,y}let y={direction:function(){return l},duration:function(){return c},velocity:function(){return o},seek:function(e){let a=e/1e3,i=c*a,d=r.get()-t.get(),m=0;return c?(n.set(t),o+=d/i,o*=u,s+=o,t.add(o*a),m=s-p):(o=0,n.set(r),t.set(r),m=d),l=f(m),p=s,y},settled:function(){return .001>d(r.get()-e.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return m(a)},useFriction:h,useDuration:m};return y}(tp,th,tm,ty,D,0),tg=function(t,e,n,r,a){let{reachedAny:i,removeOffset:o,constrain:l}=r;function c(t){return t.concat().sort((t,e)=>d(t)-d(e))[0]}function u(e,r){let a=[e,e+n,e-n];if(!t)return e;if(!r)return c(a);let i=a.filter(t=>f(t)===r);return i.length?c(i):m(a)-n}return{byDistance:function(n,r){let c=a.get()+n,{index:s,distance:f}=function(n){let r=t?o(n):l(n),{index:a}=e.map((t,e)=>({diff:u(t-r,0),index:e})).sort((t,e)=>d(t.diff)-d(e.diff))[0];return{index:a,distance:r}}(c),p=!t&&i(c);if(!r||p)return{index:s,distance:n};let m=n+u(e[s]-f,0);return{index:s,distance:m}},byIndex:function(t,n){let r=u(e[t]-a.get(),n);return{index:t,distance:r}},shortcut:u}}(S,ta,te,ti,ty),tb=function(t,e,n,r,a,i,o){function l(a){let l=a.distance,c=a.index!==e.get();i.add(l),l&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),c&&(n.set(e.get()),e.set(a.index),o.emit("select"))}return{distance:function(t,e){l(a.byDistance(t,e))},index:function(t,n){let r=e.clone().set(t);l(a.byIndex(r.get(),n))}}}(td,to,tl,tv,tg,ty,o),tw=function(t){let{max:e,length:n}=t;return{get:function(t){return n?-((t-e)/n):0}}}(ti),tx=b(),tO=function(t,e,n,r){let a;let i={},o=null,l=null,c=!1;return{init:function(){a=new IntersectionObserver(t=>{c||(t.forEach(t=>{i[e.indexOf(t.target)]=t}),o=null,l=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(t=>a.observe(t))},destroy:function(){a&&a.disconnect(),c=!0},get:function(t=!0){if(t&&o)return o;if(!t&&l)return l;let e=v(i).reduce((e,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(t&&a||!t&&!a)&&e.push(r),e},[]);return t&&(o=e),t||(l=e),e}}}(e,n,o,T),{slideRegistry:tE}=function(t,e,n,r,a,i){let{groupSlides:o}=a,{min:l,max:c}=r;return{slideRegistry:function(){let r=o(i);return 1===n.length?[i]:t&&"keepSnaps"!==e?r.slice(l,c).map((t,e,n)=>{let r=e===h(n);return e?r?y(h(i)-m(n)[0]+1,m(n)[0]):t:y(m(n[0])+1)}):r}()}}(Y,L,ta,tr,Z,tc),tA=function(t,e,n,r,a,i,o,c){let s={passive:!0,capture:!0},d=0;function f(t){"Tab"===t.code&&(d=new Date().getTime())}return{init:function(p){c&&(i.add(document,"keydown",f,!1),e.forEach((e,f)=>{i.add(e,"focus",e=>{(u(c)||c(p,e))&&function(e){if(new Date().getTime()-d>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;let i=n.findIndex(t=>t.includes(e));l(i)&&(a.useDuration(0),r.index(i,0),o.emit("slideFocus"))}(f)},s)}))}}}(t,n,tE,tb,tv,tx,o,B),tP={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:H,slideRects:_,animation:td,axis:X,dragHandler:function(t,e,n,r,a,i,o,l,c,s,p,m,h,y,v,x,O,E,A){let{cross:P,direction:k}=t,j=["INPUT","SELECT","TEXTAREA"],S={passive:!1},D=b(),M=b(),R=w(50,225).constrain(y.measure(20)),T={mouse:300,touch:400},C={mouse:500,touch:600},N=v?43:25,L=!1,z=0,I=0,F=!1,B=!1,W=!1,H=!1;function _(t){if(!g(t,r)&&t.touches.length>=2)return X(t);let e=i.readPoint(t),n=i.readPoint(t,P),o=d(e-z),c=d(n-I);if(!B&&!H&&(!t.cancelable||!(B=o>c)))return X(t);let u=i.pointerMove(t);o>x&&(W=!0),s.useFriction(.3).useDuration(.75),l.start(),a.add(k(u)),t.preventDefault()}function X(t){let e=p.byDistance(0,!1).index!==m.get(),n=i.pointerUp(t)*(v?C:T)[H?"mouse":"touch"],r=function(t,e){let n=m.add(-1*f(t)),r=p.byDistance(t,!v).distance;return v||d(t)t.preventDefault(),S).add(e,"touchmove",()=>void 0,S).add(e,"touchend",()=>void 0).add(e,"touchstart",l).add(e,"mousedown",l).add(e,"touchcancel",X).add(e,"contextmenu",X).add(e,"click",V,!0);function l(l){(u(A)||A(t,l))&&function(t){let l=g(t,r);H=l,W=v&&l&&!t.buttons&&L,L=d(a.get()-o.get())>=2,l&&0!==t.button||function(t){let e=t.nodeName||"";return j.includes(e)}(t.target)||(F=!0,i.pointerDown(t),s.useFriction(0).useDuration(0),a.set(o),function(){let t=H?n:e;M.add(t,"touchmove",_,S).add(t,"touchend",X).add(t,"mousemove",_,S).add(t,"mouseup",X)}(),z=i.readPoint(t),I=i.readPoint(t,P),h.emit("pointerDown"))}(l)}},destroy:function(){D.clear(),M.clear()},pointerDown:function(){return F}}}(X,t,r,a,ty,function(t,e){let n,r;function a(t){return t.timeStamp}function i(n,r){let a=r||t.scroll,i=`client${"x"===a?"X":"Y"}`;return(g(n,e)?n:n.touches[0])[i]}return{pointerDown:function(t){return n=t,r=t,i(t)},pointerMove:function(t){let e=i(t)-i(r),o=a(t)-a(n)>170;return r=t,o&&(n=t),e},pointerUp:function(t){if(!n||!r)return 0;let e=i(r)-i(n),o=a(t)-a(n),l=a(t)-a(r)>170,c=e/o;return o&&!l&&d(c)>.1?c:0},readPoint:i}}(X,a),tp,td,tb,tv,tg,to,o,U,M,R,N,0,F),eventStore:tx,percentOfView:U,index:to,indexPrevious:tl,limit:ti,location:tp,offsetLocation:th,previousLocation:tm,options:i,resizeHandler:function(t,e,n,r,a,i,o){let l,c;let s=[t].concat(r),f=[],p=!1;function m(t){return a.measureSize(o.measure(t))}return{init:function(a){i&&(c=m(t),f=r.map(m),l=new ResizeObserver(n=>{(u(i)||i(a,n))&&function(n){for(let i of n){if(p)return;let n=i.target===t,o=r.indexOf(i.target),l=n?c:f[o];if(d(m(n?t:r[o])-l)>=.5){a.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(t=>l.observe(t))}))},destroy:function(){p=!0,l&&l.disconnect()}}}(e,o,a,n,X,z,W),scrollBody:tv,scrollBounds:function(t,e,n,r,a){let i=a.measure(10),o=a.measure(50),l=w(.1,.99),c=!1;function u(){return!!(!c&&t.reachedAny(n.get())&&t.reachedAny(e.get()))}return{shouldConstrain:u,constrain:function(a){if(!u())return;let c=t.reachedMin(e.get())?"min":"max",s=d(t[c]-e.get()),f=n.get()-e.get(),p=l.constrain(s/o);n.subtract(f*p),!a&&d(f)t.add(o))}}}(te,ti,th,[tp,th,tm,ty]),scrollProgress:tw,scrollSnapList:ta.map(tw.get),scrollSnaps:ta,scrollTarget:tg,scrollTo:tb,slideLooper:function(t,e,n,r,a,i,o,l,c){let u=p(a),s=m(f(p(a).reverse(),o[0]),n,!1).concat(m(f(u,e-o[0]-1),-n,!0));function d(t,e){return t.reduce((t,e)=>t-a[e],e)}function f(t,e){return t.reduce((t,n)=>d(t,e)>0?t.concat([n]):t,[])}function m(a,o,u){let s=i.map((t,n)=>({start:t-r[n]+.5+o,end:t+e-.5+o}));return a.map(e=>{let r=u?0:-n,a=u?n:0,i=s[e][u?"end":"start"];return{index:e,loopPoint:i,slideLocation:x(-1),translate:O(t,c[e]),target:()=>l.get()>i?r:a}})}return{canLoop:function(){return s.every(({index:t})=>.1>=d(u.filter(e=>e!==t),e))},clear:function(){s.forEach(t=>t.translate.clear())},loop:function(){s.forEach(t=>{let{target:e,translate:n,slideLocation:r}=t,a=e();a!==r.get()&&(n.to(a),r.set(a))})},loopPoints:s}}(X,V,te,$,G,Q,ta,th,n),slideFocus:tA,slidesHandler:(E=!1,{init:function(t){I&&(s=new MutationObserver(e=>{!E&&(u(I)||I(t,e))&&function(e){for(let n of e)if("childList"===n.type){t.reInit(),o.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){s&&s.disconnect(),E=!0}}),slidesInView:tO,slideIndexes:tc,slideRegistry:tE,slidesToScroll:Z,target:ty,translate:O(X,e)};return tP}(t,i,o,k,j,n,R);return n.loop&&!r.slideLooper.canLoop()?e(Object.assign({},n,{loop:!1})):r}(W),N([B,...H.map(({options:t})=>t)]).forEach(t=>M.add(t,"change",X)),W.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(Y),r.eventHandler.init(Y),r.resizeHandler.init(Y),r.slidesHandler.init(Y),r.options.loop&&r.slideLooper.loop(),i.offsetParent&&o.length&&r.dragHandler.init(Y),a=D.init(Y,H)))}function X(t,e){let n=q();V(),_(T({startIndex:n},t),e),R.emit("reInit")}function V(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),D.destroy(),M.clear()}function U(t,e,n){W.active&&!F&&(r.scrollBody.useBaseFriction().useDuration(!0===e?0:W.duration),r.scrollTo.index(t,n||0))}function q(){return r.index.get()}let Y={canScrollNext:function(){return r.index.add(1).get()!==q()},canScrollPrev:function(){return r.index.add(-1).get()!==q()},containerNode:function(){return i},internalEngine:function(){return r},destroy:function(){F||(F=!0,M.clear(),V(),R.emit("destroy"),R.clear())},off:z,on:L,emit:I,plugins:function(){return a},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:X,rootNode:function(){return t},scrollNext:function(t){U(r.index.add(1).get(),t,-1)},scrollPrev:function(t){U(r.index.add(-1).get(),t,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:U,selectedScrollSnap:q,slideNodes:function(){return o},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return _(e,n),setTimeout(()=>R.emit("init"),0),Y}function P(t={},e=[]){let n=(0,r.useRef)(t),a=(0,r.useRef)(e),[l,c]=(0,r.useState)(),[u,s]=(0,r.useState)(),d=(0,r.useCallback)(()=>{l&&l.reInit(n.current,a.current)},[l]);return(0,r.useEffect)(()=>{i(n.current,t)||(n.current=t,d())},[t,d]),(0,r.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let n=o(t),r=o(e);return n.every((t,e)=>i(t,r[e]))}(a.current,e)&&(a.current=e,d())},[e,d]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){A.globalOptions=P.globalOptions;let t=A(u,n.current,a.current);return c(t),()=>t.destroy()}c(void 0)},[u,c]),[s,l]}A.globalOptions=void 0,P.globalOptions=void 0},45930:(t,e,n)=>{n.d(e,{k5:()=>s});var r=n(20107),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(a),o=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;er.createElement(d,l({attr:u({},t.attr)},e),function t(e){return e&&e.map((e,n)=>r.createElement(e.tag,u({key:n},e.attr),t(e.child)))}(t.child))}function d(t){var e=e=>{var n,{attr:a,size:i,title:c}=t,s=function(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,o),d=i||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,a,s,{className:n,style:u(u({color:t.color||e.color},e.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&r.createElement("title",null,c),t.children)};return void 0!==i?r.createElement(i.Consumer,null,t=>e(t)):e(a)}},71602:(t,e,n)=>{let r;n.d(e,{_s:()=>I});var a=n(60241),i=n(20107);let o=i.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),l=()=>{let t=i.useContext(o);if(!t)throw Error("useDrawerContext must be used within a Drawer.Root");return t};function c(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function u(){return s(/^iPhone/)||s(/^iPad/)||s(/^Mac/)&&navigator.maxTouchPoints>1}function s(t){return"undefined"!=typeof window&&null!=window.navigator?t.test(window.navigator.platform):void 0}!function(t){if(!t||"undefined"==typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");let d="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function f(){for(var t=arguments.length,e=Array(t),n=0;n{t.removeEventListener(e,n,r)}}function b(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let e=h(t);if(e!==document.documentElement&&e!==document.body&&e!==t){let n=e.getBoundingClientRect().top,r=t.getBoundingClientRect().top;t.getBoundingClientRect().bottom>e.getBoundingClientRect().bottom+24&&(e.scrollTop+=r-n)}t=e.parentElement}}function w(t){return t instanceof HTMLInputElement&&!y.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function x(){for(var t=arguments.length,e=Array(t),n=0;ne.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}let O=new WeakMap;function E(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||!(t instanceof HTMLElement))return;let r={};Object.entries(e).forEach(e=>{let[n,a]=e;if(n.startsWith("--")){t.style.setProperty(n,a);return}r[n]=t.style[n],t.style[n]=a}),n||O.set(t,r)}let A=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function P(t,e){if(!t)return null;let n=window.getComputedStyle(t),r=n.transform||n.webkitTransform||n.mozTransform,a=r.match(/^matrix3d\((.+)\)$/);return a?parseFloat(a[1].split(", ")[A(e)?13:12]):(a=r.match(/^matrix\((.+)\)$/))?parseFloat(a[1].split(", ")[A(e)?5:4]):null}function k(t,e){if(!t)return()=>{};let n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}}let j={DURATION:.5,EASE:[.32,.72,0,1]},S="vaul-dragging";function D(t){let e=i.useRef(t);return i.useEffect(()=>{e.current=t}),i.useMemo(()=>function(){for(var t=arguments.length,n=Array(t),r=0;r{}}=t,[a,o]=function(t){let{defaultProp:e,onChange:n}=t,r=i.useState(e),[a]=r,o=i.useRef(a),l=D(n);return i.useEffect(()=>{o.current!==a&&(l(a),o.current=a)},[a,o,l]),r}({defaultProp:n,onChange:r}),l=void 0!==e,c=l?e:a,u=D(r);return[c,i.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[l,e,o,u])]}let R=()=>()=>{},T=null;function C(t){var e,n;let{open:l,onOpenChange:s,children:m,onDrag:y,onRelease:x,snapPoints:k,shouldScaleBackground:D=!1,setBackgroundColorOnScale:R=!0,closeThreshold:C=.25,scrollLockTimeout:N=100,dismissible:L=!0,handleOnly:z=!1,fadeFromIndex:I=k&&k.length-1,activeSnapPoint:F,setActiveSnapPoint:B,fixed:W,modal:H=!0,onClose:_,nested:X,noBodyStyles:V=!1,direction:U="bottom",defaultOpen:q=!1,disablePreventScroll:Y=!0,snapToSequentialPoint:$=!1,preventScrollRestoration:G=!1,repositionInputs:J=!0,onAnimationEnd:K,container:Z,autoFocus:Q=!1}=t,[tt=!1,te]=M({defaultProp:q,prop:l,onChange:t=>{null==s||s(t),t||X||tT(),setTimeout(()=>{null==K||K(t)},1e3*j.DURATION),t&&!H&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),t||(document.body.style.pointerEvents="auto")}}),[tn,tr]=i.useState(!1),[ta,ti]=i.useState(!1),[to,tl]=i.useState(!1),tc=i.useRef(null),tu=i.useRef(null),ts=i.useRef(null),td=i.useRef(null),tf=i.useRef(null),tp=i.useRef(!1),tm=i.useRef(null),th=i.useRef(0),ty=i.useRef(!1),tv=i.useRef(!q),tg=i.useRef(0),tb=i.useRef(null),tw=i.useRef((null==(e=tb.current)?void 0:e.getBoundingClientRect().height)||0),tx=i.useRef((null==(n=tb.current)?void 0:n.getBoundingClientRect().width)||0),tO=i.useRef(0),tE=i.useCallback(t=>{k&&t===tS.length-1&&(tu.current=new Date)},[]),{activeSnapPoint:tA,activeSnapPointIndex:tP,setActiveSnapPoint:tk,onRelease:tj,snapPointsOffset:tS,onDrag:tD,shouldFade:tM,getPercentageDragged:tR}=function(t){let{activeSnapPointProp:e,setActiveSnapPointProp:n,snapPoints:r,drawerRef:a,overlayRef:o,fadeFromIndex:l,onSnapPointChange:c,direction:u="bottom",container:s,snapToSequentialPoint:d}=t,[f,p]=M({prop:e,defaultProp:null==r?void 0:r[0],onChange:n}),[m,h]=i.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);i.useEffect(()=>{function t(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let y=i.useMemo(()=>f===(null==r?void 0:r[r.length-1])||null,[r,f]),v=i.useMemo(()=>{var t;return null!=(t=null==r?void 0:r.findIndex(t=>t===f))?t:null},[r,f]),g=r&&r.length>0&&(l||0===l)&&!Number.isNaN(l)&&r[l]===f||!r,b=i.useMemo(()=>{var t;let e=s?{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height}:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return null!=(t=null==r?void 0:r.map(t=>{let n="string"==typeof t,r=0;if(n&&(r=parseInt(t,10)),A(u)){let a=n?r:m?t*e.height:0;return m?"bottom"===u?e.height-a:-e.height+a:a}let a=n?r:m?t*e.width:0;return m?"right"===u?e.width-a:-e.width+a:a}))?t:[]},[r,m,s]),w=i.useMemo(()=>null!==v?null==b?void 0:b[v]:null,[b,v]),x=i.useCallback(t=>{var e;let n=null!=(e=null==b?void 0:b.findIndex(e=>e===t))?e:null;c(n),E(a.current,{transition:"transform ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")"),transform:A(u)?"translate3d(0, ".concat(t,"px, 0)"):"translate3d(".concat(t,"px, 0, 0)")}),b&&n!==b.length-1&&void 0!==l&&n!==l&&n{if(f||e){var t;let n=null!=(t=null==r?void 0:r.findIndex(t=>t===e||t===f))?t:-1;b&&-1!==n&&"number"==typeof b[n]&&x(b[n])}},[f,e,r,b,x]),{isLastSnapPoint:y,activeSnapPoint:f,shouldFade:g,getPercentageDragged:function(t,e){if(!r||"number"!=typeof v||!b||void 0===l)return null;let n=v===l-1;if(v>=l&&e)return 0;if(n&&!e)return 1;if(!g&&!n)return null;let a=n?v+1:v-1,i=t/Math.abs(n?b[a]-b[a-1]:b[a+1]-b[a]);return n?1-i:i},setActiveSnapPoint:p,activeSnapPointIndex:v,onRelease:function(t){let{draggedDistance:e,closeDrawer:n,velocity:a,dismissible:i}=t;if(void 0===l)return;let c="bottom"===u||"right"===u?(null!=w?w:0)-e:(null!=w?w:0)+e,s=v===l-1,f=0===v,p=e>0;if(s&&E(o.current,{transition:"opacity ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")")}),!d&&a>2&&!p){i?n():x(b[0]);return}if(!d&&a>2&&p&&b&&r){x(b[r.length-1]);return}let m=null==b?void 0:b.reduce((t,e)=>"number"!=typeof t||"number"!=typeof e?t:Math.abs(e-c).4&&Math.abs(e)<.4*h){let t=p?1:-1;if(t>0&&y&&r){x(b[r.length-1]);return}if(f&&t<0&&i&&n(),null===v)return;x(b[v+t]);return}x(m)},onDrag:function(t){let{draggedDistance:e}=t;if(null===w)return;let n="bottom"===u||"right"===u?w-e:w+e;("bottom"===u||"right"===u)&&nb[b.length-1]||E(a.current,{transform:A(u)?"translate3d(0, ".concat(n,"px, 0)"):"translate3d(".concat(n,"px, 0, 0)")})},snapPointsOffset:b}}({snapPoints:k,activeSnapPointProp:F,setActiveSnapPointProp:B,drawerRef:tb,fadeFromIndex:I,overlayRef:tc,onSnapPointChange:tE,direction:U,container:Z,snapToSequentialPoint:$});!function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:e}=t;d(()=>{if(!e){var t,n,a;let e,i,o,l,c,s,d;return 1==++v&&u()&&(o=0,l=window.pageXOffset,c=window.pageYOffset,s=f((t=document.documentElement,n="paddingRight",a="".concat(window.innerWidth-document.documentElement.clientWidth,"px"),i=t.style[n],t.style[n]=a,()=>{t.style[n]=i})),window.scrollTo(0,0),d=f(g(document,"touchstart",t=>{((e=h(t.target))!==document.documentElement||e!==document.body)&&(o=t.changedTouches[0].pageY)},{passive:!1,capture:!0}),g(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}let n=t.changedTouches[0].pageY,r=e.scrollTop,a=e.scrollHeight-e.clientHeight;0!==a&&((r<=0&&n>o||r>=a&&n{let e=t.target;w(e)&&e!==document.activeElement&&(t.preventDefault(),e.style.transform="translateY(-2000px)",e.focus(),requestAnimationFrame(()=>{e.style.transform=""}))},{passive:!1,capture:!0}),g(document,"focus",t=>{let e=t.target;w(e)&&(e.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{e.style.transform="",p&&(p.height{b(e)}):p.addEventListener("resize",()=>b(e),{once:!0}))}))},!0),g(window,"scroll",()=>{window.scrollTo(0,0)})),r=()=>{s(),d(),window.scrollTo(l,c)}),()=>{0==--v&&(null==r||r())}}},[e])}({isDisabled:!tt||ta||!H||to||!tn||!J||!Y});let{restorePositionSetting:tT}=function(t){let{isOpen:e,modal:n,nested:r,hasBeenOpened:a,preventScrollRestoration:o,noBodyStyles:l}=t,[u,s]=i.useState(()=>"undefined"!=typeof window?window.location.href:""),d=i.useRef(0),f=i.useCallback(()=>{if(c()&&null===T&&e&&!l){T={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:t,innerHeight:e}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:"".concat(-d.current,"px"),left:"".concat(-t,"px"),right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let t=e-window.innerHeight;t&&d.current>=e&&(document.body.style.top="".concat(-(d.current+t),"px"))}),300)}},[e]),p=i.useCallback(()=>{if(c()&&null!==T&&!l){let t=-parseInt(document.body.style.top,10),e=-parseInt(document.body.style.left,10);Object.assign(document.body.style,T),window.requestAnimationFrame(()=>{if(o&&u!==window.location.href){s(window.location.href);return}window.scrollTo(e,t)}),T=null}},[u]);return i.useEffect(()=>{function t(){d.current=window.scrollY}return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[]),i.useEffect(()=>{if(n)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||p())}},[n,p]),i.useEffect(()=>{r||!a||(e?(window.matchMedia("(display-mode: standalone)").matches||f(),n||window.setTimeout(()=>{p()},500)):p())},[e,a,u,n,r,f,p]),{restorePositionSetting:p}}({isOpen:tt,modal:H,nested:null!=X&&X,hasBeenOpened:tn,preventScrollRestoration:G,noBodyStyles:V});function tC(){return(window.innerWidth-26)/window.innerWidth}function tN(t,e){var n;let r=t,a=null==(n=window.getSelection())?void 0:n.toString(),i=tb.current?P(tb.current,U):null,o=new Date;if("SELECT"===r.tagName||r.hasAttribute("data-vaul-no-drag")||r.closest("[data-vaul-no-drag]"))return!1;if("right"===U||"left"===U)return!0;if(tu.current&&o.getTime()-tu.current.getTime()<500)return!1;if(null!==i&&("bottom"===U?i>0:i<0))return!0;if(a&&a.length>0)return!1;if(tf.current&&o.getTime()-tf.current.getTime()r.clientHeight){if(0!==r.scrollTop)return tf.current=new Date,!1;if("dialog"===r.getAttribute("role"))break}r=r.parentNode}return!0}function tL(t){ta&&tb.current&&(tb.current.classList.remove(S),tp.current=!1,ti(!1),td.current=new Date),null==_||_(),t||te(!1),setTimeout(()=>{k&&tk(k[0])},1e3*j.DURATION)}function tz(){if(!tb.current)return;let t=document.querySelector("[data-vaul-drawer-wrapper]"),e=P(tb.current,U);E(tb.current,{transform:"translate3d(0, 0, 0)",transition:"transform ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")")}),E(tc.current,{transition:"opacity ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")"),opacity:"1"}),D&&e&&e>0&&tt&&E(t,{borderRadius:"".concat(8,"px"),overflow:"hidden",...A(U)?{transform:"scale(".concat(tC(),") translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)"),transformOrigin:"top"}:{transform:"scale(".concat(tC(),") translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)"),transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:"".concat(j.DURATION,"s"),transitionTimingFunction:"cubic-bezier(".concat(j.EASE.join(","),")")},!0)}return i.useEffect(()=>{window.requestAnimationFrame(()=>{tv.current=!0})},[]),i.useEffect(()=>{var t;function e(){if(tb.current&&J&&(w(document.activeElement)||ty.current)){var t;let e=(null==(t=window.visualViewport)?void 0:t.height)||0,n=window.innerHeight,r=n-e,a=tb.current.getBoundingClientRect().height||0;tO.current||(tO.current=a);let i=tb.current.getBoundingClientRect().top;if(Math.abs(tg.current-r)>60&&(ty.current=!ty.current),k&&k.length>0&&tS&&tP&&(r+=tS[tP]||0),tg.current=r,a>e||ty.current){let t=tb.current.getBoundingClientRect().height,o=t;t>e&&(o=e-(a>.8*n?i:26)),W?tb.current.style.height="".concat(t-Math.max(r,0),"px"):tb.current.style.height="".concat(Math.max(o,e-i),"px")}else!function(){let t=navigator.userAgent;return"undefined"!=typeof window&&(/Firefox/.test(t)&&/Mobile/.test(t)||/FxiOS/.test(t))}()&&(tb.current.style.height="".concat(tO.current,"px"));k&&k.length>0&&!ty.current?tb.current.style.bottom="0px":tb.current.style.bottom="".concat(Math.max(r,0),"px")}}return null==(t=window.visualViewport)||t.addEventListener("resize",e),()=>{var t;return null==(t=window.visualViewport)?void 0:t.removeEventListener("resize",e)}},[tP,k,tS]),i.useEffect(()=>(tt&&(E(document.documentElement,{scrollBehavior:"auto"}),tu.current=new Date),()=>{!function(t,e){if(!t||!(t instanceof HTMLElement))return;let n=O.get(t);n&&(t.style[e]=n[e])}(document.documentElement,"scrollBehavior")}),[tt]),i.useEffect(()=>{H||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[H]),i.createElement(a.bL,{defaultOpen:q,onOpenChange:t=>{(L||t)&&(t?tr(!0):tL(!0),te(t))},open:tt},i.createElement(o.Provider,{value:{activeSnapPoint:tA,snapPoints:k,setActiveSnapPoint:tk,drawerRef:tb,overlayRef:tc,onOpenChange:s,onPress:function(t){var e,n;(L||k)&&(!tb.current||tb.current.contains(t.target))&&(tw.current=(null==(e=tb.current)?void 0:e.getBoundingClientRect().height)||0,tx.current=(null==(n=tb.current)?void 0:n.getBoundingClientRect().width)||0,ti(!0),ts.current=new Date,u()&&window.addEventListener("touchend",()=>tp.current=!1,{once:!0}),t.target.setPointerCapture(t.pointerId),th.current=A(U)?t.pageY:t.pageX)},onRelease:function(t){var e,n;if(!ta||!tb.current)return;tb.current.classList.remove(S),tp.current=!1,ti(!1),td.current=new Date;let r=P(tb.current,U);if(!t||!tN(t.target,!1)||!r||Number.isNaN(r)||null===ts.current)return;let a=td.current.getTime()-ts.current.getTime(),i=th.current-(A(U)?t.pageY:t.pageX),o=Math.abs(i)/a;if(o>.05&&(tl(!0),setTimeout(()=>{tl(!1)},200)),k){tj({draggedDistance:i*("bottom"===U||"right"===U?1:-1),closeDrawer:tL,velocity:o,dismissible:L}),null==x||x(t,!0);return}if("bottom"===U||"right"===U?i>0:i<0){tz(),null==x||x(t,!0);return}if(o>.4){tL(),null==x||x(t,!1);return}let l=Math.min(null!=(e=tb.current.getBoundingClientRect().height)?e:0,window.innerHeight),c=Math.min(null!=(n=tb.current.getBoundingClientRect().width)?n:0,window.innerWidth);if(Math.abs(r)>=("left"===U||"right"===U?c:l)*C){tL(),null==x||x(t,!1);return}null==x||x(t,!0),tz()},onDrag:function(t){if(tb.current&&ta){let e="bottom"===U||"right"===U?1:-1,n=(th.current-(A(U)?t.pageY:t.pageX))*e,r=n>0,a=k&&!L&&!r;if(a&&0===tP)return;let i=Math.abs(n),o=document.querySelector("[data-vaul-drawer-wrapper]"),l=i/("bottom"===U||"top"===U?tw.current:tx.current),c=tR(i,r);if(null!==c&&(l=c),a&&l>=1||!tp.current&&!tN(t.target,r))return;if(tb.current.classList.add(S),tp.current=!0,E(tb.current,{transition:"none"}),E(tc.current,{transition:"none"}),k&&tD({draggedDistance:n}),r&&!k){let t=Math.min(-(8*(Math.log(n+1)-2)*1),0)*e;E(tb.current,{transform:A(U)?"translate3d(0, ".concat(t,"px, 0)"):"translate3d(".concat(t,"px, 0, 0)")});return}let u=1-l;if((tM||I&&tP===I-1)&&(null==y||y(t,l),E(tc.current,{opacity:"".concat(u),transition:"none"},!0)),o&&tc.current&&D){let t=Math.min(tC()+l*(1-tC()),1),e=8-8*l,n=Math.max(0,14-14*l);E(o,{borderRadius:"".concat(e,"px"),transform:A(U)?"scale(".concat(t,") translate3d(0, ").concat(n,"px, 0)"):"scale(".concat(t,") translate3d(").concat(n,"px, 0, 0)"),transition:"none"},!0)}if(!k){let t=i*e;E(tb.current,{transform:A(U)?"translate3d(0, ".concat(t,"px, 0)"):"translate3d(".concat(t,"px, 0, 0)")})}}},dismissible:L,shouldAnimate:tv,handleOnly:z,isOpen:tt,isDragging:ta,shouldFade:tM,closeDrawer:tL,onNestedDrag:function(t,e){if(e<0)return;let n=(window.innerWidth-16)/window.innerWidth,r=n+e*(1-n),a=-16+16*e;E(tb.current,{transform:A(U)?"scale(".concat(r,") translate3d(0, ").concat(a,"px, 0)"):"scale(".concat(r,") translate3d(").concat(a,"px, 0, 0)"),transition:"none"})},onNestedOpenChange:function(t){let e=t?(window.innerWidth-16)/window.innerWidth:1,n=t?-16:0;tm.current&&window.clearTimeout(tm.current),E(tb.current,{transition:"transform ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")"),transform:A(U)?"scale(".concat(e,") translate3d(0, ").concat(n,"px, 0)"):"scale(".concat(e,") translate3d(").concat(n,", 0, 0)")}),!t&&tb.current&&(tm.current=setTimeout(()=>{let t=P(tb.current,U);E(tb.current,{transition:"none",transform:A(U)?"translate3d(0, ".concat(t,"px, 0)"):"translate3d(".concat(t,"px, 0, 0)")})},500))},onNestedRelease:function(t,e){let n=A(U)?window.innerHeight:window.innerWidth,r=e?(n-16)/n:1,a=e?-16:0;e&&E(tb.current,{transition:"transform ".concat(j.DURATION,"s cubic-bezier(").concat(j.EASE.join(","),")"),transform:A(U)?"scale(".concat(r,") translate3d(0, ").concat(a,"px, 0)"):"scale(".concat(r,") translate3d(").concat(a,"px, 0, 0)")})},keyboardIsOpen:ty,modal:H,snapPointsOffset:tS,activeSnapPointIndex:tP,direction:U,shouldScaleBackground:D,setBackgroundColorOnScale:R,noBodyStyles:V,container:Z,autoFocus:Q}},m))}let N=i.forwardRef(function(t,e){let{...n}=t,{overlayRef:r,snapPoints:o,onRelease:c,shouldFade:u,isOpen:s,modal:d,shouldAnimate:f}=l(),p=x(e,r),m=o&&o.length>0;if(!d)return null;let h=i.useCallback(t=>c(t),[c]);return i.createElement(a.hJ,{onMouseUp:h,ref:p,"data-vaul-overlay":"","data-vaul-snap-points":s&&m?"true":"false","data-vaul-snap-points-overlay":s&&u?"true":"false","data-vaul-animate":(null==f?void 0:f.current)?"true":"false",...n})});N.displayName="Drawer.Overlay";let L=i.forwardRef(function(t,e){let{onPointerDownOutside:n,style:r,onOpenAutoFocus:o,...c}=t,{drawerRef:u,onPress:s,onRelease:d,onDrag:f,keyboardIsOpen:p,snapPointsOffset:m,activeSnapPointIndex:h,modal:y,isOpen:v,direction:g,snapPoints:b,container:w,handleOnly:O,shouldAnimate:E,autoFocus:P}=l(),[S,D]=i.useState(!1),M=x(e,u),T=i.useRef(null),C=i.useRef(null),N=i.useRef(!1),L=b&&b.length>0;!function(){let{direction:t,isOpen:e,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:a}=l(),o=i.useRef(null),c=(0,i.useMemo)(()=>document.body.style.backgroundColor,[]);function u(){return(window.innerWidth-26)/window.innerWidth}i.useEffect(()=>{if(e&&n){o.current&&clearTimeout(o.current);let e=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!e)return;!function(){for(var t=arguments.length,e=Array(t),n=0;n{n(),o.current=window.setTimeout(()=>{c?document.body.style.background=c:document.body.style.removeProperty("background")},1e3*j.DURATION)}}},[e,n,c])}();let z=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(N.current)return!0;let r=Math.abs(t.y),a=Math.abs(t.x),i=a>r,o=["bottom","right"].includes(e)?1:-1;if("left"===e||"right"===e){if(!(t.x*o<0)&&a>=0&&a<=n)return i}else if(!(t.y*o<0)&&r>=0&&r<=n)return!i;return N.current=!0,!0};function I(t){T.current=null,N.current=!1,d(t)}return i.useEffect(()=>{L&&window.requestAnimationFrame(()=>{D(!0)})},[]),i.createElement(a.UC,{"data-vaul-drawer-direction":g,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":v&&L?"true":"false","data-vaul-custom-container":w?"true":"false","data-vaul-animate":(null==E?void 0:E.current)?"true":"false",...c,ref:M,style:m&&m.length>0?{"--snap-point-height":"".concat(m[null!=h?h:0],"px"),...r}:r,onPointerDown:t=>{O||(null==c.onPointerDown||c.onPointerDown.call(c,t),T.current={x:t.pageX,y:t.pageY},s(t))},onOpenAutoFocus:t=>{null==o||o(t),P||t.preventDefault()},onPointerDownOutside:t=>{if(null==n||n(t),!y||t.defaultPrevented){t.preventDefault();return}p.current&&(p.current=!1)},onFocusOutside:t=>{if(!y){t.preventDefault();return}},onPointerMove:t=>{if(C.current=t,O||(null==c.onPointerMove||c.onPointerMove.call(c,t),!T.current))return;let e=t.pageY-T.current.y,n=t.pageX-T.current.x,r="touch"===t.pointerType?10:2;z({x:n,y:e},g,r)?f(t):(Math.abs(n)>r||Math.abs(e)>r)&&(T.current=null)},onPointerUp:t=>{null==c.onPointerUp||c.onPointerUp.call(c,t),T.current=null,N.current=!1,d(t)},onPointerOut:t=>{null==c.onPointerOut||c.onPointerOut.call(c,t),I(C.current)},onContextMenu:t=>{null==c.onContextMenu||c.onContextMenu.call(c,t),C.current&&I(C.current)}})});L.displayName="Drawer.Content";let z=i.forwardRef(function(t,e){let{preventCycle:n=!1,children:r,...a}=t,{closeDrawer:o,isDragging:c,snapPoints:u,activeSnapPoint:s,setActiveSnapPoint:d,dismissible:f,handleOnly:p,isOpen:m,onPress:h,onDrag:y}=l(),v=i.useRef(null),g=i.useRef(!1);function b(){v.current&&window.clearTimeout(v.current),g.current=!1}return i.createElement("div",{onClick:function(){if(g.current){b();return}window.setTimeout(()=>{!function(){if(c||n||g.current){b();return}if(b(),!u||0===u.length){f||o();return}if(s===u[u.length-1]&&f){o();return}let t=u.findIndex(t=>t===s);-1!==t&&d(u[t+1])}()},120)},onPointerCancel:b,onPointerDown:t=>{p&&h(t),v.current=window.setTimeout(()=>{g.current=!0},250)},onPointerMove:t=>{p&&y(t)},ref:e,"data-vaul-drawer-visible":m?"true":"false","data-vaul-handle":"","aria-hidden":"true",...a},i.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});z.displayName="Drawer.Handle";let I={Root:C,NestedRoot:function(t){let{onDrag:e,onOpenChange:n,...r}=t,{onNestedDrag:a,onNestedOpenChange:o,onNestedRelease:c}=l();if(!a)throw Error("Drawer.NestedRoot must be placed in another drawer");return i.createElement(C,{nested:!0,onClose:()=>{o(!1)},onDrag:(t,n)=>{a(t,n),null==e||e(t,n)},onOpenChange:t=>{t&&o(t)},onRelease:c,...r})},Content:L,Overlay:N,Trigger:a.l9,Portal:function(t){let e=l(),{container:n=e.container,...r}=t;return i.createElement(a.ZL,{container:n,...r})},Handle:z,Close:a.bm,Title:a.hE,Description:a.VY}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4736-a2a6c92b170301c7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4736-a2a6c92b170301c7.js new file mode 100644 index 0000000..f83df21 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4736-a2a6c92b170301c7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4736],{59166:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},51873:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},76171:(e,t,n)=>{n.d(t,{A:()=>H});var r,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create;var i=("function"==typeof SuppressedError&&SuppressedError,n(20107)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,d=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,a=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return a.options=o({async:!0,ssr:!1},e),a}(),v=function(){},m=i.forwardRef(function(e,t){var n,r,l,u,f=i.useRef(null),m=i.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),h=m[0],g=m[1],y=e.forwardProps,w=e.children,b=e.className,E=e.removeScrollBar,x=e.enabled,C=e.shards,N=e.sideCar,P=e.noIsolation,R=e.inert,O=e.allowPinchZoom,S=e.as,A=e.gapMode,j=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=(n=[f,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(l=(0,i.useState)(function(){return{value:null,callback:r,facade:{get current(){return l.value},set current(value){var e=l.value;e!==value&&(l.value=value,l.callback(value,e))}}}})[0]).callback=r,u=l.facade,s(function(){var e=d.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,o)})}d.set(u,n)},[n]),u),T=o(o({},j),h);return i.createElement(i.Fragment,null,x&&i.createElement(N,{sideCar:p,removeScrollBar:E,shards:C,noIsolation:P,inert:R,setCallbacks:g,allowPinchZoom:!!O,lockRef:f,gapMode:A}),y?i.cloneElement(i.Children.only(w),o(o({},T),{ref:L})):i.createElement(void 0===S?"div":S,o({},T,{className:b,ref:L}),w))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:u,zeroRight:l};var h=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,o({},n))};h.isSideCarExport=!0;var g=n(91059),y=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,g.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=y();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},E={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[x(n),x(r),x(o)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return E;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},P=b(),R="data-scroll-locked",O=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(R,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(R,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},S=function(){var e=parseInt(document.body.getAttribute(R)||"0",10);return isFinite(e)?e:0},A=function(){i.useEffect(function(){return document.body.setAttribute(R,(S()+1).toString()),function(){var e=S()-1;e<=0?document.body.removeAttribute(R):document.body.setAttribute(R,e.toString())}},[])},j=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;A();var a=i.useMemo(function(){return N(o)},[o]);return i.createElement(P,{styles:O(a,!t,o,n?"":"!important")})},L=!1;if("undefined"!=typeof window)try{var T=Object.defineProperty({},"passive",{get:function(){return L=!0,!0}});window.addEventListener("test",T,T),window.removeEventListener("test",T,T)}catch(e){L=!1}var k=!!L&&{passive:!1},M=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},D=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(e,r)){var o=I(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},F=function(e,t){return"v"===e?M(t,"overflowY"):M(t,"overflowX")},I=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},W=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,u=n.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{var v=I(e,u),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&F(e,u)&&(f+=h,p+=m),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},X=0,z=[];let Y=(r=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(X++)[0],a=i.useState(b)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oMath.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=D(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=D(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return W(p,t,e,"h"===p?u:c,!0)},[]),c=i.useCallback(function(e){if(z.length&&z[z.length-1]===a){var n="deltaY"in e?U(e):_(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=i.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=i.useCallback(function(e){n.current=_(e),r.current=void 0},[]),f=i.useCallback(function(t){s(t.type,U(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){s(t.type,_(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return z.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,k),document.addEventListener("touchmove",c,k),document.addEventListener("touchstart",d,k),function(){z=z.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,k),document.removeEventListener("touchmove",c,k),document.removeEventListener("touchstart",d,k)}},[]);var v=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?i.createElement(j,{gapMode:e.gapMode}):null)},p.useMedium(r),h);var G=i.forwardRef(function(e,t){return i.createElement(m,o({},e,{ref:t,sideCar:Y}))});G.classNames=m.classNames;let H=G},75456:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},72706:(e,t,n)=>{n.d(t,{s:()=>i,t:()=>a});var r=n(20107);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{n.d(t,{qW:()=>p});var r,o=n(20107),a=n(75456),i=n(3328),l=n(72706),u=n(46774),c=n(91624),s=n(20475),d="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{var n,p;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:b,onDismiss:E,...x}=e,C=o.useContext(f),[N,P]=o.useState(null),R=null!==(p=null==N?void 0:N.ownerDocument)&&void 0!==p?p:null===(n=globalThis)||void 0===n?void 0:n.document,[,O]=o.useState({}),S=(0,l.s)(t,e=>P(e)),A=Array.from(C.layers),[j]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),L=A.indexOf(j),T=N?A.indexOf(N):-1,k=C.layersWithOutsidePointerEventsDisabled.size>0,M=T>=L,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.c)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...C.branches].some(e=>e.contains(t));!M||n||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==E||E())},R),F=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.c)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;[...C.branches].some(e=>e.contains(t))||(null==w||w(e),null==b||b(e),e.defaultPrevented||null==E||E())},R);return(0,c.U)(e=>{T!==C.layers.size-1||(null==g||g(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))},R),o.useEffect(()=>{if(N)return h&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(N)),C.layers.add(N),v(),()=>{h&&1===C.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[N,R,h,C]),o.useEffect(()=>()=>{N&&(C.layers.delete(N),C.layersWithOutsidePointerEventsDisabled.delete(N),v())},[N,C]),o.useEffect(()=>{let e=()=>O({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,s.jsx)(i.sG.div,{...x,ref:S,style:{pointerEvents:k?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,D.onPointerDownCapture)})});function v(){let e=new CustomEvent(d);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,i.hO)(a,l):a.dispatchEvent(l)}p.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),a=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(i.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},62802:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(20107),o=n(72706),a=n(3328),i=n(46774),l=n(20475),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",s={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:g,...y}=e,[w,b]=r.useState(null),E=(0,i.c)(h),x=(0,i.c)(g),C=r.useRef(null),N=(0,o.s)(t,e=>b(e)),P=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(P.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:v(C.current,{select:!0})},t=function(e){if(P.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||v(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&v(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,w,P.paused]),r.useEffect(()=>{if(w){m.add(P);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(u,s);w.addEventListener(u,E),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(v(r,{select:t}),document.activeElement!==n)return}(f(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&v(w))}return()=>{w.removeEventListener(u,E),setTimeout(()=>{let t=new CustomEvent(c,s);w.addEventListener(c,x),w.dispatchEvent(t),t.defaultPrevented||v(null!=e?e:document.body,{select:!0}),w.removeEventListener(c,x),m.remove(P)},0)}}},[w,E,x,P]);let R=r.useCallback(e=>{if(!n&&!d||P.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,a]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&v(a,{select:!0})):(e.preventDefault(),n&&v(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,P.paused]);return(0,l.jsx)(a.sG.div,{tabIndex:-1,...y,ref:N,onKeyDown:R})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function v(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=h(e,t)).unshift(t)},remove(t){var n;null===(n=(e=h(e,t))[0])||void 0===n||n.resume()}}}();function h(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},21869:(e,t,n)=>{n.d(t,{Mz:()=>ef,UC:()=>em,ZL:()=>ev,bL:()=>ed,l9:()=>ep});var r=n(20107),o=n(75456),a=n(72706),i=n(45170),l=n(80560),u=n(10201),c=n(62802),s=n(72763),d=n(9895),f=n(84069),p=n(3328),v=n(20475),m=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,v.jsx)(p.sG.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,v.jsx)("polygon",{points:"0,0 30,0 15,10"})})});m.displayName="Arrow";var h=n(46774),g=n(54122),y=n(63620),w="Popper",[b,E]=(0,i.A)(w),[x,C]=b(w),N=e=>{let{__scopePopper:t,children:n}=e,[o,a]=r.useState(null);return(0,v.jsx)(x,{scope:t,anchor:o,onAnchorChange:a,children:n})};N.displayName=w;var P="PopperAnchor",R=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=C(P,n),u=r.useRef(null),c=(0,a.s)(t,u);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,v.jsx)(p.sG.div,{...i,ref:c})});R.displayName=P;var O="PopperContent",[S,A]=b(O),j=r.forwardRef((e,t)=>{var n,o,i,l,u,c,s,m;let{__scopePopper:w,side:b="bottom",sideOffset:E=0,align:x="center",alignOffset:N=0,arrowPadding:P=0,avoidCollisions:R=!0,collisionBoundary:A=[],collisionPadding:j=0,sticky:L="partial",hideWhenDetached:T=!1,updatePositionStrategy:k="optimized",onPlaced:I,...W}=e,_=C(O,w),[U,B]=r.useState(null),X=(0,a.s)(t,e=>B(e)),[z,Y]=r.useState(null),G=(0,y.X)(z),H=null!==(s=null==G?void 0:G.width)&&void 0!==s?s:0,K=null!==(m=null==G?void 0:G.height)&&void 0!==m?m:0,Z="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},V=Array.isArray(A)?A:[A],q=V.length>0,$={padding:Z,boundary:V.filter(M),altBoundary:q},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:en}=(0,d.we)({strategy:"fixed",placement:b+("center"!==x?"-"+x:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),z&&(0,d.UE)({element:z,padding:P}),D({arrowWidth:H,arrowHeight:K}),T&&(0,d.jD)({strategy:"referenceHidden",...$})]}),[er,eo]=F(ee),ea=(0,h.c)(I);(0,g.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null===(n=en.arrow)||void 0===n?void 0:n.x,el=null===(o=en.arrow)||void 0===o?void 0:o.y,eu=(null===(i=en.arrow)||void 0===i?void 0:i.centerOffset)!==0,[ec,es]=r.useState();return(0,g.N)(()=>{U&&es(window.getComputedStyle(U).zIndex)},[U]),(0,v.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(l=en.transformOrigin)||void 0===l?void 0:l.x,null===(u=en.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(c=en.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,v.jsx)(S,{scope:w,placedSide:er,onArrowChange:Y,arrowX:ei,arrowY:el,shouldHideArrow:eu,children:(0,v.jsx)(p.sG.div,{"data-side":er,"data-align":eo,...W,ref:X,style:{...W.style,animation:et?void 0:"none"}})})})});j.displayName=O;var L="PopperArrow",T={top:"bottom",right:"left",bottom:"top",left:"right"},k=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=A(L,n),a=T[o.placedSide];return(0,v.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,v.jsx)(m,{...r,ref:t,style:{...r.style,display:"block"}})})});function M(e){return null!==e}k.displayName=L;var D=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=F(l),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+d/2,g=(null!==(i=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+f/2,y="",w="";return"bottom"===p?(y=s?m:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=s?m:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function F(e){let[t,n="center"]=e.split("-");return[t,n]}var I=n(46527),W=n(86432),_=n(79571),U=n(13061),B=n(58020),X=n(76171),z="Popover",[Y,G]=(0,i.A)(z,[E]),H=E(),[K,Z]=Y(z),V=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,u=H(t),c=r.useRef(null),[d,f]=r.useState(!1),[p=!1,m]=(0,U.i)({prop:o,defaultProp:a,onChange:i});return(0,v.jsx)(N,{...u,children:(0,v.jsx)(K,{scope:t,contentId:(0,s.B)(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:l,children:n})})};V.displayName=z;var q="PopoverAnchor",$=r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,a=Z(q,n),i=H(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=a;return r.useEffect(()=>(l(),()=>u()),[l,u]),(0,v.jsx)(R,{...i,...o,ref:t})});$.displayName=q;var J="PopoverTrigger",Q=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Z(J,n),l=H(n),u=(0,a.s)(t,i.triggerRef),c=(0,v.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":es(i.open),...r,ref:u,onClick:(0,o.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,v.jsx)(R,{asChild:!0,...l,children:c})});Q.displayName=J;var ee="PopoverPortal",[et,en]=Y(ee,{forceMount:void 0}),er=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Z(ee,t);return(0,v.jsx)(et,{scope:t,forceMount:n,children:(0,v.jsx)(W.C,{present:n||a.open,children:(0,v.jsx)(I.Z,{asChild:!0,container:o,children:r})})})};er.displayName=ee;var eo="PopoverContent",ea=r.forwardRef((e,t)=>{let n=en(eo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Z(eo,e.__scopePopover);return(0,v.jsx)(W.C,{present:r||a.open,children:a.modal?(0,v.jsx)(ei,{...o,ref:t}):(0,v.jsx)(el,{...o,ref:t})})});ea.displayName=eo;var ei=r.forwardRef((e,t)=>{let n=Z(eo,e.__scopePopover),i=r.useRef(null),l=(0,a.s)(t,i),u=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,B.Eq)(e)},[]),(0,v.jsx)(X.A,{as:_.DX,allowPinchZoom:!0,children:(0,v.jsx)(eu,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;u.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),el=r.forwardRef((e,t)=>{let n=Z(eo,e.__scopePopover),o=r.useRef(!1),a=r.useRef(!1);return(0,v.jsx)(eu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),eu=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,...m}=e,h=Z(eo,n),g=H(n);return(0,u.Oh)(),(0,v.jsx)(c.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,v.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1),children:(0,v.jsx)(j,{"data-state":es(h.open),role:"dialog",id:h.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ec="PopoverClose";function es(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=Z(ec,n);return(0,v.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=ec,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=H(n);return(0,v.jsx)(k,{...o,...r,ref:t})}).displayName="PopoverArrow";var ed=V,ef=$,ep=Q,ev=er,em=ea},46527:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(20107),o=n(25642),a=n(3328),i=n(54122),l=n(20475),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[d,f]=r.useState(!1);(0,i.N)(()=>f(!0),[]);let p=c||d&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,l.jsx)(a.sG.div,{...s,ref:t}),p):null});u.displayName="Portal"},86432:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(20107),o=n(72706),a=n(54122),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[o,i]=r.useState(),u=r.useRef({}),c=r.useRef(e),s=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(u.current);s.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=u.current,n=c.current;if(n!==e){let r=s.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(s.current=l(u.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),i(e)},[])}}(t),u="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),c=(0,o.s)(i.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||i.isPresent?r.cloneElement(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},3328:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>l});var r=n(20107),o=n(25642),a=n(79571),i=n(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?a.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},88853:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(20107),o=n(34544),a=n(20475),i="horizontal",l=["horizontal","vertical"],u=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...u}=e,c=l.includes(r)?r:i;return(0,a.jsx)(o.sG.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});u.displayName="Separator";var c=u},79571:(e,t,n)=>{n.d(t,{DX:()=>i});var r=n(20107),o=n(72706),a=n(20475),i=r.forwardRef((e,t)=>{let{children:n,...o}=e,i=r.Children.toArray(n),u=i.find(c);if(u){let e=u.props.children,n=i.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(l,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,a.jsx)(l,{...o,ref:t,children:n})});i.displayName="Slot";var l=r.forwardRef((e,t)=>{let{children:n,...a}=e;if(r.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),i=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props);return n.type!==r.Fragment&&(i.ref=t?(0,o.t)(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null});l.displayName="SlotClone";var u=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===u}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4767-59497800ebace65f.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4767-59497800ebace65f.js new file mode 100644 index 0000000..ed37376 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4767-59497800ebace65f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4767],{83086:(e,t,a)=>{a.d(t,{Lt:()=>I,Rx:()=>V,Zr:()=>q,EO:()=>M,$v:()=>U,ck:()=>F,wd:()=>z,r7:()=>P,tv:()=>k});var r=a(20475),o=a(20107),s=a(45170),n=a(64236),i=a(60241),l=a(94521),d=a(61837),c="AlertDialog",[u,f]=(0,s.A)(c,[i.Hs]),m=(0,i.Hs)(),p=e=>{let{__scopeAlertDialog:t,...a}=e,o=m(t);return(0,r.jsx)(i.bL,{...o,...a,modal:!0})};p.displayName=c;var g=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.l9,{...s,...o,ref:t})});g.displayName="AlertDialogTrigger";var v=e=>{let{__scopeAlertDialog:t,...a}=e,o=m(t);return(0,r.jsx)(i.ZL,{...o,...a})};v.displayName="AlertDialogPortal";var h=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.hJ,{...s,...o,ref:t})});h.displayName="AlertDialogOverlay";var y="AlertDialogContent",[x,b]=u(y),w=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,children:s,...c}=e,u=m(a),f=o.useRef(null),p=(0,n.s)(t,f),g=o.useRef(null);return(0,r.jsx)(i.G$,{contentName:y,titleName:A,docsSlug:"alert-dialog",children:(0,r.jsx)(x,{scope:a,cancelRef:g,children:(0,r.jsxs)(i.UC,{role:"alertdialog",...u,...c,ref:p,onOpenAutoFocus:(0,l.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=g.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,r.jsx)(d.xV,{children:s}),(0,r.jsx)(R,{contentRef:f})]})})})});w.displayName=y;var A="AlertDialogTitle",N=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.hE,{...s,...o,ref:t})});N.displayName=A;var T="AlertDialogDescription",j=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.VY,{...s,...o,ref:t})});j.displayName=T;var D=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.bm,{...s,...o,ref:t})});D.displayName="AlertDialogAction";var S="AlertDialogCancel",E=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,{cancelRef:s}=b(S,a),l=m(a),d=(0,n.s)(t,s);return(0,r.jsx)(i.bm,{...l,...o,ref:d})});E.displayName=S;var R=e=>{let{contentRef:t}=e,a="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(T,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return o.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},_=a(22250),O=a(42541);let I=p,k=g,C=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(h,{className:(0,_.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...o,ref:t})});C.displayName=h.displayName;let M=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsxs)(v,{children:[(0,r.jsx)(C,{}),(0,r.jsx)(w,{ref:t,className:(0,_.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...o})]})});M.displayName=w.displayName;let z=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,_.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};z.displayName="AlertDialogHeader";let F=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,_.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};F.displayName="AlertDialogFooter";let P=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(N,{ref:t,className:(0,_.cn)("text-lg font-semibold",a),...o})});P.displayName=N.displayName;let U=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(j,{ref:t,className:(0,_.cn)("text-sm text-muted-foreground",a),...o})});U.displayName=j.displayName;let V=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(D,{ref:t,className:(0,_.cn)((0,O.r)(),a),...o})});V.displayName=D.displayName;let q=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(E,{ref:t,className:(0,_.cn)((0,O.r)({variant:"outline"}),"mt-2 sm:mt-0",a),...o})});q.displayName=E.displayName},42541:(e,t,a)=>{a.d(t,{$:()=>d,r:()=>l});var r=a(20475),o=a(20107),s=a(61837),n=a(29395),i=a(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=o.forwardRef((e,t)=>{let{className:a,variant:o,size:n,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,r.jsx)(u,{className:(0,i.cn)(l({variant:o,size:n,className:a})),ref:t,...c})});d.displayName="Button"},32857:(e,t,a)=>{a.d(t,{dj:()=>f,oR:()=>u});var r=a(20107);let o=0,s=new Map,n=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?n(a):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||r()}}}),{id:a,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function f(){let[e,t]=r.useState(d);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,a)=>{a.d(t,{cn:()=>s});var r=a(64901),o=a(868);function s(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{A:()=>r});let r=(0,a(39997).A)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},88926:(e,t,a)=>{a.d(t,{a:()=>r});let r=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var r;let o=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),s=encodeURIComponent(o),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(s);t&&(n+="&wait=1&timeout=".concat(a));let i=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*a+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let l=await i.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(r=l.response)||void 0===r?void 0:r.status)==="timeout")throw Error("AT command timed out after ".concat(a," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4767-88886265e4e59e78.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4767-88886265e4e59e78.js new file mode 100644 index 0000000..ed37376 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4767-88886265e4e59e78.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4767],{83086:(e,t,a)=>{a.d(t,{Lt:()=>I,Rx:()=>V,Zr:()=>q,EO:()=>M,$v:()=>U,ck:()=>F,wd:()=>z,r7:()=>P,tv:()=>k});var r=a(20475),o=a(20107),s=a(45170),n=a(64236),i=a(60241),l=a(94521),d=a(61837),c="AlertDialog",[u,f]=(0,s.A)(c,[i.Hs]),m=(0,i.Hs)(),p=e=>{let{__scopeAlertDialog:t,...a}=e,o=m(t);return(0,r.jsx)(i.bL,{...o,...a,modal:!0})};p.displayName=c;var g=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.l9,{...s,...o,ref:t})});g.displayName="AlertDialogTrigger";var v=e=>{let{__scopeAlertDialog:t,...a}=e,o=m(t);return(0,r.jsx)(i.ZL,{...o,...a})};v.displayName="AlertDialogPortal";var h=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.hJ,{...s,...o,ref:t})});h.displayName="AlertDialogOverlay";var y="AlertDialogContent",[x,b]=u(y),w=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,children:s,...c}=e,u=m(a),f=o.useRef(null),p=(0,n.s)(t,f),g=o.useRef(null);return(0,r.jsx)(i.G$,{contentName:y,titleName:A,docsSlug:"alert-dialog",children:(0,r.jsx)(x,{scope:a,cancelRef:g,children:(0,r.jsxs)(i.UC,{role:"alertdialog",...u,...c,ref:p,onOpenAutoFocus:(0,l.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=g.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,r.jsx)(d.xV,{children:s}),(0,r.jsx)(R,{contentRef:f})]})})})});w.displayName=y;var A="AlertDialogTitle",N=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.hE,{...s,...o,ref:t})});N.displayName=A;var T="AlertDialogDescription",j=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.VY,{...s,...o,ref:t})});j.displayName=T;var D=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,s=m(a);return(0,r.jsx)(i.bm,{...s,...o,ref:t})});D.displayName="AlertDialogAction";var S="AlertDialogCancel",E=o.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...o}=e,{cancelRef:s}=b(S,a),l=m(a),d=(0,n.s)(t,s);return(0,r.jsx)(i.bm,{...l,...o,ref:d})});E.displayName=S;var R=e=>{let{contentRef:t}=e,a="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(T,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return o.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},_=a(22250),O=a(42541);let I=p,k=g,C=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(h,{className:(0,_.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...o,ref:t})});C.displayName=h.displayName;let M=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsxs)(v,{children:[(0,r.jsx)(C,{}),(0,r.jsx)(w,{ref:t,className:(0,_.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...o})]})});M.displayName=w.displayName;let z=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,_.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};z.displayName="AlertDialogHeader";let F=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,_.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};F.displayName="AlertDialogFooter";let P=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(N,{ref:t,className:(0,_.cn)("text-lg font-semibold",a),...o})});P.displayName=N.displayName;let U=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(j,{ref:t,className:(0,_.cn)("text-sm text-muted-foreground",a),...o})});U.displayName=j.displayName;let V=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(D,{ref:t,className:(0,_.cn)((0,O.r)(),a),...o})});V.displayName=D.displayName;let q=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,r.jsx)(E,{ref:t,className:(0,_.cn)((0,O.r)({variant:"outline"}),"mt-2 sm:mt-0",a),...o})});q.displayName=E.displayName},42541:(e,t,a)=>{a.d(t,{$:()=>d,r:()=>l});var r=a(20475),o=a(20107),s=a(61837),n=a(29395),i=a(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=o.forwardRef((e,t)=>{let{className:a,variant:o,size:n,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,r.jsx)(u,{className:(0,i.cn)(l({variant:o,size:n,className:a})),ref:t,...c})});d.displayName="Button"},32857:(e,t,a)=>{a.d(t,{dj:()=>f,oR:()=>u});var r=a(20107);let o=0,s=new Map,n=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?n(a):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||r()}}}),{id:a,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function f(){let[e,t]=r.useState(d);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,a)=>{a.d(t,{cn:()=>s});var r=a(64901),o=a(868);function s(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{A:()=>r});let r=(0,a(39997).A)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},88926:(e,t,a)=>{a.d(t,{a:()=>r});let r=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var r;let o=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),s=encodeURIComponent(o),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(s);t&&(n+="&wait=1&timeout=".concat(a));let i=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*a+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let l=await i.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(r=l.response)||void 0===r?void 0:r.status)==="timeout")throw Error("AT command timed out after ".concat(a," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0e762574-49b5b66e2a33644a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/47820753-41ce4d8e11c7c32d.js similarity index 91% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0e762574-49b5b66e2a33644a.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/47820753-41ce4d8e11c7c32d.js index 93c2e15..2adbc26 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/0e762574-49b5b66e2a33644a.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/47820753-41ce4d8e11c7c32d.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8087],{22734:(a,t,h)=>{h.d(t,{fU4:()=>r});var l=h(93435);function r(a){return(0,l.k5)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m11.646.44.897.896-1.703 1.703A1.5 1.5 0 0 0 10.5 3h-5A1.5 1.5 0 0 0 4 4.5v5.379l-2 2V1.5A1.5 1.5 0 0 1 3.5 0h7.086a1.5 1.5 0 0 1 1.06.44M8.5 5.378 9.879 4H8.5zM5 8.879 6.879 7H5zm6-1.758L9.121 9H11zm-3.5 3.5L6.121 12H7.5zM5.5 13q-.175 0-.34-.039L2.502 15.62c.265.236.615.38.998.38h9a1.5 1.5 0 0 0 1.5-1.5V4.121l-2 2V11.5a1.5 1.5 0 0 1-1.5 1.5zM5 4.5a.5.5 0 0 1 .5-.5h2v2H5zM8.5 10H11v1.5a.5.5 0 0 1-.5.5h-2zm6.354-8.146a.5.5 0 0 0-.708-.708l-13 13a.5.5 0 0 0 .708.708z"},child:[]}]})(a)}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9649],{80159:(a,t,h)=>{h.d(t,{fU4:()=>r});var l=h(45930);function r(a){return(0,l.k5)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m11.646.44.897.896-1.703 1.703A1.5 1.5 0 0 0 10.5 3h-5A1.5 1.5 0 0 0 4 4.5v5.379l-2 2V1.5A1.5 1.5 0 0 1 3.5 0h7.086a1.5 1.5 0 0 1 1.06.44M8.5 5.378 9.879 4H8.5zM5 8.879 6.879 7H5zm6-1.758L9.121 9H11zm-3.5 3.5L6.121 12H7.5zM5.5 13q-.175 0-.34-.039L2.502 15.62c.265.236.615.38.998.38h9a1.5 1.5 0 0 0 1.5-1.5V4.121l-2 2V11.5a1.5 1.5 0 0 1-1.5 1.5zM5 4.5a.5.5 0 0 1 .5-.5h2v2H5zM8.5 10H11v1.5a.5.5 0 0 1-.5.5h-2zm6.354-8.146a.5.5 0 0 0-.708-.708l-13 13a.5.5 0 0 0 .708.708z"},child:[]}]})(a)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4840.58ad85f7ae0b4d74.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4840.58ad85f7ae0b4d74.js new file mode 100644 index 0000000..5f3ca9b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4840.58ad85f7ae0b4d74.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4840],{24840:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(20173),o=n(25105),l=r._(n(58101)),a=r._(n(66134)),i={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){let{res:t,err:n}=e;return{statusCode:t&&t.statusCode?t.statusCode:n?n.statusCode:404}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class u extends l.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||i[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(a.default,{children:(0,o.jsx)("title",{children:e?e+": "+n:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?n:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}u.displayName="ErrorPage",u.getInitialProps=d,u.origGetInitialProps=d,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95510:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(20173)._(n(58101)).default.createContext({})},44878:(e,t)=>{function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},66134:(e,t,n)=>{var r=n(85318);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return m},defaultHead:function(){return f}});let o=n(20173),l=n(13232),a=n(25105),i=l._(n(58101)),d=o._(n(5393)),s=n(95510),u=n(67366),c=n(44878);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(5606);let h=["name","httpEquiv","charSet","itemProp"];function y(e,t){let{inAmpMode:n}=t;return e.reduce(p,[]).reverse().concat(f(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let l=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?l=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let o=e.key||t;if(r.env.__NEXT_OPTIMIZE_FONTS&&!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:o})})}let m=function(e){let{children:t}=e,n=(0,i.useContext)(s.AmpStateContext),r=(0,i.useContext)(u.HeadManagerContext);return(0,a.jsx)(d.default,{reduceComponentsToState:y,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5393:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(58101),o=r.useLayoutEffect,l=r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5203.7c54c202406d4620.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5203.7c54c202406d4620.js deleted file mode 100644 index 68fabd9..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5203.7c54c202406d4620.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5203],{35203:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let u=l(87677),n=l(74848),a=u._(l(96540)),o=l(4881);async function r(e){let{Component:t,ctx:l}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,l)}}class s extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,n.jsx)(e,{...t})}}s.origGetInitialProps=r,s.getInitialProps=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5509-b63c60a753b70e7c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5509-b63c60a753b70e7c.js deleted file mode 100644 index 9e89248..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5509-b63c60a753b70e7c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5509],{98867:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(67401).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},15800:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(67401).A)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},24623:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(67401).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},28283:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(67401).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},65192:(t,e,n)=>{"use strict";var r=n(80859);function a(){}function d(){}d.resetWarningCache=a,t.exports=function(){function t(t,e,n,a,d,i){if(i!==r){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:d,resetWarningCache:a};return n.PropTypes=n,n}},81996:(t,e,n)=>{t.exports=n(65192)()},80859:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4617:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var t="",e=0;e{"use strict";n.d(e,{C1:()=>P,bL:()=>S});var r=n(12115),a=n(88068),d=n(18166),i=n(93610),o=n(1488),u=n(50858),l=n(7510),c=n(17028),s=n(23360),$=n(95155),f="Checkbox",[p,h]=(0,d.A)(f),[y,m]=p(f),g=r.forwardRef((t,e)=>{let{__scopeCheckbox:n,name:d,checked:u,defaultChecked:l,required:c,disabled:f,value:p="on",onCheckedChange:h,form:m,...g}=t,[v,b]=r.useState(null),S=(0,a.s)(e,t=>b(t)),P=r.useRef(!1),I=!v||m||!!v.closest("form"),[x=!1,E]=(0,o.i)({prop:u,defaultProp:l,onChange:h}),w=r.useRef(x);return r.useEffect(()=>{let t=null==v?void 0:v.form;if(t){let e=()=>E(w.current);return t.addEventListener("reset",e),()=>t.removeEventListener("reset",e)}},[v,E]),(0,$.jsxs)(y,{scope:n,state:x,disabled:f,children:[(0,$.jsx)(s.sG.button,{type:"button",role:"checkbox","aria-checked":O(x)?"mixed":x,"aria-required":c,"data-state":N(x),"data-disabled":f?"":void 0,disabled:f,value:p,...g,ref:S,onKeyDown:(0,i.m)(t.onKeyDown,t=>{"Enter"===t.key&&t.preventDefault()}),onClick:(0,i.m)(t.onClick,t=>{E(t=>!!O(t)||!t),I&&(P.current=t.isPropagationStopped(),P.current||t.stopPropagation())})}),I&&(0,$.jsx)(C,{control:v,bubbles:!P.current,name:d,value:p,checked:x,required:c,disabled:f,form:m,style:{transform:"translateX(-100%)"},defaultChecked:!O(l)&&l})]})});g.displayName=f;var v="CheckboxIndicator",b=r.forwardRef((t,e)=>{let{__scopeCheckbox:n,forceMount:r,...a}=t,d=m(v,n);return(0,$.jsx)(c.C,{present:r||O(d.state)||!0===d.state,children:(0,$.jsx)(s.sG.span,{"data-state":N(d.state),"data-disabled":d.disabled?"":void 0,...a,ref:e,style:{pointerEvents:"none",...t.style}})})});b.displayName=v;var C=t=>{let{control:e,checked:n,bubbles:a=!0,defaultChecked:d,...i}=t,o=r.useRef(null),c=(0,u.Z)(n),s=(0,l.X)(e);r.useEffect(()=>{let t=o.current,e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==n&&e){let r=new Event("click",{bubbles:a});t.indeterminate=O(n),e.call(t,!O(n)&&n),t.dispatchEvent(r)}},[c,n,a]);let f=r.useRef(!O(n)&&n);return(0,$.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=d?d:f.current,...i,tabIndex:-1,ref:o,style:{...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function O(t){return"indeterminate"===t}function N(t){return O(t)?"indeterminate":t?"checked":"unchecked"}var S=g,P=b},50858:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(12115);function a(t){let e=r.useRef({value:t,previous:t});return r.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}},7859:(t,e,n)=>{"use strict";n.d(e,{uB:()=>T});var r=/[\\\/_+.#"@\[\(\{&]/,a=/[\\\/_+.#"@\[\(\{&]/g,d=/[\s-]/,i=/[\s-]/g;function o(t){return t.toLowerCase().replace(i," ")}var u=n(66217),l=n(12115),c=n(23360),s=n(67668),$=n(88068),f='[cmdk-group=""]',p='[cmdk-group-items=""]',h='[cmdk-item=""]',y="".concat(h,':not([aria-disabled="true"])'),m="cmdk-item-select",g="data-value",v=(t,e,n)=>(function(t,e,n){return function t(e,n,o,u,l,c,s){if(c===n.length)return l===e.length?1:.99;var $=`${l},${c}`;if(void 0!==s[$])return s[$];for(var f,p,h,y,m=u.charAt(c),g=o.indexOf(m,l),v=0;g>=0;)(f=t(e,n,o,u,g+1,c+1,s))>v&&(g===l?f*=1:r.test(e.charAt(g-1))?(f*=.8,(h=e.slice(l,g-1).match(a))&&l>0&&(f*=Math.pow(.999,h.length))):d.test(e.charAt(g-1))?(f*=.9,(y=e.slice(l,g-1).match(i))&&l>0&&(f*=Math.pow(.999,y.length))):(f*=.17,l>0&&(f*=Math.pow(.999,g-l))),e.charAt(g)!==n.charAt(c)&&(f*=.9999)),(f<.1&&o.charAt(g-1)===u.charAt(c+1)||u.charAt(c+1)===u.charAt(c)&&o.charAt(g-1)!==u.charAt(c))&&.1*(p=t(e,n,o,u,g+1,c+2,s))>f&&(f=.1*p),f>v&&(v=f),g=o.indexOf(m,g+1);return s[$]=v,v}(t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,e,o(t),o(e),0,0,{})})(t,e,n),b=l.createContext(void 0),C=()=>l.useContext(b),O=l.createContext(void 0),N=()=>l.useContext(O),S=l.createContext(void 0),P=l.forwardRef((t,e)=>{let n=R(()=>{var e,n;return{search:"",value:null!=(n=null!=(e=t.value)?e:t.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=R(()=>new Set),a=R(()=>new Map),d=R(()=>new Map),i=R(()=>new Set),o=k(t),{label:u,children:$,value:C,onValueChange:N,filter:S,shouldFilter:P,loop:I,disablePointerSelection:x=!1,vimBindings:E=!0,...w}=t,A=(0,s.B)(),j=(0,s.B)(),T=(0,s.B)(),F=l.useRef(null),D=L();M(()=>{if(void 0!==C){let t=C.trim();n.current.value=t,_.emit()}},[C]),M(()=>{D(6,Z)},[]);let _=l.useMemo(()=>({subscribe:t=>(i.current.add(t),()=>i.current.delete(t)),snapshot:()=>n.current,setState:(t,e,r)=>{var a,d,i,u;if(!Object.is(n.current[t],e)){if(n.current[t]=e,"search"===t)H(),V(),D(1,W);else if("value"===t){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let t=document.getElementById(T);t?t.focus():null==(a=document.getElementById(A))||a.focus()}if(D(7,()=>{var t;n.current.selectedItemId=null==(t=q())?void 0:t.id,_.emit()}),r||D(5,Z),(null==(d=o.current)?void 0:d.value)!==void 0){null==(u=(i=o.current).onValueChange)||u.call(i,null!=e?e:"");return}}_.emit()}},emit:()=>{i.current.forEach(t=>t())}}),[]),U=l.useMemo(()=>({value:(t,e,r)=>{var a;e!==(null==(a=d.current.get(t))?void 0:a.value)&&(d.current.set(t,{value:e,keywords:r}),n.current.filtered.items.set(t,K(e,r)),D(2,()=>{V(),_.emit()}))},item:(t,e)=>(r.current.add(t),e&&(a.current.has(e)?a.current.get(e).add(t):a.current.set(e,new Set([t]))),D(3,()=>{H(),V(),n.current.value||W(),_.emit()}),()=>{d.current.delete(t),r.current.delete(t),n.current.filtered.items.delete(t);let e=q();D(4,()=>{H(),(null==e?void 0:e.getAttribute("id"))===t&&W(),_.emit()})}),group:t=>(a.current.has(t)||a.current.set(t,new Set),()=>{d.current.delete(t),a.current.delete(t)}),filter:()=>o.current.shouldFilter,label:u||t["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:A,inputId:T,labelId:j,listInnerRef:F}),[]);function K(t,e){var r,a;let d=null!=(a=null==(r=o.current)?void 0:r.filter)?a:v;return t?d(t,n.current.search,e):0}function V(){if(!n.current.search||!1===o.current.shouldFilter)return;let t=n.current.filtered.items,e=[];n.current.filtered.groups.forEach(n=>{let r=a.current.get(n),d=0;r.forEach(e=>{d=Math.max(t.get(e),d)}),e.push([n,d])});let r=F.current;Y().sort((e,n)=>{var r,a;let d=e.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=t.get(i))?r:0)-(null!=(a=t.get(d))?a:0)}).forEach(t=>{let e=t.closest(p);e?e.appendChild(t.parentElement===e?t:t.closest("".concat(p," > *"))):r.appendChild(t.parentElement===r?t:t.closest("".concat(p," > *")))}),e.sort((t,e)=>e[1]-t[1]).forEach(t=>{var e;let n=null==(e=F.current)?void 0:e.querySelector("".concat(f,"[").concat(g,'="').concat(encodeURIComponent(t[0]),'"]'));null==n||n.parentElement.appendChild(n)})}function W(){let t=Y().find(t=>"true"!==t.getAttribute("aria-disabled")),e=null==t?void 0:t.getAttribute(g);_.setState("value",e||void 0)}function H(){var t,e,i,u;if(!n.current.search||!1===o.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let l=0;for(let a of r.current){let r=K(null!=(e=null==(t=d.current.get(a))?void 0:t.value)?e:"",null!=(u=null==(i=d.current.get(a))?void 0:i.keywords)?u:[]);n.current.filtered.items.set(a,r),r>0&&l++}for(let[t,e]of a.current)for(let r of e)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(t);break}n.current.filtered.count=l}function Z(){var t,e,n;let r=q();r&&((null==(t=r.parentElement)?void 0:t.firstChild)===r&&(null==(n=null==(e=r.closest(f))?void 0:e.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function q(){var t;return null==(t=F.current)?void 0:t.querySelector("".concat(h,'[aria-selected="true"]'))}function Y(){var t;return Array.from((null==(t=F.current)?void 0:t.querySelectorAll(y))||[])}function J(t){let e=Y()[t];e&&_.setState("value",e.getAttribute(g))}function X(t){var e;let n=q(),r=Y(),a=r.findIndex(t=>t===n),d=r[a+t];null!=(e=o.current)&&e.loop&&(d=a+t<0?r[r.length-1]:a+t===r.length?r[0]:r[a+t]),d&&_.setState("value",d.getAttribute(g))}function z(t){let e=q(),n=null==e?void 0:e.closest(f),r;for(;n&&!r;)r=null==(n=t>0?function(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}(n,f):function(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}(n,f))?void 0:n.querySelector(y);r?_.setState("value",r.getAttribute(g)):X(t)}let Q=()=>J(Y().length-1),tt=t=>{t.preventDefault(),t.metaKey?Q():t.altKey?z(1):X(1)},te=t=>{t.preventDefault(),t.metaKey?J(0):t.altKey?z(-1):X(-1)};return l.createElement(c.sG.div,{ref:e,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:t=>{var e;null==(e=w.onKeyDown)||e.call(w,t);let n=t.nativeEvent.isComposing||229===t.keyCode;if(!(t.defaultPrevented||n))switch(t.key){case"n":case"j":E&&t.ctrlKey&&tt(t);break;case"ArrowDown":tt(t);break;case"p":case"k":E&&t.ctrlKey&&te(t);break;case"ArrowUp":te(t);break;case"Home":t.preventDefault(),J(0);break;case"End":t.preventDefault(),Q();break;case"Enter":{t.preventDefault();let e=q();if(e){let t=new Event(m);e.dispatchEvent(t)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:G},u),B(t,t=>l.createElement(O.Provider,{value:_},l.createElement(b.Provider,{value:U},t))))}),I=l.forwardRef((t,e)=>{var n,r;let a=(0,s.B)(),d=l.useRef(null),i=l.useContext(S),o=C(),u=k(t),f=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;M(()=>{if(!f)return o.item(a,null==i?void 0:i.id)},[f]);let p=D(a,d,[t.value,t.children,d],t.keywords),h=N(),y=F(t=>t.value&&t.value===p.current),g=F(t=>!!f||!1===o.filter()||!t.search||t.filtered.items.get(a)>0);function v(){var t,e;b(),null==(e=(t=u.current).onSelect)||e.call(t,p.current)}function b(){h.setState("value",p.current,!0)}if(l.useEffect(()=>{let e=d.current;if(!(!e||t.disabled))return e.addEventListener(m,v),()=>e.removeEventListener(m,v)},[g,t.onSelect,t.disabled]),!g)return null;let{disabled:O,value:P,onSelect:I,forceMount:x,keywords:E,...w}=t;return l.createElement(c.sG.div,{ref:(0,$.t)(d,e),...w,id:a,"cmdk-item":"",role:"option","aria-disabled":!!O,"aria-selected":!!y,"data-disabled":!!O,"data-selected":!!y,onPointerMove:O||o.getDisablePointerSelection()?void 0:b,onClick:O?void 0:v},t.children)}),x=l.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:a,...d}=t,i=(0,s.B)(),o=l.useRef(null),u=l.useRef(null),f=(0,s.B)(),p=C(),h=F(t=>!!a||!1===p.filter()||!t.search||t.filtered.groups.has(i));M(()=>p.group(i),[]),D(i,o,[t.value,t.heading,u]);let y=l.useMemo(()=>({id:i,forceMount:a}),[a]);return l.createElement(c.sG.div,{ref:(0,$.t)(o,e),...d,"cmdk-group":"",role:"presentation",hidden:!h||void 0},n&&l.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),B(t,t=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},l.createElement(S.Provider,{value:y},t))))}),E=l.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,a=l.useRef(null),d=F(t=>!t.search);return n||d?l.createElement(c.sG.div,{ref:(0,$.t)(a,e),...r,"cmdk-separator":"",role:"separator"}):null}),w=l.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,a=null!=t.value,d=N(),i=F(t=>t.search),o=F(t=>t.selectedItemId),u=C();return l.useEffect(()=>{null!=t.value&&d.setState("search",t.value)},[t.value]),l.createElement(c.sG.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":o,id:u.inputId,type:"text",value:a?t.value:i,onChange:t=>{a||d.setState("search",t.target.value),null==n||n(t.target.value)}})}),A=l.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...a}=t,d=l.useRef(null),i=l.useRef(null),o=F(t=>t.selectedItemId),u=C();return l.useEffect(()=>{if(i.current&&d.current){let t=i.current,e=d.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=t.offsetHeight;e.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(t),()=>{cancelAnimationFrame(n),r.unobserve(t)}}},[]),l.createElement(c.sG.div,{ref:(0,$.t)(d,e),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":r,id:u.listId},B(t,t=>l.createElement("div",{ref:(0,$.t)(i,u.listInnerRef),"cmdk-list-sizer":""},t)))}),j=l.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:d,container:i,...o}=t;return l.createElement(u.bL,{open:n,onOpenChange:r},l.createElement(u.ZL,{container:i},l.createElement(u.hJ,{"cmdk-overlay":"",className:a}),l.createElement(u.UC,{"aria-label":t.label,"cmdk-dialog":"",className:d},l.createElement(P,{ref:e,...o}))))}),T=Object.assign(P,{List:A,Item:I,Input:w,Group:x,Separator:E,Dialog:j,Empty:l.forwardRef((t,e)=>F(t=>0===t.filtered.count)?l.createElement(c.sG.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Loading:l.forwardRef((t,e)=>{let{progress:n,children:r,label:a="Loading...",...d}=t;return l.createElement(c.sG.div,{ref:e,...d,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},B(t,t=>l.createElement("div",{"aria-hidden":!0},t)))})});function k(t){let e=l.useRef(t);return M(()=>{e.current=t}),e}var M="undefined"==typeof window?l.useEffect:l.useLayoutEffect;function R(t){let e=l.useRef();return void 0===e.current&&(e.current=t()),e}function F(t){let e=N(),n=()=>t(e.snapshot());return l.useSyncExternalStore(e.subscribe,n,n)}function D(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=l.useRef(),d=C();return M(()=>{var i;let o=(()=>{var t;for(let e of n){if("string"==typeof e)return e.trim();if("object"==typeof e&&"current"in e)return e.current?null==(t=e.current.textContent)?void 0:t.trim():a.current}})(),u=r.map(t=>t.trim());d.value(t,o,u),null==(i=e.current)||i.setAttribute(g,o),a.current=o}),a}var L=()=>{let[t,e]=l.useState(),n=R(()=>new Map);return M(()=>{n.current.forEach(t=>t()),n.current=new Map},[t]),(t,r)=>{n.current.set(t,r),e({})}};function B(t,e){let n,{asChild:r,children:a}=t;return r&&l.isValidElement(a)?l.cloneElement("function"==typeof(n=a.type)?n(a.props):"render"in n?n.render(a.props):a,{ref:a.ref},e(a.props.children)):e(a)}var G={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},22673:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>nA,Ko:()=>nj});let r={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function a(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),a=0;a<3;a++){var d=Number(n[a]),i=Number(r[a]);if(d>i)return 1;if(i>d)return -1;if(!isNaN(d)&&isNaN(i))return 1;if(isNaN(d)&&!isNaN(i))return -1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(n=a()).done;)n.value===t&&r++;return r}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);ni&&(d=a.length))),i++}return void 0===e&&(d=a.length),{value:a,caret:d}}(t.value,t.selectionStart,e),i=d.value,o=d.caret;if(r){var u=function(t,e,n){switch(n){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1)}return{value:t,caret:e}}(i,o,r);i=u.value,o=u.caret}var l=function(t,e,n){"string"==typeof n&&(n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!t)return function(t){return{text:t}};var r=j(e,t);return function(a){if(!a)return{text:"",template:t};for(var d,i=0,o="",u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return T(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(d=u()).done;){var l=d.value;if(l!==e){o+=l;continue}if(o+=a[i],++i===a.length&&a.length2&&void 0!==arguments[2]?arguments[2]:"x",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",a=t.length,d=j("(",t)-j(")",t);d>0&&a=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,G))).ref,a=n.parse,d=n.format,i=n.value,o=n.defaultValue,u=n.controlled,l=n.onChange,c=n.onKeyDown,s=function(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},d=Object.keys(t);for(r=0;r=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(n,D),$=(0,S.useRef)(),f=(0,S.useCallback)(function(t){$.current=t,r&&("function"==typeof r?r(t):r.current=t)},[r]),p=(0,S.useCallback)(function(t){F($.current,a,d,void 0,l)},[$,a,d,l]),h=(0,S.useCallback)(function(t){if(c&&c(t),!t.defaultPrevented)return function(t,e,n,r,a){if(!e.hasAttribute("readonly")){var d=function(t){switch(t.keyCode){case k.Backspace:return"Backspace";case k.Delete:return"Delete"}}(t);switch(d){case"Delete":case"Backspace":t.preventDefault();var i,o=function(t){if(t.selectionStart!==t.selectionEnd)return{start:t.selectionStart,end:t.selectionEnd}}(e);if(o)return i=(i=e.value).slice(0,o.start)+i.slice(o.end),e.value=i,M(e,o.start),F(e,n,r,void 0,a);return F(e,n,r,d,a)}}}(t,$.current,a,d,l)},[$,a,d,l,c]),y=B(B({},s),{},{ref:f,onChange:p,onKeyDown:h}),void 0===u||u?B(B({},y),{},{value:d(null==i?"":i).text}):B(B({},y),{},{defaultValue:d(null==o?"":o).text}));return S.createElement(void 0===m?"input":m,x)}(U=S.forwardRef(U)).propTypes={parse:I.func.isRequired,format:I.func.isRequired,inputComponent:I.elementType,type:I.string,value:I.string,defaultValue:I.string,onChange:I.func,controlled:I.bool,onKeyDown:I.func,onCut:I.func,onPaste:I.func};let K=U;function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=a()).done;){var d=n.value;0>t.indexOf(d)&&r.push(d)}return r.sort(function(t,e){return t-e})}(d,i.possibleLengths()))}else if(n&&!a)return"INVALID_LENGTH";var o=e.length,u=d[0];return u===o?"IS_POSSIBLE":u>o?"TOO_SHORT":d[d.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}(t,void 0,e)}function H(t,e){return"IS_POSSIBLE"===W(t,e)}function Z(t,e){return t=t||"",RegExp("^(?:"+e+")$").test(t)}function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Y);!(a=d()).done;){var i=a.value;if(X(r,i,n))return i}}}}function X(t,e,n){return!(!(e=n.type(e))||!e.pattern()||e.possibleLengths()&&0>e.possibleLengths().indexOf(t.length))&&Z(t,e.pattern())}var z="0-90-9٠-٩۰-۹",Q="".concat("-‐-―−ー-").concat("//").concat("..").concat(" \xa0\xad​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),tt="++",te=RegExp("(["+z+"])");function tn(t,e,n,r){if(e){var a=new f(r);a.selectNumberingPlan(e,n);var d=new RegExp(a.IDDPrefix());if(0===t.search(d)){var i=(t=t.slice(t.match(d)[0].length)).match(te);if(!i||null==i[1]||!(i[1].length>0)||"0"!==i[1])return t}}}function tr(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var a,d,i,o=r.length-1,u=o>0&&r[o];if(e.nationalPrefixTransformRule()&&u)a=t.replace(n,e.nationalPrefixTransformRule()),o>1&&(d=r[1]);else{var l=r[0];a=t.slice(l.length),u&&(d=r[1])}if(u){var c=t.indexOf(r[1]);t.slice(0,c)===e.numberingPlan.nationalPrefix()&&(i=e.numberingPlan.nationalPrefix())}else i=r[0];return{nationalNumber:a,nationalPrefix:i,carrierCode:d}}}return{nationalNumber:t}}function ta(t,e){var n=tr(t,e),r=n.carrierCode,a=n.nationalNumber;return a!==t&&(!(!Z(t,e.nationalNumberPattern())||Z(a,e.nationalNumberPattern()))||e.possibleLengths()&&!function(t,e){switch(W(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(a,e))?{nationalNumber:t}:{nationalNumber:a,carrierCode:r}}function td(t,e,n,r){var a=e?C(e,r):n;if(0===t.indexOf(a)){(r=new f(r)).selectNumberingPlan(e,n);var d=t.slice(a.length),i=ta(d,r).nationalNumber,o=ta(t,r).nationalNumber;if(!Z(o,r.nationalNumberPattern())&&Z(i,r.nationalNumberPattern())||"TOO_LONG"===W(o,r))return{countryCallingCode:a,number:d}}return{number:t}}function ti(t,e,n,r){if(!t)return{};if("+"!==t[0]){var a,d=tn(t,e,n,r);if(d&&d!==t)a=!0,t="+"+d;else{if(e||n){var i=td(t,e,n,r),o=i.countryCallingCode,u=i.number;if(o)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:o,number:u}}return{number:t}}}if("0"===t[1])return{};r=new f(r);for(var l=2;l-1<=3&&l<=t.length;){var c=t.slice(1,l);if(r.hasCallingCode(c))return r.selectNumberingPlan(c),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:t.slice(l)};l++}return{}}function to(t){return t.replace(RegExp("[".concat(Q,"]+"),"g")," ").trim()}var tu=/(\$\d)/;function tl(t,e,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var d=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():a&&e.nationalPrefixFormattingRule()?e.format().replace(tu,e.nationalPrefixFormattingRule()):e.format());return r?to(d):d}var tc=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ts(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=r()).done;){var a=n.value;if(a.leadingDigitsPatterns().length>0){var d=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(0!==e.search(d))continue}if(Z(e,a.pattern()))return a}}(r.formats(),t);return d?tl(t,d,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!d.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a||!1!==a.nationalPrefix,carrierCode:e,metadata:r}):t}function ty(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tm(t){for(var e=1;e=0}):[])}},{key:"isPossible",value:function(){return function(t,e,n){if(void 0===e&&(e={}),n=new f(n),e.v2){if(!t.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return H(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){var t,e;return(t=t={v2:!0},(e=new f(e=this.getMetadata())).selectNumberingPlan(this.country,this.countryCallingCode),e.hasTypes())?void 0!==J(this,t,e.metadata):Z(t.v2?this.nationalNumber:this.phone,e.nationalNumberPattern())}},{key:"isNonGeographic",value:function(){return new f(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(t){return this.number===t.number&&this.ext===t.ext}},{key:"getType",value:function(){return J(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(t,e){return function(t,e,n,r){if(n=n?tf(tf({},tp),n):tp,r=new f(r),t.country&&"001"!==t.country){if(!r.hasCountry(t.country))throw Error("Unknown country: ".concat(t.country));r.country(t.country)}else{if(!t.countryCallingCode)return t.phone||"";r.selectNumberingPlan(t.countryCallingCode)}var a,d,i,o,u,l,c,s,$,p,h,y,m,g=r.countryCallingCode(),v=n.v2?t.nationalNumber:t.phone;switch(e){case"NATIONAL":if(!v)return"";return a=m=th(v,t.carrierCode,"NATIONAL",r,n),d=t.ext,i=r,o=n.formatExtension,d?o(a,d,i):a;case"INTERNATIONAL":if(!v)return"+".concat(g);return m=th(v,null,"INTERNATIONAL",r,n),u=m="+".concat(g," ").concat(m),l=t.ext,c=r,s=n.formatExtension,l?s(u,l,c):u;case"E.164":return"+".concat(g).concat(v);case"RFC3966":return function(t){var e=t.number,n=t.ext;if(!e)return"";if("+"!==e[0])throw Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}({number:"+".concat(g).concat(v),ext:t.ext});case"IDD":if(!n.fromCountry)return;return $=function(t,e,n,r,a){if(C(r,a.metadata)===n){var d,i,o=th(t,e,"NATIONAL",a);return"1"===n?n+" "+o:o}var u=(d=void 0,((i=new f(a.metadata)).selectNumberingPlan(r,d),i.defaultIDDPrefix())?i.defaultIDDPrefix():tc.test(i.IDDPrefix())?i.IDDPrefix():void 0);if(u)return"".concat(u," ").concat(n," ").concat(th(t,null,"INTERNATIONAL",a))}(v,t.carrierCode,g,n.fromCountry,r),p=t.ext,h=r,y=n.formatExtension,p?y($,p,h):$;default:throw Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}(this,t,e?tm(tm({},e),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(t){return this.format("NATIONAL",t)}},{key:"formatInternational",value:function(t){return this.format("INTERNATIONAL",t)}},{key:"getURI",value:function(t){return this.format("RFC3966",t)}}],function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}function tS(t,e){return")"===t[e]&&e++,function(t){for(var e=[],n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(e=r()).done;){var a=tI[e.value];a&&(n+=a)}return n}function tE(t,e,n){var r=n.metadata,a=n.useNationalPrefixFormattingRule,d=n.getSeparatorAfterNationalPrefix,i=tl(t.nationalSignificantNumber,e,{carrierCode:t.carrierCode,useInternationalFormat:t.international,withNationalPrefix:a,metadata:r});if(!a&&(t.nationalPrefix?i=t.nationalPrefix+d(e)+i:t.complexPrefixBeforeNationalSignificantNumber&&(i=t.complexPrefixBeforeNationalSignificantNumber+" "+i)),tx(i)===t.getNationalDigits())return i}var tw=function(){var t;function e(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e)}return t=[{key:"parse",value:function(t){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(t),1!==this.context.length)throw Error("Non-finalized contexts left when pattern parse ended");var e=this.context[0],n=e.branches,r=e.instructions;if(n)return{op:"|",args:n.concat([tT(r)])};if(0===r.length)throw Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(t){this.context.push(t)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(t){if(!t)throw Error("Pattern is required");var e=t.match(tj);if(!e){if(tA.test(t))throw Error("Illegal characters found in a pattern: ".concat(t));this.getContext().instructions=this.getContext().instructions.concat(t.split(""));return}var n=e[1],r=t.slice(0,e.index),a=t.slice(e.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw Error('No instructions found after "|" operator in an "or" group');var d=this.getContext().branches;d.push(tT(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:d});break;case"|":if(!this.getContext().or)throw Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches){if(1===this.context.length)this.getContext().branches=[];else throw Error('"branches" not found in an "or" group context')}this.getContext().branches.push(tT(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:function(t){for(var e=[],n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},n=e.allowOverflow;if(!t)throw Error("String is required");var r=function t(e,n,r){if("string"==typeof n){var a=e.join("");return 0===n.indexOf(a)?e.length===n.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===a.indexOf(n)?r&&e.length>n.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,n.length)}:void 0}if(Array.isArray(n)){for(var d=e.slice(),i=0;i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0)){var n=this.getTemplateForFormat(t,e);if(n)return this.setNationalNumberTemplate(n,e),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(t){return this.isNANP||t&&t.nationalPrefixFormattingRule()&&tB.test(t.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(t,e){var n=t.IDDPrefix,r=t.missingPlus;return n?e&&!1===e.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(t){if(this.template){for(var e=-1,n=0,r=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t,{spacing:!1}):"";nu.length)){var l=RegExp("^"+o+"$"),c=r.replace(/\d/g,"9");l.test(c)&&(u=c);var s=this.getFormatFormat(t,a);if(this.shouldTryNationalPrefixFormattingRule(t,{international:a,nationalPrefix:d})){var $=s.replace(tu,t.nationalPrefixFormattingRule());if(tx(t.nationalPrefixFormattingRule())===(d||"")+tx("$1")&&(s=$,n=!0,d))for(var f=d.length;f>0;)s=s.replace(/\d/,"x"),f--}var p=u.replace(new RegExp(o),s).replace(/9/g,"x");return!n&&(i?p=tN("x",i.length)+" "+p:d&&(p=tN("x",d.length)+this.getSeparatorAfterNationalPrefix(t)+p)),a&&(p=to(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(t){var e=function(t,e,n){for(var r,a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return tC(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tC(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.split(""));!(r=a()).done;){var d=r.value;if(0>t.slice(e+1).search(tO))return;e=t.search(tO),t=t.replace(tO,d)}return[t,e]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(!e){this.resetFormat();return}return this.populatedNationalNumberTemplate=e[0],this.populatedNationalNumberTemplatePosition=e[1],tS(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(t,e){var n=e.international,r=e.nationalPrefix;if(t.nationalPrefixFormattingRule()){var a=t.usesNationalPrefix();if(a&&r||!a&&!n)return!0}}}],function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=3;if(e.appendDigits(t),r&&this.extractIddPrefix(e),this.isWaitingForCountryCallingCode(e)){if(!this.extractCountryCallingCode(e))return}else e.appendNationalSignificantNumberDigits(t);e.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}},{key:"isWaitingForCountryCallingCode",value:function(t){var e=t.international,n=t.callingCode;return e&&!n}},{key:"extractCountryCallingCode",value:function(t){var e=ti("+"+t.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=e.countryCallingCode,r=e.number;if(n)return t.setCallingCode(n),t.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(t){if(t){this.hasSelectedNumberingPlan=!0;var e=t._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=e&&tZ.test(e)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,e){if(this.hasSelectedNumberingPlan){var n=tr(t,this.metadata),r=n.nationalPrefix,a=n.nationalNumber,d=n.carrierCode;if(a!==t)return this.onExtractedNationalNumber(r,d,a,t,e),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,e,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=tr(t,this.metadata),a=r.nationalPrefix,d=r.nationalNumber,i=r.carrierCode;if(d!==e)return this.onExtractedNationalNumber(a,i,d,t,n),!0}}},{key:"onExtractedNationalNumber",value:function(t,e,n,r,a){var d,i,o=r.lastIndexOf(n);if(o>=0&&o===r.length-n.length){i=!0;var u=r.slice(0,o);u!==t&&(d=u)}a({nationalPrefix:t,carrierCode:e,nationalSignificantNumber:n,nationalSignificantNumberMatchesInput:i,complexPrefixBeforeNationalSignificantNumber:d}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(t){return!!this.extractAnotherNationalSignificantNumber(t.getNationalDigits(),t.nationalSignificantNumber,function(e){return t.update(e)})||(this.extractIddPrefix(t)||this.fixMissingPlus(t)?(this.extractCallingCodeAndNationalSignificantNumber(t),!0):void 0)}},{key:"extractIddPrefix",value:function(t){var e=t.international,n=t.IDDPrefix,r=t.digits;if(t.nationalSignificantNumber,!e&&!n){var a=tn(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(void 0!==a&&a!==r)return t.update({IDDPrefix:r.slice(0,r.length-a.length)}),this.startInternationalNumber(t,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var e=td(t.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=e.countryCallingCode;if(e.number,n)return t.update({missingPlus:!0}),this.startInternationalNumber(t,{country:t.country,callingCode:n}),!0}}},{key:"startInternationalNumber",value:function(t,e){var n=e.country,r=e.callingCode;t.startInternationalNumber(n,r),t.nationalSignificantNumber&&(t.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(t){this.extractCountryCallingCode(t)&&this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}}],function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(a=d()).done;){var i=a.value;if(r.country(i),r.leadingDigits()){if(t&&0===t.search(r.leadingDigits()))return i}else if(J({phone:t,country:i},void 0,r.metadata))return i}}function tX(t,e){var n=e.nationalNumber,r=e.defaultCountry,a=e.metadata,d=a.getCountryCodesForCallingCode(t);return d?1===d.length?d[0]:tJ(n,{countries:d,defaultCountry:r,metadata:a.metadata}):void 0}function tz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(tX(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var t=this.state,e=t.digits,n=t.callingCode,r=t.country,a=t.nationalSignificantNumber;if(e){if(this.isInternational())return n?"+"+n+a:"+"+e;if(r||n)return"+"+(r?this.metadata.countryCallingCode():n)+a}}},{key:"getNumber",value:function(){var t=this.state,e=t.nationalSignificantNumber,n=t.carrierCode,r=t.callingCode,a=this._getCountry();if(e&&(a||r)){if(a&&a===this.defaultCountry){var d=new f(this.metadata.metadata);d.selectNumberingPlan(a);var i=d.numberingPlan.callingCode(),o=this.metadata.getCountryCodesForCallingCode(i);if(o.length>1){var u=tJ(e,{countries:o,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});u&&(a=u)}}var l=new tg(a||r,e,this.metadata.metadata);return n&&(l.carrierCode=n),l}}},{key:"isPossible",value:function(){var t=this.getNumber();return!!t&&t.isPossible()}},{key:"isValid",value:function(){var t=this.getNumber();return!!t&&t.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}],function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(e=r()).done;){var a=e.value;n+=t9(a,n)||""}return n}function t9(t,e,n){if("+"===t){if(e){"function"==typeof n&&n("end");return}return"+"}return tI[t]}function t4(t,e,n){if(!n||!n.ignoreRest)return t9(t,e,function(t){n&&"end"===t&&(n.ignoreRest=!0)})}function t8(t){var e=t.onKeyDown,n=t.inputFormat;return(0,S.useCallback)(function(t){if(t.keyCode===t6&&"INTERNATIONAL"===n&&t.target instanceof HTMLInputElement&&t.target.selectionStart===t5.length){t.preventDefault();return}e&&e(t)},[e,n])}var t6=8,t5="+",t7=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function et(){return(et=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,t7)),u=(0,S.useCallback)(function(t){var e=new tQ(r,i),n=t0({inputFormat:a,country:r,metadata:i}),d=e.input(n+t),o=e.getTemplate();return n&&(d=t1(d,n),o&&(o=t1(o,n))),{text:d,template:o}},[r,i]),l=t8({onKeyDown:n,inputFormat:a});return S.createElement(K,et({},o,{ref:e,parse:t4,format:u,onKeyDown:l}))}return(e=S.forwardRef(e)).propTypes={value:I.string.isRequired,onChange:I.func.isRequired,onKeyDown:I.func,country:I.string,inputFormat:I.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:I.object},e}();var en=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function er(){return(er=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,en)),s=t0({inputFormat:i,country:d,metadata:u}),$=(0,S.useCallback)(function(t){var e=t3(t.target.value);e===n&&0===ed(s,e,d,u).indexOf(t.target.value)&&(e=e.slice(0,-1)),r(e)},[s,n,r,d,u]),f=t8({onKeyDown:a,inputFormat:i});return S.createElement(void 0===l?"input":l,er({},c,{ref:e,value:ed(s,n,d,u),onChange:$,onKeyDown:f}))}return(e=S.forwardRef(e)).propTypes={value:I.string.isRequired,onChange:I.func.isRequired,onKeyDown:I.func,country:I.string,inputFormat:I.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:I.object,inputComponent:I.elementType},e}();function ed(t,e,n,r){var a,d,i;return t1((a=t+e,d=n,(i=r)||(i=d,d=void 0),new tQ(d,i).input(a)),t)}function ei(t){return String.fromCodePoint(127397+t.toUpperCase().charCodeAt(0))}var eo=["value","onChange","options","disabled","readOnly"],eu=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function el(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function e$(t){var e=t.value,n=t.onChange,r=t.options,a=t.disabled,d=t.readOnly,i=es(t,eo),o=(0,S.useCallback)(function(t){var e=t.target.value;n("ZZ"===e?void 0:e)},[n]);return(0,S.useMemo)(function(){return ey(r,e)},[r,e]),S.createElement("select",ec({},i,{disabled:a||d,readOnly:d,value:e||"ZZ",onChange:o}),r.map(function(t){var e=t.value,n=t.label,r=t.divider;return S.createElement("option",{key:r?"|":e||"ZZ",value:r?"|":e||"ZZ",disabled:!!r,style:r?ef:void 0},n)}))}e$.propTypes={value:I.string,onChange:I.func.isRequired,options:I.arrayOf(I.shape({value:I.string,label:I.string,divider:I.bool})).isRequired,disabled:I.bool,readOnly:I.bool};var ef={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function ep(t){var e=t.value,n=t.options,r=t.className,a=t.iconComponent,d=(t.getIconAspectRatio,t.arrowComponent),i=void 0===d?eh:d,o=t.unicodeFlags,u=es(t,eu),l=(0,S.useMemo)(function(){return ey(n,e)},[n,e]);return S.createElement("div",{className:"PhoneInputCountry"},S.createElement(e$,ec({},u,{value:e,options:n,className:w("PhoneInputCountrySelect",r)})),l&&(o&&e?S.createElement("div",{className:"PhoneInputCountryIconUnicode"},ei(e[0])+ei(e[1])):S.createElement(a,{"aria-hidden":!0,country:e,label:l.label,aspectRatio:o?1:void 0})),S.createElement(i,null))}function eh(){return S.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function ey(t,e){for(var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return el(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return el(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=r()).done;){var a,d=n.value;if(!d.divider&&(null==(a=d.value)?null==e:a===e))return d}}ep.propTypes={iconComponent:I.elementType,arrowComponent:I.elementType,unicodeFlags:I.bool};var em=["country","countryName","flags","flagUrl"];function eg(){return(eg=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,em);return r&&r[e]?r[e]({title:n}):S.createElement("img",eg({},d,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}ev.propTypes={country:I.string.isRequired,countryName:I.string.isRequired,flags:I.objectOf(I.elementType),flagUrl:I.string.isRequired};var eb=["aspectRatio"],eC=["title"],eO=["title"];function eN(){return(eN=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function eP(t){var e=t.aspectRatio,n=eS(t,eb);return 1===e?S.createElement(ex,n):S.createElement(eI,n)}function eI(t){var e=t.title,n=eS(t,eC);return S.createElement("svg",eN({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),S.createElement("title",null,e),S.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},S.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),S.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),S.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),S.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),S.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),S.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),S.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}function ex(t){var e=t.title,n=eS(t,eO);return S.createElement("svg",eN({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),S.createElement("title",null,e),S.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},S.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),S.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),S.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),S.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),S.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),S.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),S.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}function eE(t){!function(t){if(t.length<2||"+"!==t[0])return!1;for(var e=1;e=48)||!(n<=57))return!1;e++}return!0}(t)&&console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function ew(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,ek),l=a===eP?o:void 0;return S.createElement("div",eM({},u,{className:w("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":1===l,"PhoneInputCountryIcon--border":d})}),d?S.createElement(r,{country:d,countryName:i,flags:e,flagUrl:n,className:"PhoneInputCountryIconImg"}):S.createElement(a,{title:i,aspectRatio:l,className:"PhoneInputCountryIconImg"}))}return d.propTypes={country:I.string,label:I.string.isRequired,aspectRatio:I.number},d}function eF(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}(t);if(!(null===r||0!==r.length&&(e0.test(r)||e1.test(r))))throw new eH("NOT_A_NUMBER");if(null===r)a=n(t)||"";else{a="","+"===r.charAt(0)&&(a+=r);var a,d,i=t.indexOf(e2);d=i>=0?i+e2.length:0;var o=t.indexOf(e3);a+=t.substring(d,o)}var u=a.indexOf(";isub=");if(u>0&&(a=a.substring(0,u)),""!==a)return a}(t,{extractFormattedPhoneNumber:function(t){return function(t,e,n){if(t){if(t.length>250){if(n)throw new eH("TOO_LONG");return}if(!1===e)return t;var r=t.search(e9);if(!(r<0))return t.slice(r).replace(e4,"")}}(t,n,e)}});if(!r)return{};if(!(r.length>=2&&eX.test(r)))return eY.test(r)?{error:"TOO_SHORT"}:{};var a=function(t){var e=t.search(ez);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(ez),a=1;a17){if(e.v2)throw new eH("TOO_LONG");return{}}if(e.v2){var h=new tg(s,c,n.metadata);return l&&(h.country=l),p&&(h.carrierCode=p),i&&(h.ext=i),h.__countryCallingCodeSource=$,h}var y=(e.extended?!!n.hasSelectedNumberingPlan():!!l)&&Z(c,n.nationalNumberPattern());return e.extended?{country:l,countryCallingCode:s,carrierCode:p,valid:y,possible:!!y||!!(!0===e.extended&&n.possibleLengths()&&H(c,n)),phone:c,ext:i}:y?(r={country:l,phone:c},i&&(r.ext=i),r):{}}(t,e6(e6({},r),{},{v2:!0}),n)}catch(t){if(t instanceof eH);else throw t}}(t.text,t.options,t.metadata)}(t||"",e)}function nn(t,e,n){if(t){if("+"===t[0]){if("+"===t)return;var r=new tQ(e,n);return r.input(t),r.getNumberValue()}if(e){var a=ni(t,e,n);return"+".concat(C(e,n)).concat(a||"")}}}function nr(t,e){var n,r=e.country,a=e.countries,d=e.defaultCountry,i=e.latestCountrySelectedByUser,o=e.required,u=e.metadata;if("+"===t)return r;var l=((n=new tQ(null,u)).input(t),n.getCountry());if(l)return!a||a.indexOf(l)>=0?l:void 0;if(r){if(no(t,r,u)){if(i&&no(t,i,u))return i;if(d&&no(t,d,u))return d;if(!o)return}else if(!o)return}return r}function na(t,e,n){if(0!==t.indexOf(nt(e,n)))return t.replace(/\D/g,"");var r=new tQ(e,n);r.input(t);var a=r.getNumber();return a?a.formatNational().replace(/\D/g,""):""}function nd(t,e,n){return String.prototype.localeCompare?t.localeCompare(e,n):te?1:0}function ni(t,e,n){var r=new tQ(e,n);r.input(t);var a=r.getNumber();return a&&a.nationalNumber}function no(t,e,n){for(var r=nt(e,n),a=0;a=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=r()).done;){var a=n.value;a&&("function"==typeof a?a(e):a.current=e)}})([p.props.inputRef,p.inputRef],t)}),nO(p,"isCountrySupportedWithError",function(t){return eA(t,p.props.metadata)}),nO(p,"onCountryChange",function(t){var e=p.props,n=e.international,r=e.metadata,a=e.onChange,d=e.focusInputOnCountrySelection,i=p.state,o=function(t,e){var n=e.prevCountry,r=e.newCountry,a=e.metadata,d=e.useNationalFormat;if(n===r)return t;if(!t)return d?"":r?nt(r,a):"";if(r){if("+"===t[0]){if(d)return 0===t.indexOf("+"+C(r,a))?function(t,e,n){if(e){var r="+"+C(e,n);if(t.length0)return t.slice(0,t.length-d)}return t}(t,a,p)),t&&"+"!==t[0]&&(!a||c)&&(t="+"+t),!t&&r&&"+"===r[0]&&(a=c?void 0:d),"+"===t&&r&&"+"===r[0]&&r.length>1&&(a=void 0),t&&(n="+"===t[0]?"+"===t?void 0:a&&0===nt(a,p).indexOf(t)?void 0:nn(t,a,p):nn(t,a,p)),n&&(a=nr(n,{country:a,countries:l,defaultCountry:d,latestCountrySelectedByUser:i,required:!1,metadata:p}),!1===c&&a&&t&&"+"===t[0]&&(n=nn(t=na(t,a,p),a,p))),!a&&o&&(a=d||u()),{phoneDigits:t,country:a,value:n}}(t,{prevPhoneDigits:s,country:$,countryRequired:!a,defaultCountry:n,latestCountrySelectedByUser:h,getAnyCountry:function(){return p.getFirstSupportedCountry({countries:c})},countries:c,international:d,limitMaxLength:i,countryCallingCodeEditable:o,metadata:u}),m=y.phoneDigits,g=y.country,v=y.value,b={phoneDigits:m,value:v,country:g};h&&v&&!no(v,h,u)&&(b.latestCountrySelectedByUser=void 0),!1!==o||v||m!==p.state.phoneDigits||(b.forceRerender={}),p.setState(b,function(){return r(v)})}),nO(p,"_onFocus",function(){return p.setState({isFocused:!0})}),nO(p,"_onBlur",function(){return p.setState({isFocused:!1})}),nO(p,"onFocus",function(t){p._onFocus();var e=p.props.onFocus;e&&e(t)}),nO(p,"onBlur",function(t){var e=p.props.onBlur;p._onBlur(),e&&e(t)}),nO(p,"onCountryFocus",function(t){p._onFocus();var e=p.props.countrySelectProps;if(e){var n=e.onFocus;n&&n(t)}}),nO(p,"onCountryBlur",function(t){p._onBlur();var e=p.props.countrySelectProps;if(e){var n=e.onBlur;n&&n(t)}}),p.inputRef=S.createRef();var e,n,a,d,i,o,u,l,c,s,$,p,h=p.props,y=h.value,m=(h.labels,h.international),g=h.addInternationalOption,v=h.displayInitialValueAsLocalNumber,b=h.initialValueFormat,O=h.metadata,N=p.props,P=N.defaultCountry,I=N.countries;P&&!p.isCountrySupportedWithError(P)&&(P=void 0),y&&eE(y),I=ej(I,O);var x=ne(y,O);p.CountryIcon=eR(p.props);var E=(a=(e={value:y,phoneNumber:x,defaultCountry:P,required:!g,countries:I||eT(O),getAnyCountry:function(){return p.getFirstSupportedCountry({countries:I})},metadata:O}).value,d=e.phoneNumber,i=e.defaultCountry,o=e.getAnyCountry,u=e.countries,l=e.required,c=e.metadata,d&&d.country?n=d.country:i&&(!a||no(a,i,c))&&(n=i),u&&0>u.indexOf(n)&&(n=void 0),!n&&l&&u&&u.length>0&&(n=o()),n);return p.state={props:p.props,country:E,countries:I,phoneDigits:nu({value:y,phoneNumber:x,defaultCountry:P,international:m,useNationalFormat:v||"national"===b,metadata:O}),value:y},p}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nC(t,e)}(r,t),e=[{key:"componentDidMount",value:function(){var t=this.props.onCountryChange,e=this.props.defaultCountry,n=this.state.country;t&&(e&&!this.isCountrySupportedWithError(e)&&(e=void 0),n!==e&&t(n))}},{key:"componentDidUpdate",value:function(t,e){var n=this.props.onCountryChange,r=this.state.country;n&&r!==e.country&&n(r)}},{key:"getCountrySelectOptions",value:function(t){var e=t.countries,n=this.props,r=n.international,a=n.countryCallingCodeEditable,d=n.countryOptionsOrder,i=n.addInternationalOption,o=n.labels,u=n.locales,l=n.metadata;return this.useMemoCountrySelectOptions(function(){var t,n,c,s,$,f,p;return function(t,e){if(!e)return t;for(var n,r=[],a=[],d=r,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ew(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ew(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=i()).done;)!function(){var e=n.value;if("|"===e)d.push({divider:!0});else if("..."===e||"…"===e)d=a;else{r="\uD83C\uDF10"===e?void 0:e;var r,i=t.indexOf(t.filter(function(t){return t.value===r})[0]),o=t[i];t.splice(i,1),d.push(o)}}();return r.concat(t).concat(a)}((n=(t={countries:e||eT(l),countryNames:o,addInternationalOption:(!r||!1!==a)&&i,compareStringsLocales:u}).countries,c=t.countryNames,s=t.addInternationalOption,$=t.compareStringsLocales,(f=t.compareStrings)||(f=nd),(p=n.map(function(t){return{value:t,label:c[t]||t}})).sort(function(t,e){return f(t.label,e.label,$)}),s&&p.unshift({label:c.ZZ}),p),function(t,e){if(t&&(t=t.filter(function(t){switch(t){case"\uD83C\uDF10":case"|":case"...":case"…":return!0;default:return eA(t,e)}})).length>0)return t}(d,l))},[e,d,i,o,l])}},{key:"useMemoCountrySelectOptions",value:function(t,e){return this.countrySelectOptionsMemoDependencies&&function(t,e){if(t.length!==e.length)return!1;for(var n=0;n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,nf)),g=this.state,v=g.country,b=g.countries,C=g.phoneDigits,O=g.isFocused,N=this.getCountrySelectOptions({countries:b});return S.createElement($,nm({style:d,className:w(i,"PhoneInput",{"PhoneInput--focus":O,"PhoneInput--disabled":n,"PhoneInput--readOnly":r})},f),S.createElement(c,nm({name:e?"".concat(e,"Country"):void 0,"aria-label":p.country},s,{value:v,options:N,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:n||s&&s.disabled,readOnly:r||s&&s.readOnly,iconComponent:this.CountryIcon})),S.createElement(l?ee:ea,nm({ref:this.setInputRef,type:"tel",autoComplete:a},u,m,{inputFormat:!0===y?"INTERNATIONAL":!1===y?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:!!y||void 0,withCountryCallingCode:!!y||void 0,name:e,metadata:h,country:v,value:C||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:n,readOnly:r,inputComponent:o,className:w("PhoneInputInput",u&&u.className,m.className)})))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return ny({props:t},function(t,e,n){var r=t.metadata,a=t.countries,d=t.defaultCountry,i=t.value,o=t.reset,u=t.international,l=t.displayInitialValueAsLocalNumber,c=t.initialValueFormat,s=e.defaultCountry,$=e.value,f=e.reset;n.country;var p=n.value,h=n.hasUserSelectedACountry,y=n.latestCountrySelectedByUser,m=function(t){return nu(ns(ns({},t),{},{international:u,useNationalFormat:l||"national"===c,metadata:r}))};if(o!==f)return{phoneDigits:m({value:void 0,defaultCountry:d}),value:void 0,country:d,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(d!==s){var g=!d||eA(d,r),v=!p||u&&p===m({value:void 0,defaultCountry:s}),b=!i&&v;if(!h&&g&&b)return{country:d,phoneDigits:m({value:void 0,defaultCountry:d}),value:void 0}}if(!n$(i,$)&&!n$(i,p)){if(i){i&&eE(i),C=ne(i,r);var C,O,N,S=ej(a,r);C&&C.country?(!S||S.indexOf(C.country)>=0)&&(O=C.country):(O=nr(i,{country:void 0,countries:S,metadata:r}))||!d||0!==i.indexOf(nt(d,r))||(O=d)}return i?y&&((O?y===O:no(i,y,r))?O||(O=y):N={latestCountrySelectedByUser:void 0}):N={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0},ns(ns({},N),{},{phoneDigits:m({phoneNumber:C,value:i,defaultCountry:d}),value:i,country:i?O:d})}}(t,e.props,e))}}],e&&ng(r.prototype,e),n&&ng(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(S.PureComponent),nP=S.forwardRef(function(t,e){return S.createElement(nS,nm({},function(t){for(var e in t=ny({},t),nI)void 0===t[e]&&(t[e]=nI[e]);return t}(t),{inputRef:e}))});nP.propTypes={value:I.string,onChange:I.func.isRequired,onFocus:I.func,onBlur:I.func,disabled:I.bool,readOnly:I.bool,autoComplete:I.string,initialValueFormat:I.oneOf(["national"]),displayInitialValueAsLocalNumber:I.bool,defaultCountry:I.string,countries:I.arrayOf(I.string),labels:E,locales:I.oneOfType([I.string,I.arrayOf(I.string)]),flagUrl:I.string,flags:I.objectOf(I.elementType),flagComponent:I.elementType,addInternationalOption:I.bool,internationalIcon:I.elementType,countryOptionsOrder:I.arrayOf(I.string),style:I.object,className:I.string,countrySelectComponent:I.elementType,countrySelectProps:I.object,inputComponent:I.elementType,numberInputProps:I.object,containerComponent:I.elementType,containerComponentProps:I.object,smartCaret:I.bool,international:I.bool,limitMaxLength:I.bool,countryCallingCodeEditable:I.bool,metadata:x,onCountryChange:I.func,focusInputOnCountrySelection:I.bool};var nI={autoComplete:"tel",countrySelectComponent:ep,flagComponent:ev,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:eP,inputComponent:"input",containerComponent:"div",reset:I.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0},nx=["metadata","labels"];function nE(){return(nE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(e,nx);return S.createElement(nP,nE({},o,{ref:n,metadata:a,labels:i}))});return e.propTypes={metadata:x,labels:E},e}nw();let nA=nw(r);function nj(){return function(t,e){var n=Array.prototype.slice.call(e);return n.push(r),t.apply(this,n)}(C,arguments)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/564-bce78b0f1af68d0a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/564-bce78b0f1af68d0a.js new file mode 100644 index 0000000..b3c29bb --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/564-bce78b0f1af68d0a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[564],{50564:(e,t,n)=>{n.d(t,{UC:()=>M,VY:()=>k,ZD:()=>U,ZL:()=>_,bL:()=>E,hE:()=>L,hJ:()=>F,l9:()=>T,rc:()=>P});var r=n(20107),o=n(45170),a=n(64236),i=n(60241),l=n(94521),s=n(61837),u=n(20475),d="AlertDialog",[c,f]=(0,o.A)(d,[i.Hs]),p=(0,i.Hs)(),m=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,u.jsx)(i.bL,{...r,...n,modal:!0})};m.displayName=d;var g=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.l9,{...o,...r,ref:t})});g.displayName="AlertDialogTrigger";var v=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,u.jsx)(i.ZL,{...r,...n})};v.displayName="AlertDialogPortal";var y=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.hJ,{...o,...r,ref:t})});y.displayName="AlertDialogOverlay";var N="AlertDialogContent",[h,D]=c(N),b=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:o,...d}=e,c=p(n),f=r.useRef(null),m=(0,a.s)(t,f),g=r.useRef(null);return(0,u.jsx)(i.G$,{contentName:N,titleName:x,docsSlug:"alert-dialog",children:(0,u.jsx)(h,{scope:n,cancelRef:g,children:(0,u.jsxs)(i.UC,{role:"alertdialog",...c,...d,ref:m,onOpenAutoFocus:(0,l.m)(d.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=g.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,u.jsx)(s.xV,{children:o}),(0,u.jsx)(I,{contentRef:f})]})})})});b.displayName=N;var x="AlertDialogTitle",w=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.hE,{...o,...r,ref:t})});w.displayName=x;var R="AlertDialogDescription",j=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.VY,{...o,...r,ref:t})});j.displayName=R;var O=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(i.bm,{...o,...r,ref:t})});O.displayName="AlertDialogAction";var A="AlertDialogCancel",C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=D(A,n),l=p(n),s=(0,a.s)(t,o);return(0,u.jsx)(i.bm,{...l,...r,ref:s})});C.displayName=A;var I=e=>{let{contentRef:t}=e,n="`".concat(N,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(N,"` by passing a `").concat(R,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(N,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},E=m,T=g,_=v,F=y,M=b,P=O,U=C,L=w,k=j},60241:(e,t,n)=>{n.d(t,{G$:()=>Y,Hs:()=>b,UC:()=>et,VY:()=>er,ZL:()=>Q,bL:()=>X,bm:()=>eo,hE:()=>en,hJ:()=>ee,l9:()=>z});var r=n(20107),o=n(94521),a=n(64236),i=n(45170),l=n(72763),s=n(13061),u=n(55302),d=n(38573),c=n(41913),f=n(54245),p=n(34544),m=n(10201),g=n(9543),v=n(58020),y=n(61837),N=n(20475),h="Dialog",[D,b]=(0,i.A)(h),[x,w]=D(h),R=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f=!1,p]=(0,s.i)({prop:o,defaultProp:a,onChange:i});return(0,N.jsx)(x,{scope:t,triggerRef:d,contentRef:c,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};R.displayName=h;var j="DialogTrigger",O=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=w(j,n),l=(0,a.s)(t,i.triggerRef);return(0,N.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":q(i.open),...r,ref:l,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});O.displayName=j;var A="DialogPortal",[C,I]=D(A,{forceMount:void 0}),E=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=w(A,t);return(0,N.jsx)(C,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,N.jsx)(f.C,{present:n||i.open,children:(0,N.jsx)(c.Z,{asChild:!0,container:a,children:e})}))})};E.displayName=A;var T="DialogOverlay",_=r.forwardRef((e,t)=>{let n=I(T,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=w(T,e.__scopeDialog);return a.modal?(0,N.jsx)(f.C,{present:r||a.open,children:(0,N.jsx)(F,{...o,ref:t})}):null});_.displayName=T;var F=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(T,n);return(0,N.jsx)(g.A,{as:y.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,N.jsx)(p.sG.div,{"data-state":q(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),M="DialogContent",P=r.forwardRef((e,t)=>{let n=I(M,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=w(M,e.__scopeDialog);return(0,N.jsx)(f.C,{present:r||a.open,children:a.modal?(0,N.jsx)(U,{...o,ref:t}):(0,N.jsx)(L,{...o,ref:t})})});P.displayName=M;var U=r.forwardRef((e,t)=>{let n=w(M,e.__scopeDialog),i=r.useRef(null),l=(0,a.s)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,v.Eq)(e)},[]),(0,N.jsx)(k,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),L=r.forwardRef((e,t)=>{let n=w(M,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,N.jsx)(k,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),k=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=w(M,n),f=r.useRef(null),p=(0,a.s)(t,f);return(0,m.Oh)(),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,N.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":q(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)($,{titleId:c.titleId}),(0,N.jsx)(K,{contentRef:f,descriptionId:c.descriptionId})]})]})}),S="DialogTitle",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(S,n);return(0,N.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});W.displayName=S;var G="DialogDescription",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(G,n);return(0,N.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});B.displayName=G;var V="DialogClose",Z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=w(V,n);return(0,N.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})});function q(e){return e?"open":"closed"}Z.displayName=V;var H="DialogTitleWarning",[Y,J]=(0,i.q)(H,{contentName:M,titleName:S,docsSlug:"dialog"}),$=e=>{let{titleId:t}=e,n=J(H),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},K=e=>{let{contentRef:t,descriptionId:n}=e,o=J("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(a)},[a,t,n]),null},X=R,z=O,Q=E,ee=_,et=P,en=W,er=B,eo=Z},54245:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(20107),o=n(64236),a=n(54122),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[o,i]=r.useState(),s=r.useRef({}),u=r.useRef(e),d=r.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(s.current);d.current="mounted"===c?e:"none"},[c]),(0,a.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=d.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(d.current=l(s.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),i(e)},[])}}(t),s="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),u=(0,o.s)(i.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||i.isPresent?r.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5668-55d6f43ee8c71ac2.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5668-55d6f43ee8c71ac2.js new file mode 100644 index 0000000..1829b75 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5668-55d6f43ee8c71ac2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5668],{76076:(e,r,a)=>{a.d(r,{A:()=>t});let t=(0,a(39997).A)("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]])},59166:(e,r,a)=>{a.d(r,{A:()=>t});let t=(0,a(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},27720:(e,r,a)=>{a.d(r,{A:()=>t});let t=(0,a(39997).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},28702:(e,r,a)=>{a.d(r,{UC:()=>ei,Y9:()=>en,q7:()=>et,bL:()=>ea,l9:()=>eo});var t=a(20107),n=a(45170),o=a(32474),i=a(64236),l=a(94521),d=a(13061),s=a(34544),c=a(54122),u=a(54245),p=a(72763),f=a(20475),v="Collapsible",[h,m]=(0,n.A)(v),[x,b]=h(v),g=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,open:n,defaultOpen:o,disabled:i,onOpenChange:l,...c}=e,[u=!1,v]=(0,d.i)({prop:n,defaultProp:o,onChange:l});return(0,f.jsx)(x,{scope:a,disabled:i,contentId:(0,p.B)(),open:u,onOpenToggle:t.useCallback(()=>v(e=>!e),[v]),children:(0,f.jsx)(s.sG.div,{"data-state":k(u),"data-disabled":i?"":void 0,...c,ref:r})})});g.displayName=v;var y="CollapsibleTrigger",w=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,...t}=e,n=b(y,a);return(0,f.jsx)(s.sG.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":k(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...t,ref:r,onClick:(0,l.m)(e.onClick,n.onOpenToggle)})});w.displayName=y;var j="CollapsibleContent",A=t.forwardRef((e,r)=>{let{forceMount:a,...t}=e,n=b(j,e.__scopeCollapsible);return(0,f.jsx)(u.C,{present:a||n.open,children:e=>{let{present:a}=e;return(0,f.jsx)(C,{...t,ref:r,present:a})}})});A.displayName=j;var C=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,present:n,children:o,...l}=e,d=b(j,a),[u,p]=t.useState(n),v=t.useRef(null),h=(0,i.s)(r,v),m=t.useRef(0),x=m.current,g=t.useRef(0),y=g.current,w=d.open||u,A=t.useRef(w),C=t.useRef();return t.useEffect(()=>{let e=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=v.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();m.current=r.height,g.current=r.width,A.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),p(n)}},[d.open,n]),(0,f.jsx)(s.sG.div,{"data-state":k(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!w,...l,ref:h,style:{"--radix-collapsible-content-height":x?"".concat(x,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:w&&o})});function k(e){return e?"open":"closed"}var N=a(76056),R="Accordion",I=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_,D,P]=(0,o.N)(R),[G,O]=(0,n.A)(R,[P,m]),q=m(),E=t.forwardRef((e,r)=>{let{type:a,...t}=e;return(0,f.jsx)(_.Provider,{scope:e.__scopeAccordion,children:"multiple"===a?(0,f.jsx)(S,{...t,ref:r}):(0,f.jsx)(z,{...t,ref:r})})});E.displayName=R;var[H,L]=G(R),[M,T]=G(R,{collapsible:!1}),z=t.forwardRef((e,r)=>{let{value:a,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[s,c]=(0,d.i)({prop:a,defaultProp:n,onChange:o});return(0,f.jsx)(H,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:t.useCallback(()=>i&&c(""),[i,c]),children:(0,f.jsx)(M,{scope:e.__scopeAccordion,collapsible:i,children:(0,f.jsx)(F,{...l,ref:r})})})}),S=t.forwardRef((e,r)=>{let{value:a,defaultValue:n,onValueChange:o=()=>{},...i}=e,[l=[],s]=(0,d.i)({prop:a,defaultProp:n,onChange:o}),c=t.useCallback(e=>s(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[s]),u=t.useCallback(e=>s(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[s]);return(0,f.jsx)(H,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:u,children:(0,f.jsx)(M,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(F,{...i,ref:r})})})}),[U,B]=G(R),F=t.forwardRef((e,r)=>{let{__scopeAccordion:a,disabled:n,dir:o,orientation:d="vertical",...c}=e,u=t.useRef(null),p=(0,i.s)(u,r),v=D(a),h="ltr"===(0,N.jH)(o),m=(0,l.m)(e.onKeyDown,e=>{var r;if(!I.includes(e.key))return;let a=e.target,t=v().filter(e=>{var r;return!(null===(r=e.ref.current)||void 0===r?void 0:r.disabled)}),n=t.findIndex(e=>e.ref.current===a),o=t.length;if(-1===n)return;e.preventDefault();let i=n,l=o-1,s=()=>{(i=n+1)>l&&(i=0)},c=()=>{(i=n-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===d&&(h?s():c());break;case"ArrowDown":"vertical"===d&&s();break;case"ArrowLeft":"horizontal"===d&&(h?c():s());break;case"ArrowUp":"vertical"===d&&c()}null===(r=t[i%o].ref.current)||void 0===r||r.focus()});return(0,f.jsx)(U,{scope:a,disabled:n,direction:o,orientation:d,children:(0,f.jsx)(_.Slot,{scope:a,children:(0,f.jsx)(s.sG.div,{...c,"data-orientation":d,ref:p,onKeyDown:n?void 0:m})})})}),K="AccordionItem",[V,Y]=G(K),Z=t.forwardRef((e,r)=>{let{__scopeAccordion:a,value:t,...n}=e,o=B(K,a),i=L(K,a),l=q(a),d=(0,p.B)(),s=t&&i.value.includes(t)||!1,c=o.disabled||e.disabled;return(0,f.jsx)(V,{scope:a,open:s,disabled:c,triggerId:d,children:(0,f.jsx)(g,{"data-orientation":o.orientation,"data-state":er(s),...l,...n,ref:r,disabled:c,open:s,onOpenChange:e=>{e?i.onItemOpen(t):i.onItemClose(t)}})})});Z.displayName=K;var J="AccordionHeader",Q=t.forwardRef((e,r)=>{let{__scopeAccordion:a,...t}=e,n=B(R,a),o=Y(J,a);return(0,f.jsx)(s.sG.h3,{"data-orientation":n.orientation,"data-state":er(o.open),"data-disabled":o.disabled?"":void 0,...t,ref:r})});Q.displayName=J;var W="AccordionTrigger",X=t.forwardRef((e,r)=>{let{__scopeAccordion:a,...t}=e,n=B(R,a),o=Y(W,a),i=T(W,a),l=q(a);return(0,f.jsx)(_.ItemSlot,{scope:a,children:(0,f.jsx)(w,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...l,...t,ref:r})})});X.displayName=W;var $="AccordionContent",ee=t.forwardRef((e,r)=>{let{__scopeAccordion:a,...t}=e,n=B(R,a),o=Y($,a),i=q(a);return(0,f.jsx)(A,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...i,...t,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=$;var ea=E,et=Z,en=Q,eo=X,ei=ee},33466:(e,r,a)=>{a.d(r,{C1:()=>w,bL:()=>y});var t=a(20107),n=a(54379),o=a(34544),i=a(20475),l="Progress",[d,s]=(0,n.A)(l),[c,u]=d(l),p=t.forwardRef((e,r)=>{var a,t,n,l;let{__scopeProgress:d,value:s=null,max:u,getValueLabel:p=h,...f}=e;(u||0===u)&&!b(u)&&console.error((a="".concat(u),t="Progress","Invalid prop `max` of value `".concat(a,"` supplied to `").concat(t,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let v=b(u)?u:100;null===s||g(s,v)||console.error((n="".concat(s),l="Progress","Invalid prop `value` of value `".concat(n,"` supplied to `").concat(l,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let y=g(s,v)?s:null,w=x(y)?p(y,v):void 0;return(0,i.jsx)(c,{scope:d,value:y,max:v,children:(0,i.jsx)(o.sG.div,{"aria-valuemax":v,"aria-valuemin":0,"aria-valuenow":x(y)?y:void 0,"aria-valuetext":w,role:"progressbar","data-state":m(y,v),"data-value":null!=y?y:void 0,"data-max":v,...f,ref:r})})});p.displayName=l;var f="ProgressIndicator",v=t.forwardRef((e,r)=>{var a;let{__scopeProgress:t,...n}=e,l=u(f,t);return(0,i.jsx)(o.sG.div,{"data-state":m(l.value,l.max),"data-value":null!==(a=l.value)&&void 0!==a?a:void 0,"data-max":l.max,...n,ref:r})});function h(e,r){return"".concat(Math.round(e/r*100),"%")}function m(e,r){return null==e?"indeterminate":e===r?"complete":"loading"}function x(e){return"number"==typeof e}function b(e){return x(e)&&!isNaN(e)&&e>0}function g(e,r){return x(e)&&!isNaN(e)&&e<=r&&e>=0}v.displayName=f;var y=p,w=v}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5755-a5bfdac2a1c07373.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5755-a5bfdac2a1c07373.js new file mode 100644 index 0000000..73bbfaf --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5755-a5bfdac2a1c07373.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5755],{39997:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(20107);let u=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:u=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...i,width:u,height:u,stroke:n,strokeWidth:a?24*Number(l)/Number(u):l,className:o("lucide",s),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let n=(0,r.forwardRef)((n,i)=>{let{className:a,...s}=n;return(0,r.createElement)(l,{ref:i,iconNode:t,className:o("lucide-".concat(u(e)),a),...s})});return n.displayName="".concat(e),n}},58212:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},94521:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},54379:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(20107),u=n(20475);function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return i.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;function a(t){let{scope:n,children:o,...a}=t,s=n?.[e][l]||i,c=r.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:c,children:o})}return n=[...n,o],a.displayName=t+"Provider",[a,function(n,u){let a=u?.[e][l]||i,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(i,...t)]}},45170:(e,t,n)=>{n.d(t,{A:()=>i,q:()=>o});var r=n(20107),u=n(20475);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,i=r.useMemo(()=>o,Object.values(o));return(0,u.jsx)(n.Provider,{value:i,children:t})};return o.displayName=e+"Provider",[o,function(u){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,s=n?.[e]?.[l]||i,c=r.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(n,u){let a=u?.[e]?.[l]||i,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(o,...t)]}},76056:(e,t,n)=>{n.d(t,{jH:()=>o});var r=n(20107);n(20475);var u=r.createContext(void 0);function o(e){let t=r.useContext(u);return e||t||"ltr"}},72763:(e,t,n)=>{n.d(t,{B:()=>a});var r,u=n(20107),o=n(54122),i=(r||(r=n.t(u,2)))["useId".toString()]||(()=>void 0),l=0;function a(e){let[t,n]=u.useState(i());return(0,o.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},21840:(e,t,n)=>{n.d(t,{b:()=>l});var r=n(20107),u=n(34544),o=n(20475),i=r.forwardRef((e,t)=>(0,o.jsx)(u.sG.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},54245:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(20107),u=n(64236),o=n(54122),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[u,i]=r.useState(),a=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(a.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=a.current,n=s.current;if(n!==e){let r=c.current,u=l(t);e?f("MOUNT"):"none"===u||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==u?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,o.N)(()=>{if(u){var e;let t;let n=null!==(e=u.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(a.current).includes(e.animationName);if(e.target===u&&r&&(f("ANIMATION_END"),!s.current)){let e=u.style.animationFillMode;u.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===u.style.animationFillMode&&(u.style.animationFillMode=e)})}},o=e=>{e.target===u&&(c.current=l(a.current))};return u.addEventListener("animationstart",o),u.addEventListener("animationcancel",r),u.addEventListener("animationend",r),()=>{n.clearTimeout(t),u.removeEventListener("animationstart",o),u.removeEventListener("animationcancel",r),u.removeEventListener("animationend",r)}}f("ANIMATION_END")},[u,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),a="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),s=(0,u.s)(i.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,u=r&&"isReactWarning"in r&&r.isReactWarning;return u?e.ref:(u=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||i.isPresent?r.cloneElement(a,{ref:s}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},34544:(e,t,n)=>{n.d(t,{hO:()=>a,sG:()=>l});var r=n(20107),u=n(25642),o=n(61837),i=n(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...u}=e,l=r?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...u,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function a(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,n)=>{n.d(t,{c:()=>u});var r=n(20107);function u(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(20107),u=n(46774);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,i=r.useRef(o),l=(0,u.c)(t);return r.useEffect(()=>{i.current!==o&&(l(o),i.current=o)},[o,i,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,a=l?e:o,s=(0,u.c)(n);return[a,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[l,e,i,s])]}},54122:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(20107),u=globalThis?.document?r.useLayoutEffect:()=>{}},29395:(e,t,n)=>{n.d(t,{F:()=>o});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return u(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:l}=t,a=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],u=null==l?void 0:l[e];if(null===t)return null;let o=r(t)||r(u);return i[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return u(e,a,null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...u}=t;return Object.entries(u).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...s}[t]):({...l,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5755-b330e14a84ee51bb.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5755-b330e14a84ee51bb.js new file mode 100644 index 0000000..eecbd9b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5755-b330e14a84ee51bb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5755],{58212:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},94521:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},54379:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(20107),u=n(20475);function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return i.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;function a(t){let{scope:n,children:o,...a}=t,s=n?.[e][l]||i,c=r.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:c,children:o})}return n=[...n,o],a.displayName=t+"Provider",[a,function(n,u){let a=u?.[e][l]||i,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(i,...t)]}},45170:(e,t,n)=>{n.d(t,{A:()=>i,q:()=>o});var r=n(20107),u=n(20475);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,i=r.useMemo(()=>o,Object.values(o));return(0,u.jsx)(n.Provider,{value:i,children:t})};return o.displayName=e+"Provider",[o,function(u){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,s=n?.[e]?.[l]||i,c=r.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(n,u){let a=u?.[e]?.[l]||i,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(o,...t)]}},76056:(e,t,n)=>{n.d(t,{jH:()=>o});var r=n(20107);n(20475);var u=r.createContext(void 0);function o(e){let t=r.useContext(u);return e||t||"ltr"}},72763:(e,t,n)=>{n.d(t,{B:()=>a});var r,u=n(20107),o=n(54122),i=(r||(r=n.t(u,2)))["useId".toString()]||(()=>void 0),l=0;function a(e){let[t,n]=u.useState(i());return(0,o.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},21840:(e,t,n)=>{n.d(t,{b:()=>l});var r=n(20107),u=n(34544),o=n(20475),i=r.forwardRef((e,t)=>(0,o.jsx)(u.sG.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},54245:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(20107),u=n(64236),o=n(54122),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[u,i]=r.useState(),a=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(a.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=a.current,n=s.current;if(n!==e){let r=c.current,u=l(t);e?f("MOUNT"):"none"===u||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==u?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,o.N)(()=>{if(u){var e;let t;let n=null!==(e=u.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(a.current).includes(e.animationName);if(e.target===u&&r&&(f("ANIMATION_END"),!s.current)){let e=u.style.animationFillMode;u.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===u.style.animationFillMode&&(u.style.animationFillMode=e)})}},o=e=>{e.target===u&&(c.current=l(a.current))};return u.addEventListener("animationstart",o),u.addEventListener("animationcancel",r),u.addEventListener("animationend",r),()=>{n.clearTimeout(t),u.removeEventListener("animationstart",o),u.removeEventListener("animationcancel",r),u.removeEventListener("animationend",r)}}f("ANIMATION_END")},[u,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),a="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),s=(0,u.s)(i.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,u=r&&"isReactWarning"in r&&r.isReactWarning;return u?e.ref:(u=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||i.isPresent?r.cloneElement(a,{ref:s}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},34544:(e,t,n)=>{n.d(t,{hO:()=>a,sG:()=>l});var r=n(20107),u=n(25642),o=n(61837),i=n(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...u}=e,l=r?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...u,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function a(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,n)=>{n.d(t,{c:()=>u});var r=n(20107);function u(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(20107),u=n(46774);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,i=r.useRef(o),l=(0,u.c)(t);return r.useEffect(()=>{i.current!==o&&(l(o),i.current=o)},[o,i,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,a=l?e:o,s=(0,u.c)(n);return[a,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[l,e,i,s])]}},54122:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(20107),u=globalThis?.document?r.useLayoutEffect:()=>{}},29395:(e,t,n)=>{n.d(t,{F:()=>o});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return u(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:l}=t,a=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],u=null==l?void 0:l[e];if(null===t)return null;let o=r(t)||r(u);return i[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return u(e,a,null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...u}=t;return Object.entries(u).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...s}[t]):({...l,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5766-fa21e9c5f53d641e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5766-fa21e9c5f53d641e.js new file mode 100644 index 0000000..609b631 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5766-fa21e9c5f53d641e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5766],{17799:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},98969:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},61003:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]])},14389:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},32024:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},46361:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},26780:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},59166:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},57718:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]])},1870:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]])},25262:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},97801:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},52161:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},51873:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},10528:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("UserRoundPen",[["path",{d:"M2 21a8 8 0 0 1 10.821-7.487",key:"1c8h7z"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}]])},48547:(e,t,n)=>{n.d(t,{Mz:()=>td,UC:()=>tp,ZL:()=>tf,bL:()=>tc,l9:()=>ts});var r,o,a=n(20107);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:n,...r}=e,o=a.Children.toArray(n),i=o.find(m);if(i){let e=i.props.children,n=o.map(t=>t!==i?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,f.jsx)(v,{...r,ref:t,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,f.jsx)(v,{...r,ref:t,children:n})});p.displayName="Slot";var v=a.forwardRef((e,t)=>{let{children:n,...r}=e;if(a.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),o=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?u(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null});v.displayName="SlotClone";var h=({children:e})=>(0,f.jsx)(f.Fragment,{children:e});function m(e){return a.isValidElement(e)&&e.type===h}var y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=a.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?p:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),g=n(46774),w=n(91624),b="dismissableLayer.update",E=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=a.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:s,onInteractOutside:p,onDismiss:v,...h}=e,m=a.useContext(E),[x,A]=a.useState(null),P=null!==(r=null==x?void 0:x.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,N]=a.useState({}),R=c(t,e=>A(e)),O=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),M=O.indexOf(S),L=x?O.indexOf(x):-1,j=m.layersWithOutsidePointerEventsDisabled.size>0,T=L>=M,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,g.c)(e),o=a.useRef(!1),i=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){k("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...m.branches].some(e=>e.contains(t));!T||n||(null==d||d(e),null==p||p(e),e.defaultPrevented||null==v||v())},P),F=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,g.c)(e),o=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!o.current&&k("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...m.branches].some(e=>e.contains(t))||(null==s||s(e),null==p||p(e),e.defaultPrevented||null==v||v())},P);return(0,w.U)(e=>{L!==m.layers.size-1||(null==u||u(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},P),a.useEffect(()=>{if(x)return l&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(o=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(x)),m.layers.add(x),C(),()=>{l&&1===m.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=o)}},[x,P,l,m]),a.useEffect(()=>()=>{x&&(m.layers.delete(x),m.layersWithOutsidePointerEventsDisabled.delete(x),C())},[x,m]),a.useEffect(()=>{let e=()=>N({});return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,f.jsx)(y.div,{...h,ref:R,style:{pointerEvents:j?T?"auto":"none":void 0,...e.style},onFocusCapture:i(e.onFocusCapture,F.onFocusCapture),onBlurCapture:i(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:i(e.onPointerDownCapture,D.onPointerDownCapture)})});function C(){let e=new CustomEvent(b);document.dispatchEvent(e)}function k(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&a.addEventListener(e,t,{once:!0}),o)?a&&s.flushSync(()=>a.dispatchEvent(i)):a.dispatchEvent(i)}x.displayName="DismissableLayer",a.forwardRef((e,t)=>{let n=a.useContext(E),r=a.useRef(null),o=c(t,r);return a.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(y.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var A=n(10201),P="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",R={bubbles:!1,cancelable:!0},O=a.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[u,d]=a.useState(null),s=(0,g.c)(o),p=(0,g.c)(i),v=a.useRef(null),h=c(t,e=>d(e)),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(m.paused||!u)return;let t=e.target;u.contains(t)?v.current=t:L(v.current,{select:!0})},t=function(e){if(m.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||L(v.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&L(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,m.paused]),a.useEffect(()=>{if(u){j.add(m);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(P,R);u.addEventListener(P,s),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(L(r,{select:t}),document.activeElement!==n)return}(S(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&L(u))}return()=>{u.removeEventListener(P,s),setTimeout(()=>{let t=new CustomEvent(N,R);u.addEventListener(N,p),u.dispatchEvent(t),t.defaultPrevented||L(null!=e?e:document.body,{select:!0}),u.removeEventListener(N,p),j.remove(m)},0)}}},[u,s,p,m]);let w=a.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=S(e);return[M(t,e),M(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&L(a,{select:!0})):(e.preventDefault(),n&&L(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,f.jsx)(y.div,{tabIndex:-1,...l,ref:h,onKeyDown:w})});function S(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function M(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function L(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var j=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=T(e,t)).unshift(t)},remove(t){var n;null===(n=(e=T(e,t))[0])||void 0===n||n.resume()}}}();function T(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var D=n(72763),F=n(9895),I=n(84069),W=a.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,f.jsx)(y.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});W.displayName="Arrow";var z=n(54122),U=n(63620),_="Popper",[B,H]=(0,d.A)(_),[Y,X]=B(_),K=e=>{let{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return(0,f.jsx)(Y,{scope:t,anchor:r,onAnchorChange:o,children:n})};K.displayName=_;var V="PopperAnchor",Z=a.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=X(V,n),l=a.useRef(null),u=c(t,l);return a.useEffect(()=>{i.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,f.jsx)(y.div,{...o,ref:u})});Z.displayName=V;var q="PopperContent",[G,$]=B(q),J=a.forwardRef((e,t)=>{var n,r,o,i,l,u,d,s;let{__scopePopper:p,side:v="bottom",sideOffset:h=0,align:m="center",alignOffset:w=0,arrowPadding:b=0,avoidCollisions:E=!0,collisionBoundary:x=[],collisionPadding:C=0,sticky:k="partial",hideWhenDetached:A=!1,updatePositionStrategy:P="optimized",onPlaced:N,...R}=e,O=X(q,p),[S,M]=a.useState(null),L=c(t,e=>M(e)),[j,T]=a.useState(null),D=(0,U.X)(j),W=null!==(d=null==D?void 0:D.width)&&void 0!==d?d:0,_=null!==(s=null==D?void 0:D.height)&&void 0!==s?s:0,B="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},H=Array.isArray(x)?x:[x],Y=H.length>0,K={padding:B,boundary:H.filter(en),altBoundary:Y},{refs:V,floatingStyles:Z,placement:$,isPositioned:J,middlewareData:Q}=(0,F.we)({strategy:"fixed",placement:v+("center"!==m?"-"+m:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),j&&(0,F.UE)({element:j,padding:b}),er({arrowWidth:W,arrowHeight:_}),A&&(0,F.jD)({strategy:"referenceHidden",...K})]}),[ee,et]=eo($),ea=(0,g.c)(N);(0,z.N)(()=>{J&&(null==ea||ea())},[J,ea]);let ei=null===(n=Q.arrow)||void 0===n?void 0:n.x,el=null===(r=Q.arrow)||void 0===r?void 0:r.y,eu=(null===(o=Q.arrow)||void 0===o?void 0:o.centerOffset)!==0,[ec,ed]=a.useState();return(0,z.N)(()=>{S&&ed(window.getComputedStyle(S).zIndex)},[S]),(0,f.jsx)("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:J?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(i=Q.transformOrigin)||void 0===i?void 0:i.x,null===(l=Q.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=Q.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(G,{scope:p,placedSide:ee,onArrowChange:T,arrowX:ei,arrowY:el,shouldHideArrow:eu,children:(0,f.jsx)(y.div,{"data-side":ee,"data-align":et,...R,ref:L,style:{...R.style,animation:J?void 0:"none"}})})})});J.displayName=q;var Q="PopperArrow",ee={top:"bottom",right:"left",bottom:"top",left:"right"},et=a.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=$(Q,n),a=ee[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(W,{...r,ref:t,style:{...r.style,display:"block"}})})});function en(e){return null!==e}et.displayName=Q;var er=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:u,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,s=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,v]=eo(l),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+s/2,y=(null!==(i=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+f/2,g="",w="";return"bottom"===p?(g=d?h:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(g=d?h:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),w=d?h:"".concat(y,"px")):"left"===p&&(g="".concat(u.floating.width+f,"px"),w=d?h:"".concat(y,"px")),{data:{x:g,y:w}}}});function eo(e){let[t,n="center"]=e.split("-");return[t,n]}var ea=a.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[l,u]=a.useState(!1);(0,z.N)(()=>u(!0),[]);let c=o||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?s.createPortal((0,f.jsx)(y.div,{...i,ref:t}),c):null});ea.displayName="Portal";var ei=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=a.useState(),i=a.useRef({}),l=a.useRef(e),u=a.useRef("none"),[c,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return a.useEffect(()=>{let e=el(i.current);u.current="mounted"===c?e:"none"},[c]),(0,z.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=u.current,o=el(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,z.N)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=el(i.current).includes(e.animationName);if(e.target===r&&o&&(d("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(u.current=el(i.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(e=>{e&&(i.current=getComputedStyle(e)),o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=c(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function el(e){return(null==e?void 0:e.animationName)||"none"}ei.displayName="Presence";var eu=n(13061),ec=n(58020),ed=function(){return(ed=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create;var ef=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ep="width-before-scroll-bar";function ev(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eh="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,em=new WeakMap;function ey(e){return e}var eg=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=ey),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return o.options=ed({async:!0,ssr:!1},e),o}(),ew=function(){},eb=a.forwardRef(function(e,t){var n,r,o,i,l=a.useRef(null),u=a.useState({onScrollCapture:ew,onWheelCapture:ew,onTouchMoveCapture:ew}),c=u[0],d=u[1],s=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,y=e.sideCar,g=e.noIsolation,w=e.inert,b=e.allowPinchZoom,E=e.as,x=e.gapMode,C=es(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[l,t],r=function(e){return n.forEach(function(t){return ev(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,eh(function(){var e=em.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||ev(e,null)}),r.forEach(function(e){t.has(e)||ev(e,o)})}em.set(i,n)},[n]),i),A=ed(ed({},C),c);return a.createElement(a.Fragment,null,h&&a.createElement(y,{sideCar:eg,removeScrollBar:v,shards:m,noIsolation:g,inert:w,setCallbacks:d,allowPinchZoom:!!b,lockRef:l,gapMode:x}),s?a.cloneElement(a.Children.only(f),ed(ed({},A),{ref:k})):a.createElement(void 0===E?"div":E,ed({},A,{className:p,ref:k}),f))});eb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eb.classNames={fullWidth:ep,zeroRight:ef};var eE=function(e){var t=e.sideCar,n=es(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,ed({},n))};eE.isSideCarExport=!0;var ex=n(91059),eC=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,ex.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ek=function(){var e=eC();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eA=function(){var e=ek();return function(t){return e(t.styles,t.dynamic),null}},eP={left:0,top:0,right:0,gap:0},eN=function(e){return parseInt(e||"",10)||0},eR=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eN(n),eN(r),eN(o)]},eO=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return eP;var t=eR(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eS=eA(),eM="data-scroll-locked",eL=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(eM,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ef," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ep," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ef," .").concat(ef," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ep," .").concat(ep," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(eM,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},ej=function(){var e=parseInt(document.body.getAttribute(eM)||"0",10);return isFinite(e)?e:0},eT=function(){a.useEffect(function(){return document.body.setAttribute(eM,(ej()+1).toString()),function(){var e=ej()-1;e<=0?document.body.removeAttribute(eM):document.body.setAttribute(eM,e.toString())}},[])},eD=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eT();var i=a.useMemo(function(){return eO(o)},[o]);return a.createElement(eS,{styles:eL(i,!t,o,n?"":"!important")})},eF=!1;if("undefined"!=typeof window)try{var eI=Object.defineProperty({},"passive",{get:function(){return eF=!0,!0}});window.addEventListener("test",eI,eI),window.removeEventListener("test",eI,eI)}catch(e){eF=!1}var eW=!!eF&&{passive:!1},ez=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},eU=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),e_(e,r)){var o=eB(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},e_=function(e,t){return"v"===e?ez(t,"overflowY"):ez(t,"overflowX")},eB=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eH=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,u=n.target,c=t.contains(u),d=!1,s=l>0,f=0,p=0;do{var v=eB(e,u),h=v[0],m=v[1]-v[2]-i*h;(h||m)&&e_(e,u)&&(f+=m,p+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return s&&(o&&1>Math.abs(f)||!o&&l>f)?d=!0:!s&&(o&&1>Math.abs(p)||!o&&-l>p)&&(d=!0),d},eY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eX=function(e){return[e.deltaX,e.deltaY]},eK=function(e){return e&&"current"in e?e.current:e},eV=0,eZ=[];let eq=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(eV++)[0],i=a.useState(eA)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oMath.abs(c)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=eU(s,d);if(!f)return!0;if(f?o=s:(o="v"===s?"h":"v",f=eU(s,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return eH(p,t,e,"h"===p?u:c,!0)},[]),c=a.useCallback(function(e){if(eZ.length&&eZ[eZ.length-1]===i){var n="deltaY"in e?eX(e):eY(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(eK).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=a.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=a.useCallback(function(e){n.current=eY(e),r.current=void 0},[]),f=a.useCallback(function(t){d(t.type,eX(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){d(t.type,eY(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return eZ.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,eW),document.addEventListener("touchmove",c,eW),document.addEventListener("touchstart",s,eW),function(){eZ=eZ.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,eW),document.removeEventListener("touchmove",c,eW),document.removeEventListener("touchstart",s,eW)}},[]);var v=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?a.createElement(eD,{gapMode:e.gapMode}):null)},eg.useMedium(r),eE);var eG=a.forwardRef(function(e,t){return a.createElement(eb,ed({},e,{ref:t,sideCar:eq}))});eG.classNames=eb.classNames;var e$="Popover",[eJ,eQ]=(0,d.A)(e$,[H]),e0=H(),[e1,e2]=eJ(e$),e9=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!1}=e,u=e0(t),c=a.useRef(null),[d,s]=a.useState(!1),[p=!1,v]=(0,eu.i)({prop:r,defaultProp:o,onChange:i});return(0,f.jsx)(K,{...u,children:(0,f.jsx)(e1,{scope:t,contentId:(0,D.B)(),triggerRef:c,open:p,onOpenChange:v,onOpenToggle:a.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:d,onCustomAnchorAdd:a.useCallback(()=>s(!0),[]),onCustomAnchorRemove:a.useCallback(()=>s(!1),[]),modal:l,children:n})})};e9.displayName=e$;var e3="PopoverAnchor",e7=a.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e2(e3,n),i=e0(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=o;return a.useEffect(()=>(l(),()=>u()),[l,u]),(0,f.jsx)(Z,{...i,...r,ref:t})});e7.displayName=e3;var e6="PopoverTrigger",e8=a.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e2(e6,n),a=e0(n),l=c(t,o.triggerRef),u=(0,f.jsx)(y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tu(o.open),...r,ref:l,onClick:i(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,f.jsx)(Z,{asChild:!0,...a,children:u})});e8.displayName=e6;var e5="PopoverPortal",[e4,te]=eJ(e5,{forceMount:void 0}),tt=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=e2(e5,t);return(0,f.jsx)(e4,{scope:t,forceMount:n,children:(0,f.jsx)(ei,{present:n||a.open,children:(0,f.jsx)(ea,{asChild:!0,container:o,children:r})})})};tt.displayName=e5;var tn="PopoverContent",tr=a.forwardRef((e,t)=>{let n=te(tn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=e2(tn,e.__scopePopover);return(0,f.jsx)(ei,{present:r||a.open,children:a.modal?(0,f.jsx)(to,{...o,ref:t}):(0,f.jsx)(ta,{...o,ref:t})})});tr.displayName=tn;var to=a.forwardRef((e,t)=>{let n=e2(tn,e.__scopePopover),r=a.useRef(null),o=c(t,r),l=a.useRef(!1);return a.useEffect(()=>{let e=r.current;if(e)return(0,ec.Eq)(e)},[]),(0,f.jsx)(eG,{as:p,allowPinchZoom:!0,children:(0,f.jsx)(ti,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:i(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:i(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;l.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:i(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ta=a.forwardRef((e,t)=>{let n=e2(tn,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return(0,f.jsx)(ti,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),ti=a.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...s}=e,p=e2(tn,n),v=e0(n);return(0,A.Oh)(),(0,f.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,f.jsx)(x,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:(0,f.jsx)(J,{"data-state":tu(p.open),role:"dialog",id:p.contentId,...v,...s,ref:t,style:{...s.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tl="PopoverClose";function tu(e){return e?"open":"closed"}a.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e2(tl,n);return(0,f.jsx)(y.button,{type:"button",...r,ref:t,onClick:i(e.onClick,()=>o.onOpenChange(!1))})}).displayName=tl,a.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e0(n);return(0,f.jsx)(et,{...o,...r,ref:t})}).displayName="PopoverArrow";var tc=e9,td=e7,ts=e8,tf=tt,tp=tr},88853:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(20107),o=n(34544),a=n(20475),i="horizontal",l=["horizontal","vertical"],u=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...u}=e,c=l.includes(r)?r:i;return(0,a.jsx)(o.sG.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});u.displayName="Separator";var c=u}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6035-140d5b1217a77982.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6035-140d5b1217a77982.js new file mode 100644 index 0000000..1b40268 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6035-140d5b1217a77982.js @@ -0,0 +1,2 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6035],{45139:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},15129:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},86170:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(18259)},95376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(76905),o=r(53317);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9545:(e,t)=>{"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(n)for(let e in n)"children"!==e&&o.setAttribute(e,n[e]);r?(o.src=r,o.onload=()=>e(),o.onerror=t):n&&(o.innerHTML=n.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"15.1.2",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getAppBuildId:function(){return o},setAppBuildId:function(){return n}});let r="";function n(e){r=e}function o(){return r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return l},useServerActionDispatcher:function(){return u}});let n=r(20107),o=r(23093),a=null;function u(e){a=(0,n.useCallback)(t=>{(0,n.startTransition)(()=>{e({...t,type:o.ACTION_SERVER_ACTION})})},[e])}async function l(e,t){let r=a;if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findSourceMapURL",{enumerable:!0,get:function(){return r}});let r=void 0;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88583:(e,t,r)=>{"use strict";let n,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return N}});let a=r(67342),u=r(62599),l=r(20475);r(15129),r(165),r(80099);let i=a._(r(52661)),s=u._(r(20107)),c=r(18971),f=r(17315),d=r(43477),p=r(42347),h=r(53051),y=r(98387),g=r(52345),b=a._(r(78311)),_=r(85010);r(32618);let v=r(28567),m=document,P=new TextEncoder,E=!1,O=!1,R=null;function S(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(P.encode(e[1])):n.push(e[1])}else if(2===e[0])R=e[1];else if(3===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");let r=atob(e[1]),a=new Uint8Array(r.length);for(var t=0;t{t.enqueue("string"==typeof e?P.encode(e):e)}),E&&!O)&&(null===t.desiredSize||t.desiredSize<0?t.error(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection.")):t.close(),O=!0,n=void 0),o=t}}),M=(0,c.createFromReadableStream)(T,{callServer:h.callServer,findSourceMapURL:y.findSourceMapURL}),x=new Promise((e,t)=>{M.then(t=>{(0,v.setAppBuildId)(t.b),e((0,g.createMutableActionQueue)((0,_.createInitialRouterState)({initialFlightData:t.f,initialCanonicalUrlParts:t.c,initialParallelRoutes:new Map,location:window.location,couldBeIntercepted:t.i,postponed:t.s,prerendered:t.S})))},e=>t(e))});function A(){let e=(0,s.use)(M),t=(0,s.use)(x);return(0,l.jsx)(b.default,{actionQueue:t,globalErrorComponentAndStyles:e.G,assetPrefix:e.p})}let C=s.default.StrictMode;function k(e){let{children:t}=e;return t}let D={onRecoverableError:d.onRecoverableError,onCaughtError:p.onCaughtError,onUncaughtError:p.onUncaughtError};function N(){let e=(0,l.jsx)(C,{children:(0,l.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,l.jsx)(k,{children:(0,l.jsx)(A,{})})})}),t=window.__next_root_layout_missing_tags,r=!!(null==t?void 0:t.length);"__next_error__"===document.documentElement.id||r?i.default.createRoot(m,D).render(e):s.default.startTransition(()=>i.default.hydrateRoot(m,e,{...D,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(79100),(0,r(9545).appBootstrap)(()=>{let{hydrate:e}=r(88583);r(78311),r(24900),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(45139);let n=r(80724);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assignLocation",{enumerable:!0,get:function(){return o}});let n=r(95376);function o(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return u}});let n=r(20107),o=r(25642),a="next-route-announcer";function u(e){let{tree:t}=e,[r,u]=(0,n.useState)(null);(0,n.useEffect)(()=>(u(function(){var e;let t=document.getElementsByName(a)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(a);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(a)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[l,i]=(0,n.useState)(""),s=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==s.current&&s.current!==e&&i(e),s.current=e},[t]),r?(0,o.createPortal)(l,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90604:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HEADER:function(){return n},FLIGHT_HEADERS:function(){return c},NEXT_DID_POSTPONE_HEADER:function(){return p},NEXT_HMR_REFRESH_HEADER:function(){return l},NEXT_IS_PRERENDER_HEADER:function(){return h},NEXT_ROUTER_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STALE_TIME_HEADER:function(){return d},NEXT_ROUTER_STATE_TREE_HEADER:function(){return o},NEXT_RSC_UNION_QUERY:function(){return f},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_HEADER:function(){return r}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",a="Next-Router-Prefetch",u="Next-Router-Segment-Prefetch",l="Next-HMR-Refresh",i="Next-Url",s="text/x-component",c=[r,o,a,l,u],f="_rsc",d="x-nextjs-stale-time",p="x-nextjs-postponed",h="x-nextjs-prerender";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createEmptyCacheNode:function(){return M},createPrefetchURL:function(){return w},default:function(){return k}});let n=r(62599),o=r(20475),a=n._(r(20107)),u=r(32618),l=r(23093),i=r(94084),s=r(14839),c=r(59702),f=r(25339),d=r(80691),p=r(95376),h=r(95249),y=r(50157),g=r(27642),b=r(99153),_=r(52721),v=r(33099),m=r(4709),P=r(51079),E=r(53051);r(728);let O=r(2372),R=r(93475),S={};function j(e){return e.origin!==window.location.origin}function w(e){let t;if((0,d.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,p.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}return j(t)?null:t}function T(e){let{appRouterState:t}=e;return(0,a.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:n}=t,o={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(o,"",n)):window.history.replaceState(o,"",n)},[t]),null}function M(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null}}function x(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function A(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,a.useDeferredValue)(r,o)}function C(e){let t,{actionQueue:r,assetPrefix:n}=e,[i,f]=(0,c.useReducer)(r),{canonicalUrl:d}=(0,c.useUnwrapState)(i),{searchParams:P,pathname:M}=(0,a.useMemo)(()=>{let e=new URL(d,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,v.hasBasePath)(e.pathname)?(0,_.removeBasePath)(e.pathname):e.pathname}},[d]),C=(0,a.useCallback)(e=>{let{previousTree:t,serverResponse:r}=e;(0,a.startTransition)(()=>{f({type:l.ACTION_SERVER_PATCH,previousTree:t,serverResponse:r})})},[f]),k=(0,a.useCallback)((e,t,r)=>{let n=new URL((0,p.addBasePath)(e),location.href);return f({type:l.ACTION_NAVIGATE,url:n,isExternalUrl:j(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t,allowAliasing:!0})},[f]);(0,E.useServerActionDispatcher)(f);let D=(0,a.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let r=w(e);null!==r&&(0,a.startTransition)(()=>{var e;f({type:l.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:l.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,a.startTransition)(()=>{var r;k(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,a.startTransition)(()=>{var r;k(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,a.startTransition)(()=>{f({type:l.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Error("hmrRefresh can only be used in development mode. Please use refresh instead.")}}),[r,f,k]);(0,a.useEffect)(()=>{window.next&&(window.next.router=D)},[D]),(0,a.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(S.pendingMpaPath=void 0,f({type:l.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[f]),(0,a.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,R.isRedirectError)(t)){e.preventDefault();let r=(0,O.getURLFromRedirectError)(t);(0,O.getRedirectTypeFromError)(t)===R.RedirectType.push?D.push(r,{}):D.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[D]);let{pushRef:N}=(0,c.useUnwrapState)(i);if(N.mpaNavigation){if(S.pendingMpaPath!==d){let e=window.location;N.pendingPush?e.assign(d):e.replace(d),S.pendingMpaPath=d}(0,a.use)(b.unresolvedThenable)}(0,a.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{var t;let r=window.location.href,n=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,a.startTransition)(()=>{f({type:l.ACTION_RESTORE,url:new URL(null!=e?e:r,r),tree:n})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=x(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=x(e),o&&r(o)),t(e,n,o)};let n=e=>{if(e.state){if(!e.state.__NA){window.location.reload();return}(0,a.startTransition)(()=>{f({type:l.ACTION_RESTORE,url:new URL(window.location.href),tree:e.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[f]);let{cache:I,tree:L,nextUrl:H,focusAndScrollRef:F}=(0,c.useUnwrapState)(i),$=(0,a.useMemo)(()=>(0,g.findHeadInCache)(I,L[1]),[I,L]),B=(0,a.useMemo)(()=>(0,m.getSelectedParams)(L),[L]),W=(0,a.useMemo)(()=>({childNodes:I.parallelRoutes,tree:L,url:d,loading:I.loading}),[I.parallelRoutes,L,d,I.loading]),G=(0,a.useMemo)(()=>({changeByServerResponse:C,tree:L,focusAndScrollRef:F,nextUrl:H}),[C,L,F,H]);if(null!==$){let[e,r]=$;t=(0,o.jsx)(A,{headCacheNode:e},r)}else t=null;let K=(0,o.jsxs)(y.RedirectBoundary,{children:[t,I.rsc,(0,o.jsx)(h.AppRouterAnnouncer,{tree:L})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T,{appRouterState:(0,c.useUnwrapState)(i)}),(0,o.jsx)(U,{}),(0,o.jsx)(s.PathParamsContext.Provider,{value:B,children:(0,o.jsx)(s.PathnameContext.Provider,{value:M,children:(0,o.jsx)(s.SearchParamsContext.Provider,{value:P,children:(0,o.jsx)(u.GlobalLayoutRouterContext.Provider,{value:G,children:(0,o.jsx)(u.AppRouterContext.Provider,{value:D,children:(0,o.jsx)(u.LayoutRouterContext.Provider,{value:W,children:K})})})})})})]})}function k(e){let{actionQueue:t,globalErrorComponentAndStyles:[r,n],assetPrefix:a}=e;return(0,P.useNavFailureHandler)(),(0,o.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:n,children:(0,o.jsx)(C,{actionQueue:t,assetPrefix:a})})}let D=new Set,N=new Set;function U(){let[,e]=a.default.useState(0),t=D.size;return(0,a.useEffect)(()=>{let r=()=>e(e=>e+1);return N.add(r),t!==D.size&&r(),()=>{N.delete(r)}},[t,e]),[...D].map((e,t)=>(0,o.jsx)("link",{rel:"stylesheet",href:""+e,precedence:"next"},t))}globalThis._N_E_STYLE_LOAD=function(e){let t=D.size;return D.add(e),D.size!==t&&N.forEach(e=>e()),Promise.resolve()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return a}});let n=r(13007),o=r(32381);function a(e){let t=o.workAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new n.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return a}});let n=r(20475),o=r(83156);function a(e){let{Component:t,searchParams:a,params:u,promises:l}=e;if("undefined"==typeof window){let e,l;let{workAsyncStorage:i}=r(32381),s=i.getStore();if(!s)throw new o.InvariantError("Expected workStore to exist when handling searchParams in a client Page.");let{createSearchParamsFromClient:c}=r(78394);e=c(a,s);let{createParamsFromClient:f}=r(90215);return l=f(u,s),(0,n.jsx)(t,{params:l,searchParams:e})}{let{createRenderSearchParamsFromClient:e}=r(36756),o=e(a),{createRenderParamsFromClient:l}=r(98369),i=l(u);return(0,n.jsx)(t,{params:i,searchParams:o})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientSegmentRoot",{enumerable:!0,get:function(){return a}});let n=r(20475),o=r(83156);function a(e){let{Component:t,slots:a,params:u,promise:l}=e;if("undefined"==typeof window){let e;let{workAsyncStorage:l}=r(32381),i=l.getStore();if(!i)throw new o.InvariantError("Expected workStore to exist when handling params in a client segment such as a Layout or Template.");let{createParamsFromClient:s}=r(90215);return e=s(u,i),(0,n.jsx)(t,{...a,params:e})}{let{createRenderParamsFromClient:e}=r(98369),o=e(u);return(0,n.jsx)(t,{...a,params:o})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let n=r(67342),o=r(20475),a=n._(r(20107)),u=r(40228),l=r(69211);r(51079);let i=r(32381),s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function c(e){let{error:t}=e,r=i.workAsyncStorage.getStore();if((null==r?void 0:r.isRevalidate)||(null==r?void 0:r.isStaticGeneration))throw console.error(t),t;return null}class f extends a.default.Component{static getDerivedStateFromError(e){if((0,l.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(c,{error:t}),(0,o.jsx)("div",{style:s.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:s.text,children:"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."}),r?(0,o.jsx)("p",{style:s.text,children:"Digest: "+r}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:a}=e,l=(0,u.useUntrackedPathname)();return t?(0,o.jsx)(f,{pathname:l,errorComponent:t,errorStyles:r,errorScripts:n,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82029:(e,t,r)=>{"use strict";function n(){throw Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled.")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(20797).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(75880).handleGlobalErrors)(),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{originConsoleError:function(){return o},patchConsoleError:function(){return a}}),r(91194);let n=r(69211);r(75880);let o=window.console.error;function a(){"undefined"!=typeof window&&(window.console.error=function(){let e;for(var t=arguments.length,r=Array(t),a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(75394).patchConsoleError)(),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return c}});let n=r(62599),o=r(20475),a=n._(r(20107)),u=r(40228),l=r(20797);r(20339);let i=r(32618);class s extends a.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,l.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,l.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:a}=this.state,u={[l.HTTPAccessErrorStatus.NOT_FOUND]:e,[l.HTTPAccessErrorStatus.FORBIDDEN]:t,[l.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(a){let i=a===l.HTTPAccessErrorStatus.NOT_FOUND&&e,s=a===l.HTTPAccessErrorStatus.FORBIDDEN&&t,c=a===l.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return i||s||c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,u[a]]}):n}return n}constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}}function c(e){let{notFound:t,forbidden:r,unauthorized:n,children:l}=e,c=(0,u.useUntrackedPathname)(),f=(0,a.useContext)(i.MissingSlotContext);return t||r||n?(0,o.jsx)(s,{pathname:c,notFound:t,forbidden:r,unauthorized:n,missingSlots:f,children:l}):(0,o.jsx)(o.Fragment,{children:l})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return l},getAccessFallbackHTTPStatus:function(){return u},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function u(e){return Number(e.digest.split(";")[1])}function l(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getDefaultHydrationErrorMessage:function(){return i},getHydrationErrorStackInfo:function(){return f},isHydrationError:function(){return s},isReactHydrationErrorMessage:function(){return c}});let n=r(67342)._(r(91194)),o=/hydration failed|while hydrating|content does not match|did not match|HTML didn't match/i,a="Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used",u=[a,"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:"],l="https://react.dev/link/hydration-mismatch",i=()=>a;function s(e){return(0,n.default)(e)&&o.test(e.message)}function c(e){return u.some(t=>e.startsWith(t))}function f(e){if(!c(e=e.replace(/^Error: /,"")))return{message:null};let t=e.indexOf("\n"),[r,n]=(e=e.slice(t+1).trim()).split(""+l),o=r.trim();if(!n||!(n.length>1))return{message:o,link:l,stack:n};{let e=[],t=[];return n.split("\n").forEach(r=>{""!==r.trim()&&(r.trim().startsWith("at ")?e.push(r):t.push(r))}),{message:o,link:l,diff:t.join("\n"),stack:e.join("\n")}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(20797),o=r(93475);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return j}});let n=r(67342),o=r(62599),a=r(20475),u=o._(r(20107)),l=n._(r(25642)),i=r(32618),s=r(90883),c=r(99153),f=r(25339),d=r(82210),p=r(65200),h=r(50157),y=r(30896),g=r(25967),b=r(62228),_=r(51653),v=l.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,m=["bottom","height","left","right","top","width","x","y"];function P(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class E extends u.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,d.matchSegment)(t,e[r]))))return;let r=null,n=e.hashFragment;if(n&&(r=function(e){var t;return"top"===e?document.body:null!=(t=document.getElementById(e))?t:document.getElementsByName(e)[0]}(n)),!r&&(r="undefined"==typeof window?null:(0,v.findDOMNode)(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return m.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(n){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!P(r,t)&&(e.scrollTop=0,P(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function O(e){let{segmentPath:t,children:r}=e,n=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,a.jsx)(E,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function R(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:o,tree:l,cacheKey:f}=e,p=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{changeByServerResponse:h,tree:y}=p,g=n.get(f);if(void 0===g){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};g=e,n.set(f,e)}let b=null!==g.prefetchRsc?g.prefetchRsc:g.rsc,v=(0,u.useDeferredValue)(g.rsc,b),m="object"==typeof v&&null!==v&&"function"==typeof v.then?(0,u.use)(v):v;if(!m){let e=g.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,a=2===t.length;if((0,d.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(a){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...o],y),n=(0,_.hasInterceptionRouteInCurrentTree)(y);g.lazyData=e=(0,s.fetchServerResponse)(new URL(r,location.origin),{flightRouterState:t,nextUrl:n?p.nextUrl:null}).then(e=>((0,u.startTransition)(()=>{h({previousTree:y,serverResponse:e})}),e))}(0,u.use)(c.unresolvedThenable)}return(0,a.jsx)(i.LayoutRouterContext.Provider,{value:{tree:l[1][t],childNodes:g.parallelRoutes,url:r,loading:g.loading},children:m})}function S(e){let t,{loading:r,children:n}=e;if(t="object"==typeof r&&null!==r&&"function"==typeof r.then?(0,u.use)(r):r){let e=t[0],r=t[1],o=t[2];return(0,a.jsx)(u.Suspense,{fallback:(0,a.jsxs)(a.Fragment,{children:[r,o,e]}),children:n})}return(0,a.jsx)(a.Fragment,{children:n})}function j(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:o,errorScripts:l,templateStyles:s,templateScripts:c,template:d,notFound:p,forbidden:_,unauthorized:v}=e,m=(0,u.useContext)(i.LayoutRouterContext);if(!m)throw Error("invariant expected layout router to be mounted");let{childNodes:P,tree:E,url:j,loading:w}=m,T=P.get(t);T||(T=new Map,P.set(t,T));let M=E[1][t][0],x=(0,g.getSegmentValue)(M),A=[M];return(0,a.jsx)(a.Fragment,{children:A.map(e=>{let u=(0,g.getSegmentValue)(e),m=(0,b.createRouterCacheKey)(e);return(0,a.jsxs)(i.TemplateContext.Provider,{value:(0,a.jsx)(O,{segmentPath:r,children:(0,a.jsx)(f.ErrorBoundary,{errorComponent:n,errorStyles:o,errorScripts:l,children:(0,a.jsx)(S,{loading:w,children:(0,a.jsx)(y.HTTPAccessFallbackBoundary,{notFound:p,forbidden:_,unauthorized:v,children:(0,a.jsx)(h.RedirectBoundary,{children:(0,a.jsx)(R,{parallelRouterKey:t,url:j,tree:E,childNodes:T,segmentPath:r,cacheKey:m,isActive:x===u})})})})})}),children:[s,c,d]},(0,b.createRouterCacheKey)(e,!0))})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{canSegmentBeOverridden:function(){return a},matchSegment:function(){return o}});let n=r(88870),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],a=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleHardNavError:function(){return o},useNavFailureHandler:function(){return a}}),r(20107);let n=r(94084);function o(e){return!!e&&"undefined"!=typeof window&&!!window.next.__pendingUrl&&(0,n.createHrefFromUrl)(new URL(window.location.href))!==(0,n.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function a(){}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUntrackedPathname",{enumerable:!0,get:function(){return a}});let n=r(20107),o=r(14839);function a(){return!function(){if("undefined"==typeof window){let{workAsyncStorage:e}=r(32381),t=e.getStore();if(!t)return!1;let{fallbackRouteParams:n}=t;return!!n&&0!==n.size}return!1}()?(0,n.useContext)(o.PathnameContext):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return i.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return i.unauthorized},unstable_rethrow:function(){return i.unstable_rethrow},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return p},useSearchParams:function(){return f},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let n=r(20107),o=r(32618),a=r(14839),u=r(25967),l=r(63234),i=r(10901),s=r(48002),c=r(58741);function f(){let e=(0,n.useContext)(a.SearchParamsContext),t=(0,n.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=r(15407);e("useSearchParams()")}return t}function d(){return(0,s.useDynamicRouteParams)("usePathname()"),(0,n.useContext)(a.PathnameContext)}function p(){let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,s.useDynamicRouteParams)("useParams()"),(0,n.useContext)(a.PathParamsContext)}function y(e){void 0===e&&(e="children"),(0,s.useDynamicRouteParams)("useSelectedLayoutSegments()");let t=(0,n.useContext)(o.LayoutRouterContext);return t?function e(t,r,n,o){let a;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)a=t[1][r];else{var i;let e=t[1];a=null!=(i=e.children)?i:Object.values(e)[0]}if(!a)return o;let s=a[0],c=(0,u.getSegmentValue)(s);return!c||c.startsWith(l.PAGE_SEGMENT_KEY)?o:(o.push(c),e(a,r,!1,o))}(t.tree,e):null}function g(e){void 0===e&&(e="children"),(0,s.useDynamicRouteParams)("useSelectedLayoutSegment()");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===l.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c},RedirectType:function(){return o.RedirectType},forbidden:function(){return u.forbidden},notFound:function(){return a.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return l.unauthorized},unstable_rethrow:function(){return i.unstable_rethrow}});let n=r(2372),o=r(93475),a=r(64216),u=r(82029),l=r(45050),i=r(91946);class s extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class c extends URLSearchParams{append(){throw new s}delete(){throw new s}set(){throw new s}sort(){throw new s}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64216:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return o}});let n=""+r(20797).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function o(){let e=Error(n);throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return s}});let n=r(32465),o=r(44911);var a=o._("_maxConcurrency"),u=o._("_runningCount"),l=o._("_queue"),i=o._("_processNext");class s{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),a=async()=>{try{n._(this,u)[u]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,u)[u]--,n._(this,i)[i]()}};return n._(this,l)[l].push({promiseFn:o,task:a}),n._(this,i)[i](),o}bump(e){let t=n._(this,l)[l].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,l)[l].splice(t,1)[0];n._(this,l)[l].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:c}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),n._(this,a)[a]=e,n._(this,u)[u]=0,n._(this,l)[l]=[]}}function c(e){if(void 0===e&&(e=!1),(n._(this,u)[u]0){var t;null==(t=n._(this,l)[l].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"attachHydrationErrorState",{enumerable:!0,get:function(){return a}});let n=r(43008),o=r(71823);function a(e){if((0,n.isHydrationError)(e)&&!e.message.includes("https://nextjs.org/docs/messages/react-hydration-error")){let t=(0,o.getReactHydrationDiffSegments)(e.message),r={};t?r={...e.details,...o.hydrationErrorState,warning:o.hydrationErrorState.warning||[(0,n.getDefaultHydrationErrorMessage)()],notes:t[0],reactOutputComponentDiff:t[1]}:o.hydrationErrorState.warning&&(r={...e.details,...o.hydrationErrorState}),e.details=r}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createUnhandledError:function(){return o},getUnhandledErrorType:function(){return u},isUnhandledConsoleOrRejection:function(){return a}});let r=Symbol.for("next.console.error.digest"),n=Symbol.for("next.console.error.type");function o(e){let t="string"==typeof e?Error(e):e;return t[r]="NEXT_UNHANDLED_ERROR",t[n]="string"==typeof e?"string":"error",t}let a=e=>e&&"NEXT_UNHANDLED_ERROR"===e[r],u=e=>e[n];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"enqueueConsecutiveDedupedError",{enumerable:!0,get:function(){return o}});let n=r(43008);function o(e,t){let r=(0,n.isHydrationError)(t),o=r?e[0]:e[e.length-1];o&&o.stack===t.stack||(r?e.unshift(t):e.push(t))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getHydrationWarningType:function(){return l},getReactHydrationDiffSegments:function(){return d},hydrationErrorState:function(){return o},storeHydrationErrorStateFromConsoleArgs:function(){return p}});let n=r(43008),o={},a=new Set(["Warning: In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s","Warning: In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s","Warning: In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.","Warning: In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.","Warning: Expected server HTML to contain a matching <%s> in <%s>.%s","Warning: Did not expect server HTML to contain a <%s> in <%s>.%s"]),u=new Set(['Warning: Expected server HTML to contain a matching text node for "%s" in <%s>.%s','Warning: Did not expect server HTML to contain the text node "%s" in <%s>.%s']),l=e=>{if("string"!=typeof e)return"text";let t=e.startsWith("Warning: ")?e:"Warning: "+e;return i(t)?"tag":c(t)?"text-in-tag":"text"},i=e=>a.has(e),s=e=>'Warning: Text content did not match. Server: "%s" Client: "%s"%s'===e,c=e=>u.has(e),f=e=>{if("string"!=typeof e)return!1;let t=e.startsWith("Warning: ")?e:"Warning: "+e;return i(t)||c(t)||s(t)},d=e=>{if(e){let{message:t,diff:r}=(0,n.getHydrationErrorStackInfo)(e);if(t)return[t,r]}};function p(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getReactStitchedError",{enumerable:!0,get:function(){return s}});let n=r(67342),o=n._(r(20107)),a=n._(r(91194)),u="react-stack-bottom-frame",l=RegExp("(at "+u+" )|("+u+"\\@)"),i=o.default.captureOwnerStack?o.default.captureOwnerStack:()=>"";function s(e){if("function"!=typeof o.default.captureOwnerStack)return e;let t=(0,a.default)(e),r=t&&e.stack||"",n=t?e.message:"",u=r.split("\n"),s=u.findIndex(e=>l.test(e)),c=s>=0?u.slice(0,s).join("\n"):r,f=Error(n);return Object.assign(f,e),f.stack=c,function(e){let t=e.stack||"",r=i();r&&!1===t.endsWith(r)&&(t+=r,e.stack=t)}(f),f}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleClientError:function(){return _},handleGlobalErrors:function(){return E},useErrorHandler:function(){return v}});let n=r(67342),o=r(20107),a=r(98846),u=r(69211),l=r(71823),i=r(13828),s=n._(r(91194)),c=r(10559),f=r(35002),d=r(3132),p=globalThis.queueMicrotask||(e=>Promise.resolve().then(e)),h=[],y=[],g=[],b=[];function _(e,t,r){let n;if(void 0===r&&(r=!1),e&&(0,s.default)(e))n=r?(0,c.createUnhandledError)(e):e;else{let e=(0,i.formatConsoleArgs)(t);n=(0,c.createUnhandledError)(e)}for(let e of(n=(0,d.getReactStitchedError)(n),(0,l.storeHydrationErrorStateFromConsoleArgs)(...t),(0,a.attachHydrationErrorState)(n),(0,f.enqueueConsecutiveDedupedError)(h,n),y))p(()=>{e(n)})}function v(e,t){(0,o.useEffect)(()=>(h.forEach(e),g.forEach(t),y.push(e),b.push(t),()=>{y.splice(y.indexOf(e),1),b.splice(b.indexOf(t),1)}),[e,t])}function m(e){if((0,u.isNextRouterError)(e.error))return e.preventDefault(),!1;_(e.error,[])}function P(e){let t=null==e?void 0:e.reason;if((0,u.isNextRouterError)(t)){e.preventDefault();return}let r=t;for(let e of(r&&!(0,s.default)(r)&&(r=(0,c.createUnhandledError)(r+"")),g.push(r),b))e(r)}function E(){if("undefined"!=typeof window){try{Error.stackTraceLimit=50}catch(e){}window.addEventListener("error",m),window.addEventListener("unhandledrejection",P)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectBoundary:function(){return f},RedirectErrorBoundary:function(){return c}});let n=r(62599),o=r(20475),a=n._(r(20107)),u=r(65834),l=r(2372),i=r(93475);function s(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,u.useRouter)();return(0,a.useEffect)(()=>{a.default.startTransition(()=>{n===i.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class c extends a.default.Component{static getDerivedStateFromError(e){if((0,i.isRedirectError)(e))return{redirect:(0,l.getURLFromRedirectError)(e),redirectType:(0,l.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(s,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function f(e){let{children:t}=e,r=(0,u.useRouter)();return(0,o.jsx)(c,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93475:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return u}});let n=r(63865),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,u=t.slice(2,-2).join(";"),l=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof u&&!isNaN(l)&&l in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return c},getURLFromRedirectError:function(){return s},permanentRedirect:function(){return i},redirect:function(){return l}});let n=r(55006),o=r(63865),a=r(93475);function u(e,t,r){void 0===r&&(r=o.RedirectStatusCode.TemporaryRedirect);let n=Error(a.REDIRECT_ERROR_CODE);return n.digest=a.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",n}function l(e,t){let r=n.actionAsyncStorage.getStore();throw u(e,t||((null==r?void 0:r.isAction)?a.RedirectType.push:a.RedirectType.replace),o.RedirectStatusCode.TemporaryRedirect)}function i(e,t){throw void 0===t&&(t=a.RedirectType.replace),u(e,t,o.RedirectStatusCode.PermanentRedirect)}function s(e){return(0,a.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function c(e){if(!(0,a.isRedirectError)(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function f(e){if(!(0,a.isRedirectError)(e))throw Error("Not a redirect error");return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(62599),o=r(20475),a=n._(r(20107)),u=r(32618);function l(){let e=(0,a.useContext)(u.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addSearchParamsToPageSegments:function(){return f},handleAliasedPrefetchEntry:function(){return c}});let n=r(63234),o=r(78311),a=r(66645),u=r(94084),l=r(62228),i=r(74077),s=r(53080);function c(e,t,r,c){let d,p=e.tree,h=e.cache,y=(0,u.createHrefFromUrl)(r);for(let e of t){if(!function e(t){if(!t)return!1;let r=t[2];if(t[3])return!0;for(let t in r)if(e(r[t]))return!0;return!1}(e.seedData))continue;let t=e.tree;t=f(t,Object.fromEntries(r.searchParams));let{seedData:u,isRootRender:s,pathToSegment:c}=e,g=["",...c];t=f(t,Object.fromEntries(r.searchParams));let b=(0,a.applyRouterStatePatchToTree)(g,p,t,y),_=(0,o.createEmptyCacheNode)();if(s&&u){let e=u[1],r=u[3];_.loading=r,_.rsc=e,function e(t,r,o,a){if(0!==Object.keys(o[1]).length)for(let u in o[1]){let i;let s=o[1][u],c=s[0],f=(0,l.createRouterCacheKey)(c),d=null!==a&&void 0!==a[2][u]?a[2][u]:null;if(null!==d){let e=d[1],t=d[3];i={lazyData:null,rsc:c.includes(n.PAGE_SEGMENT_KEY)?null:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else i={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let p=t.parallelRoutes.get(u);p?p.set(f,i):t.parallelRoutes.set(u,new Map([[f,i]])),e(i,r,s,d)}}(_,h,t,u)}else _.rsc=h.rsc,_.prefetchRsc=h.prefetchRsc,_.loading=h.loading,_.parallelRoutes=new Map(h.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(_,h,e);b&&(p=b,h=_,d=!0)}return!!d&&(c.patchedTree=p,c.cache=h,c.canonicalUrl=y,c.hashFragment=r.hash,(0,s.handleMutable)(e,c))}function f(e,t){let[r,o,...a]=e;if(r.includes(n.PAGE_SEGMENT_KEY))return[(0,n.addSearchParamsIfPageSegment)(r,t),o,...a];let u={};for(let[e,r]of Object.entries(o))u[e]=f(r,t);return[r,u,...a]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return a}});let n=r(14375),o=r(74077);function a(e,t,r,a){let{tree:u,seedData:l,head:i,isRootRender:s}=r;if(null===l)return!1;if(s){let r=l[1],o=l[3];t.loading=o,t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,u,l,i,a)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,r,a);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,n,i){let s;let[c,f,d,p,h]=r;if(1===t.length){let e=l(r,n);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,i),e}let[y,g]=t;if(!(0,a.matchSegment)(y,c))return null;if(2===t.length)s=l(f[g],n);else if(null===(s=e((0,o.getNextFlightSegmentPath)(t),f[g],n,i)))return null;let b=[t[0],{...f,[g]:s},d,p];return h&&(b[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(b,i),b}}});let n=r(63234),o=r(76504),a=r(82210),u=r(9747);function l(e,t){let[r,o]=e,[u,i]=t;if(u===n.DEFAULT_SEGMENT_KEY&&r!==n.DEFAULT_SEGMENT_KEY)return e;if((0,a.matchSegment)(r,u)){let t={};for(let e in o)void 0!==i[e]?t[e]=l(o[e],i[e]):t[e]=o[e];for(let e in i)t[e]||(t[e]=i[e]);let n=[r,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,r,a){let u=a.length<=2,[l,i]=a,s=(0,o.createRouterCacheKey)(i),c=r.parallelRoutes.get(l),f=t.parallelRoutes.get(l);f&&f!==c||(f=new Map(c),t.parallelRoutes.set(l,f));let d=null==c?void 0:c.get(s),p=f.get(s);if(u){p&&p.lazyData&&p!==d||f.set(s,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}if(!p||!d){p||f.set(s,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes),loading:p.loading},f.set(s,p)),e(p,d,(0,n.getNextFlightSegmentPath)(a))}}});let n=r(76504),o=r(62228);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{computeChangedPath:function(){return c},extractPathFromFlightRouterState:function(){return s},getSelectedParams:function(){return function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],a=Array.isArray(t),u=a?t[1]:t;!u||u.startsWith(o.PAGE_SEGMENT_KEY)||(a&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):a&&(r[t[0]]=t[1]),r=e(n,r))}return r}}});let n=r(92688),o=r(63234),a=r(82210),u=e=>"/"===e[0]?e.slice(1):e,l=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=u(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function s(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let a=[l(r)],u=null!=(t=e[1])?t:{},c=u.children?s(u.children):void 0;if(void 0!==c)a.push(c);else for(let[e,t]of Object.entries(u)){if("children"===e)continue;let r=s(t);void 0!==r&&a.push(r)}return i(a)}function c(e,t){let r=function e(t,r){let[o,u]=t,[i,c]=r,f=l(o),d=l(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,a.matchSegment)(o,i)){var p;return null!=(p=s(r))?p:""}for(let t in u)if(c[t]){let r=e(u[t],c[t]);if(null!==r)return l(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94084:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let n=r(94084),o=r(14375),a=r(4709),u=r(26461),l=r(23093),i=r(9747),s=r(76504);function c(e){var t,r;let{initialFlightData:c,initialCanonicalUrlParts:f,initialParallelRoutes:d,location:p,couldBeIntercepted:h,postponed:y,prerendered:g}=e,b=f.join("/"),_=(0,s.getFlightDataPartsFromPath)(c[0]),{tree:v,seedData:m,head:P}=_,E=!p,O=null==m?void 0:m[1],R=null!=(t=null==m?void 0:m[3])?t:null,S={lazyData:null,rsc:O,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:E?new Map:d,loading:R},j=p?(0,n.createHrefFromUrl)(p):b;(0,i.addRefreshMarkerToActiveParallelSegments)(v,j);let w=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(S,void 0,v,m,P);let T={tree:v,cache:S,prefetchCache:w,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:j,nextUrl:null!=(r=(0,a.extractPathFromFlightRouterState)(v)||(null==p?void 0:p.pathname))?r:null};if(p){let e=new URL(""+p.pathname+p.search,p.origin);(0,u.createSeededPrefetchCacheEntry)({url:e,data:{flightData:[_],canonicalUrl:void 0,couldBeIntercepted:!!h,prerendered:g,postponed:y,staleTime:-1},tree:T.tree,prefetchCache:T.prefetchCache,nextUrl:T.nextUrl,kind:g?l.PrefetchKind.FULL:l.PrefetchKind.AUTO})}return T}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(63234);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90883:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createFetch:function(){return h},createFromNextReadableStream:function(){return y},fetchServerResponse:function(){return p},urlToUrlWithoutFlightMarker:function(){return f}});let n=r(90604),o=r(53051),a=r(98387),u=r(23093),l=r(76249),i=r(76504),s=r(28567),{createFromReadableStream:c}=r(18971);function f(e){let t=new URL(e,location.origin);if(t.searchParams.delete(n.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function d(e){return{flightData:f(e).toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}async function p(e,t){let{flightRouterState:r,nextUrl:o,prefetchKind:a}=t,l={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(r))};a===u.PrefetchKind.AUTO&&(l[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),o&&(l[n.NEXT_URL]=o);try{var c;let t=a?a===u.PrefetchKind.TEMPORARY?"high":"low":"auto",r=await h(e,l,t),o=f(r.url),p=r.redirected?o:void 0,g=r.headers.get("content-type")||"",b=!!(null==(c=r.headers.get("vary"))?void 0:c.includes(n.NEXT_URL)),_=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER),v=r.headers.get(n.NEXT_ROUTER_STALE_TIME_HEADER),m=null!==v?parseInt(v,10):-1,P=g.startsWith(n.RSC_CONTENT_TYPE_HEADER);if(P||(P=g.startsWith("text/plain")),!P||!r.ok||!r.body)return e.hash&&(o.hash=e.hash),d(o.toString());let E=_?function(e){let t=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:r,value:n}=await t.read();if(!r){e.enqueue(n);continue}return}}})}(r.body):r.body,O=await y(E);if((0,s.getAppBuildId)()!==O.b)return d(r.url);return{flightData:(0,i.normalizeFlightData)(O.f),canonicalUrl:p,couldBeIntercepted:b,prerendered:O.S,postponed:_,staleTime:m}}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),{flightData:e.toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}}function h(e,t,r){let o=new URL(e);o.pathname.endsWith("/")?o.pathname+="index.txt":o.pathname+=".txt";let a=(0,l.hexHash)([t[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",t[n.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]||"0",t[n.NEXT_ROUTER_STATE_TREE_HEADER],t[n.NEXT_URL]].join(","));return o.searchParams.set(n.NEXT_RSC_UNION_QUERY,a),fetch(o,{credentials:"same-origin",headers:t,priority:r||void 0})}function y(e){return c(e,{callServer:o.callServer,findSourceMapURL:a.findSourceMapURL})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return s}});let n=r(69431),o=r(14375),a=r(62228),u=r(63234);function l(e,t,r,l,i){let{segmentPath:s,seedData:c,tree:f,head:d}=r,p=e,h=t;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,a,u,l,i){if(0===Object.keys(a[1]).length){t.head=l;return}for(let s in a[1]){let c;let f=a[1][s],d=f[0],p=(0,n.createRouterCacheKey)(d),h=null!==u&&void 0!==u[2][s]?u[2][s]:null;if(r){let n=r.parallelRoutes.get(s);if(n){let r;let a=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,u=new Map(n),c=u.get(p);r=null!==h?{lazyData:null,rsc:h[1],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==c?void 0:c.parallelRoutes)}:a&&c?{lazyData:c.lazyData,rsc:c.rsc,prefetchRsc:c.prefetchRsc,head:c.head,prefetchHead:c.prefetchHead,parallelRoutes:new Map(c.parallelRoutes),loading:c.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==c?void 0:c.parallelRoutes),loading:null},u.set(p,r),e(r,c,f,h||null,l,i),t.parallelRoutes.set(s,u);continue}}if(null!==h){let e=h[1],t=h[3];c={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else c={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let y=t.parallelRoutes.get(s);y?y.set(p,c):t.parallelRoutes.set(s,new Map([[p,c]])),e(c,void 0,f,h,l,i)}}}});let n=r(62228),o=r(23093);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return a}});let n=r(4709);function o(e){return void 0!==e}function a(e,t){var r,a;let u=null==(r=t.shouldScroll)||r,l=e.nextUrl;if(o(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?l=r:l||(l=e.canonicalUrl)}return{canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!u&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:t.onlyHashChange||!1,hashFragment:u?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:u?null!=(a=null==t?void 0:t.scrollableSegments)?a:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:l}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14610:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let n=r(48323);function o(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,a){let u=a.length<=2,[l,i]=a,s=(0,n.createRouterCacheKey)(i),c=r.parallelRoutes.get(l);if(!c)return;let f=t.parallelRoutes.get(l);if(f&&f!==c||(f=new Map(c),t.parallelRoutes.set(l,f)),u){f.delete(s);return}let d=c.get(s),p=f.get(s);p&&d&&(p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes)},f.set(s,p)),e(p,d,(0,o.getNextFlightSegmentPath)(a)))}}});let n=r(62228),o=r(76504);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let n=r(62228);function o(e,t,r){for(let o in r[1]){let a=r[1][o][0],u=(0,n.createRouterCacheKey)(a),l=t.parallelRoutes.get(o);if(l){let t=new Map(l);t.delete(u),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68425:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],o=r[0];if(Array.isArray(n)&&Array.isArray(o)){if(n[0]!==o[0]||n[2]!==o[2])return!0}else if(n!==o)return!0;if(t[4])return!r[4];if(r[4])return!0;let a=Object.values(t[1])[0],u=Object.values(r[1])[0];return!a||!u||e(a,u)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{abortTask:function(){return s},listenForDynamicRequest:function(){return i},updateCacheNodeOnNavigation:function(){return function e(t,r,l,i,s,c){let f=r[1],d=l[1],p=null!==i?i[2]:null,h=t.parallelRoutes,y=new Map(h),g={},b=null,_=!1;for(let t in d){let r;let l=d[t],i=f[t],v=h.get(t),m=null!==p?p[t]:null,P=l[0],E=(0,a.createRouterCacheKey)(P),O=void 0!==i?i[0]:void 0,R=void 0!==v?v.get(E):void 0;if(null!==(r=P===n.DEFAULT_SEGMENT_KEY?void 0!==i?{route:i,node:null,needsDynamicRequest:!1,children:null}:u(l,void 0!==m?m:null,s,c):void 0!==O&&(0,o.matchSegment)(P,O)&&void 0!==R&&void 0!==i?e(R,i,l,m,s,c):u(l,void 0!==m?m:null,s,c))){null===b&&(b=new Map),b.set(t,r);let e=r.node;if(null!==e){let r=new Map(v);r.set(E,e),y.set(t,r)}r.needsDynamicRequest&&(_=!0),g[t]=r.route}else g[t]=l}if(null===b)return null;let v={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y};return{route:function(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}(l,g),node:v,needsDynamicRequest:_,children:b}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],o=t.parallelRoutes,u=new Map(o);for(let t in n){let r=n[t],l=r[0],i=(0,a.createRouterCacheKey)(l),s=o.get(t);if(void 0!==s){let n=s.get(i);if(void 0!==n){let o=e(n,r),a=new Map(s);a.set(i,o),u.set(t,a)}}}let l=t.rsc,i=d(l)&&"pending"===l.status;return{lazyData:null,rsc:l,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:t.loading,parallelRoutes:u}}}});let n=r(63234),o=r(82210),a=r(62228);function u(e,t,r,n){if(null===t)return l(e,null,r,n);let o=e[1],i=t[4],s=0===Object.keys(o).length;if(i||n&&s)return l(e,t,r,n);let c=t[2],f=new Map,d=new Map,p=!1;for(let e in o){let t=o[e],l=null!==c?c[e]:null,i=t[0],s=(0,a.createRouterCacheKey)(i),h=u(t,l,r,n);f.set(e,h),h.needsDynamicRequest&&(p=!0);let y=h.node;if(null!==y){let t=new Map;t.set(s,y),d.set(e,t)}}return{route:e,node:{lazyData:null,rsc:t[1],prefetchRsc:null,head:s?r:null,prefetchHead:null,loading:t[3],parallelRoutes:d},needsDynamicRequest:p,children:f}}function l(e,t,r,n){return{route:e,node:function e(t,r,n,o){let u=t[1],l=null!==r?r[2]:null,i=new Map;for(let t in u){let r=u[t],s=null!==l?l[t]:null,c=r[0],f=(0,a.createRouterCacheKey)(c),d=e(r,void 0===s?null:s,n,o),p=new Map;p.set(f,d),i.set(t,p)}let s=0===i.size,c=null!==r?r[1]:null,f=null!==r?r[3]:null;return{lazyData:null,parallelRoutes:i,prefetchRsc:void 0!==c?c:null,prefetchHead:s?n:null,loading:void 0!==f?f:null,rsc:p(),head:s?p():null}}(e,t,r,n),needsDynamicRequest:!0,children:null}}function i(e,t){t.then(t=>{let{flightData:r}=t;if("string"!=typeof r){for(let t of r){let{segmentPath:r,tree:n,seedData:u,head:l}=t;u&&function(e,t,r,n,u){let l=e;for(let e=0;e{s(e,t)})}function s(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)c(e.route,r,t);else for(let e of n.values())s(e,t);e.needsDynamicRequest=!1}function c(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],u=o.get(e);if(void 0===u)continue;let l=t[0],i=(0,a.createRouterCacheKey)(l),s=u.get(i);void 0!==s&&c(t,s,r)}let u=t.rsc;d(u)&&(null===r?u.resolve(null):u.reject(r));let l=t.head;d(l)&&l.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=f,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createSeededPrefetchCacheEntry:function(){return s},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let n=r(90883),o=r(23093),a=r(50239);function u(e,t,r){let n=e.pathname;return(t&&(n+=e.search),r)?""+r+"%"+n:n}function l(e,t,r){return u(e,t===o.PrefetchKind.FULL,r)}function i(e){let{url:t,nextUrl:r,tree:n,prefetchCache:a,kind:l,allowAliasing:i=!0}=e,s=function(e,t,r,n,a){for(let l of(void 0===t&&(t=o.PrefetchKind.TEMPORARY),[r,null])){let r=u(e,!0,l),i=u(e,!1,l),s=e.search?r:i,c=n.get(s);if(c&&a){if(c.url.pathname===e.pathname&&c.url.search!==e.search)return{...c,aliased:!0};return c}let f=n.get(i);if(a&&e.search&&t!==o.PrefetchKind.FULL&&f&&!f.key.includes("%"))return{...f,aliased:!0}}if(t!==o.PrefetchKind.FULL&&a){for(let t of n.values())if(t.url.pathname===e.pathname&&!t.key.includes("%"))return{...t,aliased:!0}}}(t,l,r,a,i);return s?(s.status=h(s),s.kind!==o.PrefetchKind.FULL&&l===o.PrefetchKind.FULL&&s.data.then(e=>{if(!(Array.isArray(e.flightData)&&e.flightData.some(e=>e.isRootRender&&null!==e.seedData)))return c({tree:n,url:t,nextUrl:r,prefetchCache:a,kind:null!=l?l:o.PrefetchKind.TEMPORARY})}),l&&s.kind===o.PrefetchKind.TEMPORARY&&(s.kind=l),s):c({tree:n,url:t,nextUrl:r,prefetchCache:a,kind:l||o.PrefetchKind.TEMPORARY})}function s(e){let{nextUrl:t,tree:r,prefetchCache:n,url:a,data:u,kind:i}=e,s=u.couldBeIntercepted?l(a,i,t):l(a,i),c={treeAtTimeOfPrefetch:r,data:Promise.resolve(u),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:-1,key:s,status:o.PrefetchCacheEntryStatus.fresh,url:a};return n.set(s,c),c}function c(e){let{url:t,kind:r,tree:u,nextUrl:i,prefetchCache:s}=e,c=l(t,r),f=a.prefetchQueue.enqueue(()=>(0,n.fetchServerResponse)(t,{flightRouterState:u,nextUrl:i,prefetchKind:r}).then(e=>{let r;if(e.couldBeIntercepted&&(r=function(e){let{url:t,nextUrl:r,prefetchCache:n,existingCacheKey:o}=e,a=n.get(o);if(!a)return;let u=l(t,a.kind,r);return n.set(u,{...a,key:u}),n.delete(o),u}({url:t,existingCacheKey:c,nextUrl:i,prefetchCache:s})),e.prerendered){let t=s.get(null!=r?r:c);t&&(t.kind=o.PrefetchKind.FULL,-1!==e.staleTime&&(t.staleTime=e.staleTime))}return e})),d={treeAtTimeOfPrefetch:u,data:f,kind:r,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:c,status:o.PrefetchCacheEntryStatus.fresh,url:t};return s.set(c,d),d}function f(e){for(let[t,r]of e)h(r)===o.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("0"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:r,lastUsedTime:n,staleTime:a}=e;return -1!==a?Date.now(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(62228);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];for(let a in r){let[u,l]=r[a],i=t.parallelRoutes.get(a);if(!i)continue;let s=(0,n.createRouterCacheKey)(u),c=i.get(s);if(!c)continue;let f=e(c,l,o+"/"+s);if(f)return f}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25967:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e(t){let[r,o]=t;if(Array.isArray(r)&&("di"===r[2]||"ci"===r[2])||"string"==typeof r&&(0,n.isInterceptionRouteAppPath)(r))return!0;if(o){for(let t in o)if(e(o[t]))return!0}return!1}}});let n=r(92688);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmrRefreshReducer",{enumerable:!0,get:function(){return n}}),r(90883),r(94084),r(66645),r(68425),r(48323),r(53080),r(99687),r(78311),r(14610),r(51653);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleExternalUrl:function(){return v},navigateReducer:function(){return function e(t,r){let{url:P,isExternalUrl:E,navigateType:O,shouldScroll:R,allowAliasing:S}=r,j={},{hash:w}=P,T=(0,o.createHrefFromUrl)(P),M="push"===O;if((0,g.prunePrefetchCache)(t.prefetchCache),j.preserveCustomHistoryState=!1,j.pendingPush=M,E)return v(t,j,P.toString(),M);if(document.getElementById("__next-page-redirect"))return v(t,j,T,M);let x=(0,g.getOrCreatePrefetchCacheEntry)({url:P,nextUrl:t.nextUrl,tree:t.tree,prefetchCache:t.prefetchCache,allowAliasing:S}),{treeAtTimeOfPrefetch:A,data:C}=x;return d.prefetchQueue.bump(C),C.then(d=>{let{flightData:g,canonicalUrl:E,postponed:O}=d,S=!1;if(x.lastUsedTime||(x.lastUsedTime=Date.now(),S=!0),"string"==typeof g)return v(t,j,g,M);let C=E?(0,o.createHrefFromUrl)(E):T;if(w&&t.canonicalUrl.split("#",1)[0]===C.split("#",1)[0])return j.onlyHashChange=!0,j.canonicalUrl=C,j.shouldScroll=R,j.hashFragment=w,j.scrollableSegments=[],(0,c.handleMutable)(t,j);if(x.aliased){let n=(0,_.handleAliasedPrefetchEntry)(t,g,P,j);return!1===n?e(t,{...r,allowAliasing:!1}):n}let k=t.tree,D=t.cache,N=[];for(let e of g){let{pathToSegment:r,seedData:o,head:c,isHeadPartial:d,isRootRender:g}=e,_=e.tree,E=["",...r],R=(0,u.applyRouterStatePatchToTree)(E,k,_,T);if(null===R&&(R=(0,u.applyRouterStatePatchToTree)(E,A,_,T)),null!==R){if((0,i.isNavigatingToNewRootLayout)(k,R))return v(t,j,T,M);if(o&&g&&O){let e=(0,y.updateCacheNodeOnNavigation)(D,k,_,o,c,d);if(null!==e){R=e.route;let r=e.node;if(null!==r&&(j.cache=r),e.needsDynamicRequest){let r=(0,n.fetchServerResponse)(P,{flightRouterState:k,nextUrl:t.nextUrl});(0,y.listenForDynamicRequest)(e,r)}}else R=_}else{let t=(0,p.createEmptyCacheNode)(),n=!1;x.status!==s.PrefetchCacheEntryStatus.stale||S?n=(0,f.applyFlightData)(D,t,e,x):(n=function(e,t,r,n){let o=!1;for(let a of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,b.clearCacheNodeDataForSegmentPath)(e,t,a),o=!0;return o}(t,D,r,_),x.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(E,k)?(t.rsc=D.rsc,t.prefetchRsc=D.prefetchRsc,(0,a.invalidateCacheBelowFlightSegmentPath)(t,D,r),j.cache=t):n&&(j.cache=t,D=t)}for(let e of(k=R,m(_))){let t=[...r,...e];t[t.length-1]!==h.DEFAULT_SEGMENT_KEY&&N.push(t)}}}return j.patchedTree=k,j.canonicalUrl=C,j.scrollableSegments=N,j.hashFragment=w,j.shouldScroll=R,(0,c.handleMutable)(t,j)},()=>t)}}});let n=r(90883),o=r(94084),a=r(70971),u=r(66645),l=r(60636),i=r(68425),s=r(23093),c=r(53080),f=r(99687),d=r(50239),p=r(78311),h=r(63234),y=r(68079),g=r(26461),b=r(51851),_=r(97296);function v(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,c.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}r(36053),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return a},prefetchReducer:function(){return u}});let n=r(21339),o=r(26461),a=new n.PromiseQueue(5),u=function(e,t){(0,o.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;return(0,o.getOrCreatePrefetchCacheEntry)({url:r,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,allowAliasing:!0}),e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let n=r(90883),o=r(94084),a=r(66645),u=r(68425),l=r(48323),i=r(53080),s=r(14375),c=r(78311),f=r(14610),d=r(51653),p=r(9747);function h(e,t){let{origin:r}=t,h={},y=e.canonicalUrl,g=e.tree;h.preserveCustomHistoryState=!1;let b=(0,c.createEmptyCacheNode)(),_=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return b.lazyData=(0,n.fetchServerResponse)(new URL(y,r),{flightRouterState:[g[0],g[1],g[2],"refetch"],nextUrl:_?e.nextUrl:null}),b.lazyData.then(async r=>{let{flightData:n,canonicalUrl:c}=r;if("string"==typeof n)return(0,l.handleExternalUrl)(e,h,n,e.pushRef.pendingPush);for(let r of(b.lazyData=null,n)){let{tree:n,seedData:i,head:d,isRootRender:v}=r;if(!v)return console.log("REFRESH FAILED"),e;let m=(0,a.applyRouterStatePatchToTree)([""],g,n,e.canonicalUrl);if(null===m)return(0,f.handleSegmentMismatch)(e,t,n);if((0,u.isNavigatingToNewRootLayout)(g,m))return(0,l.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let P=c?(0,o.createHrefFromUrl)(c):void 0;if(c&&(h.canonicalUrl=P),null!==i){let e=i[1],t=i[3];b.rsc=e,b.prefetchRsc=null,b.loading=t,(0,s.fillLazyItemsTillLeafWithHead)(b,void 0,n,i,d),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:m,updatedCache:b,includeNextUrl:_,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=b,h.patchedTree=m,g=m}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return a}});let n=r(94084),o=r(4709);function a(e,t){var r;let{url:a,tree:u}=t,l=(0,n.createHrefFromUrl)(a),i=u||e.tree,s=e.cache;return{canonicalUrl:l,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:s,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(i))?r:a.pathname}}r(68079),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return M}});let n=r(53051),o=r(98387),a=r(90604),u=r(23093),l=r(45982),i=r(94084),s=r(48323),c=r(66645),f=r(68425),d=r(53080),p=r(14375),h=r(78311),y=r(51653),g=r(14610),b=r(9747),_=r(76504),v=r(2372),m=r(93475),P=r(26461),E=r(52721),O=r(33099),R=r(56797),{createFromFetch:S,createTemporaryReferenceSet:j,encodeReply:w}=r(18971);async function T(e,t,r){let u,i,{actionId:s,actionArgs:c}=r,f=j(),d=(0,R.extractInfoFromServerReferenceId)(s),p="use-cache"===d.type?(0,R.omitUnusedArgs)(c,d):c,h=await w(p,{temporaryReferences:f}),y=await fetch("",{method:"POST",headers:{Accept:a.RSC_CONTENT_TYPE_HEADER,[a.ACTION_HEADER]:s,[a.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[a.NEXT_URL]:t}:{}},body:h}),g=y.headers.get("x-action-redirect"),[b,v]=(null==g?void 0:g.split(";"))||[];switch(v){case"push":u=m.RedirectType.push;break;case"replace":u=m.RedirectType.replace;break;default:u=void 0}let P=!!y.headers.get(a.NEXT_IS_PRERENDER_HEADER);try{let e=JSON.parse(y.headers.get("x-action-revalidated")||"[[],0,0]");i={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){i={paths:[],tag:!1,cookie:!1}}let E=b?(0,l.assignLocation)(b,new URL(e.canonicalUrl,window.location.href)):void 0,O=y.headers.get("content-type");if(null==O?void 0:O.startsWith(a.RSC_CONTENT_TYPE_HEADER)){let e=await S(Promise.resolve(y),{callServer:n.callServer,findSourceMapURL:o.findSourceMapURL,temporaryReferences:f});return b?{actionFlightData:(0,_.normalizeFlightData)(e.f),redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}:{actionResult:e.a,actionFlightData:(0,_.normalizeFlightData)(e.f),redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}}if(y.status>=400)throw Error("text/plain"===O?await y.text():"An unexpected response was received from the server.");return{redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}}function M(e,t){let{resolve:r,reject:n}=t,o={},a=e.tree;o.preserveCustomHistoryState=!1;let l=e.nextUrl&&(0,y.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return T(e,l,t).then(async y=>{let _,{actionResult:R,actionFlightData:S,redirectLocation:j,redirectType:w,isPrerender:T,revalidatedParts:M}=y;if(j&&(w===m.RedirectType.replace?(e.pushRef.pendingPush=!1,o.pendingPush=!1):(e.pushRef.pendingPush=!0,o.pendingPush=!0),_=(0,i.createHrefFromUrl)(j,!1),o.canonicalUrl=_),!S)return(r(R),j)?(0,s.handleExternalUrl)(e,o,j.href,e.pushRef.pendingPush):e;if("string"==typeof S)return r(R),(0,s.handleExternalUrl)(e,o,S,e.pushRef.pendingPush);let x=M.paths.length>0||M.tag||M.cookie;for(let n of S){let{tree:u,seedData:i,head:d,isRootRender:y}=n;if(!y)return console.log("SERVER ACTION APPLY FAILED"),r(R),e;let v=(0,c.applyRouterStatePatchToTree)([""],a,u,_||e.canonicalUrl);if(null===v)return r(R),(0,g.handleSegmentMismatch)(e,t,u);if((0,f.isNavigatingToNewRootLayout)(a,v))return r(R),(0,s.handleExternalUrl)(e,o,_||e.canonicalUrl,e.pushRef.pendingPush);if(null!==i){let t=i[1],r=(0,h.createEmptyCacheNode)();r.rsc=t,r.prefetchRsc=null,r.loading=i[3],(0,p.fillLazyItemsTillLeafWithHead)(r,void 0,u,i,d),o.cache=r,o.prefetchCache=new Map,x&&await (0,b.refreshInactiveParallelSegments)({state:e,updatedTree:v,updatedCache:r,includeNextUrl:!!l,canonicalUrl:o.canonicalUrl||e.canonicalUrl})}o.patchedTree=v,a=v}return j&&_?(x||((0,P.createSeededPrefetchCacheEntry)({url:j,data:{flightData:S,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:e.tree,prefetchCache:e.prefetchCache,nextUrl:e.nextUrl,kind:T?u.PrefetchKind.FULL:u.PrefetchKind.AUTO}),o.prefetchCache=e.prefetchCache),n((0,v.getRedirectError)((0,O.hasBasePath)(_)?(0,E.removeBasePath)(_):_,w||m.RedirectType.push))):r(R),(0,d.handleMutable)(e,o)},t=>(n(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return c}});let n=r(94084),o=r(66645),a=r(68425),u=r(48323),l=r(99687),i=r(53080),s=r(78311);function c(e,t){let{serverResponse:{flightData:r,canonicalUrl:c}}=t,f={};if(f.preserveCustomHistoryState=!1,"string"==typeof r)return(0,u.handleExternalUrl)(e,f,r,e.pushRef.pendingPush);let d=e.tree,p=e.cache;for(let t of r){let{segmentPath:r,tree:i}=t,h=(0,o.applyRouterStatePatchToTree)(["",...r],d,i,e.canonicalUrl);if(null===h)return e;if((0,a.isNavigatingToNewRootLayout)(d,h))return(0,u.handleExternalUrl)(e,f,e.canonicalUrl,e.pushRef.pendingPush);let y=c?(0,n.createHrefFromUrl)(c):void 0;y&&(f.canonicalUrl=y);let g=(0,s.createEmptyCacheNode)();(0,l.applyFlightData)(p,g,t),f.patchedTree=h,f.cache=g,p=g,d=h}return(0,i.handleMutable)(e,f)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56797:(e,t)=>{"use strict";function r(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function n(e,t){let r=Array(e.length);for(let n=0;n=6&&t.hasRestArgs)&&(r[n]=e[n]);return r}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractInfoFromServerReferenceId:function(){return r},omitUnusedArgs:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,r){let[n,o,,u]=t;for(let l in n.includes(a.PAGE_SEGMENT_KEY)&&"refresh"!==u&&(t[2]=r,t[3]="refresh"),o)e(o[l],r)}},refreshInactiveParallelSegments:function(){return u}});let n=r(99687),o=r(90883),a=r(63234);async function u(e){let t=new Set;await l({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function l(e){let{state:t,updatedTree:r,updatedCache:a,includeNextUrl:u,fetchedSegments:i,rootTree:s=r,canonicalUrl:c}=e,[,f,d,p]=r,h=[];if(d&&d!==c&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),{flightRouterState:[s[0],s[1],s[2],"refetch"],nextUrl:u?t.nextUrl:null}).then(e=>{let{flightData:t}=e;if("string"!=typeof t)for(let e of t)(0,n.applyFlightData)(a,a,e)});h.push(e)}for(let e in f){let r=l({state:t,updatedTree:f[e],updatedCache:a,includeNextUrl:u,fetchedSegments:i,rootTree:s,canonicalUrl:c});h.push(r)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HMR_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return n},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return o},ACTION_SERVER_ACTION:function(){return i},ACTION_SERVER_PATCH:function(){return a},PrefetchCacheEntryStatus:function(){return c},PrefetchKind:function(){return s}});let r="refresh",n="navigate",o="restore",a="server-patch",u="prefetch",l="hmr-refresh",i="server-action";var s=function(e){return e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary",e}({}),c=function(e){return e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(23093),o=r(48323),a=r(77064),u=r(80336),l=r(36745),i=r(50239),s=r(1383),c=r(24474),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,a.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,u.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,l.refreshReducer)(e,t);case n.ACTION_HMR_REFRESH:return(0,s.hmrRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,c.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[a,u]=r,[l,i]=t;return(0,o.matchSegment)(l,a)?!(t.length<=2)&&e((0,n.getNextFlightSegmentPath)(t),u[i]):!!Array.isArray(l)}}});let n=r(76504),o=r(82210);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60769:(e,t)=>{"use strict";function r(e,t){let r=new URL(e);return r.search="",{href:r.href,nextUrl:t}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createCacheKey",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{EntryStatus:function(){return c},readExactRouteCacheEntry:function(){return y},readRouteCacheEntry:function(){return g},readSegmentCacheEntry:function(){return b},requestRouteCacheEntryFromCache:function(){return v},requestSegmentEntryFromCache:function(){return m},waitForSegmentCacheEntry:function(){return _}});let n=r(90604),o=r(90883),a=r(73096),u=r(28567),l=r(94084),i=r(60928),s=r(63952);var c=function(e){return e[e.Pending=0]="Pending",e[e.Rejected=1]="Rejected",e[e.Fulfilled=2]="Fulfilled",e}({});let f=(0,i.createTupleMap)(),d=(0,s.createLRU)(0xa00000,function(e){let t=e.keypath;null!==t&&(e.keypath=null,E(e),f.delete(t))}),p=new Map,h=(0,s.createLRU)(0x3200000,function(e){let t=e.key;null!==t&&(e.key=null,P(e),p.delete(t))});function y(e,t,r){let n=null===r?[t]:[t,r],o=f.get(n);if(null!==o){if(o.staleAt>e)return d.put(o),o;E(o),f.delete(n),d.delete(o)}return null}function g(e,t){let r=y(e,t.href,null);return null===r||r.couldBeIntercepted?y(e,t.href,t.nextUrl):r}function b(e,t){let r=p.get(t);if(void 0!==r){if(r.staleAt>e)return h.put(r),r;P(r),p.delete(t),h.delete(r)}return null}function _(e){let t=e.promise;return null===t&&(t=e.promise=function(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}()),t.promise}function v(e,t){let r=t.key,n=y(e,r.href,null);if(null!==n&&!n.couldBeIntercepted)return n;let o=y(e,r.href,r.nextUrl);if(null!==o)return o;let u={canonicalUrl:null,status:0,blockedTasks:null,tree:null,head:null,isHeadPartial:!0,staleAt:e+6e4,couldBeIntercepted:!0,keypath:null,next:null,prev:null,size:0};(0,a.spawnPrefetchSubtask)(S(u,t));let l=null===r.nextUrl?[r.href]:[r.href,r.nextUrl];return f.set(l,u),u.keypath=l,d.put(u),u}function m(e,t,r,n,o){let u=b(e,n);if(null!==u)return u;let l={status:0,rsc:null,loading:null,staleAt:r.staleAt,isPartial:!0,promise:null,key:null,next:null,prev:null,size:0};return(0,a.spawnPrefetchSubtask)(j(r,l,t.key,n,o)),p.set(n,l),l.key=n,h.put(l),l}function P(e){0===e.status&&null!==e.promise&&(e.promise.resolve(null),e.promise=null)}function E(e){let t=e.blockedTasks;if(null!==t){for(let e of t)(0,a.pingPrefetchTask)(e);e.blockedTasks=null}}function O(e,t){e.status=1,e.staleAt=t,E(e)}function R(e,t){e.status=1,e.staleAt=t,null!==e.promise&&(e.promise.resolve(null),e.promise=null)}async function S(e,t){let r=t.key,a=r.href,i=r.nextUrl;try{var s,c,p,h;let t=await w(a,"/_tree",i);if(!t||!t.ok||204===t.status||!t.body){O(e,Date.now()+1e4);return}let r=T(t.body,d,e),y=await (0,o.createFromNextReadableStream)(r);if(y.buildId!==(0,u.getAppBuildId)()){O(e,Date.now()+1e4);return}let g=t.redirected?(0,l.createHrefFromUrl)((0,o.urlToUrlWithoutFlightMarker)(t.url)):a,b=t.headers.get("vary"),_=null!==b&&b.includes(n.NEXT_URL);if(s=y.tree,c=y.head,p=y.isHeadPartial,h=Date.now()+y.staleTime,e.status=2,e.tree=s,e.head=c,e.isHeadPartial=p,e.staleAt=h,e.couldBeIntercepted=_,e.canonicalUrl=g,E(e),!_&&null!==i){let t=[a,i];if(f.get(t)===e){f.delete(t);let r=[a];f.set(r,e),e.keypath=r}}}catch(t){O(e,Date.now()+1e4)}}async function j(e,t,r,n,a){let l=r.href;try{var i,s,c,f;let d=await w(l,""===a?n:n+"."+a,r.nextUrl);if(!d||!d.ok||204===d.status||!d.body){R(t,Date.now()+1e4);return}let p=T(d.body,h,t),y=await (0,o.createFromNextReadableStream)(p);if(y.buildId!==(0,u.getAppBuildId)()){R(t,Date.now()+1e4);return}i=y.rsc,s=y.loading,c=e.staleAt,f=y.isPartial,t.status=2,t.rsc=i,t.loading=s,t.staleAt=c,t.isPartial=f,null!==t.promise&&(t.promise.resolve(t),t.promise=null)}catch(e){R(t,Date.now()+1e4)}}async function w(e,t,r){let u={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_PREFETCH_HEADER]:"1",[n.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:t};null!==r&&(u[n.NEXT_URL]=r);let l=(0,o.createFetch)(new URL(e),u,"low");(0,a.trackPrefetchRequestBandwidth)(l);let i=await l,s=i.headers.get("content-type"),c=s&&s.startsWith(n.RSC_CONTENT_TYPE_HEADER);return i.ok&&c?i:null}function T(e,t,r){let n=0,o=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:a,value:u}=await o.read();if(!a){e.enqueue(u),n+=u.byteLength,t.updateSize(r,n);continue}return}}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63952:(e,t)=>{"use strict";function r(e,t){let r=null,o=!1,a=0;function u(e){let t=e.next,n=e.prev;null!==t&&null!==n&&(a-=e.size,e.next=null,e.prev=null,r===e?r=t===r?null:t:(n.next=t,t.prev=n))}function l(){o||a<=e||(o=!0,n(i))}function i(){o=!1;let n=.9*e;for(;a>n&&null!==r;){let e=r.prev;u(e),t(e)}}return{put:function(e){if(r===e)return;let t=e.prev,n=e.next;if(null===n||null===t?(a+=e.size,l()):(t.next=n,n.prev=t),null===r)e.prev=e,e.next=e;else{let t=r.prev;e.prev=t,t.next=e,e.next=r,r.prev=e}r=e},delete:u,updateSize:function(e,t){if(null===e.next)return;let r=e.size;e.size=t,a=a-r+t,l()}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createLRU",{enumerable:!0,get:function(){return r}});let n="function"==typeof requestIdleCallback?requestIdleCallback:e=>setTimeout(e,0);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NavigationResultTag:function(){return i},navigate:function(){return c}});let n=r(90883),o=r(68079),a=r(94084),u=r(35763),l=r(60769);var i=function(e){return e[e.MPA=0]="MPA",e[e.Success=1]="Success",e[e.NoOp=2]="NoOp",e[e.Async=3]="Async",e}({});let s={tag:2,data:null};function c(e,t,r,a){let i=Date.now(),c=(0,l.createCacheKey)(e.href,a),p=(0,u.readRouteCacheEntry)(i,c);if(null!==p&&p.status===u.EntryStatus.Fulfilled){let l=function e(t,r){let n={},o={},a=r.slots;if(null!==a)for(let r in a){let u=e(t,a[r]);n[r]=u.flightRouterState,o[r]=u.seedData}let l=null,i=null,s=!0,c=(0,u.readSegmentCacheEntry)(t,r.path);if(null!==c)switch(c.status){case u.EntryStatus.Fulfilled:l=c.rsc,i=c.loading,s=c.isPartial;break;case u.EntryStatus.Pending:{let e=(0,u.waitForSegmentCacheEntry)(c);l=e.then(e=>null!==e?e.rsc:null),i=e.then(e=>null!==e?e.loading:null),s=!0}case u.EntryStatus.Rejected:}let f=r.extra,d=f[0];return{flightRouterState:[d,n,null,null,f[1]],seedData:[d,l,o,i,s]}}(i,p.tree),c=l.flightRouterState,d=l.seedData;return function(e,t,r,a,u,l,i,c,d){let p=(0,o.updateCacheNodeOnNavigation)(r,a,u,l,i,c);if(null!==p){if(p.needsDynamicRequest){let r=(0,n.fetchServerResponse)(e,{flightRouterState:a,nextUrl:t});(0,o.listenForDynamicRequest)(p,r)}return f(p,r,d)}return s}(e,a,t,r,c,d,p.head,p.isHeadPartial,p.canonicalUrl)}return{tag:3,data:d(e,a,t,r)}}function f(e,t,r){let n=e.node;return{tag:1,data:{flightRouterState:e.route,cacheNode:null!==n?n:t,canonicalUrl:r}}}async function d(e,t,r,u){let l=(0,n.fetchServerResponse)(e,{flightRouterState:u,nextUrl:t}),{flightData:i,canonicalUrl:c}=await l;if("string"==typeof i)return{tag:0,data:i};let d=function(e,t){let r=e;for(let{segmentPath:n,tree:o}of t){let t=r!==e;r=function e(t,r,n,o,a){if(a===n.length)return r;let u=n[a],l=t[1],i={};for(let t in l)if(t===u){let u=l[t];i[t]=e(u,r,n,o,a+2)}else i[t]=l[t];if(o)return t[1]=i,t;let s=[t[0],i];return 2 in t&&(s[2]=t[2]),3 in t&&(s[3]=t[3]),4 in t&&(s[4]=t[4]),s}(r,o,n,t,0)}return r}(u,i),p=(0,a.createHrefFromUrl)(c||e),h=(0,o.updateCacheNodeOnNavigation)(r,u,d,null,null,!0);return null!==h?(h.needsDynamicRequest&&(0,o.listenForDynamicRequest)(h,l),f(h,r,p)):s}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prefetch",{enumerable:!0,get:function(){return u}});let n=r(78311),o=r(60769),a=r(73096);function u(e,t){let r=(0,n.createPrefetchURL)(e);if(null===r)return;let u=(0,o.createCacheKey)(r.href,t);(0,a.schedulePrefetchTask)(u)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{pingPrefetchTask:function(){return y},schedulePrefetchTask:function(){return s},spawnPrefetchSubtask:function(){return p},trackPrefetchRequestBandwidth:function(){return f}});let n=r(35763),o="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e})),a=[],u=0,l=0,i=!1;function s(e){_(a,{key:e,sortId:l++,isBlocked:!1,_heapIndex:-1}),c()}function c(){!i&&u<3&&(i=!0,o(g))}function f(e){u++,e.then(h,h)}let d=()=>{};function p(e){e.then(d,d)}function h(){u--,c()}function y(e){e.isBlocked&&(e.isBlocked=!1,_(a,e),c())}function g(){i=!1;let e=Date.now(),t=v(a);for(;null!==t&&u<3;){let r=(0,n.requestRouteCacheEntryFromCache)(e,t);switch(function(e,t,r){switch(r.status){case n.EntryStatus.Pending:{let e=r.blockedTasks;return null===e?r.blockedTasks=new Set([t]):e.add(t),1}case n.EntryStatus.Rejected:return 2;case n.EntryStatus.Fulfilled:{if(!(u<3))return 0;let o=r.tree;return(0,n.requestSegmentEntryFromCache)(e,t,r,o.path,""),function e(t,r,o,a){if(null!==a.slots)for(let l in a.slots){let i=a.slots[l];if(!(u<3))return 0;{let e=i.path,a=i.token;(0,n.requestSegmentEntryFromCache)(t,r,o,e,a)}if(0===e(t,r,o,i))return 0}return 2}(e,t,r,o)}default:return 2}}(e,t,r)){case 0:default:return;case 1:t.isBlocked=!0,m(a),t=v(a);continue;case 2:m(a),t=v(a);continue}}}function b(e,t){return t.sortId-e.sortId}function _(e,t){let r=e.length;e.push(t),t._heapIndex=r,function(e,t,r){let n=r;for(;n>0;){let r=n-1>>>1,o=e[r];if(!(b(o,t)>0))return;e[r]=t,t._heapIndex=r,e[n]=o,o._heapIndex=n,n=r}}(e,t,r)}function v(e){return 0===e.length?null:e[0]}function m(e){if(0===e.length)return null;let t=e[0];t._heapIndex=-1;let r=e.pop();return r!==t&&(e[0]=r,r._heapIndex=0,function(e,t,r){let n=0,o=e.length,a=o>>>1;for(;nb(a,t))ub(l,a)?(e[n]=l,l._heapIndex=n,e[u]=t,t._heapIndex=u,n=u):(e[n]=a,a._heapIndex=n,e[r]=t,t._heapIndex=r,n=r);else{if(!(ub(l,t)))return;e[n]=l,l._heapIndex=n,e[u]=t,t._heapIndex=u,n=u}}}(e,r,0)),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60928:(e,t)=>{"use strict";function r(){let e={parent:null,key:null,hasValue:!1,value:null,map:null},t=null,r=null;function n(n){if(r===n)return t;let o=e;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{StaticGenBailoutError:function(){return n},isStaticGenBailoutError:function(){return o}});let r="NEXT_STATIC_GEN_BAILOUT";class n extends Error{constructor(...e){super(...e),this.code=r}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45050:(e,t,r)=>{"use strict";function n(){throw Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled.")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(20797).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99153:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return r}});let r={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,u.isNextRouterError)(t)||(0,a.isBailoutToCSRError)(t)||(0,n.isDynamicUsageError)(t)||(0,o.isPostpone)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(8195),o=r(76568),a=r(13007),u=r(69211);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useReducer:function(){return u},useUnwrapState:function(){return a}});let n=r(62599)._(r(20107)),o=r(75803);function a(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}function u(e){let[t,r]=n.default.useState(e.state);return[t,(0,n.useCallback)(t=>{e.dispatch(t,r)},[e])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76504:(e,t)=>{"use strict";function r(e){var t;let[r,n,o,a]=e.slice(-4),u=e.slice(0,-4);return{pathToSegment:u.slice(0,-1),segmentPath:u,segment:null!=(t=u[u.length-1])?t:"",tree:r,seedData:n,head:o,isHeadPartial:a,isRootRender:4===e.length}}function n(e){return e.slice(2)}function o(e){return"string"==typeof e?e:e.map(r)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getFlightDataPartsFromPath:function(){return r},getNextFlightSegmentPath:function(){return n},normalizeFlightData:function(){return o}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(50344);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13828:(e,t)=>{"use strict";function r(e,t){switch(typeof e){case"object":if(null===e)return"null";if(Array.isArray(e)){let n="[";if(t<1)for(let o=0;o0?"...":"";return n+"]"}{if(e instanceof Error)return e+"";let n=Object.keys(e),o="{";if(t<1)for(let a=0;a0?"...":"";return o+"}"}case"string":return JSON.stringify(e);default:return String(e)}}function n(e){let t,n;"string"==typeof e[0]?(t=e[0],n=1):(t="",n=0);let o="",a=!1;for(let u=0;u=e.length){o+=l;continue}let i=t[++u];switch(i){case"c":o=a?""+o+"]":"["+o,a=!a,n++;break;case"O":case"o":o+=r(e[n++],0);break;case"d":case"i":o+=parseInt(e[n++],10);break;case"f":o+=parseFloat(e[n++]);break;case"s":o+=String(e[n++]);break;default:o+="%"+i}}for(;n0?" ":"")+r(e[n],0);return o}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatConsoleArgs",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(22150),o=r(19974),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,n.removeTrailingSlash)(t)+r+a:t.endsWith("/")?""+t+r+a:t+"/"+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{onCaughtError:function(){return l},onUncaughtError:function(){return i}}),r(3132),r(75880);let n=r(69211),o=r(13007),a=r(24617),u=r(75394),l=(e,t)=>{(0,o.isBailoutToCSRError)(e)||(0,n.isNextRouterError)(e)||(0,u.originConsoleError)(e)},i=(e,t)=>{(0,o.isBailoutToCSRError)(e)||(0,n.isNextRouterError)(e)||(0,a.reportGlobalError)(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{window.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"onRecoverableError",{enumerable:!0,get:function(){return i}});let n=r(67342),o=r(13007),a=r(24617),u=r(3132),l=n._(r(91194)),i=(e,t)=>{let r=(0,l.default)(e)&&"cause"in e?e.cause:e,n=(0,u.getReactStitchedError)(r);(0,o.isBailoutToCSRError)(r)||(0,a.reportGlobalError)(n)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52721:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(33099),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18259:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var i=[],s=!1,c=-1;function f(){s&&n&&(s=!1,n.length?i=n.concat(i):c=-1,i.length&&d())}function d(){if(!s){var e=l(f);s=!0;for(var t=i.length;t;){for(n=i,i=[];++c1)for(var r=1;r{"use strict";function r(e,t){var r=e.length;for(e.push(t);0>>1,o=e[n];if(0>>1;na(i,r))sa(c,i)?(e[n]=c,e[s]=r,n=s):(e[n]=i,e[l]=r,n=l);else if(sa(c,r))e[n]=c,e[s]=r,n=s;else break}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var u,l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}var c=[],f=[],d=1,p=null,h=3,y=!1,g=!1,b=!1,_="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function P(e){for(var t=n(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,r(c,t);else break;t=n(f)}}function E(e){if(b=!1,P(e),!g){if(null!==n(c))g=!0,A();else{var t=n(f);null!==t&&C(E,t.startTime-e)}}}var O=!1,R=-1,S=5,j=-1;function w(){return!(t.unstable_now()-je&&w());){var l=p.callback;if("function"==typeof l){p.callback=null,h=p.priorityLevel;var i=l(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,P(e),r=!0;break t}p===n(c)&&o(c),P(e)}else o(c);p=n(c)}if(null!==p)r=!0;else{var s=n(f);null!==s&&C(E,s.startTime-e),r=!1}}break e}finally{p=null,h=a,y=!1}r=void 0}}finally{r?u():O=!1}}}if("function"==typeof m)u=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,u=function(){x.postMessage(null)}}else u=function(){_(T,0)};function A(){O||(O=!0,u())}function C(e,r){R=_(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||y||(g=!0,A())},t.unstable_forceFrameRate=function(e){0>e||125u?(e.sortIndex=a,r(f,e),null===n(c)&&e===n(f)&&(b?(v(R),R=-1):b=!0,C(E,a-u))):(e.sortIndex=l,r(c,e),g||y||(g=!0,A())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},87803:(e,t,r)=>{"use strict";e.exports=r(10600)},8195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicUsageError",{enumerable:!0,get:function(){return l}});let n=r(75566),o=r(13007),a=r(69211),u=r(48002),l=e=>(0,n.isDynamicServerError)(e)||(0,o.isBailoutToCSRError)(e)||(0,a.isNextRouterError)(e)||(0,u.isDynamicPostpone)(e)},91194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(27052);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+"")}},99165:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MetadataBoundary:function(){return a},OutletBoundary:function(){return l},ViewportBoundary:function(){return u}});let n=r(91980),o={[n.METADATA_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.VIEWPORT_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.OUTLET_BOUNDARY_NAME]:function(e){let{children:t}=e;return t}},a=o[n.METADATA_BOUNDARY_NAME.slice(0)],u=o[n.VIEWPORT_BOUNDARY_NAME.slice(0)],l=o[n.OUTLET_BOUNDARY_NAME.slice(0)]},91980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{METADATA_BOUNDARY_NAME:function(){return r},OUTLET_BOUNDARY_NAME:function(){return o},VIEWPORT_BOUNDARY_NAME:function(){return n}});let r="__next_metadata_boundary__",n="__next_viewport_boundary__",o="__next_outlet_boundary__"},47314:(e,t,r)=>{"use strict";var n=r(86170);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{atLeastOneTask:function(){return u},scheduleImmediate:function(){return a},scheduleOnNextTick:function(){return o},waitAtLeastOneReactRenderTask:function(){return l}});let o=e=>{Promise.resolve().then(()=>{n.nextTick(e)})},a=e=>{setImmediate(e)};function u(){return new Promise(e=>a(e))}function l(){return new Promise(e=>setImmediate(e))}},55006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});let n=r(81939)},21773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(42904).createAsyncLocalStorage)()},98372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=r(21773)},42904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return l}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let o="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new n}function u(e){return o?o.bind(e):n.bind(e)}function l(){return o?o.snapshot():function(e,...t){return e(...t)}}},48002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Postpone:function(){return O},abortAndThrowOnSynchronousRequestDataAccess:function(){return P},abortOnSynchronousPlatformIOAccess:function(){return v},accessedDynamicData:function(){return A},annotateDynamicAccess:function(){return U},consumeDynamicAccess:function(){return C},createDynamicTrackingState:function(){return f},createDynamicValidationState:function(){return d},createPostponedAbortSignal:function(){return N},formatDynamicAPIAccesses:function(){return k},getFirstDynamicReason:function(){return p},isDynamicPostpone:function(){return j},isPrerenderInterruptedError:function(){return x},markCurrentScopeAsDynamic:function(){return h},postponeWithTracking:function(){return R},throwIfDisallowedDynamic:function(){return W},throwToInterruptStaticGeneration:function(){return g},trackAllowedDynamicAccess:function(){return B},trackDynamicDataInDynamicRender:function(){return b},trackFallbackParamAccessed:function(){return y},trackSynchronousPlatformIOAccessInDev:function(){return m},trackSynchronousRequestDataAccessInDev:function(){return E},useDynamicRouteParams:function(){return I}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(20107)),o=r(75566),a=r(91558),u=r(31322),l=r(32381),i=r(6745),s=r(91980),c="function"==typeof n.default.unstable_postpone;function f(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicExpression:void 0,syncDynamicErrorWithStack:null}}function d(){return{hasSuspendedDynamic:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasSyncDynamicErrors:!1,dynamicErrors:[]}}function p(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function h(e,t,r){if((!t||"cache"!==t.type&&"unstable-cache"!==t.type)&&!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw new a.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(t){if("prerender-ppr"===t.type)R(e.route,r,t.dynamicTracking);else if("prerender-legacy"===t.type){t.revalidate=0;let n=new o.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}}function y(e,t){let r=u.workUnitAsyncStorage.getStore();r&&"prerender-ppr"===r.type&&R(e.route,t,r.dynamicTracking)}function g(e,t,r){let n=new o.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function b(e,t){t&&"cache"!==t.type&&"unstable-cache"!==t.type&&("prerender"===t.type||"prerender-legacy"===t.type)&&(t.revalidate=0)}function _(e,t,r){let n=M(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let o=r.dynamicTracking;o&&o.dynamicAccesses.push({stack:o.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function v(e,t,r,n){let o=n.dynamicTracking;return o&&null===o.syncDynamicErrorWithStack&&(o.syncDynamicExpression=t,o.syncDynamicErrorWithStack=r),_(e,t,n)}function m(e){e.prerenderPhase=!1}function P(e,t,r,n){let o=n.dynamicTracking;throw o&&null===o.syncDynamicErrorWithStack&&(o.syncDynamicExpression=t,o.syncDynamicErrorWithStack=r,!0===n.validating&&(o.syncDynamicLogged=!0)),_(e,t,n),M(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}let E=m;function O({reason:e,route:t}){let r=u.workUnitAsyncStorage.getStore();R(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function R(e,t,r){D(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),n.default.unstable_postpone(S(e,t))}function S(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function j(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&w(e.message)}function w(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===w(S("%%%","^^^")))throw Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js");let T="NEXT_PRERENDER_INTERRUPTED";function M(e){let t=Error(e);return t.digest=T,t}function x(e){return"object"==typeof e&&null!==e&&e.digest===T&&"name"in e&&"message"in e&&e instanceof Error}function A(e){return e.length>0}function C(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function k(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: +${t}`))}function D(){if(!c)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function N(e){D();let t=new AbortController;try{n.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}function U(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function I(e){if("undefined"==typeof window){let t=l.workAsyncStorage.getStore();if(t&&t.isStaticGeneration&&t.fallbackRouteParams&&t.fallbackRouteParams.size>0){let r=u.workUnitAsyncStorage.getStore();r&&("prerender"===r.type?n.default.use((0,i.makeHangingPromise)(r.renderSignal,e)):"prerender-ppr"===r.type?R(t.route,e,r.dynamicTracking):"prerender-legacy"===r.type&&g(e,t,r))}}}let L=/\n\s+at Suspense \(\)/,H=RegExp(`\\n\\s+at ${s.METADATA_BOUNDARY_NAME}[\\n\\s]`),F=RegExp(`\\n\\s+at ${s.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),$=RegExp(`\\n\\s+at ${s.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function B(e,t,r,n,o){if(!$.test(t)){if(H.test(t)){r.hasDynamicMetadata=!0;return}if(F.test(t)){r.hasDynamicViewport=!0;return}if(L.test(t)){r.hasSuspendedDynamic=!0;return}if(n.syncDynamicErrorWithStack||o.syncDynamicErrorWithStack){r.hasSyncDynamicErrors=!0;return}else{let n=function(e,t){let r=Error(e);return r.stack="Error: "+e+t,r}(`Route "${e}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`,t);r.dynamicErrors.push(n);return}}}function W(e,t,r,n){let o,u,l;if(r.syncDynamicErrorWithStack?(o=r.syncDynamicErrorWithStack,u=r.syncDynamicExpression,l=!0===r.syncDynamicLogged):n.syncDynamicErrorWithStack?(o=n.syncDynamicErrorWithStack,u=n.syncDynamicExpression,l=!0===n.syncDynamicLogged):(o=null,u=void 0,l=!1),t.hasSyncDynamicErrors&&o)throw l||console.error(o),new a.StaticGenBailoutError;let i=t.dynamicErrors;if(i.length){for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(92688);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},32381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(70876)},31322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return o},getPrerenderResumeDataCache:function(){return a},getRenderResumeDataCache:function(){return u},workUnitAsyncStorage:function(){return n.workUnitAsyncStorageInstance}});let n=r(17707);function o(e){let t=n.workUnitAsyncStorageInstance.getStore();if(t){if("request"===t.type)return t;if("prerender"===t.type||"prerender-ppr"===t.type||"prerender-legacy"===t.type)throw Error(`\`${e}\` cannot be called inside a prerender. This is a bug in Next.js.`);if("cache"===t.type)throw Error(`\`${e}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`);if("unstable-cache"===t.type)throw Error(`\`${e}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`)}throw Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`)}function a(e){return"prerender"===e.type||"prerender-ppr"===e.type?e.prerenderResumeDataCache:null}function u(e){return"prerender-legacy"!==e.type&&"cache"!==e.type&&"unstable-cache"!==e.type?"request"===e.type?e.renderResumeDataCache:e.prerenderResumeDataCache:null}},80775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return i}});let n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(n,u,l):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(20107));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}let a={current:null},u="function"==typeof n.cache?n.cache:e=>e,l=console.warn;function i(e){return function(...t){l(e(...t))}}u(e=>{try{l(a.current)}finally{a.current=null}})},6745:(e,t)=>{"use strict";function r(e,t){let r=new Promise((r,n)=>{e.addEventListener("abort",()=>{n(Error(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`))},{once:!0})});return r.catch(n),r}function n(){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"makeHangingPromise",{enumerable:!0,get:function(){return r}})},92688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return u},isInterceptionRouteAppPath:function(){return a}});let n=r(40483),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function u(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let u=t.split("/");if(u.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=u.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},76568:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isPostpone",{enumerable:!0,get:function(){return n}});let r=Symbol.for("react.postpone");function n(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}},98369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderParamsFromClient",{enumerable:!0,get:function(){return o}}),r(38906),r(83156);let n=r(38558);function o(e){return function(e){let t=a.get(e);if(t)return t;let r=Promise.resolve(e);return a.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}(e)}let a=new WeakMap},90215:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createParamsFromClient:function(){return s},createPrerenderParamsForClientSegment:function(){return p},createServerParamsForMetadata:function(){return c},createServerParamsForRoute:function(){return f},createServerParamsForServerSegment:function(){return d}}),r(38906);let n=r(48002),o=r(31322),a=r(83156),u=r(38558),l=r(6745),i=r(80775);function s(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}r(47314);let c=d;function f(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}function d(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}function p(e,t){let r=o.workUnitAsyncStorage.getStore();if(r&&"prerender"===r.type){let n=t.fallbackRouteParams;if(n){for(let t in e)if(n.has(t))return(0,l.makeHangingPromise)(r.renderSignal,"`params`")}}return Promise.resolve(e)}function h(e,t,r){let o=t.fallbackRouteParams;if(o){let a=!1;for(let t in e)if(o.has(t)){a=!0;break}if(a)return"prerender"===r.type?function(e,t,r){let o=y.get(e);if(o)return o;let a=(0,l.makeHangingPromise)(r.renderSignal,"`params`");return y.set(e,a),Object.keys(e).forEach(e=>{u.wellKnownProperties.has(e)||Object.defineProperty(a,e,{get(){let o=(0,u.describeStringPropertyAccess)("params",e),a=b(t,o);(0,n.abortAndThrowOnSynchronousRequestDataAccess)(t,o,a,r)},set(t){Object.defineProperty(a,e,{value:t,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})}),a}(e,t.route,r):function(e,t,r,o){let a=y.get(e);if(a)return a;let l={...e},i=Promise.resolve(l);return y.set(e,i),Object.keys(e).forEach(a=>{u.wellKnownProperties.has(a)||(t.has(a)?(Object.defineProperty(l,a,{get(){let e=(0,u.describeStringPropertyAccess)("params",a);"prerender-ppr"===o.type?(0,n.postponeWithTracking)(r.route,e,o.dynamicTracking):(0,n.throwToInterruptStaticGeneration)(e,r,o)},enumerable:!0}),Object.defineProperty(i,a,{get(){let e=(0,u.describeStringPropertyAccess)("params",a);"prerender-ppr"===o.type?(0,n.postponeWithTracking)(r.route,e,o.dynamicTracking):(0,n.throwToInterruptStaticGeneration)(e,r,o)},set(e){Object.defineProperty(i,a,{value:e,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})):i[a]=e[a])}),i}(e,o,t,r)}return g(e)}let y=new WeakMap;function g(e){let t=y.get(e);if(t)return t;let r=Promise.resolve(e);return y.set(e,r),Object.keys(e).forEach(t=>{u.wellKnownProperties.has(t)||(r[t]=e[t])}),r}function b(e,t){let r=e?`Route "${e}" `:"This route ";return Error(`${r}used ${t}. \`params\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)}(0,i.createDedupedByCallsiteServerErrorLoggerDev)(b),(0,i.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t,r){let n=e?`Route "${e}" `:"This route ";return Error(`${n}used ${t}. \`params\` should be awaited before using its properties. The following properties were not available through enumeration because they conflict with builtin property names: ${function(e){switch(e.length){case 0:throw new a.InvariantError("Expected describeListOfPropertyNames to be called with a non-empty list of strings.");case 1:return`\`${e[0]}\``;case 2:return`\`${e[0]}\` and \`${e[1]}\``;default:{let t="";for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return o}}),r(38906);let n=r(38558);function o(e){return function(e){let t=a.get(e);if(t)return t;let r=Promise.resolve(e);return a.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}(e)}let a=new WeakMap},78394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createPrerenderSearchParamsForClientPage:function(){return p},createSearchParamsFromClient:function(){return c},createServerSearchParamsForMetadata:function(){return f},createServerSearchParamsForServerPage:function(){return d}});let n=r(38906),o=r(48002),a=r(31322),u=r(83156),l=r(6745),i=r(80775),s=r(38558);function c(e,t){let r=a.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(t,r)}return y(e,t)}r(47314);let f=d;function d(e,t){let r=a.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(t,r)}return y(e,t)}function p(e){if(e.forceStatic)return Promise.resolve({});let t=a.workUnitAsyncStorage.getStore();return t&&"prerender"===t.type?(0,l.makeHangingPromise)(t.renderSignal,"`searchParams`"):Promise.resolve({})}function h(e,t){return e.forceStatic?Promise.resolve({}):"prerender"===t.type?function(e,t){let r=g.get(t);if(r)return r;let a=(0,l.makeHangingPromise)(t.renderSignal,"`searchParams`"),u=new Proxy(a,{get(r,u,l){if(Object.hasOwn(a,u))return n.ReflectAdapter.get(r,u,l);switch(u){case"then":return(0,o.annotateDynamicAccess)("`await searchParams`, `searchParams.then`, or similar",t),n.ReflectAdapter.get(r,u,l);case"status":return(0,o.annotateDynamicAccess)("`use(searchParams)`, `searchParams.status`, or similar",t),n.ReflectAdapter.get(r,u,l);case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"catch":case"finally":case"toJSON":case"$$typeof":case"__esModule":return n.ReflectAdapter.get(r,u,l);default:if("string"==typeof u){let r=(0,s.describeStringPropertyAccess)("searchParams",u),n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}return n.ReflectAdapter.get(r,u,l)}},has(r,a){if("string"==typeof a){let r=(0,s.describeHasCheckingStringProperty)("searchParams",a),n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}return n.ReflectAdapter.has(r,a)},ownKeys(){let r="`{...searchParams}`, `Object.keys(searchParams)`, or similar",n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}});return g.set(t,u),u}(e.route,t):function(e,t){let r=g.get(e);if(r)return r;let a=Promise.resolve({}),u=new Proxy(a,{get(r,u,l){if(Object.hasOwn(a,u))return n.ReflectAdapter.get(r,u,l);switch(u){case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"catch":case"finally":case"toJSON":case"$$typeof":case"__esModule":return n.ReflectAdapter.get(r,u,l);case"then":{let r="`await searchParams`, `searchParams.then`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t);return}case"status":{let r="`use(searchParams)`, `searchParams.status`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t);return}default:if("string"==typeof u){let r=(0,s.describeStringPropertyAccess)("searchParams",u);e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t)}return n.ReflectAdapter.get(r,u,l)}},has(r,a){if("string"==typeof a){let r=(0,s.describeHasCheckingStringProperty)("searchParams",a);return e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t),!1}return n.ReflectAdapter.has(r,a)},ownKeys(){let r="`{...searchParams}`, `Object.keys(searchParams)`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t)}});return g.set(e,u),u}(e,t)}function y(e,t){return t.forceStatic?Promise.resolve({}):function(e,t){let r=g.get(e);if(r)return r;let n=Promise.resolve(e);return g.set(e,n),Object.keys(e).forEach(r=>{switch(r){case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"then":case"catch":case"finally":case"status":case"toJSON":case"$$typeof":case"__esModule":break;default:Object.defineProperty(n,r,{get(){let n=a.workUnitAsyncStorage.getStore();return(0,o.trackDynamicDataInDynamicRender)(t,n),e[r]},set(e){Object.defineProperty(n,r,{value:e,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})}}),n}(e,t)}let g=new WeakMap;function b(e,t){let r=e?`Route "${e}" `:"This route ";return Error(`${r}used ${t}. \`searchParams\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)}(0,i.createDedupedByCallsiteServerErrorLoggerDev)(b),(0,i.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t,r){let n=e?`Route "${e}" `:"This route ";return Error(`${n}used ${t}. \`searchParams\` should be awaited before using its properties. The following properties were not available through enumeration because they conflict with builtin or well-known property names: ${function(e){switch(e.length){case 0:throw new u.InvariantError("Expected describeListOfPropertyNames to be called with a non-empty list of strings.");case 1:return`\`${e[0]}\``;case 2:return`\`${e[0]}\` and \`${e[1]}\``;default:{let t="";for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{describeHasCheckingStringProperty:function(){return l},describeStringPropertyAccess:function(){return u},isRequestAPICallableInsideAfter:function(){return c},throwWithStaticGenerationBailoutError:function(){return i},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s},wellKnownProperties:function(){return f}});let n=r(91558),o=r(98372),a=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function u(e,t){return a.test(t)?`\`${e}.${t}\``:`\`${e}[${JSON.stringify(t)}]\``}function l(e,t){let r=JSON.stringify(t);return`\`Reflect.has(${e}, ${r})\`, \`${r} in ${e}\`, or similar`}function i(e,t){throw new n.StaticGenBailoutError(`Route ${e} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`)}function s(e,t){throw new n.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`)}function c(){let e=o.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}let f=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","toJSON","$$typeof","__esModule"])},38906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},32618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return u},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return i},TemplateContext:function(){return l}});let n=r(67342)._(r(20107)),o=n.default.createContext(null),a=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(null),i=n.default.createContext(new Set)},80724:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},76249:(e,t)=>{"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},17315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(67342)._(r(20107)).default.createContext({})},14839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return u},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(20107),o=(0,n.createContext)(null),a=(0,n.createContext)(null),u=(0,n.createContext)(null)},83156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super("Invariant: "+(e.endsWith(".")?e:e+".")+" This is a bug in Next.js.",t),this.name="InvariantError"}}},27052:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},75803:(e,t)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isThenable",{enumerable:!0,get:function(){return r}})},13007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},88018:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},52345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createMutableActionQueue",{enumerable:!0,get:function(){return s}});let n=r(23093),o=r(27749),a=r(20107),u=r(75803);function l(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?i({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:n.ACTION_REFRESH,origin:window.location.origin},t)))}async function i(e){let{actionQueue:t,action:r,setState:n}=e,o=t.state;t.pending=r;let a=r.payload,i=t.action(o,a);function s(e){r.discarded||(t.state=e,l(t,n),r.resolve(e))}(0,u.isThenable)(i)?i.then(s,e=>{l(t,n),r.reject(e)}):s(i)}function s(e){let t={state:e,dispatch:(e,r)=>(function(e,t,r){let o={resolve:r,reject:()=>{}};if(t.type!==n.ACTION_RESTORE){let e=new Promise((e,t)=>{o={resolve:e,reject:t}});(0,a.startTransition)(()=>{r(e)})}let u={payload:t,next:null,resolve:o.resolve,reject:o.reject};null===e.pending?(e.last=u,i({actionQueue:e,action:u,setState:r})):t.type===n.ACTION_NAVIGATE||t.type===n.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===n.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),i({actionQueue:e,action:u,setState:r})):(null!==e.last&&(e.last.next=u),e.last=u)})(t,e,r),action:async(e,t)=>(0,o.reducer)(e,t),pending:null,last:null};return t}},76905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(19974);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},40483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return u}});let n=r(88018),o=r(63234);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function u(e){return e.replace(/\.rsc($|\?)/,"$1")}},65200:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},80691:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}});let r=/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i;function n(e){return r.test(e)}},19974:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},50344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(19974);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},22150:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},63234:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return u},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",u="__DEFAULT__"},58741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let n=r(62599)._(r(20107)),o=n.default.createContext(null);function a(e){let t=(0,n.useContext)(o);t&&t(e)}},20339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},31858:(e,t,r)=>{"use strict";var n=r(20107);function o(e){var t="https://react.dev/errors/"+e;if(1{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(71272)},25642:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(31858)},70446:(e,t,r)=>{"use strict";var n=r(25642),o={stream:!0},a=new Map;function u(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function l(){}function i(e){for(var t=e[1],n=[],o=0;os||35===s||114===s||120===s?(c=s,s=3,l++):(c=0,s=3);continue;case 2:44===(y=u[l++])?s=4:f=f<<4|(96u.length&&(y=-1)}var g=u.byteOffset+l;if(-1{"use strict";e.exports=r(70446)},18971:(e,t,r)=>{"use strict";e.exports=r(17925)},32905:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in n={},t)"key"!==a&&(n[a]=t[a]);else n=t;return{$$typeof:r,type:e,key:o,ref:void 0!==(t=n.ref)?t:null,props:n}}t.Fragment=n,t.jsx=o,t.jsxs=o},29914:(e,t,r)=>{"use strict";var n=r(86170),o=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,_={};function v(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||g}function m(){}function P(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var E=P.prototype=new m;E.constructor=P,b(E,v.prototype),E.isPureReactComponent=!0;var O=Array.isArray,R={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function j(e,t,r,n,a,u){return{$$typeof:o,type:e,key:t,ref:void 0!==(r=u.ref)?r:null,props:u}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function M(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function x(){}function A(e,t,r){if(null==e)return e;var n=[],u=0;return!function e(t,r,n,u,l){var i,s,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case a:d=!0;break;case h:return e((d=t._init)(t._payload),r,n,u,l)}}if(d)return l=l(t),d=""===u?"."+M(t,0):u,O(l)?(n="",null!=d&&(n=d.replace(T,"$&/")+"/"),e(l,r,n,"",function(e){return e})):null!=l&&(w(l)&&(i=l,s=n+(null==l.key||t&&t.key===l.key?"":(""+l.key).replace(T,"$&/")+"/")+d,l=j(i.type,s,void 0,void 0,void 0,i.props)),r.push(l)),1;d=0;var p=""===u?".":u+":";if(O(t))for(var g=0;g{"use strict";e.exports=r(29914)},20475:(e,t,r)=>{"use strict";e.exports=r(32905)},81939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(35838).createAsyncLocalStorage)()},35838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return l}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let o="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new n}function u(e){return o?o.bind(e):n.bind(e)}function l(){return o?o.snapshot():function(e,...t){return e(...t)}}},70876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(35838).createAsyncLocalStorage)()},17707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(35838).createAsyncLocalStorage)()},32465:(e,t,r)=>{"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>n})},44911:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>o});var n=0;function o(e){return"__private_"+n+++"_"+e}},67342:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},62599:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6035-940015763a1a8b5a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6035-940015763a1a8b5a.js new file mode 100644 index 0000000..1b40268 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6035-940015763a1a8b5a.js @@ -0,0 +1,2 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6035],{45139:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},15129:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},86170:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(18259)},95376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(76905),o=r(53317);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9545:(e,t)=>{"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(n)for(let e in n)"children"!==e&&o.setAttribute(e,n[e]);r?(o.src=r,o.onload=()=>e(),o.onerror=t):n&&(o.innerHTML=n.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"15.1.2",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getAppBuildId:function(){return o},setAppBuildId:function(){return n}});let r="";function n(e){r=e}function o(){return r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return l},useServerActionDispatcher:function(){return u}});let n=r(20107),o=r(23093),a=null;function u(e){a=(0,n.useCallback)(t=>{(0,n.startTransition)(()=>{e({...t,type:o.ACTION_SERVER_ACTION})})},[e])}async function l(e,t){let r=a;if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findSourceMapURL",{enumerable:!0,get:function(){return r}});let r=void 0;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88583:(e,t,r)=>{"use strict";let n,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return N}});let a=r(67342),u=r(62599),l=r(20475);r(15129),r(165),r(80099);let i=a._(r(52661)),s=u._(r(20107)),c=r(18971),f=r(17315),d=r(43477),p=r(42347),h=r(53051),y=r(98387),g=r(52345),b=a._(r(78311)),_=r(85010);r(32618);let v=r(28567),m=document,P=new TextEncoder,E=!1,O=!1,R=null;function S(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(P.encode(e[1])):n.push(e[1])}else if(2===e[0])R=e[1];else if(3===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");let r=atob(e[1]),a=new Uint8Array(r.length);for(var t=0;t{t.enqueue("string"==typeof e?P.encode(e):e)}),E&&!O)&&(null===t.desiredSize||t.desiredSize<0?t.error(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection.")):t.close(),O=!0,n=void 0),o=t}}),M=(0,c.createFromReadableStream)(T,{callServer:h.callServer,findSourceMapURL:y.findSourceMapURL}),x=new Promise((e,t)=>{M.then(t=>{(0,v.setAppBuildId)(t.b),e((0,g.createMutableActionQueue)((0,_.createInitialRouterState)({initialFlightData:t.f,initialCanonicalUrlParts:t.c,initialParallelRoutes:new Map,location:window.location,couldBeIntercepted:t.i,postponed:t.s,prerendered:t.S})))},e=>t(e))});function A(){let e=(0,s.use)(M),t=(0,s.use)(x);return(0,l.jsx)(b.default,{actionQueue:t,globalErrorComponentAndStyles:e.G,assetPrefix:e.p})}let C=s.default.StrictMode;function k(e){let{children:t}=e;return t}let D={onRecoverableError:d.onRecoverableError,onCaughtError:p.onCaughtError,onUncaughtError:p.onUncaughtError};function N(){let e=(0,l.jsx)(C,{children:(0,l.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,l.jsx)(k,{children:(0,l.jsx)(A,{})})})}),t=window.__next_root_layout_missing_tags,r=!!(null==t?void 0:t.length);"__next_error__"===document.documentElement.id||r?i.default.createRoot(m,D).render(e):s.default.startTransition(()=>i.default.hydrateRoot(m,e,{...D,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(79100),(0,r(9545).appBootstrap)(()=>{let{hydrate:e}=r(88583);r(78311),r(24900),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(45139);let n=r(80724);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assignLocation",{enumerable:!0,get:function(){return o}});let n=r(95376);function o(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return u}});let n=r(20107),o=r(25642),a="next-route-announcer";function u(e){let{tree:t}=e,[r,u]=(0,n.useState)(null);(0,n.useEffect)(()=>(u(function(){var e;let t=document.getElementsByName(a)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(a);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(a)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[l,i]=(0,n.useState)(""),s=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==s.current&&s.current!==e&&i(e),s.current=e},[t]),r?(0,o.createPortal)(l,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90604:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HEADER:function(){return n},FLIGHT_HEADERS:function(){return c},NEXT_DID_POSTPONE_HEADER:function(){return p},NEXT_HMR_REFRESH_HEADER:function(){return l},NEXT_IS_PRERENDER_HEADER:function(){return h},NEXT_ROUTER_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STALE_TIME_HEADER:function(){return d},NEXT_ROUTER_STATE_TREE_HEADER:function(){return o},NEXT_RSC_UNION_QUERY:function(){return f},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_HEADER:function(){return r}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",a="Next-Router-Prefetch",u="Next-Router-Segment-Prefetch",l="Next-HMR-Refresh",i="Next-Url",s="text/x-component",c=[r,o,a,l,u],f="_rsc",d="x-nextjs-stale-time",p="x-nextjs-postponed",h="x-nextjs-prerender";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createEmptyCacheNode:function(){return M},createPrefetchURL:function(){return w},default:function(){return k}});let n=r(62599),o=r(20475),a=n._(r(20107)),u=r(32618),l=r(23093),i=r(94084),s=r(14839),c=r(59702),f=r(25339),d=r(80691),p=r(95376),h=r(95249),y=r(50157),g=r(27642),b=r(99153),_=r(52721),v=r(33099),m=r(4709),P=r(51079),E=r(53051);r(728);let O=r(2372),R=r(93475),S={};function j(e){return e.origin!==window.location.origin}function w(e){let t;if((0,d.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,p.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}return j(t)?null:t}function T(e){let{appRouterState:t}=e;return(0,a.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:n}=t,o={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(o,"",n)):window.history.replaceState(o,"",n)},[t]),null}function M(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null}}function x(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function A(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,a.useDeferredValue)(r,o)}function C(e){let t,{actionQueue:r,assetPrefix:n}=e,[i,f]=(0,c.useReducer)(r),{canonicalUrl:d}=(0,c.useUnwrapState)(i),{searchParams:P,pathname:M}=(0,a.useMemo)(()=>{let e=new URL(d,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,v.hasBasePath)(e.pathname)?(0,_.removeBasePath)(e.pathname):e.pathname}},[d]),C=(0,a.useCallback)(e=>{let{previousTree:t,serverResponse:r}=e;(0,a.startTransition)(()=>{f({type:l.ACTION_SERVER_PATCH,previousTree:t,serverResponse:r})})},[f]),k=(0,a.useCallback)((e,t,r)=>{let n=new URL((0,p.addBasePath)(e),location.href);return f({type:l.ACTION_NAVIGATE,url:n,isExternalUrl:j(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t,allowAliasing:!0})},[f]);(0,E.useServerActionDispatcher)(f);let D=(0,a.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let r=w(e);null!==r&&(0,a.startTransition)(()=>{var e;f({type:l.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:l.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,a.startTransition)(()=>{var r;k(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,a.startTransition)(()=>{var r;k(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,a.startTransition)(()=>{f({type:l.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Error("hmrRefresh can only be used in development mode. Please use refresh instead.")}}),[r,f,k]);(0,a.useEffect)(()=>{window.next&&(window.next.router=D)},[D]),(0,a.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(S.pendingMpaPath=void 0,f({type:l.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[f]),(0,a.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,R.isRedirectError)(t)){e.preventDefault();let r=(0,O.getURLFromRedirectError)(t);(0,O.getRedirectTypeFromError)(t)===R.RedirectType.push?D.push(r,{}):D.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[D]);let{pushRef:N}=(0,c.useUnwrapState)(i);if(N.mpaNavigation){if(S.pendingMpaPath!==d){let e=window.location;N.pendingPush?e.assign(d):e.replace(d),S.pendingMpaPath=d}(0,a.use)(b.unresolvedThenable)}(0,a.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{var t;let r=window.location.href,n=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,a.startTransition)(()=>{f({type:l.ACTION_RESTORE,url:new URL(null!=e?e:r,r),tree:n})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=x(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=x(e),o&&r(o)),t(e,n,o)};let n=e=>{if(e.state){if(!e.state.__NA){window.location.reload();return}(0,a.startTransition)(()=>{f({type:l.ACTION_RESTORE,url:new URL(window.location.href),tree:e.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[f]);let{cache:I,tree:L,nextUrl:H,focusAndScrollRef:F}=(0,c.useUnwrapState)(i),$=(0,a.useMemo)(()=>(0,g.findHeadInCache)(I,L[1]),[I,L]),B=(0,a.useMemo)(()=>(0,m.getSelectedParams)(L),[L]),W=(0,a.useMemo)(()=>({childNodes:I.parallelRoutes,tree:L,url:d,loading:I.loading}),[I.parallelRoutes,L,d,I.loading]),G=(0,a.useMemo)(()=>({changeByServerResponse:C,tree:L,focusAndScrollRef:F,nextUrl:H}),[C,L,F,H]);if(null!==$){let[e,r]=$;t=(0,o.jsx)(A,{headCacheNode:e},r)}else t=null;let K=(0,o.jsxs)(y.RedirectBoundary,{children:[t,I.rsc,(0,o.jsx)(h.AppRouterAnnouncer,{tree:L})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T,{appRouterState:(0,c.useUnwrapState)(i)}),(0,o.jsx)(U,{}),(0,o.jsx)(s.PathParamsContext.Provider,{value:B,children:(0,o.jsx)(s.PathnameContext.Provider,{value:M,children:(0,o.jsx)(s.SearchParamsContext.Provider,{value:P,children:(0,o.jsx)(u.GlobalLayoutRouterContext.Provider,{value:G,children:(0,o.jsx)(u.AppRouterContext.Provider,{value:D,children:(0,o.jsx)(u.LayoutRouterContext.Provider,{value:W,children:K})})})})})})]})}function k(e){let{actionQueue:t,globalErrorComponentAndStyles:[r,n],assetPrefix:a}=e;return(0,P.useNavFailureHandler)(),(0,o.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:n,children:(0,o.jsx)(C,{actionQueue:t,assetPrefix:a})})}let D=new Set,N=new Set;function U(){let[,e]=a.default.useState(0),t=D.size;return(0,a.useEffect)(()=>{let r=()=>e(e=>e+1);return N.add(r),t!==D.size&&r(),()=>{N.delete(r)}},[t,e]),[...D].map((e,t)=>(0,o.jsx)("link",{rel:"stylesheet",href:""+e,precedence:"next"},t))}globalThis._N_E_STYLE_LOAD=function(e){let t=D.size;return D.add(e),D.size!==t&&N.forEach(e=>e()),Promise.resolve()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return a}});let n=r(13007),o=r(32381);function a(e){let t=o.workAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new n.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return a}});let n=r(20475),o=r(83156);function a(e){let{Component:t,searchParams:a,params:u,promises:l}=e;if("undefined"==typeof window){let e,l;let{workAsyncStorage:i}=r(32381),s=i.getStore();if(!s)throw new o.InvariantError("Expected workStore to exist when handling searchParams in a client Page.");let{createSearchParamsFromClient:c}=r(78394);e=c(a,s);let{createParamsFromClient:f}=r(90215);return l=f(u,s),(0,n.jsx)(t,{params:l,searchParams:e})}{let{createRenderSearchParamsFromClient:e}=r(36756),o=e(a),{createRenderParamsFromClient:l}=r(98369),i=l(u);return(0,n.jsx)(t,{params:i,searchParams:o})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientSegmentRoot",{enumerable:!0,get:function(){return a}});let n=r(20475),o=r(83156);function a(e){let{Component:t,slots:a,params:u,promise:l}=e;if("undefined"==typeof window){let e;let{workAsyncStorage:l}=r(32381),i=l.getStore();if(!i)throw new o.InvariantError("Expected workStore to exist when handling params in a client segment such as a Layout or Template.");let{createParamsFromClient:s}=r(90215);return e=s(u,i),(0,n.jsx)(t,{...a,params:e})}{let{createRenderParamsFromClient:e}=r(98369),o=e(u);return(0,n.jsx)(t,{...a,params:o})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let n=r(67342),o=r(20475),a=n._(r(20107)),u=r(40228),l=r(69211);r(51079);let i=r(32381),s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function c(e){let{error:t}=e,r=i.workAsyncStorage.getStore();if((null==r?void 0:r.isRevalidate)||(null==r?void 0:r.isStaticGeneration))throw console.error(t),t;return null}class f extends a.default.Component{static getDerivedStateFromError(e){if((0,l.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(c,{error:t}),(0,o.jsx)("div",{style:s.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:s.text,children:"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."}),r?(0,o.jsx)("p",{style:s.text,children:"Digest: "+r}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:a}=e,l=(0,u.useUntrackedPathname)();return t?(0,o.jsx)(f,{pathname:l,errorComponent:t,errorStyles:r,errorScripts:n,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82029:(e,t,r)=>{"use strict";function n(){throw Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled.")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(20797).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(75880).handleGlobalErrors)(),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{originConsoleError:function(){return o},patchConsoleError:function(){return a}}),r(91194);let n=r(69211);r(75880);let o=window.console.error;function a(){"undefined"!=typeof window&&(window.console.error=function(){let e;for(var t=arguments.length,r=Array(t),a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(75394).patchConsoleError)(),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return c}});let n=r(62599),o=r(20475),a=n._(r(20107)),u=r(40228),l=r(20797);r(20339);let i=r(32618);class s extends a.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,l.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,l.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:a}=this.state,u={[l.HTTPAccessErrorStatus.NOT_FOUND]:e,[l.HTTPAccessErrorStatus.FORBIDDEN]:t,[l.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(a){let i=a===l.HTTPAccessErrorStatus.NOT_FOUND&&e,s=a===l.HTTPAccessErrorStatus.FORBIDDEN&&t,c=a===l.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return i||s||c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,u[a]]}):n}return n}constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}}function c(e){let{notFound:t,forbidden:r,unauthorized:n,children:l}=e,c=(0,u.useUntrackedPathname)(),f=(0,a.useContext)(i.MissingSlotContext);return t||r||n?(0,o.jsx)(s,{pathname:c,notFound:t,forbidden:r,unauthorized:n,missingSlots:f,children:l}):(0,o.jsx)(o.Fragment,{children:l})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return l},getAccessFallbackHTTPStatus:function(){return u},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function u(e){return Number(e.digest.split(";")[1])}function l(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getDefaultHydrationErrorMessage:function(){return i},getHydrationErrorStackInfo:function(){return f},isHydrationError:function(){return s},isReactHydrationErrorMessage:function(){return c}});let n=r(67342)._(r(91194)),o=/hydration failed|while hydrating|content does not match|did not match|HTML didn't match/i,a="Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used",u=[a,"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:"],l="https://react.dev/link/hydration-mismatch",i=()=>a;function s(e){return(0,n.default)(e)&&o.test(e.message)}function c(e){return u.some(t=>e.startsWith(t))}function f(e){if(!c(e=e.replace(/^Error: /,"")))return{message:null};let t=e.indexOf("\n"),[r,n]=(e=e.slice(t+1).trim()).split(""+l),o=r.trim();if(!n||!(n.length>1))return{message:o,link:l,stack:n};{let e=[],t=[];return n.split("\n").forEach(r=>{""!==r.trim()&&(r.trim().startsWith("at ")?e.push(r):t.push(r))}),{message:o,link:l,diff:t.join("\n"),stack:e.join("\n")}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(20797),o=r(93475);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return j}});let n=r(67342),o=r(62599),a=r(20475),u=o._(r(20107)),l=n._(r(25642)),i=r(32618),s=r(90883),c=r(99153),f=r(25339),d=r(82210),p=r(65200),h=r(50157),y=r(30896),g=r(25967),b=r(62228),_=r(51653),v=l.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,m=["bottom","height","left","right","top","width","x","y"];function P(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class E extends u.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,d.matchSegment)(t,e[r]))))return;let r=null,n=e.hashFragment;if(n&&(r=function(e){var t;return"top"===e?document.body:null!=(t=document.getElementById(e))?t:document.getElementsByName(e)[0]}(n)),!r&&(r="undefined"==typeof window?null:(0,v.findDOMNode)(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return m.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(n){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!P(r,t)&&(e.scrollTop=0,P(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function O(e){let{segmentPath:t,children:r}=e,n=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,a.jsx)(E,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function R(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:o,tree:l,cacheKey:f}=e,p=(0,u.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{changeByServerResponse:h,tree:y}=p,g=n.get(f);if(void 0===g){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};g=e,n.set(f,e)}let b=null!==g.prefetchRsc?g.prefetchRsc:g.rsc,v=(0,u.useDeferredValue)(g.rsc,b),m="object"==typeof v&&null!==v&&"function"==typeof v.then?(0,u.use)(v):v;if(!m){let e=g.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,a=2===t.length;if((0,d.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(a){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...o],y),n=(0,_.hasInterceptionRouteInCurrentTree)(y);g.lazyData=e=(0,s.fetchServerResponse)(new URL(r,location.origin),{flightRouterState:t,nextUrl:n?p.nextUrl:null}).then(e=>((0,u.startTransition)(()=>{h({previousTree:y,serverResponse:e})}),e))}(0,u.use)(c.unresolvedThenable)}return(0,a.jsx)(i.LayoutRouterContext.Provider,{value:{tree:l[1][t],childNodes:g.parallelRoutes,url:r,loading:g.loading},children:m})}function S(e){let t,{loading:r,children:n}=e;if(t="object"==typeof r&&null!==r&&"function"==typeof r.then?(0,u.use)(r):r){let e=t[0],r=t[1],o=t[2];return(0,a.jsx)(u.Suspense,{fallback:(0,a.jsxs)(a.Fragment,{children:[r,o,e]}),children:n})}return(0,a.jsx)(a.Fragment,{children:n})}function j(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:o,errorScripts:l,templateStyles:s,templateScripts:c,template:d,notFound:p,forbidden:_,unauthorized:v}=e,m=(0,u.useContext)(i.LayoutRouterContext);if(!m)throw Error("invariant expected layout router to be mounted");let{childNodes:P,tree:E,url:j,loading:w}=m,T=P.get(t);T||(T=new Map,P.set(t,T));let M=E[1][t][0],x=(0,g.getSegmentValue)(M),A=[M];return(0,a.jsx)(a.Fragment,{children:A.map(e=>{let u=(0,g.getSegmentValue)(e),m=(0,b.createRouterCacheKey)(e);return(0,a.jsxs)(i.TemplateContext.Provider,{value:(0,a.jsx)(O,{segmentPath:r,children:(0,a.jsx)(f.ErrorBoundary,{errorComponent:n,errorStyles:o,errorScripts:l,children:(0,a.jsx)(S,{loading:w,children:(0,a.jsx)(y.HTTPAccessFallbackBoundary,{notFound:p,forbidden:_,unauthorized:v,children:(0,a.jsx)(h.RedirectBoundary,{children:(0,a.jsx)(R,{parallelRouterKey:t,url:j,tree:E,childNodes:T,segmentPath:r,cacheKey:m,isActive:x===u})})})})})}),children:[s,c,d]},(0,b.createRouterCacheKey)(e,!0))})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{canSegmentBeOverridden:function(){return a},matchSegment:function(){return o}});let n=r(88870),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],a=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleHardNavError:function(){return o},useNavFailureHandler:function(){return a}}),r(20107);let n=r(94084);function o(e){return!!e&&"undefined"!=typeof window&&!!window.next.__pendingUrl&&(0,n.createHrefFromUrl)(new URL(window.location.href))!==(0,n.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function a(){}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUntrackedPathname",{enumerable:!0,get:function(){return a}});let n=r(20107),o=r(14839);function a(){return!function(){if("undefined"==typeof window){let{workAsyncStorage:e}=r(32381),t=e.getStore();if(!t)return!1;let{fallbackRouteParams:n}=t;return!!n&&0!==n.size}return!1}()?(0,n.useContext)(o.PathnameContext):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return i.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return i.unauthorized},unstable_rethrow:function(){return i.unstable_rethrow},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return p},useSearchParams:function(){return f},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let n=r(20107),o=r(32618),a=r(14839),u=r(25967),l=r(63234),i=r(10901),s=r(48002),c=r(58741);function f(){let e=(0,n.useContext)(a.SearchParamsContext),t=(0,n.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=r(15407);e("useSearchParams()")}return t}function d(){return(0,s.useDynamicRouteParams)("usePathname()"),(0,n.useContext)(a.PathnameContext)}function p(){let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,s.useDynamicRouteParams)("useParams()"),(0,n.useContext)(a.PathParamsContext)}function y(e){void 0===e&&(e="children"),(0,s.useDynamicRouteParams)("useSelectedLayoutSegments()");let t=(0,n.useContext)(o.LayoutRouterContext);return t?function e(t,r,n,o){let a;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)a=t[1][r];else{var i;let e=t[1];a=null!=(i=e.children)?i:Object.values(e)[0]}if(!a)return o;let s=a[0],c=(0,u.getSegmentValue)(s);return!c||c.startsWith(l.PAGE_SEGMENT_KEY)?o:(o.push(c),e(a,r,!1,o))}(t.tree,e):null}function g(e){void 0===e&&(e="children"),(0,s.useDynamicRouteParams)("useSelectedLayoutSegment()");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===l.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c},RedirectType:function(){return o.RedirectType},forbidden:function(){return u.forbidden},notFound:function(){return a.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return l.unauthorized},unstable_rethrow:function(){return i.unstable_rethrow}});let n=r(2372),o=r(93475),a=r(64216),u=r(82029),l=r(45050),i=r(91946);class s extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class c extends URLSearchParams{append(){throw new s}delete(){throw new s}set(){throw new s}sort(){throw new s}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64216:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return o}});let n=""+r(20797).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function o(){let e=Error(n);throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return s}});let n=r(32465),o=r(44911);var a=o._("_maxConcurrency"),u=o._("_runningCount"),l=o._("_queue"),i=o._("_processNext");class s{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),a=async()=>{try{n._(this,u)[u]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,u)[u]--,n._(this,i)[i]()}};return n._(this,l)[l].push({promiseFn:o,task:a}),n._(this,i)[i](),o}bump(e){let t=n._(this,l)[l].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,l)[l].splice(t,1)[0];n._(this,l)[l].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:c}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),n._(this,a)[a]=e,n._(this,u)[u]=0,n._(this,l)[l]=[]}}function c(e){if(void 0===e&&(e=!1),(n._(this,u)[u]0){var t;null==(t=n._(this,l)[l].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"attachHydrationErrorState",{enumerable:!0,get:function(){return a}});let n=r(43008),o=r(71823);function a(e){if((0,n.isHydrationError)(e)&&!e.message.includes("https://nextjs.org/docs/messages/react-hydration-error")){let t=(0,o.getReactHydrationDiffSegments)(e.message),r={};t?r={...e.details,...o.hydrationErrorState,warning:o.hydrationErrorState.warning||[(0,n.getDefaultHydrationErrorMessage)()],notes:t[0],reactOutputComponentDiff:t[1]}:o.hydrationErrorState.warning&&(r={...e.details,...o.hydrationErrorState}),e.details=r}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createUnhandledError:function(){return o},getUnhandledErrorType:function(){return u},isUnhandledConsoleOrRejection:function(){return a}});let r=Symbol.for("next.console.error.digest"),n=Symbol.for("next.console.error.type");function o(e){let t="string"==typeof e?Error(e):e;return t[r]="NEXT_UNHANDLED_ERROR",t[n]="string"==typeof e?"string":"error",t}let a=e=>e&&"NEXT_UNHANDLED_ERROR"===e[r],u=e=>e[n];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"enqueueConsecutiveDedupedError",{enumerable:!0,get:function(){return o}});let n=r(43008);function o(e,t){let r=(0,n.isHydrationError)(t),o=r?e[0]:e[e.length-1];o&&o.stack===t.stack||(r?e.unshift(t):e.push(t))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getHydrationWarningType:function(){return l},getReactHydrationDiffSegments:function(){return d},hydrationErrorState:function(){return o},storeHydrationErrorStateFromConsoleArgs:function(){return p}});let n=r(43008),o={},a=new Set(["Warning: In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s","Warning: In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s","Warning: In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.","Warning: In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.","Warning: Expected server HTML to contain a matching <%s> in <%s>.%s","Warning: Did not expect server HTML to contain a <%s> in <%s>.%s"]),u=new Set(['Warning: Expected server HTML to contain a matching text node for "%s" in <%s>.%s','Warning: Did not expect server HTML to contain the text node "%s" in <%s>.%s']),l=e=>{if("string"!=typeof e)return"text";let t=e.startsWith("Warning: ")?e:"Warning: "+e;return i(t)?"tag":c(t)?"text-in-tag":"text"},i=e=>a.has(e),s=e=>'Warning: Text content did not match. Server: "%s" Client: "%s"%s'===e,c=e=>u.has(e),f=e=>{if("string"!=typeof e)return!1;let t=e.startsWith("Warning: ")?e:"Warning: "+e;return i(t)||c(t)||s(t)},d=e=>{if(e){let{message:t,diff:r}=(0,n.getHydrationErrorStackInfo)(e);if(t)return[t,r]}};function p(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getReactStitchedError",{enumerable:!0,get:function(){return s}});let n=r(67342),o=n._(r(20107)),a=n._(r(91194)),u="react-stack-bottom-frame",l=RegExp("(at "+u+" )|("+u+"\\@)"),i=o.default.captureOwnerStack?o.default.captureOwnerStack:()=>"";function s(e){if("function"!=typeof o.default.captureOwnerStack)return e;let t=(0,a.default)(e),r=t&&e.stack||"",n=t?e.message:"",u=r.split("\n"),s=u.findIndex(e=>l.test(e)),c=s>=0?u.slice(0,s).join("\n"):r,f=Error(n);return Object.assign(f,e),f.stack=c,function(e){let t=e.stack||"",r=i();r&&!1===t.endsWith(r)&&(t+=r,e.stack=t)}(f),f}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleClientError:function(){return _},handleGlobalErrors:function(){return E},useErrorHandler:function(){return v}});let n=r(67342),o=r(20107),a=r(98846),u=r(69211),l=r(71823),i=r(13828),s=n._(r(91194)),c=r(10559),f=r(35002),d=r(3132),p=globalThis.queueMicrotask||(e=>Promise.resolve().then(e)),h=[],y=[],g=[],b=[];function _(e,t,r){let n;if(void 0===r&&(r=!1),e&&(0,s.default)(e))n=r?(0,c.createUnhandledError)(e):e;else{let e=(0,i.formatConsoleArgs)(t);n=(0,c.createUnhandledError)(e)}for(let e of(n=(0,d.getReactStitchedError)(n),(0,l.storeHydrationErrorStateFromConsoleArgs)(...t),(0,a.attachHydrationErrorState)(n),(0,f.enqueueConsecutiveDedupedError)(h,n),y))p(()=>{e(n)})}function v(e,t){(0,o.useEffect)(()=>(h.forEach(e),g.forEach(t),y.push(e),b.push(t),()=>{y.splice(y.indexOf(e),1),b.splice(b.indexOf(t),1)}),[e,t])}function m(e){if((0,u.isNextRouterError)(e.error))return e.preventDefault(),!1;_(e.error,[])}function P(e){let t=null==e?void 0:e.reason;if((0,u.isNextRouterError)(t)){e.preventDefault();return}let r=t;for(let e of(r&&!(0,s.default)(r)&&(r=(0,c.createUnhandledError)(r+"")),g.push(r),b))e(r)}function E(){if("undefined"!=typeof window){try{Error.stackTraceLimit=50}catch(e){}window.addEventListener("error",m),window.addEventListener("unhandledrejection",P)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectBoundary:function(){return f},RedirectErrorBoundary:function(){return c}});let n=r(62599),o=r(20475),a=n._(r(20107)),u=r(65834),l=r(2372),i=r(93475);function s(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,u.useRouter)();return(0,a.useEffect)(()=>{a.default.startTransition(()=>{n===i.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class c extends a.default.Component{static getDerivedStateFromError(e){if((0,i.isRedirectError)(e))return{redirect:(0,l.getURLFromRedirectError)(e),redirectType:(0,l.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(s,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function f(e){let{children:t}=e,r=(0,u.useRouter)();return(0,o.jsx)(c,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93475:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return u}});let n=r(63865),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,u=t.slice(2,-2).join(";"),l=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof u&&!isNaN(l)&&l in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return c},getURLFromRedirectError:function(){return s},permanentRedirect:function(){return i},redirect:function(){return l}});let n=r(55006),o=r(63865),a=r(93475);function u(e,t,r){void 0===r&&(r=o.RedirectStatusCode.TemporaryRedirect);let n=Error(a.REDIRECT_ERROR_CODE);return n.digest=a.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",n}function l(e,t){let r=n.actionAsyncStorage.getStore();throw u(e,t||((null==r?void 0:r.isAction)?a.RedirectType.push:a.RedirectType.replace),o.RedirectStatusCode.TemporaryRedirect)}function i(e,t){throw void 0===t&&(t=a.RedirectType.replace),u(e,t,o.RedirectStatusCode.PermanentRedirect)}function s(e){return(0,a.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function c(e){if(!(0,a.isRedirectError)(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function f(e){if(!(0,a.isRedirectError)(e))throw Error("Not a redirect error");return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(62599),o=r(20475),a=n._(r(20107)),u=r(32618);function l(){let e=(0,a.useContext)(u.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addSearchParamsToPageSegments:function(){return f},handleAliasedPrefetchEntry:function(){return c}});let n=r(63234),o=r(78311),a=r(66645),u=r(94084),l=r(62228),i=r(74077),s=r(53080);function c(e,t,r,c){let d,p=e.tree,h=e.cache,y=(0,u.createHrefFromUrl)(r);for(let e of t){if(!function e(t){if(!t)return!1;let r=t[2];if(t[3])return!0;for(let t in r)if(e(r[t]))return!0;return!1}(e.seedData))continue;let t=e.tree;t=f(t,Object.fromEntries(r.searchParams));let{seedData:u,isRootRender:s,pathToSegment:c}=e,g=["",...c];t=f(t,Object.fromEntries(r.searchParams));let b=(0,a.applyRouterStatePatchToTree)(g,p,t,y),_=(0,o.createEmptyCacheNode)();if(s&&u){let e=u[1],r=u[3];_.loading=r,_.rsc=e,function e(t,r,o,a){if(0!==Object.keys(o[1]).length)for(let u in o[1]){let i;let s=o[1][u],c=s[0],f=(0,l.createRouterCacheKey)(c),d=null!==a&&void 0!==a[2][u]?a[2][u]:null;if(null!==d){let e=d[1],t=d[3];i={lazyData:null,rsc:c.includes(n.PAGE_SEGMENT_KEY)?null:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else i={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let p=t.parallelRoutes.get(u);p?p.set(f,i):t.parallelRoutes.set(u,new Map([[f,i]])),e(i,r,s,d)}}(_,h,t,u)}else _.rsc=h.rsc,_.prefetchRsc=h.prefetchRsc,_.loading=h.loading,_.parallelRoutes=new Map(h.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(_,h,e);b&&(p=b,h=_,d=!0)}return!!d&&(c.patchedTree=p,c.cache=h,c.canonicalUrl=y,c.hashFragment=r.hash,(0,s.handleMutable)(e,c))}function f(e,t){let[r,o,...a]=e;if(r.includes(n.PAGE_SEGMENT_KEY))return[(0,n.addSearchParamsIfPageSegment)(r,t),o,...a];let u={};for(let[e,r]of Object.entries(o))u[e]=f(r,t);return[r,u,...a]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return a}});let n=r(14375),o=r(74077);function a(e,t,r,a){let{tree:u,seedData:l,head:i,isRootRender:s}=r;if(null===l)return!1;if(s){let r=l[1],o=l[3];t.loading=o,t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,u,l,i,a)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,r,a);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,n,i){let s;let[c,f,d,p,h]=r;if(1===t.length){let e=l(r,n);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,i),e}let[y,g]=t;if(!(0,a.matchSegment)(y,c))return null;if(2===t.length)s=l(f[g],n);else if(null===(s=e((0,o.getNextFlightSegmentPath)(t),f[g],n,i)))return null;let b=[t[0],{...f,[g]:s},d,p];return h&&(b[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(b,i),b}}});let n=r(63234),o=r(76504),a=r(82210),u=r(9747);function l(e,t){let[r,o]=e,[u,i]=t;if(u===n.DEFAULT_SEGMENT_KEY&&r!==n.DEFAULT_SEGMENT_KEY)return e;if((0,a.matchSegment)(r,u)){let t={};for(let e in o)void 0!==i[e]?t[e]=l(o[e],i[e]):t[e]=o[e];for(let e in i)t[e]||(t[e]=i[e]);let n=[r,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,r,a){let u=a.length<=2,[l,i]=a,s=(0,o.createRouterCacheKey)(i),c=r.parallelRoutes.get(l),f=t.parallelRoutes.get(l);f&&f!==c||(f=new Map(c),t.parallelRoutes.set(l,f));let d=null==c?void 0:c.get(s),p=f.get(s);if(u){p&&p.lazyData&&p!==d||f.set(s,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}if(!p||!d){p||f.set(s,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes),loading:p.loading},f.set(s,p)),e(p,d,(0,n.getNextFlightSegmentPath)(a))}}});let n=r(76504),o=r(62228);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{computeChangedPath:function(){return c},extractPathFromFlightRouterState:function(){return s},getSelectedParams:function(){return function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],a=Array.isArray(t),u=a?t[1]:t;!u||u.startsWith(o.PAGE_SEGMENT_KEY)||(a&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):a&&(r[t[0]]=t[1]),r=e(n,r))}return r}}});let n=r(92688),o=r(63234),a=r(82210),u=e=>"/"===e[0]?e.slice(1):e,l=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=u(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function s(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let a=[l(r)],u=null!=(t=e[1])?t:{},c=u.children?s(u.children):void 0;if(void 0!==c)a.push(c);else for(let[e,t]of Object.entries(u)){if("children"===e)continue;let r=s(t);void 0!==r&&a.push(r)}return i(a)}function c(e,t){let r=function e(t,r){let[o,u]=t,[i,c]=r,f=l(o),d=l(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,a.matchSegment)(o,i)){var p;return null!=(p=s(r))?p:""}for(let t in u)if(c[t]){let r=e(u[t],c[t]);if(null!==r)return l(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94084:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let n=r(94084),o=r(14375),a=r(4709),u=r(26461),l=r(23093),i=r(9747),s=r(76504);function c(e){var t,r;let{initialFlightData:c,initialCanonicalUrlParts:f,initialParallelRoutes:d,location:p,couldBeIntercepted:h,postponed:y,prerendered:g}=e,b=f.join("/"),_=(0,s.getFlightDataPartsFromPath)(c[0]),{tree:v,seedData:m,head:P}=_,E=!p,O=null==m?void 0:m[1],R=null!=(t=null==m?void 0:m[3])?t:null,S={lazyData:null,rsc:O,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:E?new Map:d,loading:R},j=p?(0,n.createHrefFromUrl)(p):b;(0,i.addRefreshMarkerToActiveParallelSegments)(v,j);let w=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(S,void 0,v,m,P);let T={tree:v,cache:S,prefetchCache:w,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:j,nextUrl:null!=(r=(0,a.extractPathFromFlightRouterState)(v)||(null==p?void 0:p.pathname))?r:null};if(p){let e=new URL(""+p.pathname+p.search,p.origin);(0,u.createSeededPrefetchCacheEntry)({url:e,data:{flightData:[_],canonicalUrl:void 0,couldBeIntercepted:!!h,prerendered:g,postponed:y,staleTime:-1},tree:T.tree,prefetchCache:T.prefetchCache,nextUrl:T.nextUrl,kind:g?l.PrefetchKind.FULL:l.PrefetchKind.AUTO})}return T}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(63234);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90883:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createFetch:function(){return h},createFromNextReadableStream:function(){return y},fetchServerResponse:function(){return p},urlToUrlWithoutFlightMarker:function(){return f}});let n=r(90604),o=r(53051),a=r(98387),u=r(23093),l=r(76249),i=r(76504),s=r(28567),{createFromReadableStream:c}=r(18971);function f(e){let t=new URL(e,location.origin);if(t.searchParams.delete(n.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function d(e){return{flightData:f(e).toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}async function p(e,t){let{flightRouterState:r,nextUrl:o,prefetchKind:a}=t,l={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(r))};a===u.PrefetchKind.AUTO&&(l[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),o&&(l[n.NEXT_URL]=o);try{var c;let t=a?a===u.PrefetchKind.TEMPORARY?"high":"low":"auto",r=await h(e,l,t),o=f(r.url),p=r.redirected?o:void 0,g=r.headers.get("content-type")||"",b=!!(null==(c=r.headers.get("vary"))?void 0:c.includes(n.NEXT_URL)),_=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER),v=r.headers.get(n.NEXT_ROUTER_STALE_TIME_HEADER),m=null!==v?parseInt(v,10):-1,P=g.startsWith(n.RSC_CONTENT_TYPE_HEADER);if(P||(P=g.startsWith("text/plain")),!P||!r.ok||!r.body)return e.hash&&(o.hash=e.hash),d(o.toString());let E=_?function(e){let t=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:r,value:n}=await t.read();if(!r){e.enqueue(n);continue}return}}})}(r.body):r.body,O=await y(E);if((0,s.getAppBuildId)()!==O.b)return d(r.url);return{flightData:(0,i.normalizeFlightData)(O.f),canonicalUrl:p,couldBeIntercepted:b,prerendered:O.S,postponed:_,staleTime:m}}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),{flightData:e.toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}}function h(e,t,r){let o=new URL(e);o.pathname.endsWith("/")?o.pathname+="index.txt":o.pathname+=".txt";let a=(0,l.hexHash)([t[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",t[n.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]||"0",t[n.NEXT_ROUTER_STATE_TREE_HEADER],t[n.NEXT_URL]].join(","));return o.searchParams.set(n.NEXT_RSC_UNION_QUERY,a),fetch(o,{credentials:"same-origin",headers:t,priority:r||void 0})}function y(e){return c(e,{callServer:o.callServer,findSourceMapURL:a.findSourceMapURL})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return s}});let n=r(69431),o=r(14375),a=r(62228),u=r(63234);function l(e,t,r,l,i){let{segmentPath:s,seedData:c,tree:f,head:d}=r,p=e,h=t;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,a,u,l,i){if(0===Object.keys(a[1]).length){t.head=l;return}for(let s in a[1]){let c;let f=a[1][s],d=f[0],p=(0,n.createRouterCacheKey)(d),h=null!==u&&void 0!==u[2][s]?u[2][s]:null;if(r){let n=r.parallelRoutes.get(s);if(n){let r;let a=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,u=new Map(n),c=u.get(p);r=null!==h?{lazyData:null,rsc:h[1],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==c?void 0:c.parallelRoutes)}:a&&c?{lazyData:c.lazyData,rsc:c.rsc,prefetchRsc:c.prefetchRsc,head:c.head,prefetchHead:c.prefetchHead,parallelRoutes:new Map(c.parallelRoutes),loading:c.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==c?void 0:c.parallelRoutes),loading:null},u.set(p,r),e(r,c,f,h||null,l,i),t.parallelRoutes.set(s,u);continue}}if(null!==h){let e=h[1],t=h[3];c={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else c={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let y=t.parallelRoutes.get(s);y?y.set(p,c):t.parallelRoutes.set(s,new Map([[p,c]])),e(c,void 0,f,h,l,i)}}}});let n=r(62228),o=r(23093);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return a}});let n=r(4709);function o(e){return void 0!==e}function a(e,t){var r,a;let u=null==(r=t.shouldScroll)||r,l=e.nextUrl;if(o(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?l=r:l||(l=e.canonicalUrl)}return{canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!u&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:t.onlyHashChange||!1,hashFragment:u?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:u?null!=(a=null==t?void 0:t.scrollableSegments)?a:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:l}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14610:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let n=r(48323);function o(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,a){let u=a.length<=2,[l,i]=a,s=(0,n.createRouterCacheKey)(i),c=r.parallelRoutes.get(l);if(!c)return;let f=t.parallelRoutes.get(l);if(f&&f!==c||(f=new Map(c),t.parallelRoutes.set(l,f)),u){f.delete(s);return}let d=c.get(s),p=f.get(s);p&&d&&(p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes)},f.set(s,p)),e(p,d,(0,o.getNextFlightSegmentPath)(a)))}}});let n=r(62228),o=r(76504);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let n=r(62228);function o(e,t,r){for(let o in r[1]){let a=r[1][o][0],u=(0,n.createRouterCacheKey)(a),l=t.parallelRoutes.get(o);if(l){let t=new Map(l);t.delete(u),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68425:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],o=r[0];if(Array.isArray(n)&&Array.isArray(o)){if(n[0]!==o[0]||n[2]!==o[2])return!0}else if(n!==o)return!0;if(t[4])return!r[4];if(r[4])return!0;let a=Object.values(t[1])[0],u=Object.values(r[1])[0];return!a||!u||e(a,u)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{abortTask:function(){return s},listenForDynamicRequest:function(){return i},updateCacheNodeOnNavigation:function(){return function e(t,r,l,i,s,c){let f=r[1],d=l[1],p=null!==i?i[2]:null,h=t.parallelRoutes,y=new Map(h),g={},b=null,_=!1;for(let t in d){let r;let l=d[t],i=f[t],v=h.get(t),m=null!==p?p[t]:null,P=l[0],E=(0,a.createRouterCacheKey)(P),O=void 0!==i?i[0]:void 0,R=void 0!==v?v.get(E):void 0;if(null!==(r=P===n.DEFAULT_SEGMENT_KEY?void 0!==i?{route:i,node:null,needsDynamicRequest:!1,children:null}:u(l,void 0!==m?m:null,s,c):void 0!==O&&(0,o.matchSegment)(P,O)&&void 0!==R&&void 0!==i?e(R,i,l,m,s,c):u(l,void 0!==m?m:null,s,c))){null===b&&(b=new Map),b.set(t,r);let e=r.node;if(null!==e){let r=new Map(v);r.set(E,e),y.set(t,r)}r.needsDynamicRequest&&(_=!0),g[t]=r.route}else g[t]=l}if(null===b)return null;let v={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y};return{route:function(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}(l,g),node:v,needsDynamicRequest:_,children:b}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],o=t.parallelRoutes,u=new Map(o);for(let t in n){let r=n[t],l=r[0],i=(0,a.createRouterCacheKey)(l),s=o.get(t);if(void 0!==s){let n=s.get(i);if(void 0!==n){let o=e(n,r),a=new Map(s);a.set(i,o),u.set(t,a)}}}let l=t.rsc,i=d(l)&&"pending"===l.status;return{lazyData:null,rsc:l,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:t.loading,parallelRoutes:u}}}});let n=r(63234),o=r(82210),a=r(62228);function u(e,t,r,n){if(null===t)return l(e,null,r,n);let o=e[1],i=t[4],s=0===Object.keys(o).length;if(i||n&&s)return l(e,t,r,n);let c=t[2],f=new Map,d=new Map,p=!1;for(let e in o){let t=o[e],l=null!==c?c[e]:null,i=t[0],s=(0,a.createRouterCacheKey)(i),h=u(t,l,r,n);f.set(e,h),h.needsDynamicRequest&&(p=!0);let y=h.node;if(null!==y){let t=new Map;t.set(s,y),d.set(e,t)}}return{route:e,node:{lazyData:null,rsc:t[1],prefetchRsc:null,head:s?r:null,prefetchHead:null,loading:t[3],parallelRoutes:d},needsDynamicRequest:p,children:f}}function l(e,t,r,n){return{route:e,node:function e(t,r,n,o){let u=t[1],l=null!==r?r[2]:null,i=new Map;for(let t in u){let r=u[t],s=null!==l?l[t]:null,c=r[0],f=(0,a.createRouterCacheKey)(c),d=e(r,void 0===s?null:s,n,o),p=new Map;p.set(f,d),i.set(t,p)}let s=0===i.size,c=null!==r?r[1]:null,f=null!==r?r[3]:null;return{lazyData:null,parallelRoutes:i,prefetchRsc:void 0!==c?c:null,prefetchHead:s?n:null,loading:void 0!==f?f:null,rsc:p(),head:s?p():null}}(e,t,r,n),needsDynamicRequest:!0,children:null}}function i(e,t){t.then(t=>{let{flightData:r}=t;if("string"!=typeof r){for(let t of r){let{segmentPath:r,tree:n,seedData:u,head:l}=t;u&&function(e,t,r,n,u){let l=e;for(let e=0;e{s(e,t)})}function s(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)c(e.route,r,t);else for(let e of n.values())s(e,t);e.needsDynamicRequest=!1}function c(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],u=o.get(e);if(void 0===u)continue;let l=t[0],i=(0,a.createRouterCacheKey)(l),s=u.get(i);void 0!==s&&c(t,s,r)}let u=t.rsc;d(u)&&(null===r?u.resolve(null):u.reject(r));let l=t.head;d(l)&&l.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=f,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createSeededPrefetchCacheEntry:function(){return s},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let n=r(90883),o=r(23093),a=r(50239);function u(e,t,r){let n=e.pathname;return(t&&(n+=e.search),r)?""+r+"%"+n:n}function l(e,t,r){return u(e,t===o.PrefetchKind.FULL,r)}function i(e){let{url:t,nextUrl:r,tree:n,prefetchCache:a,kind:l,allowAliasing:i=!0}=e,s=function(e,t,r,n,a){for(let l of(void 0===t&&(t=o.PrefetchKind.TEMPORARY),[r,null])){let r=u(e,!0,l),i=u(e,!1,l),s=e.search?r:i,c=n.get(s);if(c&&a){if(c.url.pathname===e.pathname&&c.url.search!==e.search)return{...c,aliased:!0};return c}let f=n.get(i);if(a&&e.search&&t!==o.PrefetchKind.FULL&&f&&!f.key.includes("%"))return{...f,aliased:!0}}if(t!==o.PrefetchKind.FULL&&a){for(let t of n.values())if(t.url.pathname===e.pathname&&!t.key.includes("%"))return{...t,aliased:!0}}}(t,l,r,a,i);return s?(s.status=h(s),s.kind!==o.PrefetchKind.FULL&&l===o.PrefetchKind.FULL&&s.data.then(e=>{if(!(Array.isArray(e.flightData)&&e.flightData.some(e=>e.isRootRender&&null!==e.seedData)))return c({tree:n,url:t,nextUrl:r,prefetchCache:a,kind:null!=l?l:o.PrefetchKind.TEMPORARY})}),l&&s.kind===o.PrefetchKind.TEMPORARY&&(s.kind=l),s):c({tree:n,url:t,nextUrl:r,prefetchCache:a,kind:l||o.PrefetchKind.TEMPORARY})}function s(e){let{nextUrl:t,tree:r,prefetchCache:n,url:a,data:u,kind:i}=e,s=u.couldBeIntercepted?l(a,i,t):l(a,i),c={treeAtTimeOfPrefetch:r,data:Promise.resolve(u),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:-1,key:s,status:o.PrefetchCacheEntryStatus.fresh,url:a};return n.set(s,c),c}function c(e){let{url:t,kind:r,tree:u,nextUrl:i,prefetchCache:s}=e,c=l(t,r),f=a.prefetchQueue.enqueue(()=>(0,n.fetchServerResponse)(t,{flightRouterState:u,nextUrl:i,prefetchKind:r}).then(e=>{let r;if(e.couldBeIntercepted&&(r=function(e){let{url:t,nextUrl:r,prefetchCache:n,existingCacheKey:o}=e,a=n.get(o);if(!a)return;let u=l(t,a.kind,r);return n.set(u,{...a,key:u}),n.delete(o),u}({url:t,existingCacheKey:c,nextUrl:i,prefetchCache:s})),e.prerendered){let t=s.get(null!=r?r:c);t&&(t.kind=o.PrefetchKind.FULL,-1!==e.staleTime&&(t.staleTime=e.staleTime))}return e})),d={treeAtTimeOfPrefetch:u,data:f,kind:r,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:c,status:o.PrefetchCacheEntryStatus.fresh,url:t};return s.set(c,d),d}function f(e){for(let[t,r]of e)h(r)===o.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("0"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:r,lastUsedTime:n,staleTime:a}=e;return -1!==a?Date.now(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(62228);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];for(let a in r){let[u,l]=r[a],i=t.parallelRoutes.get(a);if(!i)continue;let s=(0,n.createRouterCacheKey)(u),c=i.get(s);if(!c)continue;let f=e(c,l,o+"/"+s);if(f)return f}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25967:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e(t){let[r,o]=t;if(Array.isArray(r)&&("di"===r[2]||"ci"===r[2])||"string"==typeof r&&(0,n.isInterceptionRouteAppPath)(r))return!0;if(o){for(let t in o)if(e(o[t]))return!0}return!1}}});let n=r(92688);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmrRefreshReducer",{enumerable:!0,get:function(){return n}}),r(90883),r(94084),r(66645),r(68425),r(48323),r(53080),r(99687),r(78311),r(14610),r(51653);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleExternalUrl:function(){return v},navigateReducer:function(){return function e(t,r){let{url:P,isExternalUrl:E,navigateType:O,shouldScroll:R,allowAliasing:S}=r,j={},{hash:w}=P,T=(0,o.createHrefFromUrl)(P),M="push"===O;if((0,g.prunePrefetchCache)(t.prefetchCache),j.preserveCustomHistoryState=!1,j.pendingPush=M,E)return v(t,j,P.toString(),M);if(document.getElementById("__next-page-redirect"))return v(t,j,T,M);let x=(0,g.getOrCreatePrefetchCacheEntry)({url:P,nextUrl:t.nextUrl,tree:t.tree,prefetchCache:t.prefetchCache,allowAliasing:S}),{treeAtTimeOfPrefetch:A,data:C}=x;return d.prefetchQueue.bump(C),C.then(d=>{let{flightData:g,canonicalUrl:E,postponed:O}=d,S=!1;if(x.lastUsedTime||(x.lastUsedTime=Date.now(),S=!0),"string"==typeof g)return v(t,j,g,M);let C=E?(0,o.createHrefFromUrl)(E):T;if(w&&t.canonicalUrl.split("#",1)[0]===C.split("#",1)[0])return j.onlyHashChange=!0,j.canonicalUrl=C,j.shouldScroll=R,j.hashFragment=w,j.scrollableSegments=[],(0,c.handleMutable)(t,j);if(x.aliased){let n=(0,_.handleAliasedPrefetchEntry)(t,g,P,j);return!1===n?e(t,{...r,allowAliasing:!1}):n}let k=t.tree,D=t.cache,N=[];for(let e of g){let{pathToSegment:r,seedData:o,head:c,isHeadPartial:d,isRootRender:g}=e,_=e.tree,E=["",...r],R=(0,u.applyRouterStatePatchToTree)(E,k,_,T);if(null===R&&(R=(0,u.applyRouterStatePatchToTree)(E,A,_,T)),null!==R){if((0,i.isNavigatingToNewRootLayout)(k,R))return v(t,j,T,M);if(o&&g&&O){let e=(0,y.updateCacheNodeOnNavigation)(D,k,_,o,c,d);if(null!==e){R=e.route;let r=e.node;if(null!==r&&(j.cache=r),e.needsDynamicRequest){let r=(0,n.fetchServerResponse)(P,{flightRouterState:k,nextUrl:t.nextUrl});(0,y.listenForDynamicRequest)(e,r)}}else R=_}else{let t=(0,p.createEmptyCacheNode)(),n=!1;x.status!==s.PrefetchCacheEntryStatus.stale||S?n=(0,f.applyFlightData)(D,t,e,x):(n=function(e,t,r,n){let o=!1;for(let a of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,b.clearCacheNodeDataForSegmentPath)(e,t,a),o=!0;return o}(t,D,r,_),x.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(E,k)?(t.rsc=D.rsc,t.prefetchRsc=D.prefetchRsc,(0,a.invalidateCacheBelowFlightSegmentPath)(t,D,r),j.cache=t):n&&(j.cache=t,D=t)}for(let e of(k=R,m(_))){let t=[...r,...e];t[t.length-1]!==h.DEFAULT_SEGMENT_KEY&&N.push(t)}}}return j.patchedTree=k,j.canonicalUrl=C,j.scrollableSegments=N,j.hashFragment=w,j.shouldScroll=R,(0,c.handleMutable)(t,j)},()=>t)}}});let n=r(90883),o=r(94084),a=r(70971),u=r(66645),l=r(60636),i=r(68425),s=r(23093),c=r(53080),f=r(99687),d=r(50239),p=r(78311),h=r(63234),y=r(68079),g=r(26461),b=r(51851),_=r(97296);function v(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,c.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}r(36053),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return a},prefetchReducer:function(){return u}});let n=r(21339),o=r(26461),a=new n.PromiseQueue(5),u=function(e,t){(0,o.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;return(0,o.getOrCreatePrefetchCacheEntry)({url:r,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,allowAliasing:!0}),e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let n=r(90883),o=r(94084),a=r(66645),u=r(68425),l=r(48323),i=r(53080),s=r(14375),c=r(78311),f=r(14610),d=r(51653),p=r(9747);function h(e,t){let{origin:r}=t,h={},y=e.canonicalUrl,g=e.tree;h.preserveCustomHistoryState=!1;let b=(0,c.createEmptyCacheNode)(),_=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return b.lazyData=(0,n.fetchServerResponse)(new URL(y,r),{flightRouterState:[g[0],g[1],g[2],"refetch"],nextUrl:_?e.nextUrl:null}),b.lazyData.then(async r=>{let{flightData:n,canonicalUrl:c}=r;if("string"==typeof n)return(0,l.handleExternalUrl)(e,h,n,e.pushRef.pendingPush);for(let r of(b.lazyData=null,n)){let{tree:n,seedData:i,head:d,isRootRender:v}=r;if(!v)return console.log("REFRESH FAILED"),e;let m=(0,a.applyRouterStatePatchToTree)([""],g,n,e.canonicalUrl);if(null===m)return(0,f.handleSegmentMismatch)(e,t,n);if((0,u.isNavigatingToNewRootLayout)(g,m))return(0,l.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let P=c?(0,o.createHrefFromUrl)(c):void 0;if(c&&(h.canonicalUrl=P),null!==i){let e=i[1],t=i[3];b.rsc=e,b.prefetchRsc=null,b.loading=t,(0,s.fillLazyItemsTillLeafWithHead)(b,void 0,n,i,d),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:m,updatedCache:b,includeNextUrl:_,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=b,h.patchedTree=m,g=m}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return a}});let n=r(94084),o=r(4709);function a(e,t){var r;let{url:a,tree:u}=t,l=(0,n.createHrefFromUrl)(a),i=u||e.tree,s=e.cache;return{canonicalUrl:l,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:s,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(i))?r:a.pathname}}r(68079),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return M}});let n=r(53051),o=r(98387),a=r(90604),u=r(23093),l=r(45982),i=r(94084),s=r(48323),c=r(66645),f=r(68425),d=r(53080),p=r(14375),h=r(78311),y=r(51653),g=r(14610),b=r(9747),_=r(76504),v=r(2372),m=r(93475),P=r(26461),E=r(52721),O=r(33099),R=r(56797),{createFromFetch:S,createTemporaryReferenceSet:j,encodeReply:w}=r(18971);async function T(e,t,r){let u,i,{actionId:s,actionArgs:c}=r,f=j(),d=(0,R.extractInfoFromServerReferenceId)(s),p="use-cache"===d.type?(0,R.omitUnusedArgs)(c,d):c,h=await w(p,{temporaryReferences:f}),y=await fetch("",{method:"POST",headers:{Accept:a.RSC_CONTENT_TYPE_HEADER,[a.ACTION_HEADER]:s,[a.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[a.NEXT_URL]:t}:{}},body:h}),g=y.headers.get("x-action-redirect"),[b,v]=(null==g?void 0:g.split(";"))||[];switch(v){case"push":u=m.RedirectType.push;break;case"replace":u=m.RedirectType.replace;break;default:u=void 0}let P=!!y.headers.get(a.NEXT_IS_PRERENDER_HEADER);try{let e=JSON.parse(y.headers.get("x-action-revalidated")||"[[],0,0]");i={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){i={paths:[],tag:!1,cookie:!1}}let E=b?(0,l.assignLocation)(b,new URL(e.canonicalUrl,window.location.href)):void 0,O=y.headers.get("content-type");if(null==O?void 0:O.startsWith(a.RSC_CONTENT_TYPE_HEADER)){let e=await S(Promise.resolve(y),{callServer:n.callServer,findSourceMapURL:o.findSourceMapURL,temporaryReferences:f});return b?{actionFlightData:(0,_.normalizeFlightData)(e.f),redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}:{actionResult:e.a,actionFlightData:(0,_.normalizeFlightData)(e.f),redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}}if(y.status>=400)throw Error("text/plain"===O?await y.text():"An unexpected response was received from the server.");return{redirectLocation:E,redirectType:u,revalidatedParts:i,isPrerender:P}}function M(e,t){let{resolve:r,reject:n}=t,o={},a=e.tree;o.preserveCustomHistoryState=!1;let l=e.nextUrl&&(0,y.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return T(e,l,t).then(async y=>{let _,{actionResult:R,actionFlightData:S,redirectLocation:j,redirectType:w,isPrerender:T,revalidatedParts:M}=y;if(j&&(w===m.RedirectType.replace?(e.pushRef.pendingPush=!1,o.pendingPush=!1):(e.pushRef.pendingPush=!0,o.pendingPush=!0),_=(0,i.createHrefFromUrl)(j,!1),o.canonicalUrl=_),!S)return(r(R),j)?(0,s.handleExternalUrl)(e,o,j.href,e.pushRef.pendingPush):e;if("string"==typeof S)return r(R),(0,s.handleExternalUrl)(e,o,S,e.pushRef.pendingPush);let x=M.paths.length>0||M.tag||M.cookie;for(let n of S){let{tree:u,seedData:i,head:d,isRootRender:y}=n;if(!y)return console.log("SERVER ACTION APPLY FAILED"),r(R),e;let v=(0,c.applyRouterStatePatchToTree)([""],a,u,_||e.canonicalUrl);if(null===v)return r(R),(0,g.handleSegmentMismatch)(e,t,u);if((0,f.isNavigatingToNewRootLayout)(a,v))return r(R),(0,s.handleExternalUrl)(e,o,_||e.canonicalUrl,e.pushRef.pendingPush);if(null!==i){let t=i[1],r=(0,h.createEmptyCacheNode)();r.rsc=t,r.prefetchRsc=null,r.loading=i[3],(0,p.fillLazyItemsTillLeafWithHead)(r,void 0,u,i,d),o.cache=r,o.prefetchCache=new Map,x&&await (0,b.refreshInactiveParallelSegments)({state:e,updatedTree:v,updatedCache:r,includeNextUrl:!!l,canonicalUrl:o.canonicalUrl||e.canonicalUrl})}o.patchedTree=v,a=v}return j&&_?(x||((0,P.createSeededPrefetchCacheEntry)({url:j,data:{flightData:S,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:e.tree,prefetchCache:e.prefetchCache,nextUrl:e.nextUrl,kind:T?u.PrefetchKind.FULL:u.PrefetchKind.AUTO}),o.prefetchCache=e.prefetchCache),n((0,v.getRedirectError)((0,O.hasBasePath)(_)?(0,E.removeBasePath)(_):_,w||m.RedirectType.push))):r(R),(0,d.handleMutable)(e,o)},t=>(n(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return c}});let n=r(94084),o=r(66645),a=r(68425),u=r(48323),l=r(99687),i=r(53080),s=r(78311);function c(e,t){let{serverResponse:{flightData:r,canonicalUrl:c}}=t,f={};if(f.preserveCustomHistoryState=!1,"string"==typeof r)return(0,u.handleExternalUrl)(e,f,r,e.pushRef.pendingPush);let d=e.tree,p=e.cache;for(let t of r){let{segmentPath:r,tree:i}=t,h=(0,o.applyRouterStatePatchToTree)(["",...r],d,i,e.canonicalUrl);if(null===h)return e;if((0,a.isNavigatingToNewRootLayout)(d,h))return(0,u.handleExternalUrl)(e,f,e.canonicalUrl,e.pushRef.pendingPush);let y=c?(0,n.createHrefFromUrl)(c):void 0;y&&(f.canonicalUrl=y);let g=(0,s.createEmptyCacheNode)();(0,l.applyFlightData)(p,g,t),f.patchedTree=h,f.cache=g,p=g,d=h}return(0,i.handleMutable)(e,f)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56797:(e,t)=>{"use strict";function r(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function n(e,t){let r=Array(e.length);for(let n=0;n=6&&t.hasRestArgs)&&(r[n]=e[n]);return r}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractInfoFromServerReferenceId:function(){return r},omitUnusedArgs:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,r){let[n,o,,u]=t;for(let l in n.includes(a.PAGE_SEGMENT_KEY)&&"refresh"!==u&&(t[2]=r,t[3]="refresh"),o)e(o[l],r)}},refreshInactiveParallelSegments:function(){return u}});let n=r(99687),o=r(90883),a=r(63234);async function u(e){let t=new Set;await l({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function l(e){let{state:t,updatedTree:r,updatedCache:a,includeNextUrl:u,fetchedSegments:i,rootTree:s=r,canonicalUrl:c}=e,[,f,d,p]=r,h=[];if(d&&d!==c&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),{flightRouterState:[s[0],s[1],s[2],"refetch"],nextUrl:u?t.nextUrl:null}).then(e=>{let{flightData:t}=e;if("string"!=typeof t)for(let e of t)(0,n.applyFlightData)(a,a,e)});h.push(e)}for(let e in f){let r=l({state:t,updatedTree:f[e],updatedCache:a,includeNextUrl:u,fetchedSegments:i,rootTree:s,canonicalUrl:c});h.push(r)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HMR_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return n},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return o},ACTION_SERVER_ACTION:function(){return i},ACTION_SERVER_PATCH:function(){return a},PrefetchCacheEntryStatus:function(){return c},PrefetchKind:function(){return s}});let r="refresh",n="navigate",o="restore",a="server-patch",u="prefetch",l="hmr-refresh",i="server-action";var s=function(e){return e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary",e}({}),c=function(e){return e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(23093),o=r(48323),a=r(77064),u=r(80336),l=r(36745),i=r(50239),s=r(1383),c=r(24474),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,a.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,u.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,l.refreshReducer)(e,t);case n.ACTION_HMR_REFRESH:return(0,s.hmrRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,c.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[a,u]=r,[l,i]=t;return(0,o.matchSegment)(l,a)?!(t.length<=2)&&e((0,n.getNextFlightSegmentPath)(t),u[i]):!!Array.isArray(l)}}});let n=r(76504),o=r(82210);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60769:(e,t)=>{"use strict";function r(e,t){let r=new URL(e);return r.search="",{href:r.href,nextUrl:t}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createCacheKey",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{EntryStatus:function(){return c},readExactRouteCacheEntry:function(){return y},readRouteCacheEntry:function(){return g},readSegmentCacheEntry:function(){return b},requestRouteCacheEntryFromCache:function(){return v},requestSegmentEntryFromCache:function(){return m},waitForSegmentCacheEntry:function(){return _}});let n=r(90604),o=r(90883),a=r(73096),u=r(28567),l=r(94084),i=r(60928),s=r(63952);var c=function(e){return e[e.Pending=0]="Pending",e[e.Rejected=1]="Rejected",e[e.Fulfilled=2]="Fulfilled",e}({});let f=(0,i.createTupleMap)(),d=(0,s.createLRU)(0xa00000,function(e){let t=e.keypath;null!==t&&(e.keypath=null,E(e),f.delete(t))}),p=new Map,h=(0,s.createLRU)(0x3200000,function(e){let t=e.key;null!==t&&(e.key=null,P(e),p.delete(t))});function y(e,t,r){let n=null===r?[t]:[t,r],o=f.get(n);if(null!==o){if(o.staleAt>e)return d.put(o),o;E(o),f.delete(n),d.delete(o)}return null}function g(e,t){let r=y(e,t.href,null);return null===r||r.couldBeIntercepted?y(e,t.href,t.nextUrl):r}function b(e,t){let r=p.get(t);if(void 0!==r){if(r.staleAt>e)return h.put(r),r;P(r),p.delete(t),h.delete(r)}return null}function _(e){let t=e.promise;return null===t&&(t=e.promise=function(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}()),t.promise}function v(e,t){let r=t.key,n=y(e,r.href,null);if(null!==n&&!n.couldBeIntercepted)return n;let o=y(e,r.href,r.nextUrl);if(null!==o)return o;let u={canonicalUrl:null,status:0,blockedTasks:null,tree:null,head:null,isHeadPartial:!0,staleAt:e+6e4,couldBeIntercepted:!0,keypath:null,next:null,prev:null,size:0};(0,a.spawnPrefetchSubtask)(S(u,t));let l=null===r.nextUrl?[r.href]:[r.href,r.nextUrl];return f.set(l,u),u.keypath=l,d.put(u),u}function m(e,t,r,n,o){let u=b(e,n);if(null!==u)return u;let l={status:0,rsc:null,loading:null,staleAt:r.staleAt,isPartial:!0,promise:null,key:null,next:null,prev:null,size:0};return(0,a.spawnPrefetchSubtask)(j(r,l,t.key,n,o)),p.set(n,l),l.key=n,h.put(l),l}function P(e){0===e.status&&null!==e.promise&&(e.promise.resolve(null),e.promise=null)}function E(e){let t=e.blockedTasks;if(null!==t){for(let e of t)(0,a.pingPrefetchTask)(e);e.blockedTasks=null}}function O(e,t){e.status=1,e.staleAt=t,E(e)}function R(e,t){e.status=1,e.staleAt=t,null!==e.promise&&(e.promise.resolve(null),e.promise=null)}async function S(e,t){let r=t.key,a=r.href,i=r.nextUrl;try{var s,c,p,h;let t=await w(a,"/_tree",i);if(!t||!t.ok||204===t.status||!t.body){O(e,Date.now()+1e4);return}let r=T(t.body,d,e),y=await (0,o.createFromNextReadableStream)(r);if(y.buildId!==(0,u.getAppBuildId)()){O(e,Date.now()+1e4);return}let g=t.redirected?(0,l.createHrefFromUrl)((0,o.urlToUrlWithoutFlightMarker)(t.url)):a,b=t.headers.get("vary"),_=null!==b&&b.includes(n.NEXT_URL);if(s=y.tree,c=y.head,p=y.isHeadPartial,h=Date.now()+y.staleTime,e.status=2,e.tree=s,e.head=c,e.isHeadPartial=p,e.staleAt=h,e.couldBeIntercepted=_,e.canonicalUrl=g,E(e),!_&&null!==i){let t=[a,i];if(f.get(t)===e){f.delete(t);let r=[a];f.set(r,e),e.keypath=r}}}catch(t){O(e,Date.now()+1e4)}}async function j(e,t,r,n,a){let l=r.href;try{var i,s,c,f;let d=await w(l,""===a?n:n+"."+a,r.nextUrl);if(!d||!d.ok||204===d.status||!d.body){R(t,Date.now()+1e4);return}let p=T(d.body,h,t),y=await (0,o.createFromNextReadableStream)(p);if(y.buildId!==(0,u.getAppBuildId)()){R(t,Date.now()+1e4);return}i=y.rsc,s=y.loading,c=e.staleAt,f=y.isPartial,t.status=2,t.rsc=i,t.loading=s,t.staleAt=c,t.isPartial=f,null!==t.promise&&(t.promise.resolve(t),t.promise=null)}catch(e){R(t,Date.now()+1e4)}}async function w(e,t,r){let u={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_PREFETCH_HEADER]:"1",[n.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:t};null!==r&&(u[n.NEXT_URL]=r);let l=(0,o.createFetch)(new URL(e),u,"low");(0,a.trackPrefetchRequestBandwidth)(l);let i=await l,s=i.headers.get("content-type"),c=s&&s.startsWith(n.RSC_CONTENT_TYPE_HEADER);return i.ok&&c?i:null}function T(e,t,r){let n=0,o=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:a,value:u}=await o.read();if(!a){e.enqueue(u),n+=u.byteLength,t.updateSize(r,n);continue}return}}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63952:(e,t)=>{"use strict";function r(e,t){let r=null,o=!1,a=0;function u(e){let t=e.next,n=e.prev;null!==t&&null!==n&&(a-=e.size,e.next=null,e.prev=null,r===e?r=t===r?null:t:(n.next=t,t.prev=n))}function l(){o||a<=e||(o=!0,n(i))}function i(){o=!1;let n=.9*e;for(;a>n&&null!==r;){let e=r.prev;u(e),t(e)}}return{put:function(e){if(r===e)return;let t=e.prev,n=e.next;if(null===n||null===t?(a+=e.size,l()):(t.next=n,n.prev=t),null===r)e.prev=e,e.next=e;else{let t=r.prev;e.prev=t,t.next=e,e.next=r,r.prev=e}r=e},delete:u,updateSize:function(e,t){if(null===e.next)return;let r=e.size;e.size=t,a=a-r+t,l()}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createLRU",{enumerable:!0,get:function(){return r}});let n="function"==typeof requestIdleCallback?requestIdleCallback:e=>setTimeout(e,0);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NavigationResultTag:function(){return i},navigate:function(){return c}});let n=r(90883),o=r(68079),a=r(94084),u=r(35763),l=r(60769);var i=function(e){return e[e.MPA=0]="MPA",e[e.Success=1]="Success",e[e.NoOp=2]="NoOp",e[e.Async=3]="Async",e}({});let s={tag:2,data:null};function c(e,t,r,a){let i=Date.now(),c=(0,l.createCacheKey)(e.href,a),p=(0,u.readRouteCacheEntry)(i,c);if(null!==p&&p.status===u.EntryStatus.Fulfilled){let l=function e(t,r){let n={},o={},a=r.slots;if(null!==a)for(let r in a){let u=e(t,a[r]);n[r]=u.flightRouterState,o[r]=u.seedData}let l=null,i=null,s=!0,c=(0,u.readSegmentCacheEntry)(t,r.path);if(null!==c)switch(c.status){case u.EntryStatus.Fulfilled:l=c.rsc,i=c.loading,s=c.isPartial;break;case u.EntryStatus.Pending:{let e=(0,u.waitForSegmentCacheEntry)(c);l=e.then(e=>null!==e?e.rsc:null),i=e.then(e=>null!==e?e.loading:null),s=!0}case u.EntryStatus.Rejected:}let f=r.extra,d=f[0];return{flightRouterState:[d,n,null,null,f[1]],seedData:[d,l,o,i,s]}}(i,p.tree),c=l.flightRouterState,d=l.seedData;return function(e,t,r,a,u,l,i,c,d){let p=(0,o.updateCacheNodeOnNavigation)(r,a,u,l,i,c);if(null!==p){if(p.needsDynamicRequest){let r=(0,n.fetchServerResponse)(e,{flightRouterState:a,nextUrl:t});(0,o.listenForDynamicRequest)(p,r)}return f(p,r,d)}return s}(e,a,t,r,c,d,p.head,p.isHeadPartial,p.canonicalUrl)}return{tag:3,data:d(e,a,t,r)}}function f(e,t,r){let n=e.node;return{tag:1,data:{flightRouterState:e.route,cacheNode:null!==n?n:t,canonicalUrl:r}}}async function d(e,t,r,u){let l=(0,n.fetchServerResponse)(e,{flightRouterState:u,nextUrl:t}),{flightData:i,canonicalUrl:c}=await l;if("string"==typeof i)return{tag:0,data:i};let d=function(e,t){let r=e;for(let{segmentPath:n,tree:o}of t){let t=r!==e;r=function e(t,r,n,o,a){if(a===n.length)return r;let u=n[a],l=t[1],i={};for(let t in l)if(t===u){let u=l[t];i[t]=e(u,r,n,o,a+2)}else i[t]=l[t];if(o)return t[1]=i,t;let s=[t[0],i];return 2 in t&&(s[2]=t[2]),3 in t&&(s[3]=t[3]),4 in t&&(s[4]=t[4]),s}(r,o,n,t,0)}return r}(u,i),p=(0,a.createHrefFromUrl)(c||e),h=(0,o.updateCacheNodeOnNavigation)(r,u,d,null,null,!0);return null!==h?(h.needsDynamicRequest&&(0,o.listenForDynamicRequest)(h,l),f(h,r,p)):s}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prefetch",{enumerable:!0,get:function(){return u}});let n=r(78311),o=r(60769),a=r(73096);function u(e,t){let r=(0,n.createPrefetchURL)(e);if(null===r)return;let u=(0,o.createCacheKey)(r.href,t);(0,a.schedulePrefetchTask)(u)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{pingPrefetchTask:function(){return y},schedulePrefetchTask:function(){return s},spawnPrefetchSubtask:function(){return p},trackPrefetchRequestBandwidth:function(){return f}});let n=r(35763),o="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e})),a=[],u=0,l=0,i=!1;function s(e){_(a,{key:e,sortId:l++,isBlocked:!1,_heapIndex:-1}),c()}function c(){!i&&u<3&&(i=!0,o(g))}function f(e){u++,e.then(h,h)}let d=()=>{};function p(e){e.then(d,d)}function h(){u--,c()}function y(e){e.isBlocked&&(e.isBlocked=!1,_(a,e),c())}function g(){i=!1;let e=Date.now(),t=v(a);for(;null!==t&&u<3;){let r=(0,n.requestRouteCacheEntryFromCache)(e,t);switch(function(e,t,r){switch(r.status){case n.EntryStatus.Pending:{let e=r.blockedTasks;return null===e?r.blockedTasks=new Set([t]):e.add(t),1}case n.EntryStatus.Rejected:return 2;case n.EntryStatus.Fulfilled:{if(!(u<3))return 0;let o=r.tree;return(0,n.requestSegmentEntryFromCache)(e,t,r,o.path,""),function e(t,r,o,a){if(null!==a.slots)for(let l in a.slots){let i=a.slots[l];if(!(u<3))return 0;{let e=i.path,a=i.token;(0,n.requestSegmentEntryFromCache)(t,r,o,e,a)}if(0===e(t,r,o,i))return 0}return 2}(e,t,r,o)}default:return 2}}(e,t,r)){case 0:default:return;case 1:t.isBlocked=!0,m(a),t=v(a);continue;case 2:m(a),t=v(a);continue}}}function b(e,t){return t.sortId-e.sortId}function _(e,t){let r=e.length;e.push(t),t._heapIndex=r,function(e,t,r){let n=r;for(;n>0;){let r=n-1>>>1,o=e[r];if(!(b(o,t)>0))return;e[r]=t,t._heapIndex=r,e[n]=o,o._heapIndex=n,n=r}}(e,t,r)}function v(e){return 0===e.length?null:e[0]}function m(e){if(0===e.length)return null;let t=e[0];t._heapIndex=-1;let r=e.pop();return r!==t&&(e[0]=r,r._heapIndex=0,function(e,t,r){let n=0,o=e.length,a=o>>>1;for(;nb(a,t))ub(l,a)?(e[n]=l,l._heapIndex=n,e[u]=t,t._heapIndex=u,n=u):(e[n]=a,a._heapIndex=n,e[r]=t,t._heapIndex=r,n=r);else{if(!(ub(l,t)))return;e[n]=l,l._heapIndex=n,e[u]=t,t._heapIndex=u,n=u}}}(e,r,0)),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60928:(e,t)=>{"use strict";function r(){let e={parent:null,key:null,hasValue:!1,value:null,map:null},t=null,r=null;function n(n){if(r===n)return t;let o=e;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{StaticGenBailoutError:function(){return n},isStaticGenBailoutError:function(){return o}});let r="NEXT_STATIC_GEN_BAILOUT";class n extends Error{constructor(...e){super(...e),this.code=r}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45050:(e,t,r)=>{"use strict";function n(){throw Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled.")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(20797).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99153:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return r}});let r={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,u.isNextRouterError)(t)||(0,a.isBailoutToCSRError)(t)||(0,n.isDynamicUsageError)(t)||(0,o.isPostpone)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(8195),o=r(76568),a=r(13007),u=r(69211);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useReducer:function(){return u},useUnwrapState:function(){return a}});let n=r(62599)._(r(20107)),o=r(75803);function a(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}function u(e){let[t,r]=n.default.useState(e.state);return[t,(0,n.useCallback)(t=>{e.dispatch(t,r)},[e])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76504:(e,t)=>{"use strict";function r(e){var t;let[r,n,o,a]=e.slice(-4),u=e.slice(0,-4);return{pathToSegment:u.slice(0,-1),segmentPath:u,segment:null!=(t=u[u.length-1])?t:"",tree:r,seedData:n,head:o,isHeadPartial:a,isRootRender:4===e.length}}function n(e){return e.slice(2)}function o(e){return"string"==typeof e?e:e.map(r)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getFlightDataPartsFromPath:function(){return r},getNextFlightSegmentPath:function(){return n},normalizeFlightData:function(){return o}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(50344);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13828:(e,t)=>{"use strict";function r(e,t){switch(typeof e){case"object":if(null===e)return"null";if(Array.isArray(e)){let n="[";if(t<1)for(let o=0;o0?"...":"";return n+"]"}{if(e instanceof Error)return e+"";let n=Object.keys(e),o="{";if(t<1)for(let a=0;a0?"...":"";return o+"}"}case"string":return JSON.stringify(e);default:return String(e)}}function n(e){let t,n;"string"==typeof e[0]?(t=e[0],n=1):(t="",n=0);let o="",a=!1;for(let u=0;u=e.length){o+=l;continue}let i=t[++u];switch(i){case"c":o=a?""+o+"]":"["+o,a=!a,n++;break;case"O":case"o":o+=r(e[n++],0);break;case"d":case"i":o+=parseInt(e[n++],10);break;case"f":o+=parseFloat(e[n++]);break;case"s":o+=String(e[n++]);break;default:o+="%"+i}}for(;n0?" ":"")+r(e[n],0);return o}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatConsoleArgs",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(22150),o=r(19974),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,n.removeTrailingSlash)(t)+r+a:t.endsWith("/")?""+t+r+a:t+"/"+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{onCaughtError:function(){return l},onUncaughtError:function(){return i}}),r(3132),r(75880);let n=r(69211),o=r(13007),a=r(24617),u=r(75394),l=(e,t)=>{(0,o.isBailoutToCSRError)(e)||(0,n.isNextRouterError)(e)||(0,u.originConsoleError)(e)},i=(e,t)=>{(0,o.isBailoutToCSRError)(e)||(0,n.isNextRouterError)(e)||(0,a.reportGlobalError)(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{window.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"onRecoverableError",{enumerable:!0,get:function(){return i}});let n=r(67342),o=r(13007),a=r(24617),u=r(3132),l=n._(r(91194)),i=(e,t)=>{let r=(0,l.default)(e)&&"cause"in e?e.cause:e,n=(0,u.getReactStitchedError)(r);(0,o.isBailoutToCSRError)(r)||(0,a.reportGlobalError)(n)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52721:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(33099),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18259:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var i=[],s=!1,c=-1;function f(){s&&n&&(s=!1,n.length?i=n.concat(i):c=-1,i.length&&d())}function d(){if(!s){var e=l(f);s=!0;for(var t=i.length;t;){for(n=i,i=[];++c1)for(var r=1;r{"use strict";function r(e,t){var r=e.length;for(e.push(t);0>>1,o=e[n];if(0>>1;na(i,r))sa(c,i)?(e[n]=c,e[s]=r,n=s):(e[n]=i,e[l]=r,n=l);else if(sa(c,r))e[n]=c,e[s]=r,n=s;else break}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var u,l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}var c=[],f=[],d=1,p=null,h=3,y=!1,g=!1,b=!1,_="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function P(e){for(var t=n(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,r(c,t);else break;t=n(f)}}function E(e){if(b=!1,P(e),!g){if(null!==n(c))g=!0,A();else{var t=n(f);null!==t&&C(E,t.startTime-e)}}}var O=!1,R=-1,S=5,j=-1;function w(){return!(t.unstable_now()-je&&w());){var l=p.callback;if("function"==typeof l){p.callback=null,h=p.priorityLevel;var i=l(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,P(e),r=!0;break t}p===n(c)&&o(c),P(e)}else o(c);p=n(c)}if(null!==p)r=!0;else{var s=n(f);null!==s&&C(E,s.startTime-e),r=!1}}break e}finally{p=null,h=a,y=!1}r=void 0}}finally{r?u():O=!1}}}if("function"==typeof m)u=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,u=function(){x.postMessage(null)}}else u=function(){_(T,0)};function A(){O||(O=!0,u())}function C(e,r){R=_(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||y||(g=!0,A())},t.unstable_forceFrameRate=function(e){0>e||125u?(e.sortIndex=a,r(f,e),null===n(c)&&e===n(f)&&(b?(v(R),R=-1):b=!0,C(E,a-u))):(e.sortIndex=l,r(c,e),g||y||(g=!0,A())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},87803:(e,t,r)=>{"use strict";e.exports=r(10600)},8195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicUsageError",{enumerable:!0,get:function(){return l}});let n=r(75566),o=r(13007),a=r(69211),u=r(48002),l=e=>(0,n.isDynamicServerError)(e)||(0,o.isBailoutToCSRError)(e)||(0,a.isNextRouterError)(e)||(0,u.isDynamicPostpone)(e)},91194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(27052);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+"")}},99165:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MetadataBoundary:function(){return a},OutletBoundary:function(){return l},ViewportBoundary:function(){return u}});let n=r(91980),o={[n.METADATA_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.VIEWPORT_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.OUTLET_BOUNDARY_NAME]:function(e){let{children:t}=e;return t}},a=o[n.METADATA_BOUNDARY_NAME.slice(0)],u=o[n.VIEWPORT_BOUNDARY_NAME.slice(0)],l=o[n.OUTLET_BOUNDARY_NAME.slice(0)]},91980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{METADATA_BOUNDARY_NAME:function(){return r},OUTLET_BOUNDARY_NAME:function(){return o},VIEWPORT_BOUNDARY_NAME:function(){return n}});let r="__next_metadata_boundary__",n="__next_viewport_boundary__",o="__next_outlet_boundary__"},47314:(e,t,r)=>{"use strict";var n=r(86170);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{atLeastOneTask:function(){return u},scheduleImmediate:function(){return a},scheduleOnNextTick:function(){return o},waitAtLeastOneReactRenderTask:function(){return l}});let o=e=>{Promise.resolve().then(()=>{n.nextTick(e)})},a=e=>{setImmediate(e)};function u(){return new Promise(e=>a(e))}function l(){return new Promise(e=>setImmediate(e))}},55006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});let n=r(81939)},21773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(42904).createAsyncLocalStorage)()},98372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=r(21773)},42904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return l}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let o="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new n}function u(e){return o?o.bind(e):n.bind(e)}function l(){return o?o.snapshot():function(e,...t){return e(...t)}}},48002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Postpone:function(){return O},abortAndThrowOnSynchronousRequestDataAccess:function(){return P},abortOnSynchronousPlatformIOAccess:function(){return v},accessedDynamicData:function(){return A},annotateDynamicAccess:function(){return U},consumeDynamicAccess:function(){return C},createDynamicTrackingState:function(){return f},createDynamicValidationState:function(){return d},createPostponedAbortSignal:function(){return N},formatDynamicAPIAccesses:function(){return k},getFirstDynamicReason:function(){return p},isDynamicPostpone:function(){return j},isPrerenderInterruptedError:function(){return x},markCurrentScopeAsDynamic:function(){return h},postponeWithTracking:function(){return R},throwIfDisallowedDynamic:function(){return W},throwToInterruptStaticGeneration:function(){return g},trackAllowedDynamicAccess:function(){return B},trackDynamicDataInDynamicRender:function(){return b},trackFallbackParamAccessed:function(){return y},trackSynchronousPlatformIOAccessInDev:function(){return m},trackSynchronousRequestDataAccessInDev:function(){return E},useDynamicRouteParams:function(){return I}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(20107)),o=r(75566),a=r(91558),u=r(31322),l=r(32381),i=r(6745),s=r(91980),c="function"==typeof n.default.unstable_postpone;function f(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicExpression:void 0,syncDynamicErrorWithStack:null}}function d(){return{hasSuspendedDynamic:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasSyncDynamicErrors:!1,dynamicErrors:[]}}function p(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function h(e,t,r){if((!t||"cache"!==t.type&&"unstable-cache"!==t.type)&&!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw new a.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(t){if("prerender-ppr"===t.type)R(e.route,r,t.dynamicTracking);else if("prerender-legacy"===t.type){t.revalidate=0;let n=new o.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}}function y(e,t){let r=u.workUnitAsyncStorage.getStore();r&&"prerender-ppr"===r.type&&R(e.route,t,r.dynamicTracking)}function g(e,t,r){let n=new o.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function b(e,t){t&&"cache"!==t.type&&"unstable-cache"!==t.type&&("prerender"===t.type||"prerender-legacy"===t.type)&&(t.revalidate=0)}function _(e,t,r){let n=M(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let o=r.dynamicTracking;o&&o.dynamicAccesses.push({stack:o.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function v(e,t,r,n){let o=n.dynamicTracking;return o&&null===o.syncDynamicErrorWithStack&&(o.syncDynamicExpression=t,o.syncDynamicErrorWithStack=r),_(e,t,n)}function m(e){e.prerenderPhase=!1}function P(e,t,r,n){let o=n.dynamicTracking;throw o&&null===o.syncDynamicErrorWithStack&&(o.syncDynamicExpression=t,o.syncDynamicErrorWithStack=r,!0===n.validating&&(o.syncDynamicLogged=!0)),_(e,t,n),M(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}let E=m;function O({reason:e,route:t}){let r=u.workUnitAsyncStorage.getStore();R(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function R(e,t,r){D(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),n.default.unstable_postpone(S(e,t))}function S(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function j(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&w(e.message)}function w(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===w(S("%%%","^^^")))throw Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js");let T="NEXT_PRERENDER_INTERRUPTED";function M(e){let t=Error(e);return t.digest=T,t}function x(e){return"object"==typeof e&&null!==e&&e.digest===T&&"name"in e&&"message"in e&&e instanceof Error}function A(e){return e.length>0}function C(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function k(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: +${t}`))}function D(){if(!c)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function N(e){D();let t=new AbortController;try{n.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}function U(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function I(e){if("undefined"==typeof window){let t=l.workAsyncStorage.getStore();if(t&&t.isStaticGeneration&&t.fallbackRouteParams&&t.fallbackRouteParams.size>0){let r=u.workUnitAsyncStorage.getStore();r&&("prerender"===r.type?n.default.use((0,i.makeHangingPromise)(r.renderSignal,e)):"prerender-ppr"===r.type?R(t.route,e,r.dynamicTracking):"prerender-legacy"===r.type&&g(e,t,r))}}}let L=/\n\s+at Suspense \(\)/,H=RegExp(`\\n\\s+at ${s.METADATA_BOUNDARY_NAME}[\\n\\s]`),F=RegExp(`\\n\\s+at ${s.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),$=RegExp(`\\n\\s+at ${s.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function B(e,t,r,n,o){if(!$.test(t)){if(H.test(t)){r.hasDynamicMetadata=!0;return}if(F.test(t)){r.hasDynamicViewport=!0;return}if(L.test(t)){r.hasSuspendedDynamic=!0;return}if(n.syncDynamicErrorWithStack||o.syncDynamicErrorWithStack){r.hasSyncDynamicErrors=!0;return}else{let n=function(e,t){let r=Error(e);return r.stack="Error: "+e+t,r}(`Route "${e}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`,t);r.dynamicErrors.push(n);return}}}function W(e,t,r,n){let o,u,l;if(r.syncDynamicErrorWithStack?(o=r.syncDynamicErrorWithStack,u=r.syncDynamicExpression,l=!0===r.syncDynamicLogged):n.syncDynamicErrorWithStack?(o=n.syncDynamicErrorWithStack,u=n.syncDynamicExpression,l=!0===n.syncDynamicLogged):(o=null,u=void 0,l=!1),t.hasSyncDynamicErrors&&o)throw l||console.error(o),new a.StaticGenBailoutError;let i=t.dynamicErrors;if(i.length){for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(92688);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},32381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(70876)},31322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return o},getPrerenderResumeDataCache:function(){return a},getRenderResumeDataCache:function(){return u},workUnitAsyncStorage:function(){return n.workUnitAsyncStorageInstance}});let n=r(17707);function o(e){let t=n.workUnitAsyncStorageInstance.getStore();if(t){if("request"===t.type)return t;if("prerender"===t.type||"prerender-ppr"===t.type||"prerender-legacy"===t.type)throw Error(`\`${e}\` cannot be called inside a prerender. This is a bug in Next.js.`);if("cache"===t.type)throw Error(`\`${e}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`);if("unstable-cache"===t.type)throw Error(`\`${e}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`)}throw Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`)}function a(e){return"prerender"===e.type||"prerender-ppr"===e.type?e.prerenderResumeDataCache:null}function u(e){return"prerender-legacy"!==e.type&&"cache"!==e.type&&"unstable-cache"!==e.type?"request"===e.type?e.renderResumeDataCache:e.prerenderResumeDataCache:null}},80775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return i}});let n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(n,u,l):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(20107));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}let a={current:null},u="function"==typeof n.cache?n.cache:e=>e,l=console.warn;function i(e){return function(...t){l(e(...t))}}u(e=>{try{l(a.current)}finally{a.current=null}})},6745:(e,t)=>{"use strict";function r(e,t){let r=new Promise((r,n)=>{e.addEventListener("abort",()=>{n(Error(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`))},{once:!0})});return r.catch(n),r}function n(){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"makeHangingPromise",{enumerable:!0,get:function(){return r}})},92688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return u},isInterceptionRouteAppPath:function(){return a}});let n=r(40483),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function u(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let u=t.split("/");if(u.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=u.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},76568:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isPostpone",{enumerable:!0,get:function(){return n}});let r=Symbol.for("react.postpone");function n(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}},98369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderParamsFromClient",{enumerable:!0,get:function(){return o}}),r(38906),r(83156);let n=r(38558);function o(e){return function(e){let t=a.get(e);if(t)return t;let r=Promise.resolve(e);return a.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}(e)}let a=new WeakMap},90215:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createParamsFromClient:function(){return s},createPrerenderParamsForClientSegment:function(){return p},createServerParamsForMetadata:function(){return c},createServerParamsForRoute:function(){return f},createServerParamsForServerSegment:function(){return d}}),r(38906);let n=r(48002),o=r(31322),a=r(83156),u=r(38558),l=r(6745),i=r(80775);function s(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}r(47314);let c=d;function f(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}function d(e,t){let r=o.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(e,t,r)}return g(e)}function p(e,t){let r=o.workUnitAsyncStorage.getStore();if(r&&"prerender"===r.type){let n=t.fallbackRouteParams;if(n){for(let t in e)if(n.has(t))return(0,l.makeHangingPromise)(r.renderSignal,"`params`")}}return Promise.resolve(e)}function h(e,t,r){let o=t.fallbackRouteParams;if(o){let a=!1;for(let t in e)if(o.has(t)){a=!0;break}if(a)return"prerender"===r.type?function(e,t,r){let o=y.get(e);if(o)return o;let a=(0,l.makeHangingPromise)(r.renderSignal,"`params`");return y.set(e,a),Object.keys(e).forEach(e=>{u.wellKnownProperties.has(e)||Object.defineProperty(a,e,{get(){let o=(0,u.describeStringPropertyAccess)("params",e),a=b(t,o);(0,n.abortAndThrowOnSynchronousRequestDataAccess)(t,o,a,r)},set(t){Object.defineProperty(a,e,{value:t,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})}),a}(e,t.route,r):function(e,t,r,o){let a=y.get(e);if(a)return a;let l={...e},i=Promise.resolve(l);return y.set(e,i),Object.keys(e).forEach(a=>{u.wellKnownProperties.has(a)||(t.has(a)?(Object.defineProperty(l,a,{get(){let e=(0,u.describeStringPropertyAccess)("params",a);"prerender-ppr"===o.type?(0,n.postponeWithTracking)(r.route,e,o.dynamicTracking):(0,n.throwToInterruptStaticGeneration)(e,r,o)},enumerable:!0}),Object.defineProperty(i,a,{get(){let e=(0,u.describeStringPropertyAccess)("params",a);"prerender-ppr"===o.type?(0,n.postponeWithTracking)(r.route,e,o.dynamicTracking):(0,n.throwToInterruptStaticGeneration)(e,r,o)},set(e){Object.defineProperty(i,a,{value:e,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})):i[a]=e[a])}),i}(e,o,t,r)}return g(e)}let y=new WeakMap;function g(e){let t=y.get(e);if(t)return t;let r=Promise.resolve(e);return y.set(e,r),Object.keys(e).forEach(t=>{u.wellKnownProperties.has(t)||(r[t]=e[t])}),r}function b(e,t){let r=e?`Route "${e}" `:"This route ";return Error(`${r}used ${t}. \`params\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)}(0,i.createDedupedByCallsiteServerErrorLoggerDev)(b),(0,i.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t,r){let n=e?`Route "${e}" `:"This route ";return Error(`${n}used ${t}. \`params\` should be awaited before using its properties. The following properties were not available through enumeration because they conflict with builtin property names: ${function(e){switch(e.length){case 0:throw new a.InvariantError("Expected describeListOfPropertyNames to be called with a non-empty list of strings.");case 1:return`\`${e[0]}\``;case 2:return`\`${e[0]}\` and \`${e[1]}\``;default:{let t="";for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return o}}),r(38906);let n=r(38558);function o(e){return function(e){let t=a.get(e);if(t)return t;let r=Promise.resolve(e);return a.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}(e)}let a=new WeakMap},78394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createPrerenderSearchParamsForClientPage:function(){return p},createSearchParamsFromClient:function(){return c},createServerSearchParamsForMetadata:function(){return f},createServerSearchParamsForServerPage:function(){return d}});let n=r(38906),o=r(48002),a=r(31322),u=r(83156),l=r(6745),i=r(80775),s=r(38558);function c(e,t){let r=a.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(t,r)}return y(e,t)}r(47314);let f=d;function d(e,t){let r=a.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return h(t,r)}return y(e,t)}function p(e){if(e.forceStatic)return Promise.resolve({});let t=a.workUnitAsyncStorage.getStore();return t&&"prerender"===t.type?(0,l.makeHangingPromise)(t.renderSignal,"`searchParams`"):Promise.resolve({})}function h(e,t){return e.forceStatic?Promise.resolve({}):"prerender"===t.type?function(e,t){let r=g.get(t);if(r)return r;let a=(0,l.makeHangingPromise)(t.renderSignal,"`searchParams`"),u=new Proxy(a,{get(r,u,l){if(Object.hasOwn(a,u))return n.ReflectAdapter.get(r,u,l);switch(u){case"then":return(0,o.annotateDynamicAccess)("`await searchParams`, `searchParams.then`, or similar",t),n.ReflectAdapter.get(r,u,l);case"status":return(0,o.annotateDynamicAccess)("`use(searchParams)`, `searchParams.status`, or similar",t),n.ReflectAdapter.get(r,u,l);case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"catch":case"finally":case"toJSON":case"$$typeof":case"__esModule":return n.ReflectAdapter.get(r,u,l);default:if("string"==typeof u){let r=(0,s.describeStringPropertyAccess)("searchParams",u),n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}return n.ReflectAdapter.get(r,u,l)}},has(r,a){if("string"==typeof a){let r=(0,s.describeHasCheckingStringProperty)("searchParams",a),n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}return n.ReflectAdapter.has(r,a)},ownKeys(){let r="`{...searchParams}`, `Object.keys(searchParams)`, or similar",n=b(e,r);(0,o.abortAndThrowOnSynchronousRequestDataAccess)(e,r,n,t)}});return g.set(t,u),u}(e.route,t):function(e,t){let r=g.get(e);if(r)return r;let a=Promise.resolve({}),u=new Proxy(a,{get(r,u,l){if(Object.hasOwn(a,u))return n.ReflectAdapter.get(r,u,l);switch(u){case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"catch":case"finally":case"toJSON":case"$$typeof":case"__esModule":return n.ReflectAdapter.get(r,u,l);case"then":{let r="`await searchParams`, `searchParams.then`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t);return}case"status":{let r="`use(searchParams)`, `searchParams.status`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t);return}default:if("string"==typeof u){let r=(0,s.describeStringPropertyAccess)("searchParams",u);e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t)}return n.ReflectAdapter.get(r,u,l)}},has(r,a){if("string"==typeof a){let r=(0,s.describeHasCheckingStringProperty)("searchParams",a);return e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t),!1}return n.ReflectAdapter.has(r,a)},ownKeys(){let r="`{...searchParams}`, `Object.keys(searchParams)`, or similar";e.dynamicShouldError?(0,s.throwWithStaticGenerationBailoutErrorWithDynamicError)(e.route,r):"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,r,t.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(r,e,t)}});return g.set(e,u),u}(e,t)}function y(e,t){return t.forceStatic?Promise.resolve({}):function(e,t){let r=g.get(e);if(r)return r;let n=Promise.resolve(e);return g.set(e,n),Object.keys(e).forEach(r=>{switch(r){case"hasOwnProperty":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"valueOf":case"toLocaleString":case"then":case"catch":case"finally":case"status":case"toJSON":case"$$typeof":case"__esModule":break;default:Object.defineProperty(n,r,{get(){let n=a.workUnitAsyncStorage.getStore();return(0,o.trackDynamicDataInDynamicRender)(t,n),e[r]},set(e){Object.defineProperty(n,r,{value:e,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0})}}),n}(e,t)}let g=new WeakMap;function b(e,t){let r=e?`Route "${e}" `:"This route ";return Error(`${r}used ${t}. \`searchParams\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`)}(0,i.createDedupedByCallsiteServerErrorLoggerDev)(b),(0,i.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t,r){let n=e?`Route "${e}" `:"This route ";return Error(`${n}used ${t}. \`searchParams\` should be awaited before using its properties. The following properties were not available through enumeration because they conflict with builtin or well-known property names: ${function(e){switch(e.length){case 0:throw new u.InvariantError("Expected describeListOfPropertyNames to be called with a non-empty list of strings.");case 1:return`\`${e[0]}\``;case 2:return`\`${e[0]}\` and \`${e[1]}\``;default:{let t="";for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{describeHasCheckingStringProperty:function(){return l},describeStringPropertyAccess:function(){return u},isRequestAPICallableInsideAfter:function(){return c},throwWithStaticGenerationBailoutError:function(){return i},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s},wellKnownProperties:function(){return f}});let n=r(91558),o=r(98372),a=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function u(e,t){return a.test(t)?`\`${e}.${t}\``:`\`${e}[${JSON.stringify(t)}]\``}function l(e,t){let r=JSON.stringify(t);return`\`Reflect.has(${e}, ${r})\`, \`${r} in ${e}\`, or similar`}function i(e,t){throw new n.StaticGenBailoutError(`Route ${e} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`)}function s(e,t){throw new n.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`)}function c(){let e=o.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}let f=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","toJSON","$$typeof","__esModule"])},38906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},32618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return u},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return i},TemplateContext:function(){return l}});let n=r(67342)._(r(20107)),o=n.default.createContext(null),a=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(null),i=n.default.createContext(new Set)},80724:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},76249:(e,t)=>{"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},17315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(67342)._(r(20107)).default.createContext({})},14839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return u},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(20107),o=(0,n.createContext)(null),a=(0,n.createContext)(null),u=(0,n.createContext)(null)},83156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super("Invariant: "+(e.endsWith(".")?e:e+".")+" This is a bug in Next.js.",t),this.name="InvariantError"}}},27052:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},75803:(e,t)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isThenable",{enumerable:!0,get:function(){return r}})},13007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},88018:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},52345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createMutableActionQueue",{enumerable:!0,get:function(){return s}});let n=r(23093),o=r(27749),a=r(20107),u=r(75803);function l(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?i({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:n.ACTION_REFRESH,origin:window.location.origin},t)))}async function i(e){let{actionQueue:t,action:r,setState:n}=e,o=t.state;t.pending=r;let a=r.payload,i=t.action(o,a);function s(e){r.discarded||(t.state=e,l(t,n),r.resolve(e))}(0,u.isThenable)(i)?i.then(s,e=>{l(t,n),r.reject(e)}):s(i)}function s(e){let t={state:e,dispatch:(e,r)=>(function(e,t,r){let o={resolve:r,reject:()=>{}};if(t.type!==n.ACTION_RESTORE){let e=new Promise((e,t)=>{o={resolve:e,reject:t}});(0,a.startTransition)(()=>{r(e)})}let u={payload:t,next:null,resolve:o.resolve,reject:o.reject};null===e.pending?(e.last=u,i({actionQueue:e,action:u,setState:r})):t.type===n.ACTION_NAVIGATE||t.type===n.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===n.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),i({actionQueue:e,action:u,setState:r})):(null!==e.last&&(e.last.next=u),e.last=u)})(t,e,r),action:async(e,t)=>(0,o.reducer)(e,t),pending:null,last:null};return t}},76905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(19974);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},40483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return u}});let n=r(88018),o=r(63234);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function u(e){return e.replace(/\.rsc($|\?)/,"$1")}},65200:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},80691:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}});let r=/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i;function n(e){return r.test(e)}},19974:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},50344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(19974);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},22150:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},63234:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return u},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",u="__DEFAULT__"},58741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let n=r(62599)._(r(20107)),o=n.default.createContext(null);function a(e){let t=(0,n.useContext)(o);t&&t(e)}},20339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},31858:(e,t,r)=>{"use strict";var n=r(20107);function o(e){var t="https://react.dev/errors/"+e;if(1{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(71272)},25642:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(31858)},70446:(e,t,r)=>{"use strict";var n=r(25642),o={stream:!0},a=new Map;function u(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function l(){}function i(e){for(var t=e[1],n=[],o=0;os||35===s||114===s||120===s?(c=s,s=3,l++):(c=0,s=3);continue;case 2:44===(y=u[l++])?s=4:f=f<<4|(96u.length&&(y=-1)}var g=u.byteOffset+l;if(-1{"use strict";e.exports=r(70446)},18971:(e,t,r)=>{"use strict";e.exports=r(17925)},32905:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in n={},t)"key"!==a&&(n[a]=t[a]);else n=t;return{$$typeof:r,type:e,key:o,ref:void 0!==(t=n.ref)?t:null,props:n}}t.Fragment=n,t.jsx=o,t.jsxs=o},29914:(e,t,r)=>{"use strict";var n=r(86170),o=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,_={};function v(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||g}function m(){}function P(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var E=P.prototype=new m;E.constructor=P,b(E,v.prototype),E.isPureReactComponent=!0;var O=Array.isArray,R={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function j(e,t,r,n,a,u){return{$$typeof:o,type:e,key:t,ref:void 0!==(r=u.ref)?r:null,props:u}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function M(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function x(){}function A(e,t,r){if(null==e)return e;var n=[],u=0;return!function e(t,r,n,u,l){var i,s,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case a:d=!0;break;case h:return e((d=t._init)(t._payload),r,n,u,l)}}if(d)return l=l(t),d=""===u?"."+M(t,0):u,O(l)?(n="",null!=d&&(n=d.replace(T,"$&/")+"/"),e(l,r,n,"",function(e){return e})):null!=l&&(w(l)&&(i=l,s=n+(null==l.key||t&&t.key===l.key?"":(""+l.key).replace(T,"$&/")+"/")+d,l=j(i.type,s,void 0,void 0,void 0,i.props)),r.push(l)),1;d=0;var p=""===u?".":u+":";if(O(t))for(var g=0;g{"use strict";e.exports=r(29914)},20475:(e,t,r)=>{"use strict";e.exports=r(32905)},81939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(35838).createAsyncLocalStorage)()},35838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return l}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let o="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new n}function u(e){return o?o.bind(e):n.bind(e)}function l(){return o?o.snapshot():function(e,...t){return e(...t)}}},70876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(35838).createAsyncLocalStorage)()},17707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(35838).createAsyncLocalStorage)()},32465:(e,t,r)=>{"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>n})},44911:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>o});var n=0;function o(e){return"__private_"+n+++"_"+e}},67342:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},62599:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6218.2a359a0f55d6ba39.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6218.2a359a0f55d6ba39.js deleted file mode 100644 index 02e81fd..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6218.2a359a0f55d6ba39.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6218],{86218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(87677),o=n(74848),l=r._(n(96540)),a=r._(n(23248)),i={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){let{res:t,err:n}=e;return{statusCode:t&&t.statusCode?t.statusCode:n?n.statusCode:404}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class u extends l.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||i[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(a.default,{children:(0,o.jsx)("title",{children:e?e+": "+n:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?n:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}u.displayName="ErrorPage",u.getInitialProps=d,u.origGetInitialProps=d,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51432:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(87677)._(n(96540)).default.createContext({})},42452:(e,t)=>{function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},23248:(e,t,n)=>{var r=n(77836);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return m},defaultHead:function(){return f}});let o=n(87677),l=n(40544),a=n(74848),i=l._(n(96540)),d=o._(n(2495)),s=n(51432),u=n(27592),c=n(42452);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(84636);let h=["name","httpEquiv","charSet","itemProp"];function y(e,t){let{inAmpMode:n}=t;return e.reduce(p,[]).reverse().concat(f(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let l=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?l=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let o=e.key||t;if(r.env.__NEXT_OPTIMIZE_FONTS&&!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:o})})}let m=function(e){let{children:t}=e,n=(0,i.useContext)(s.AmpStateContext),r=(0,i.useContext)(u.HeadManagerContext);return(0,a.jsx)(d.default,{reduceComponentsToState:y,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2495:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(96540),o=r.useLayoutEffect,l=r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},84636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6281-72961a4c8126fa1a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6281-72961a4c8126fa1a.js deleted file mode 100644 index 9926f65..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6281-72961a4c8126fa1a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6281],{67401:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(12115);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var u={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:l="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...u,width:o,height:o,stroke:r,strokeWidth:s?24*Number(a)/Number(o):a,className:i("lucide",l),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,u)=>{let{className:s,...l}=r;return(0,n.createElement)(a,{ref:u,iconNode:t,className:i("lucide-".concat(o(e)),s),...l})});return r.displayName="".concat(e),r}},48686:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(67401).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},21773:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(67401).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},93610:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},86352:(e,t,r)=>{r.d(t,{C1:()=>M,bL:()=>x});var n=r(12115),o=r(88068),i=r(18166),u=r(93610),a=r(1488),s=r(50858),l=r(7510),c=r(17028),d=r(23360),f=r(95155),m="Checkbox",[p,v]=(0,i.A)(m),[h,y]=p(m),N=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:i,checked:s,defaultChecked:l,required:c,disabled:m,value:p="on",onCheckedChange:v,form:y,...N}=e,[w,b]=n.useState(null),x=(0,o.s)(t,e=>b(e)),M=n.useRef(!1),A=!w||y||!!w.closest("form"),[C=!1,O]=(0,a.i)({prop:s,defaultProp:l,onChange:v}),R=n.useRef(C);return n.useEffect(()=>{let e=null==w?void 0:w.form;if(e){let t=()=>O(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[w,O]),(0,f.jsxs)(h,{scope:r,state:C,disabled:m,children:[(0,f.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":g(C)?"mixed":C,"aria-required":c,"data-state":E(C),"data-disabled":m?"":void 0,disabled:m,value:p,...N,ref:x,onKeyDown:(0,u.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,u.m)(e.onClick,e=>{O(e=>!!g(e)||!e),A&&(M.current=e.isPropagationStopped(),M.current||e.stopPropagation())})}),A&&(0,f.jsx)(k,{control:w,bubbles:!M.current,name:i,value:p,checked:C,required:c,disabled:m,form:y,style:{transform:"translateX(-100%)"},defaultChecked:!g(l)&&l})]})});N.displayName=m;var w="CheckboxIndicator",b=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...o}=e,i=y(w,r);return(0,f.jsx)(c.C,{present:n||g(i.state)||!0===i.state,children:(0,f.jsx)(d.sG.span,{"data-state":E(i.state),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});b.displayName=w;var k=e=>{let{control:t,checked:r,bubbles:o=!0,defaultChecked:i,...u}=e,a=n.useRef(null),c=(0,s.Z)(r),d=(0,l.X)(t);n.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:o});e.indeterminate=g(r),t.call(e,!g(r)&&r),e.dispatchEvent(n)}},[c,r,o]);let m=n.useRef(!g(r)&&r);return(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=i?i:m.current,...u,tabIndex:-1,ref:a,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function g(e){return"indeterminate"===e}function E(e){return g(e)?"indeterminate":e?"checked":"unchecked"}var x=N,M=b},18166:(e,t,r)=>{r.d(t,{A:()=>u,q:()=>i});var n=r(12115),o=r(95155);function i(e,t){let r=n.createContext(t),i=e=>{let{children:t,...i}=e,u=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:u,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function u(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let u=n.createContext(i),a=r.length;r=[...r,i];let s=t=>{let{scope:r,children:i,...s}=t,l=r?.[e]?.[a]||u,c=n.useMemo(()=>s,Object.values(s));return(0,o.jsx)(l.Provider,{value:c,children:i})};return s.displayName=t+"Provider",[s,function(r,o){let s=o?.[e]?.[a]||u,l=n.useContext(s);if(l)return l;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},17028:(e,t,r)=>{r.d(t,{C:()=>u});var n=r(12115),o=r(88068),i=r(46611),u=e=>{let{present:t,children:r}=e,u=function(e){var t,r;let[o,u]=n.useState(),s=n.useRef({}),l=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=a(s.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=s.current,r=l.current;if(r!==e){let n=c.current,o=a(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=a(s.current).includes(e.animationName);if(e.target===o&&n&&(f("ANIMATION_END"),!l.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=a(s.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(s.current=getComputedStyle(e)),u(e)},[])}}(t),s="function"==typeof r?r({present:u.isPresent}):n.Children.only(r),l=(0,o.s)(u.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof r||u.isPresent?n.cloneElement(s,{ref:l}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},23360:(e,t,r)=>{r.d(t,{hO:()=>s,sG:()=>a});var n=r(12115),o=r(47650),i=r(12317),u=r(95155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e,a=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(a,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},41524:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(12115);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,r)=>{r.d(t,{i:()=>i});var n=r(12115),o=r(41524);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,u]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[i]=r,u=n.useRef(i),a=(0,o.c)(t);return n.useEffect(()=>{u.current!==i&&(a(i),u.current=i)},[i,u,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,s=a?e:i,l=(0,o.c)(r);return[s,n.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else u(t)},[a,e,u,l])]}},46611:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(12115),o=globalThis?.document?n.useLayoutEffect:()=>{}},50858:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(12115);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},7510:(e,t,r)=>{r.d(t,{X:()=>i});var n=r(12115),o=r(46611);function i(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6357-9bebe3918fcef1e5.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6357-9bebe3918fcef1e5.js new file mode 100644 index 0000000..ba97043 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6357-9bebe3918fcef1e5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6357],{39997:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:d,iconNode:c,...f}=e;return(0,r.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:n,strokeWidth:s?24*Number(l)/Number(o):l,className:i("lucide",u),...f},[...c.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])}),s=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:s,...u}=n;return(0,r.createElement)(l,{ref:a,iconNode:t,className:i("lucide-".concat(o(e)),s),...u})});return n.displayName="".concat(e),n}},60241:(e,t,n)=>{n.d(t,{G$:()=>H,Hs:()=>D,UC:()=>et,VY:()=>er,ZL:()=>Q,bL:()=>X,bm:()=>eo,hE:()=>en,hJ:()=>ee,l9:()=>Y});var r=n(20107),o=n(94521),i=n(64236),a=n(45170),l=n(72763),s=n(13061),u=n(55302),d=n(38573),c=n(41913),f=n(54245),p=n(34544),m=n(10201),g=n(9543),v=n(58020),N=n(61837),h=n(20475),y="Dialog",[w,D]=(0,a.A)(y),[O,R]=w(y),C=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f=!1,p]=(0,s.i)({prop:o,defaultProp:i,onChange:a});return(0,h.jsx)(O,{scope:t,triggerRef:d,contentRef:c,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};C.displayName=y;var b="DialogTrigger",E=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=R(b,n),l=(0,i.s)(t,a.triggerRef);return(0,h.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":V(a.open),...r,ref:l,onClick:(0,o.m)(e.onClick,a.onOpenToggle)})});E.displayName=b;var x="DialogPortal",[I,j]=w(x,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,a=R(x,t);return(0,h.jsx)(I,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,h.jsx)(f.C,{present:n||a.open,children:(0,h.jsx)(c.Z,{asChild:!0,container:i,children:e})}))})};A.displayName=x;var _="DialogOverlay",M=r.forwardRef((e,t)=>{let n=j(_,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=R(_,e.__scopeDialog);return i.modal?(0,h.jsx)(f.C,{present:r||i.open,children:(0,h.jsx)(T,{...o,ref:t})}):null});M.displayName=_;var T=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(_,n);return(0,h.jsx)(g.A,{as:N.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,h.jsx)(p.sG.div,{"data-state":V(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),F="DialogContent",k=r.forwardRef((e,t)=>{let n=j(F,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=R(F,e.__scopeDialog);return(0,h.jsx)(f.C,{present:r||i.open,children:i.modal?(0,h.jsx)(P,{...o,ref:t}):(0,h.jsx)(U,{...o,ref:t})})});k.displayName=F;var P=r.forwardRef((e,t)=>{let n=R(F,e.__scopeDialog),a=r.useRef(null),l=(0,i.s)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.Eq)(e)},[]),(0,h.jsx)(L,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),U=r.forwardRef((e,t)=>{let n=R(F,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,h.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let l=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),L=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...s}=e,c=R(F,n),f=r.useRef(null),p=(0,i.s)(t,f);return(0,m.Oh)(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,h.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":V(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(J,{titleId:c.titleId}),(0,h.jsx)(K,{contentRef:f,descriptionId:c.descriptionId})]})]})}),W="DialogTitle",S=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(W,n);return(0,h.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});S.displayName=W;var B="DialogDescription",G=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(B,n);return(0,h.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});G.displayName=B;var q="DialogClose",Z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(q,n);return(0,h.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>i.onOpenChange(!1))})});function V(e){return e?"open":"closed"}Z.displayName=q;var $="DialogTitleWarning",[H,z]=(0,a.q)($,{contentName:F,titleName:W,docsSlug:"dialog"}),J=e=>{let{titleId:t}=e,n=z($),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},K=e=>{let{contentRef:t,descriptionId:n}=e,o=z("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,t,n]),null},X=C,Y=E,Q=A,ee=M,et=k,en=S,er=G,eo=Z},54245:(e,t,n)=>{n.d(t,{C:()=>a});var r=n(20107),o=n(64236),i=n(54122),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[o,a]=r.useState(),s=r.useRef({}),u=r.useRef(e),d=r.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(s.current);d.current="mounted"===c?e:"none"},[c]),(0,i.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=d.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(d.current=l(s.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),a(e)},[])}}(t),s="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),u=(0,o.s)(a.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||a.isPresent?r.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6592-64b46edd0220361b.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6592-64b46edd0220361b.js new file mode 100644 index 0000000..b6abf22 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6592-64b46edd0220361b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6592],{76592:(e,t,s)=>{s.r(t),s.d(t,{default:()=>v});var a=s(20475),r=s(20107),l=s(72167),n=s(35601),o=s(97818),d=s(32857),i=s(42541),c=s(49153),u=s(36760),m=s(76554),h=s(114),p=s(88926),f=s(44381);let x=(0,s(39997).A)("EthernetPort",[["path",{d:"m15 20 3-3h2a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2l3 3z",key:"rbahqx"}],["path",{d:"M6 8v1",key:"1636ez"}],["path",{d:"M10 8v1",key:"1talb4"}],["path",{d:"M14 8v1",key:"1rsfgr"}],["path",{d:"M18 8v1",key:"gnkwox"}]]),g=e=>{if("Unknown!"===e)return"-";let t=e.match(/(\d+)/);if(!t)return e;let s=parseInt(t[1],10);return s>=1e3?"".concat(s/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(s).concat((e.includes("Mb"),"Mb/s"))},j=()=>{let[e,t]=(0,r.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[s,n]=(0,r.useState)(!0),[o,d]=(0,r.useState)(null);return((0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let s=await e.json();t(s),n(!1)}catch(e){d("Failed to fetch Ethernet information"),n(!1)}})()},[]),o)?(0,a.jsxs)(l.Zp,{children:[(0,a.jsx)(l.aR,{children:(0,a.jsx)(l.ZB,{children:"Ethernet Information"})}),(0,a.jsx)(l.Wu,{className:"flex items-center justify-center",children:(0,a.jsx)("div",{className:"text-red-500",children:o})})]}):(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"Ethernet Information"}),(0,a.jsx)(l.BT,{children:"Shows the status of the Ethernet connection and its speed."})]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4 place-items-center",children:[(0,a.jsx)("div",{className:"flex justify-center items-center rounded-full bg-gray-100 dark:bg-gray-800 w-36 h-36 lg:p-6 p-4",children:"yes"===e.link_status?(0,a.jsx)(x,{className:"size-full text-emerald-500 animate-pulse"}):(0,a.jsx)(x,{className:"size-full text-red-500 animate-pulse"})}),(0,a.jsxs)("div",{className:"flex flex-row items-start justify-between gap-x-2 w-full lg:col-span-2 col-span-1 lg:px-4 px-1",children:[(0,a.jsxs)("div",{className:"grid gap-1",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,a.jsx)("span",{className:"text-base font-bold",children:s?(0,a.jsx)(u.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,a.jsxs)("div",{className:"grid gap-1",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,a.jsx)("span",{className:"text-base font-bold",children:s?(0,a.jsx)(u.E,{className:"h-8 w-full"}):g(e.link_speed)})]}),(0,a.jsxs)("div",{className:"grid gap-1",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,a.jsx)("span",{className:"text-base font-bold",children:s?(0,a.jsx)(u.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})]})})]})},v=()=>{let{toast:e}=(0,d.dj)(),[t,s]=(0,r.useState)(!0),[x,g]=(0,r.useState)([]),[v,b]=(0,r.useState)(!1),[y,w]=(0,r.useState)(""),[N,P]=(0,r.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),[S,E]=(0,r.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),A={passthrough:{disabled:'+QMAP="MPDN_rule",0;+QMAPWAC=1;+QPOWD=1',ETH:e=>'+QMAP="MPDN_rule",0,1,0,1,1,"'.concat(e,'";+QPOWD=1'),USB:e=>'+QMAP="MPDN_rule",0,1,0,3,1,"'.concat(e,'";+QPOWD=1')},modemProtocol:{rmnet:'+QCFG="usbnet",0;+QPOWD=1',ecm:'+QCFG="usbnet",1;+QPOWD=1',mbim:'+QCFG="usbnet",2;+QPOWD=1',rndis:'+QCFG="usbnet",3;+QPOWD=1'},dnsProxy:{enabled:'+QMAP="DHCPV4DNS","enable"',disabled:'+QMAP="DHCPV4DNS","disable"'}},T=e=>{let t={passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null};return e.forEach(e=>{let{response:s}=e;if(s.includes("MPDN_rule")){let e=s.split("\n")[1];e.includes('MPDN_rule",0,1,0,1,1')?t.passthrough="ETH":e.includes('MPDN_rule",0,1,0,3,1')?t.passthrough="USB":e.includes('MPDN_rule",0,0,0,0,0')&&(t.passthrough="disabled")}if(s.includes("usbnet")){let e=s.match(/usbnet",(\d)/);e&&(t.modemProtocol=({0:"rmnet",1:"ecm",2:"mbim",3:"rndis"})[e[1]])}s.includes("DHCPV4DNS")&&(s.includes('"enable"')?t.dnsProxy="enabled":s.includes('"disable"')&&(t.dnsProxy="disabled"))}),t},M=()=>{let e=[],t=Object.entries(S).reduce((e,t)=>{let[s,a]=t;return a!==N[s]&&(e[s]=a),e},{});if("passthrough"in t){if("disabled"===t.passthrough)e.push(A.passthrough.disabled.replace(";+QPOWD=1",""));else if(t.passthrough){let e=A.passthrough[t.passthrough](S.selectedMac);return"AT".concat(e.replace(";+QPOWD=1",""))}}if("modemProtocol"in t&&t.modemProtocol){let s=A.modemProtocol[t.modemProtocol];if(1===Object.keys(t).length)return"AT".concat(s.replace(";+QPOWD=1",""));e.push(s.replace(";+QPOWD=1",""))}if("dnsProxy"in t&&t.dnsProxy){let s=A.dnsProxy[t.dnsProxy];if(1===Object.keys(t).length)return"AT".concat(s);e.push(s)}return e.length>0?"AT".concat(e.join(";")):""},D=async()=>{try{var t,s;let a=await (0,p.a)("AT+QPOWD=1",!0);if((null===(t=a.response)||void 0===t?void 0:t.status)==="success")e({title:"Success",description:"Settings saved and device is rebooting..."}),setTimeout(()=>{window.location.reload()},9e4);else throw Error((null===(s=a.response)||void 0===s?void 0:s.raw_output)||"Failed to reboot device")}catch(t){e({variant:"destructive",title:"Error",description:"Failed to reboot device",action:(0,a.jsx)(h.A,{})})}},C=async()=>{try{let e=M();w(e),b(!0)}catch(t){e({variant:"destructive",title:"Error",description:"Failed to prepare settings",action:(0,a.jsx)(h.A,{})})}},R=async()=>{try{var t,s;let e=await (0,p.a)(y,!0);if((null===(t=e.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(s=e.response)||void 0===s?void 0:s.raw_output)||"Command execution failed");P({...S}),await D()}catch(t){e({variant:"destructive",title:"Error",description:"Failed to save settings",action:(0,a.jsx)(h.A,{})})}};return(0,r.useEffect)(()=>{(async()=>{try{let[e,t]=await Promise.all([fetch("/cgi-bin/quecmanager/advance/fetch_macs.sh"),fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=4")]),[a,r]=await Promise.all([e.json(),t.json()]);g(a);let l=T(r);P(l),E(l),s(!1)}catch(t){s(!1),e({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch connectivity settings",action:(0,a.jsx)(h.A,{})})}})()},[]),(0,a.jsxs)("div",{className:"grid gap-4",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"Connectivity Settings"}),(0,a.jsx)(l.BT,{children:"Configure your device's connectivity settings."})]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"passthrough",children:"IP Passthrough Mode"}),t?(0,a.jsx)(u.E,{className:"w-full h-8"}):(0,a.jsxs)(n.l6,{onValueChange:e=>E(t=>({...t,passthrough:e})),value:S.passthrough||void 0,children:[(0,a.jsx)(n.bq,{children:(0,a.jsx)(n.yv,{placeholder:"Select IP Passthrough Mode"})}),(0,a.jsx)(n.gC,{children:(0,a.jsxs)(n.s3,{children:[(0,a.jsx)(n.TR,{children:"Passthrough Mode"}),(0,a.jsx)(n.eb,{value:"disabled",children:"Disabled"}),(0,a.jsx)(n.eb,{value:"ETH",children:"ETH Passthrough Enabled"}),(0,a.jsx)(n.eb,{value:"USB",children:"USB Passthrough Enabled"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"mac",children:"Connected MAC"}),t?(0,a.jsx)(u.E,{className:"w-full h-8"}):(0,a.jsxs)(n.l6,{onValueChange:e=>E(t=>({...t,selectedMac:e})),value:S.selectedMac||void 0,disabled:!S.passthrough||"disabled"===S.passthrough,children:[(0,a.jsx)(n.bq,{children:(0,a.jsx)(n.yv,{placeholder:"Select Active MAC"})}),(0,a.jsx)(n.gC,{children:(0,a.jsxs)(n.s3,{children:[(0,a.jsx)(n.TR,{children:"Active MAC"}),x.map(e=>(0,a.jsx)(n.eb,{value:e.mac,children:"".concat(e.hostname," - ").concat(e.mac)},e.mac))]})})]})]}),(0,a.jsx)(m.w,{className:"lg:col-span-2 col-span-1 my-2"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"modemProtocol",children:"USB Modem Protocol"}),t?(0,a.jsx)(u.E,{className:"w-full h-8"}):(0,a.jsxs)(n.l6,{onValueChange:e=>E(t=>({...t,modemProtocol:e})),value:S.modemProtocol||void 0,children:[(0,a.jsx)(n.bq,{children:(0,a.jsx)(n.yv,{placeholder:"Select USB Modem Protocol"})}),(0,a.jsx)(n.gC,{children:(0,a.jsxs)(n.s3,{children:[(0,a.jsx)(n.TR,{children:"USB Modem Protocol"}),(0,a.jsx)(n.eb,{value:"rmnet",children:"RMNET"}),(0,a.jsx)(n.eb,{value:"ecm",children:"ECM (Recommended)"}),(0,a.jsx)(n.eb,{value:"mbim",children:"MBIM"}),(0,a.jsx)(n.eb,{value:"rndis",children:"RNDIS"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"dnsProxy",children:"Onboard DNS Proxy Mode"}),t?(0,a.jsx)(u.E,{className:"w-full h-8"}):(0,a.jsxs)(n.l6,{onValueChange:e=>E(t=>({...t,dnsProxy:e})),value:S.dnsProxy||void 0,children:[(0,a.jsx)(n.bq,{children:(0,a.jsx)(n.yv,{placeholder:"Select DNS Proxy Mode"})}),(0,a.jsx)(n.gC,{children:(0,a.jsxs)(n.s3,{children:[(0,a.jsx)(n.TR,{children:"DNS Proxy Mode"}),(0,a.jsx)(n.eb,{value:"enabled",children:"Enabled"}),(0,a.jsx)(n.eb,{value:"disabled",children:"Disabled (Recommended for Passthrough)"})]})})]})]})]})}),(0,a.jsx)(l.wL,{className:"grid border-t py-4",children:(0,a.jsx)(i.$,{onClick:C,disabled:!Object.entries(S).some(e=>{let[t,s]=e;return s!==N[t]})||!(!S.passthrough||"disabled"===S.passthrough||S.selectedMac),children:"Save"})})]}),(0,a.jsx)(j,{}),(0,a.jsx)(o.Lt,{open:v,onOpenChange:b,children:(0,a.jsxs)(o.EO,{children:[(0,a.jsxs)(o.wd,{children:[(0,a.jsx)(o.r7,{children:"Reboot Required"}),(0,a.jsx)(o.$v,{children:"The changes you made require a device reboot to take effect. Would you like to reboot now?"})]}),(0,a.jsxs)(o.ck,{children:[(0,a.jsx)(o.Zr,{children:"Later"}),(0,a.jsxs)(o.Rx,{onClick:R,children:[(0,a.jsx)(f.A,{className:"w-4 h-4"}),"Save & Reboot Now"]})]})]})})]})}},114:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(20475),r=s(42541),l=s(7197);let n=()=>(0,a.jsx)(r.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,a.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,a.jsx)(l.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},97818:(e,t,s)=>{s.d(t,{$v:()=>x,EO:()=>m,Lt:()=>d,Rx:()=>g,Zr:()=>j,ck:()=>p,r7:()=>f,tv:()=>i,wd:()=>h});var a=s(20475),r=s(20107),l=s(50564),n=s(22250),o=s(42541);let d=l.bL,i=l.l9,c=l.ZL,u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.hJ,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r,ref:t})});u.displayName=l.hJ.displayName;let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsx)(l.UC,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...r})]})});m.displayName=l.UC.displayName;let h=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};h.displayName="AlertDialogHeader";let p=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};p.displayName="AlertDialogFooter";let f=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.hE,{ref:t,className:(0,n.cn)("text-lg font-semibold",s),...r})});f.displayName=l.hE.displayName;let x=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...r})});x.displayName=l.VY.displayName;let g=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.rc,{ref:t,className:(0,n.cn)((0,o.r)(),s),...r})});g.displayName=l.rc.displayName;let j=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.ZD,{ref:t,className:(0,n.cn)((0,o.r)({variant:"outline"}),"mt-2 sm:mt-0",s),...r})});j.displayName=l.ZD.displayName},42541:(e,t,s)=>{s.d(t,{$:()=>i,r:()=>d});var a=s(20475),r=s(20107),l=s(61837),n=s(29395),o=s(22250);let d=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),i=r.forwardRef((e,t)=>{let{className:s,variant:r,size:n,asChild:i=!1,...c}=e,u=i?l.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(d({variant:r,size:n,className:s})),ref:t,...c})});i.displayName="Button"},72167:(e,t,s)=>{s.d(t,{BT:()=>i,Wu:()=>c,ZB:()=>d,Zp:()=>n,aR:()=>o,wL:()=>u});var a=s(20475),r=s(20107),l=s(22250);let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});n.displayName="Card";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",s),...r})});o.displayName="CardHeader";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",s),...r})});d.displayName="CardTitle";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...r})});i.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",s),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},49153:(e,t,s)=>{s.d(t,{J:()=>i});var a=s(20475),r=s(20107),l=s(21840),n=s(29395),o=s(22250);let d=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.b,{ref:t,className:(0,o.cn)(d(),s),...r})});i.displayName=l.b.displayName},35601:(e,t,s)=>{s.d(t,{TR:()=>f,bq:()=>u,eb:()=>x,gC:()=>p,l6:()=>d,s3:()=>i,yv:()=>c});var a=s(20475),r=s(20107),l=s(7197),n=s(95257),o=s(22250);let d=n.bL,i=n.YJ,c=n.WT,u=r.forwardRef((e,t)=>{let{className:s,children:r,...d}=e;return(0,a.jsxs)(n.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...d,children:[r,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(l.Mtm,{})})});m.displayName=n.PP.displayName;let h=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(l.D3D,{})})});h.displayName=n.wn.displayName;let p=r.forwardRef((e,t)=>{let{className:s,children:r,position:l="popper",...d}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:l,...d,children:[(0,a.jsx)(m,{}),(0,a.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(h,{})]})})});p.displayName=n.UC.displayName;let f=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",s),...r})});f.displayName=n.JU.displayName;let x=r.forwardRef((e,t)=>{let{className:s,children:r,...d}=e;return(0,a.jsxs)(n.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...d,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:r})]})});x.displayName=n.q7.displayName,r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",s),...r})}).displayName=n.wv.displayName},76554:(e,t,s)=>{s.d(t,{w:()=>o});var a=s(20475),r=s(20107),l=s(88853),n=s(22250);let o=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:o=!0,...d}=e;return(0,a.jsx)(l.b,{ref:t,decorative:o,orientation:r,className:(0,n.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...d})});o.displayName=l.b.displayName},36760:(e,t,s)=>{s.d(t,{E:()=>l});var a=s(20475),r=s(22250);function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",t),...s})}},32857:(e,t,s)=>{s.d(t,{dj:()=>m,oR:()=>u});var a=s(20107);let r=0,l=new Map,n=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],i={toasts:[]};function c(e){i=o(i,e),d.forEach(e=>{e(i)})}function u(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=a.useState(i);return a.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{s.d(t,{cn:()=>l});var a=s(64901),r=s(868);function l(){for(var e=arguments.length,t=Array(e),s=0;s{s.d(t,{A:()=>a});let a=(0,s(39997).A)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},88926:(e,t,s)=>{s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),l=encodeURIComponent(r),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(l);t&&(n+="&wait=1&timeout=".concat(s));let o=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let d=await o.json();if(d.error)throw Error("AT queue error: ".concat(d.error));if(t&&(null===(a=d.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return d}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,s)=>{s.d(t,{b:()=>i});var a=s(20107),r=s(34544),l=s(20475),n="horizontal",o=["horizontal","vertical"],d=a.forwardRef((e,t)=>{let{decorative:s,orientation:a=n,...d}=e,i=o.includes(a)?a:n;return(0,l.jsx)(r.sG.div,{"data-orientation":i,...s?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"},...d,ref:t})});d.displayName="Separator";var i=d}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6765-04896569da698cf7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6765-04896569da698cf7.js new file mode 100644 index 0000000..e10832a --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6765-04896569da698cf7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6765],{14629:(e,t,r)=>{r.d(t,{default:()=>i.a});var n=r(46954),i=r.n(n)},16118:(e,t,r)=>{var n=r(65834);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},15354:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let n=r(67342),i=r(62599),o=r(20475),l=i._(r(20107)),a=n._(r(25642)),u=n._(r(80627)),s=r(59090),d=r(92863),f=r(30957);r(20339);let c=r(59280),p=n._(r(94354)),m=r(91297),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function h(e,t,r,n,i,o,l){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,l.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:u,decoding:s,className:d,style:f,fetchPriority:c,placeholder:p,loading:g,unoptimized:y,fill:b,onLoadRef:_,onLoadingCompleteRef:w,setBlurComplete:j,setShowAltText:x,sizesInput:P,onLoad:S,onError:O,...C}=e,M=(0,l.useCallback)(e=>{e&&(O&&(e.src=e.src),e.complete&&h(e,p,_,w,j,y,P))},[r,p,_,w,j,O,y,P]),E=(0,m.useMergedRef)(t,M);return(0,o.jsx)("img",{...C,...v(c),loading:g,width:u,height:a,decoding:s,"data-nimg":b?"fill":"1",className:d,style:f,sizes:i,srcSet:n,src:r,ref:E,onLoad:e=>{h(e.currentTarget,p,_,w,j,y,P)},onError:e=>{x(!0),"empty"!==p&&j(!0),O&&O(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):(0,o.jsx)(u.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,l.forwardRef)((e,t)=>{let r=(0,l.useContext)(c.RouterContext),n=(0,l.useContext)(f.ImageConfigContext),i=(0,l.useMemo)(()=>{let e=g||n||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:u}=e,m=(0,l.useRef)(a);(0,l.useEffect)(()=>{m.current=a},[a]);let h=(0,l.useRef)(u);(0,l.useEffect)(()=>{h.current=u},[u]);let[v,_]=(0,l.useState)(!1),[w,j]=(0,l.useState)(!1),{props:x,meta:P}=(0,s.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:v,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...x,unoptimized:P.unoptimized,placeholder:P.placeholder,fill:P.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:_,setShowAltText:j,sizesInput:e.sizes,ref:t}),P.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91297:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(20107);function i(e,t){let r=(0,n.useRef)(()=>{}),i=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>e&&t?n=>{null===n?(r.current(),i.current()):(r.current=o(e,n),i.current=o(t,n))}:e||t,[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76947:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(67342)._(r(20107)).default.createContext({})},47451:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},59090:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),r(20339);let n=r(78971),i=r(92863);function o(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var r;let a,u,s,{src:d,sizes:f,unoptimized:c=!1,priority:p=!1,loading:m,className:g,quality:h,width:v,height:y,fill:b=!1,style:_,overrideSrc:w,onLoad:j,onLoadingComplete:x,placeholder:P="empty",blurDataURL:S,fetchPriority:O,decoding:C="async",layout:M,objectFit:E,objectPosition:z,lazyBoundary:I,lazyRoot:R,...A}=e,{imgConf:k,showAltText:D,blurComplete:N,defaultLoader:T}=t,L=k||i.imageConfigDefault;if("allSizes"in L)a=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);a={...L,allSizes:e,deviceSizes:t}}if(void 0===T)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let F=A.loader||T;delete A.loader,delete A.srcSet;let G="__next_img_default"in F;if(G){if("custom"===a.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:r,...n}=t;return e(n)}}if(M){"fill"===M&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!f&&(f=t)}let U="",B=l(v),W=l(y);if((r=d)&&"object"==typeof r&&(o(r)||void 0!==r.src)){let e=o(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,s=e.blurHeight,S=S||e.blurDataURL,U=e.src,!b){if(B||W){if(B&&!W){let t=B/e.width;W=Math.round(e.height*t)}else if(!B&&W){let t=W/e.height;B=Math.round(e.width*t)}}else B=e.width,W=e.height}}let V=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:U)||d.startsWith("data:")||d.startsWith("blob:"))&&(c=!0,V=!1),a.unoptimized&&(c=!0),G&&!a.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(c=!0);let H=l(h),$=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:z}:{},D?{}:{color:"transparent"},_),q=N||"empty"===P?null:"blur"===P?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:W,blurWidth:u,blurHeight:s,blurDataURL:S||"",objectFit:$.objectFit})+'")':'url("'+P+'")',X=q?{backgroundSize:$.objectFit||"cover",backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},J=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:l,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,l),d=u.length-1;return{sizes:l||"w"!==s?l:"100vw",srcSet:u.map((e,n)=>a({config:t,src:r,quality:o,width:e})+" "+("w"===s?e:n+1)+s).join(", "),src:a({config:t,src:r,quality:o,width:u[d]})}}({config:a,src:d,unoptimized:c,width:B,quality:H,sizes:f,loader:F});return{props:{...A,loading:V?"lazy":m,fetchPriority:O,width:B,height:W,decoding:C,className:g,style:{...$,...X},sizes:J.sizes,srcSet:J.srcSet,src:w||J.src},meta:{unoptimized:c,priority:p,placeholder:P,fill:b}}}},80627:(e,t,r)=>{var n=r(86170);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return h},defaultHead:function(){return c}});let i=r(67342),o=r(62599),l=r(20475),a=o._(r(20107)),u=i._(r(41868)),s=r(76947),d=r(17315),f=r(47451);function c(e){void 0===e&&(e=!1);let t=[(0,l.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(20339);let m=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(c(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,l=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){l=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=m.length;e{let i=e.key||t;if(n.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:i})})}let h=function(e){let{children:t}=e,r=(0,a.useContext)(s.AmpStateContext),n=(0,a.useContext)(d.HeadManagerContext);return(0,l.jsx)(u.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,f.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78971:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:l}=e,a=n?40*n:t,u=i?40*i:r,s=a&&u?"viewBox='0 0 "+a+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+s+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(s?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},30957:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(67342)._(r(20107)),i=r(92863),o=n.default.createContext(i.imageConfigDefault)},92863:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},46954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getImageProps:function(){return a}});let n=r(67342),i=r(59090),o=r(15354),l=n._(r(94354));function a(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=o.Image},94354:(e,t)=>{function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)+(r.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},59280:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(67342)._(r(20107)).default.createContext(null)},41868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(20107),i="undefined"==typeof window,o=i?()=>{}:n.useLayoutEffect,l=i?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}if(i){var u;null==t||null==(u=t.mountedInstances)||u.add(e.children),a()}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},21840:(e,t,r)=>{r.d(t,{b:()=>a});var n=r(20107),i=r(34544),o=r(20475),l=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var a=l},34544:(e,t,r)=>{r.d(t,{hO:()=>u,sG:()=>a});var n=r(20107),i=r(25642),o=r(61837),l=r(20475),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...i}=e,a=n?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function u(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},29395:(e,t,r)=>{r.d(t,{F:()=>o});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,r=0,n="";rr=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:l,defaultVariants:a}=t,u=Object.keys(l).map(e=>{let t=null==r?void 0:r[e],i=null==a?void 0:a[e];if(null===t)return null;let o=n(t)||n(i);return l[e][o]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,u,null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...s}[t]):({...a,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6765-07b8009bcdc5965b.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6765-07b8009bcdc5965b.js new file mode 100644 index 0000000..e10832a --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6765-07b8009bcdc5965b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6765],{14629:(e,t,r)=>{r.d(t,{default:()=>i.a});var n=r(46954),i=r.n(n)},16118:(e,t,r)=>{var n=r(65834);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},15354:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let n=r(67342),i=r(62599),o=r(20475),l=i._(r(20107)),a=n._(r(25642)),u=n._(r(80627)),s=r(59090),d=r(92863),f=r(30957);r(20339);let c=r(59280),p=n._(r(94354)),m=r(91297),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function h(e,t,r,n,i,o,l){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,l.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:u,decoding:s,className:d,style:f,fetchPriority:c,placeholder:p,loading:g,unoptimized:y,fill:b,onLoadRef:_,onLoadingCompleteRef:w,setBlurComplete:j,setShowAltText:x,sizesInput:P,onLoad:S,onError:O,...C}=e,M=(0,l.useCallback)(e=>{e&&(O&&(e.src=e.src),e.complete&&h(e,p,_,w,j,y,P))},[r,p,_,w,j,O,y,P]),E=(0,m.useMergedRef)(t,M);return(0,o.jsx)("img",{...C,...v(c),loading:g,width:u,height:a,decoding:s,"data-nimg":b?"fill":"1",className:d,style:f,sizes:i,srcSet:n,src:r,ref:E,onLoad:e=>{h(e.currentTarget,p,_,w,j,y,P)},onError:e=>{x(!0),"empty"!==p&&j(!0),O&&O(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):(0,o.jsx)(u.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,l.forwardRef)((e,t)=>{let r=(0,l.useContext)(c.RouterContext),n=(0,l.useContext)(f.ImageConfigContext),i=(0,l.useMemo)(()=>{let e=g||n||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:u}=e,m=(0,l.useRef)(a);(0,l.useEffect)(()=>{m.current=a},[a]);let h=(0,l.useRef)(u);(0,l.useEffect)(()=>{h.current=u},[u]);let[v,_]=(0,l.useState)(!1),[w,j]=(0,l.useState)(!1),{props:x,meta:P}=(0,s.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:v,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...x,unoptimized:P.unoptimized,placeholder:P.placeholder,fill:P.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:_,setShowAltText:j,sizesInput:e.sizes,ref:t}),P.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91297:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(20107);function i(e,t){let r=(0,n.useRef)(()=>{}),i=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>e&&t?n=>{null===n?(r.current(),i.current()):(r.current=o(e,n),i.current=o(t,n))}:e||t,[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76947:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(67342)._(r(20107)).default.createContext({})},47451:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},59090:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),r(20339);let n=r(78971),i=r(92863);function o(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var r;let a,u,s,{src:d,sizes:f,unoptimized:c=!1,priority:p=!1,loading:m,className:g,quality:h,width:v,height:y,fill:b=!1,style:_,overrideSrc:w,onLoad:j,onLoadingComplete:x,placeholder:P="empty",blurDataURL:S,fetchPriority:O,decoding:C="async",layout:M,objectFit:E,objectPosition:z,lazyBoundary:I,lazyRoot:R,...A}=e,{imgConf:k,showAltText:D,blurComplete:N,defaultLoader:T}=t,L=k||i.imageConfigDefault;if("allSizes"in L)a=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);a={...L,allSizes:e,deviceSizes:t}}if(void 0===T)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let F=A.loader||T;delete A.loader,delete A.srcSet;let G="__next_img_default"in F;if(G){if("custom"===a.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:r,...n}=t;return e(n)}}if(M){"fill"===M&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!f&&(f=t)}let U="",B=l(v),W=l(y);if((r=d)&&"object"==typeof r&&(o(r)||void 0!==r.src)){let e=o(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,s=e.blurHeight,S=S||e.blurDataURL,U=e.src,!b){if(B||W){if(B&&!W){let t=B/e.width;W=Math.round(e.height*t)}else if(!B&&W){let t=W/e.height;B=Math.round(e.width*t)}}else B=e.width,W=e.height}}let V=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:U)||d.startsWith("data:")||d.startsWith("blob:"))&&(c=!0,V=!1),a.unoptimized&&(c=!0),G&&!a.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(c=!0);let H=l(h),$=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:z}:{},D?{}:{color:"transparent"},_),q=N||"empty"===P?null:"blur"===P?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:W,blurWidth:u,blurHeight:s,blurDataURL:S||"",objectFit:$.objectFit})+'")':'url("'+P+'")',X=q?{backgroundSize:$.objectFit||"cover",backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},J=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:l,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,l),d=u.length-1;return{sizes:l||"w"!==s?l:"100vw",srcSet:u.map((e,n)=>a({config:t,src:r,quality:o,width:e})+" "+("w"===s?e:n+1)+s).join(", "),src:a({config:t,src:r,quality:o,width:u[d]})}}({config:a,src:d,unoptimized:c,width:B,quality:H,sizes:f,loader:F});return{props:{...A,loading:V?"lazy":m,fetchPriority:O,width:B,height:W,decoding:C,className:g,style:{...$,...X},sizes:J.sizes,srcSet:J.srcSet,src:w||J.src},meta:{unoptimized:c,priority:p,placeholder:P,fill:b}}}},80627:(e,t,r)=>{var n=r(86170);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return h},defaultHead:function(){return c}});let i=r(67342),o=r(62599),l=r(20475),a=o._(r(20107)),u=i._(r(41868)),s=r(76947),d=r(17315),f=r(47451);function c(e){void 0===e&&(e=!1);let t=[(0,l.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(20339);let m=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(c(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,l=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){l=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=m.length;e{let i=e.key||t;if(n.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:i})})}let h=function(e){let{children:t}=e,r=(0,a.useContext)(s.AmpStateContext),n=(0,a.useContext)(d.HeadManagerContext);return(0,l.jsx)(u.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,f.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78971:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:l}=e,a=n?40*n:t,u=i?40*i:r,s=a&&u?"viewBox='0 0 "+a+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+s+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(s?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},30957:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(67342)._(r(20107)),i=r(92863),o=n.default.createContext(i.imageConfigDefault)},92863:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},46954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getImageProps:function(){return a}});let n=r(67342),i=r(59090),o=r(15354),l=n._(r(94354));function a(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=o.Image},94354:(e,t)=>{function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)+(r.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},59280:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(67342)._(r(20107)).default.createContext(null)},41868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(20107),i="undefined"==typeof window,o=i?()=>{}:n.useLayoutEffect,l=i?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}if(i){var u;null==t||null==(u=t.mountedInstances)||u.add(e.children),a()}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},21840:(e,t,r)=>{r.d(t,{b:()=>a});var n=r(20107),i=r(34544),o=r(20475),l=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var a=l},34544:(e,t,r)=>{r.d(t,{hO:()=>u,sG:()=>a});var n=r(20107),i=r(25642),o=r(61837),l=r(20475),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...i}=e,a=n?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function u(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},29395:(e,t,r)=>{r.d(t,{F:()=>o});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,r=0,n="";rr=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:l,defaultVariants:a}=t,u=Object.keys(l).map(e=>{let t=null==r?void 0:r[e],i=null==a?void 0:a[e];if(null===t)return null;let o=n(t)||n(i);return l[e][o]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,u,null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...s}[t]):({...a,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6810-8c083ebb04e3d5c9.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6810-8c083ebb04e3d5c9.js new file mode 100644 index 0000000..db0c07d --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6810-8c083ebb04e3d5c9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6810],{56703:(e,t,r)=>{r.d(t,{q:()=>n});function n(e,[t,r]){return Math.min(r,Math.max(t,e))}},32474:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(20107),l=r(54379),o=r(64236),a=r(61837),i=r(20475);function s(e){let t=e+"CollectionProvider",[r,s]=(0,l.A)(t),[u,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,l=n.useRef(null),o=n.useRef(new Map).current;return(0,i.jsx)(u,{scope:t,itemMap:o,collectionRef:l,children:r})};c.displayName=t;let p=e+"CollectionSlot",f=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=d(p,r),s=(0,o.s)(t,l.collectionRef);return(0,i.jsx)(a.DX,{ref:s,children:n})});f.displayName=p;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=n.forwardRef((e,t)=>{let{scope:r,children:l,...s}=e,u=n.useRef(null),c=(0,o.s)(t,u),p=d(v,r);return n.useEffect(()=>(p.itemMap.set(u,{ref:u,...s}),()=>void p.itemMap.delete(u))),(0,i.jsx)(a.DX,{[h]:"",ref:c,children:l})});return m.displayName=v,[{Provider:c,Slot:f,ItemSlot:m},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},76056:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(20107);r(20475);var l=n.createContext(void 0);function o(e){let t=n.useContext(l);return e||t||"ltr"}},21840:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(20107),l=r(34544),o=r(20475),a=n.forwardRef((e,t)=>(0,o.jsx)(l.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var i=a},95257:(e,t,r)=>{r.d(t,{In:()=>eE,JU:()=>e_,LM:()=>eA,PP:()=>eO,UC:()=>eL,VF:()=>eG,WT:()=>eI,YJ:()=>eH,ZL:()=>eD,bL:()=>eP,l9:()=>eM,p4:()=>eV,q7:()=>eB,wn:()=>eF,wv:()=>eK});var n=r(20107),l=r(25642),o=r(56703),a=r(94521),i=r(32474),s=r(64236),u=r(45170),d=r(76056),c=r(55302),p=r(10201),f=r(38573),v=r(72763),h=r(57563),m=r(41913),w=r(34544),g=r(61837),x=r(46774),y=r(13061),b=r(54122),S=r(65163),C=r(91475),j=r(58020),R=r(9543),N=r(20475),k=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],P="Select",[M,I,E]=(0,i.N)(P),[D,L]=(0,u.A)(P,[E,h.Bk]),A=(0,h.Bk)(),[H,_]=D(P),[B,V]=D(P),G=e=>{let{__scopeSelect:t,children:r,open:l,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:u,dir:c,name:p,autoComplete:f,disabled:m,required:w,form:g}=e,x=A(t),[b,S]=n.useState(null),[C,j]=n.useState(null),[R,k]=n.useState(!1),T=(0,d.jH)(c),[P=!1,I]=(0,y.i)({prop:l,defaultProp:o,onChange:a}),[E,D]=(0,y.i)({prop:i,defaultProp:s,onChange:u}),L=n.useRef(null),_=!b||g||!!b.closest("form"),[V,G]=n.useState(new Set),O=Array.from(V).map(e=>e.props.value).join(";");return(0,N.jsx)(h.bL,{...x,children:(0,N.jsxs)(H,{required:w,scope:t,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:R,onValueNodeHasChildrenChange:k,contentId:(0,v.B)(),value:E,onValueChange:D,open:P,onOpenChange:I,dir:T,triggerPointerDownPosRef:L,disabled:m,children:[(0,N.jsx)(M.Provider,{scope:t,children:(0,N.jsx)(B,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{G(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{G(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),_?(0,N.jsxs)(eN,{"aria-hidden":!0,required:w,tabIndex:-1,name:p,autoComplete:f,value:E,onChange:e=>D(e.target.value),disabled:m,form:g,children:[void 0===E?(0,N.jsx)("option",{value:""}):null,Array.from(V)]},O):null]})})};G.displayName=P;var O="SelectTrigger",F=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:l=!1,...o}=e,i=A(r),u=_(O,r),d=u.disabled||l,c=(0,s.s)(t,u.onTriggerChange),p=I(r),f=n.useRef("touch"),[v,m,g]=ek(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eT(t,e,r);void 0!==n&&u.onValueChange(n.value)}),x=e=>{d||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,N.jsx)(h.Mz,{asChild:!0,...i,children:(0,N.jsx)(w.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":eR(u.value)?"":void 0,...o,ref:c,onClick:(0,a.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&x(e)}),onPointerDown:(0,a.m)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,a.m)(o.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&k.includes(e.key)&&(x(),e.preventDefault())})})})});F.displayName=O;var K="SelectValue",W=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:l,children:o,placeholder:a="",...i}=e,u=_(K,r),{onValueNodeHasChildrenChange:d}=u,c=void 0!==o,p=(0,s.s)(t,u.onValueNodeChange);return(0,b.N)(()=>{d(c)},[d,c]),(0,N.jsx)(w.sG.span,{...i,ref:p,style:{pointerEvents:"none"},children:eR(u.value)?(0,N.jsx)(N.Fragment,{children:a}):o})});W.displayName=K;var U=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...l}=e;return(0,N.jsx)(w.sG.span,{"aria-hidden":!0,...l,ref:t,children:n||"▼"})});U.displayName="SelectIcon";var q=e=>(0,N.jsx)(m.Z,{asChild:!0,...e});q.displayName="SelectPortal";var z="SelectContent",X=n.forwardRef((e,t)=>{let r=_(z,e.__scopeSelect),[o,a]=n.useState();return((0,b.N)(()=>{a(new DocumentFragment)},[]),r.open)?(0,N.jsx)(J,{...e,ref:t}):o?l.createPortal((0,N.jsx)(Z,{scope:e.__scopeSelect,children:(0,N.jsx)(M.Slot,{scope:e.__scopeSelect,children:(0,N.jsx)("div",{children:e.children})})}),o):null});X.displayName=z;var[Z,Y]=D(z),J=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:u,side:d,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C,...k}=e,T=_(z,r),[P,M]=n.useState(null),[E,D]=n.useState(null),L=(0,s.s)(t,e=>M(e)),[A,H]=n.useState(null),[B,V]=n.useState(null),G=I(r),[O,F]=n.useState(!1),K=n.useRef(!1);n.useEffect(()=>{if(P)return(0,j.Eq)(P)},[P]),(0,p.Oh)();let W=n.useCallback(e=>{let[t,...r]=G().map(e=>e.ref.current),[n]=r.slice(-1),l=document.activeElement;for(let r of e)if(r===l||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&E&&(E.scrollTop=0),r===n&&E&&(E.scrollTop=E.scrollHeight),null==r||r.focus(),document.activeElement!==l))return},[G,E]),U=n.useCallback(()=>W([A,P]),[W,A,P]);n.useEffect(()=>{O&&U()},[O,U]);let{onOpenChange:q,triggerPointerDownPosRef:X}=T;n.useEffect(()=>{if(P){let e={x:0,y:0},t=t=>{var r,n,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(l=null===(r=X.current)||void 0===r?void 0:r.x)&&void 0!==l?l:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=X.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():P.contains(r.target)||q(!1),document.removeEventListener("pointermove",t),X.current=null};return null!==X.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[P,q,X]),n.useEffect(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[Y,J]=ek(e=>{let t=G().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eT(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!K.current&&!r;(void 0!==T.value&&T.value===t||n)&&(H(e),n&&(K.current=!0))},[T.value]),et=n.useCallback(()=>null==P?void 0:P.focus(),[P]),er=n.useCallback((e,t,r)=>{let n=!K.current&&!r;(void 0!==T.value&&T.value===t||n)&&V(e)},[T.value]),en="popper"===l?$:Q,el=en===$?{side:d,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C}:{};return(0,N.jsx)(Z,{scope:r,content:P,viewport:E,onViewportChange:D,itemRefCallback:ee,selectedItem:A,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:U,selectedItemText:B,position:l,isPositioned:O,searchRef:Y,children:(0,N.jsx)(R.A,{as:g.DX,allowPinchZoom:!0,children:(0,N.jsx)(f.n,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(o,e=>{var t;null===(t=T.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,N.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,N.jsx)(en,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...k,...el,onPlaced:()=>F(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:(0,a.m)(k.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=G().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>W(t)),e.preventDefault()}})})})})})})});J.displayName="SelectContentImpl";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:l,...a}=e,i=_(z,r),u=Y(z,r),[d,c]=n.useState(null),[p,f]=n.useState(null),v=(0,s.s)(t,e=>f(e)),h=I(r),m=n.useRef(!1),g=n.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=u,j=n.useCallback(()=>{if(i.trigger&&i.valueNode&&d&&p&&x&&y&&S){let e=i.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==i.dir){let l=n.left-t.left,a=r.left-l,i=e.left-a,s=e.width+i,u=Math.max(s,t.width),c=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.left=p+"px"}else{let l=t.right-n.right,a=window.innerWidth-r.right-l,i=window.innerWidth-e.right-a,s=e.width+i,u=Math.max(s,t.width),c=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.right=p+"px"}let a=h(),s=window.innerHeight-20,u=x.scrollHeight,c=window.getComputedStyle(p),f=parseInt(c.borderTopWidth,10),v=parseInt(c.paddingTop,10),w=parseInt(c.borderBottomWidth,10),g=f+v+u+parseInt(c.paddingBottom,10)+w,b=Math.min(5*y.offsetHeight,g),C=window.getComputedStyle(x),j=parseInt(C.paddingTop,10),R=parseInt(C.paddingBottom,10),N=e.top+e.height/2-10,k=y.offsetHeight/2,T=f+v+(y.offsetTop+k);if(T<=N){let e=a.length>0&&y===a[a.length-1].ref.current;d.style.bottom="0px";let t=Math.max(s-N,k+(e?R:0)+(p.clientHeight-x.offsetTop-x.offsetHeight)+w);d.style.height=T+t+"px"}else{let e=a.length>0&&y===a[0].ref.current;d.style.top="0px";let t=Math.max(N,f+x.offsetTop+(e?j:0)+k);d.style.height=t+(g-T)+"px",x.scrollTop=T-N+x.offsetTop}d.style.margin="".concat(10,"px 0"),d.style.minHeight=b+"px",d.style.maxHeight=s+"px",null==l||l(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,d,p,x,y,S,i.dir,l]);(0,b.N)(()=>j(),[j]);let[R,k]=n.useState();(0,b.N)(()=>{p&&k(window.getComputedStyle(p).zIndex)},[p]);let T=n.useCallback(e=>{e&&!0===g.current&&(j(),null==C||C(),g.current=!1)},[j,C]);return(0,N.jsx)(ee,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:(0,N.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,N.jsx)(w.sG.div,{...a,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Q.displayName="SelectItemAlignedPosition";var $=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:l=10,...o}=e,a=A(r);return(0,N.jsx)(h.UC,{...a,...o,ref:t,align:n,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});$.displayName="SelectPopperPosition";var[ee,et]=D(z,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:l,...o}=e,i=Y(er,r),u=et(er,r),d=(0,s.s)(t,i.onViewportChange),c=n.useRef(0);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,N.jsx)(M.Slot,{scope:r,children:(0,N.jsx)(w.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(c.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,l=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(l0?i:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});en.displayName=er;var el="SelectGroup",[eo,ea]=D(el),ei=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=(0,v.B)();return(0,N.jsx)(eo,{scope:r,id:l,children:(0,N.jsx)(w.sG.div,{role:"group","aria-labelledby":l,...n,ref:t})})});ei.displayName=el;var es="SelectLabel",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=ea(es,r);return(0,N.jsx)(w.sG.div,{id:l.id,...n,ref:t})});eu.displayName=es;var ed="SelectItem",[ec,ep]=D(ed),ef=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:l,disabled:o=!1,textValue:i,...u}=e,d=_(ed,r),c=Y(ed,r),p=d.value===l,[f,h]=n.useState(null!=i?i:""),[m,g]=n.useState(!1),x=(0,s.s)(t,e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,l,o)}),y=(0,v.B)(),b=n.useRef("touch"),S=()=>{o||(d.onValueChange(l),d.onOpenChange(!1))};if(""===l)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,N.jsx)(ec,{scope:r,value:l,disabled:o,textId:y,isSelected:p,onItemTextChange:n.useCallback(e=>{h(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,N.jsx)(M.ItemSlot,{scope:r,value:l,disabled:o,textValue:f,children:(0,N.jsx)(w.sG.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":p&&m,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:x,onFocus:(0,a.m)(u.onFocus,()=>g(!0)),onBlur:(0,a.m)(u.onBlur,()=>g(!1)),onClick:(0,a.m)(u.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,a.m)(u.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,a.m)(u.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,a.m)(u.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}}),onKeyDown:(0,a.m)(u.onKeyDown,e=>{var t;(null===(t=c.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(T.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});ef.displayName=ed;var ev="SelectItemText",eh=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...i}=e,u=_(ev,r),d=Y(ev,r),c=ep(ev,r),p=V(ev,r),[f,v]=n.useState(null),h=(0,s.s)(t,e=>v(e),c.onItemTextChange,e=>{var t;return null===(t=d.itemTextRefCallback)||void 0===t?void 0:t.call(d,e,c.value,c.disabled)}),m=null==f?void 0:f.textContent,g=n.useMemo(()=>(0,N.jsx)("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=p;return(0,b.N)(()=>(x(g),()=>y(g)),[x,y,g]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(w.sG.span,{id:c.textId,...i,ref:h}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren?l.createPortal(i.children,u.valueNode):null]})});eh.displayName=ev;var em="SelectItemIndicator",ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ep(em,r).isSelected?(0,N.jsx)(w.sG.span,{"aria-hidden":!0,...n,ref:t}):null});ew.displayName=em;var eg="SelectScrollUpButton",ex=n.forwardRef((e,t)=>{let r=Y(eg,e.__scopeSelect),l=et(eg,e.__scopeSelect),[o,a]=n.useState(!1),i=(0,s.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,N.jsx)(eS,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ex.displayName=eg;var ey="SelectScrollDownButton",eb=n.forwardRef((e,t)=>{let r=Y(ey,e.__scopeSelect),l=et(ey,e.__scopeSelect),[o,a]=n.useState(!1),i=(0,s.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,N.jsx)(eS,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eb.displayName=ey;var eS=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:l,...o}=e,i=Y("SelectScrollButton",r),s=n.useRef(null),u=I(r),d=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>d(),[d]),(0,b.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,N.jsx)(w.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.m)(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(l,50))}),onPointerMove:(0,a.m)(o.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===s.current&&(s.current=window.setInterval(l,50))}),onPointerLeave:(0,a.m)(o.onPointerLeave,()=>{d()})})}),eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,N.jsx)(w.sG.div,{"aria-hidden":!0,...n,ref:t})});eC.displayName="SelectSeparator";var ej="SelectArrow";function eR(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=A(r),o=_(ej,r),a=Y(ej,r);return o.open&&"popper"===a.position?(0,N.jsx)(h.i3,{...l,...n,ref:t}):null}).displayName=ej;var eN=n.forwardRef((e,t)=>{let{value:r,...l}=e,o=n.useRef(null),a=(0,s.s)(t,o),i=(0,S.Z)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[i,r]),(0,N.jsx)(C.s,{asChild:!0,children:(0,N.jsx)("select",{...l,ref:a,defaultValue:r})})});function ek(e){let t=(0,x.c)(e),r=n.useRef(""),l=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(l.current),""!==t&&(l.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(l.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(l.current),[]),[r,o,a]}function eT(e,t,r){var n;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===l.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return a!==r?a:void 0}eN.displayName="BubbleSelect";var eP=G,eM=F,eI=W,eE=U,eD=q,eL=X,eA=en,eH=ei,e_=eu,eB=ef,eV=eh,eG=ew,eO=ex,eF=eb,eK=eC},65163:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(20107);function l(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},91475:(e,t,r)=>{r.d(t,{b:()=>i,s:()=>a});var n=r(20107),l=r(34544),o=r(20475),a=n.forwardRef((e,t)=>(0,o.jsx)(l.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var i=a}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7123-5ee642dc1491326b.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7123-5ee642dc1491326b.js deleted file mode 100644 index f996098..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7123-5ee642dc1491326b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7123],{37123:(e,t,a)=>{a.r(t),a.d(t,{default:()=>y});var r=a(95155),s=a(12115),i=a(35007),n=a(50745),l=a(9246),o=a(14085),c=a(74430),d=a(15785),u=a(9955),m=a(14505),h=a(67401);let p=(0,h.A)("ShieldX",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]),f=(0,h.A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var x=a(23950);let g=(0,h.A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),v=(0,h.A)("ScanEye",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),j=(0,h.A)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);var b=a(20241);let y=()=>{let{toast:e}=(0,b.dj)(),[t,a]=(0,s.useState)({pingTarget:"8.8.8.8",pingInterval:60,pingFailures:3,maxRetries:5,connectionRefresh:!1,autoSimFailover:!1,simFailoverSchedule:30}),[h,y]=(0,s.useState)("loading"),[w,N]=(0,s.useState)(!1),[k,S]=(0,s.useState)(null),[R,F]=(0,s.useState)(null),[C,T]=(0,s.useState)(0),E=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh");if(!e.ok)throw Error("Network response was not ok");let t=await e.json();if("active"===t.status){if(t.config){let e={pingTarget:t.config.pingTarget||"8.8.8.8",pingInterval:t.config.pingInterval||60,pingFailures:t.config.pingFailures||3,maxRetries:t.config.maxRetries||5,connectionRefresh:!!t.config.connectionRefresh,autoSimFailover:!!t.config.autoSimFailover,simFailoverSchedule:t.config.simFailoverSchedule||30};a(e),void 0!==t.config.currentRetries?(T(t.config.currentRetries),t.config.currentRetries>=e.maxRetries?y("maxRetries"):y("active")):y("active"),F(t.lastActivity||null)}else y("active")}else"inactive"===t.status?y("inactive"):(y("error"),S(t.message||"Unknown error occurred"))}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:"Failed to fetch QuecWatch configuration",variant:"destructive"})}};(0,s.useEffect)(()=>{E()},[]),(0,s.useEffect)(()=>{if("active"===h||"maxRetries"===h){let e=setInterval(E,5e3);return()=>clearInterval(e)}},[h]);let A=async()=>{N(!0);try{let t=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/reset-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let a=await t.json();if("success"===a.status)e({title:"QuecWatch Reset",description:"Counter reset and service restarted successfully"}),y("active"),T(0),setTimeout(E,1e3);else throw Error(a.message||"Failed to reset retry counter")}catch(t){e({title:"Error",description:t instanceof Error?t.message:"Failed to reset retry counter",variant:"destructive"})}finally{N(!1)}},I=async()=>{N(!0),S(null);try{let a=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/enable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pingTarget:t.pingTarget,pingInterval:t.pingInterval,pingFailures:t.pingFailures,maxRetries:t.maxRetries,connectionRefresh:t.connectionRefresh,autoSimFailover:t.autoSimFailover,simFailoverSchedule:t.simFailoverSchedule})});if(!a.ok)throw Error("Network response was not ok");let r=await a.json();if("success"===r.status)y("active"),e({title:"QuecWatch Enabled",description:"QuecWatch enabled successfully"}),await E();else throw Error(r.message||"Failed to enable QuecWatch")}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:t instanceof Error?t.message:"Failed to enable QuecWatch",variant:"destructive"})}finally{N(!1)}},M=async()=>{N(!0),S(null);try{let t=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/disable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let a=await t.json();if("success"===a.status)y("inactive"),e({title:"QuecWatch Disabled",description:"QuecWatch disabled successfully",variant:"default"});else throw Error(a.message||"Failed to disable QuecWatch")}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:t instanceof Error?t.message:"Failed to disable QuecWatch",variant:"destructive"})}finally{N(!1)}};return(0,r.jsxs)(i.Zp,{children:[(0,r.jsxs)(i.aR,{children:[(0,r.jsx)(i.ZB,{children:"QuecWatch"}),(0,r.jsx)(i.BT,{children:"An intelligent watchdog service for Quectel-AP modems that ensures network reliability through automated monitoring, connection management, and SIM failover capabilities."})]}),(0,r.jsx)(i.Wu,{children:(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,r.jsx)(d.J,{children:"QuecWatch Status"}),(0,r.jsx)("div",{className:"flex items-center space-x-1",children:"loading"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"animate-spin text-primary size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Loading..."})]}):"inactive"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{className:"text-rose-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Inactive"})]}):"active"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f,{className:"text-green-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Active"})]}):"maxRetries"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{className:"text-yellow-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Maximum Retries Exhausted"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{className:"text-amber-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Error"})]})})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,r.jsx)(d.J,{children:"Remaining Retries"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[("active"===h||"maxRetries"===h)&&(0,r.jsx)(l.TooltipProvider,{children:(0,r.jsxs)(l.m_,{children:[(0,r.jsx)(l.k$,{children:(0,r.jsx)(o.$,{variant:"outline",size:"icon",className:"h-6 w-6",onClick:A,disabled:w,children:(0,r.jsx)(g,{className:"h-4 w-4"})})}),(0,r.jsx)(l.ZI,{children:(0,r.jsx)("p",{children:"Reset the retry counter"})})]})}),(0,r.jsxs)("p",{className:"text-muted-foreground text-sm",children:[C," / ",t.maxRetries]})]})]})]}),(0,r.jsxs)("div",{className:"grid grid-flow-row lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(d.J,{htmlFor:"ping",children:"Ping Target"}),(0,r.jsx)(u.p,{id:"ping",placeholder:"8.8.8.8",value:t.pingTarget,disabled:"active"===h||"maxRetries"===h,onChange:e=>a(t=>({...t,pingTarget:e.target.value}))})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(d.J,{htmlFor:"ping-interval",children:"Ping Interval"}),(0,r.jsxs)(n.l6,{value:t.pingInterval.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,pingInterval:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"ping-interval",children:(0,r.jsx)(n.yv,{placeholder:"Select Ping Interval"})}),(0,r.jsx)(n.gC,{children:[5,10,15,30,60,120,300,600,1800,3600].map(e=>(0,r.jsx)(n.eb,{value:e.toString(),children:e>=3600?"".concat(e/3600," hour").concat(e>3600?"s":""):e>=60?"".concat(e/60," minute").concat(e>=120?"s":""):"".concat(e," second").concat(1!==e?"s":"")},e))})]})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(d.J,{htmlFor:"ping-failure",children:"Ping Failures"}),(0,r.jsxs)(n.l6,{value:t.pingFailures.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,pingFailures:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"ping-failure",children:(0,r.jsx)(n.yv,{placeholder:"Select Ping Failures"})}),(0,r.jsx)(n.gC,{children:[1,3,5,10].map(e=>(0,r.jsxs)(n.eb,{value:e.toString(),children:[e," failure",1!==e?"s":""]},e))})]})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(d.J,{htmlFor:"max-retries",children:"Max Retries"}),(0,r.jsxs)(n.l6,{value:t.maxRetries.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,maxRetries:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"max-retries",children:(0,r.jsx)(n.yv,{placeholder:"Select Max Retries"})}),(0,r.jsx)(n.gC,{children:[1,3,5,10,15,20].map(e=>(0,r.jsx)(n.eb,{value:e.toString(),children:e},e))})]})]})]}),(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[(0,r.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,r.jsx)(d.J,{className:"text-base",children:"Connection Refresh"}),(0,r.jsx)(d.J,{className:"text-sm font-normal text-muted-foreground",children:"Toggle the connection refresh for the modem to first attempt reconnecting to the network before restarting."})]}),(0,r.jsx)(c.d,{checked:t.connectionRefresh,disabled:"active"===h||"maxRetries"===h,onCheckedChange:e=>a(t=>({...t,connectionRefresh:e}))})]}),(0,r.jsxs)("div",{className:" rounded-lg border p-4 grid gap-y-6",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,r.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,r.jsx)(d.J,{className:"text-base",children:"Auto SIM Failover"}),(0,r.jsx)(d.J,{className:"text-sm font-normal text-muted-foreground",children:"Auto SIM Failover will automatically switch to the next available SIM card when the current SIM card fails to connect to the network."})]}),(0,r.jsx)(c.d,{checked:t.autoSimFailover,disabled:"active"===h||"maxRetries"===h,onCheckedChange:e=>a(t=>({...t,autoSimFailover:e}))})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(d.J,{htmlFor:"sim-failover",children:"Schedule SIM Checking"}),(0,r.jsxs)(n.l6,{value:t.simFailoverSchedule.toString(),disabled:"active"===h||"maxRetries"===h||!t.autoSimFailover,onValueChange:e=>a(t=>({...t,simFailoverSchedule:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"sim-failover",className:"max-w-xs",children:(0,r.jsx)(n.yv,{placeholder:"Select SIM Checking Interval"})}),(0,r.jsxs)(n.gC,{children:[(0,r.jsx)(n.eb,{value:"0",children:"Disabled"}),(0,r.jsx)(n.eb,{value:"1",children:"1 Minute"}),(0,r.jsx)(n.eb,{value:"5",children:"5 Minutes"}),(0,r.jsx)(n.eb,{value:"30",children:"30 Minutes"}),(0,r.jsx)(n.eb,{value:"60",children:"1 Hour"}),(0,r.jsx)(n.eb,{value:"360",children:"6 Hours"}),(0,r.jsx)(n.eb,{value:"720",children:"12 Hours"}),(0,r.jsx)(n.eb,{value:"1440",children:"24 Hours"})]})]})]})]}),(0,r.jsxs)("div",{className:"rounded-lg border p-4",children:[(0,r.jsx)(d.J,{className:"text-base",children:"Last Activity"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:R||"No recent activity"})]}),k&&(0,r.jsx)("div",{className:"text-red-500 text-sm",children:k})]})}),(0,r.jsxs)(i.wL,{className:"flex gap-4 border-t py-4",children:[("inactive"===h||"error"===h)&&(0,r.jsx)(o.$,{onClick:I,disabled:w||!t.pingTarget,children:w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"h-4 w-4 animate-spin"}),"Enabling..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{className:"w-4 h-4"}),"Enable QuecWatch"]})}),("active"===h||"maxRetries"===h)&&(0,r.jsx)(o.$,{variant:"destructive",onClick:M,disabled:w,children:w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"h-4 w-4 animate-spin"}),"Disabling..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{className:"w-4 h-4"}),"Disable QuecWatch"]})})]})]})}},14085:(e,t,a)=>{a.d(t,{$:()=>c,r:()=>o});var r=a(95155),s=a(12115),i=a(12317),n=a(31027),l=a(29602);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:a,variant:s,size:n,asChild:c=!1,...d}=e,u=c?i.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:s,size:n,className:a})),ref:t,...d})});c.displayName="Button"},35007:(e,t,a)=>{a.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>o,Zp:()=>n,aR:()=>l,wL:()=>u});var r=a(95155),s=a(12115),i=a(29602);let n=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",a),...s})});l.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",a),...s})});o.displayName="CardTitle";let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...s})});c.displayName="CardDescription";let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",a),...s})});d.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",a),...s})});u.displayName="CardFooter"},9955:(e,t,a)=>{a.d(t,{p:()=>n});var r=a(95155),s=a(12115),i=a(29602);let n=s.forwardRef((e,t)=>{let{className:a,type:s,...n}=e;return(0,r.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...n})});n.displayName="Input"},15785:(e,t,a)=>{a.d(t,{J:()=>c});var r=a(95155),s=a(12115),i=a(46195),n=a(31027),l=a(29602);let o=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.b,{ref:t,className:(0,l.cn)(o(),a),...s})});c.displayName=i.b.displayName},50745:(e,t,a)=>{a.d(t,{TR:()=>f,bq:()=>u,eb:()=>x,gC:()=>p,l6:()=>o,s3:()=>c,yv:()=>d});var r=a(95155),s=a(12115),i=a(87365),n=a(63409),l=a(29602);let o=n.bL,c=n.YJ,d=n.WT,u=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,r.jsxs)(n.l9,{ref:t,className:(0,l.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...o,children:[s,(0,r.jsx)(n.In,{asChild:!0,children:(0,r.jsx)(i.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.PP,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,r.jsx)(i.Mtm,{})})});m.displayName=n.PP.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.wn,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,r.jsx)(i.D3D,{})})});h.displayName=n.wn.displayName;let p=s.forwardRef((e,t)=>{let{className:a,children:s,position:i="popper",...o}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsxs)(n.UC,{ref:t,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:i,...o,children:[(0,r.jsx)(m,{}),(0,r.jsx)(n.LM,{className:(0,l.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,r.jsx)(h,{})]})})});p.displayName=n.UC.displayName;let f=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.JU,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",a),...s})});f.displayName=n.JU.displayName;let x=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,r.jsxs)(n.q7,{ref:t,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.VF,{children:(0,r.jsx)(i.Srz,{className:"h-4 w-4"})})}),(0,r.jsx)(n.p4,{children:s})]})});x.displayName=n.q7.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.wv,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=n.wv.displayName},74430:(e,t,a)=>{a.d(t,{d:()=>N});var r=a(95155),s=a(12115),i=a(93610),n=a(88068),l=a(18166),o=a(1488),c=a(50858),d=a(7510),u=a(23360),m="Switch",[h,p]=(0,l.A)(m),[f,x]=h(m),g=s.forwardRef((e,t)=>{let{__scopeSwitch:a,name:l,checked:c,defaultChecked:d,required:m,disabled:h,value:p="on",onCheckedChange:x,form:g,...v}=e,[j,w]=s.useState(null),N=(0,n.s)(t,e=>w(e)),k=s.useRef(!1),S=!j||g||!!j.closest("form"),[R=!1,F]=(0,o.i)({prop:c,defaultProp:d,onChange:x});return(0,r.jsxs)(f,{scope:a,checked:R,disabled:h,children:[(0,r.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":R,"aria-required":m,"data-state":y(R),"data-disabled":h?"":void 0,disabled:h,value:p,...v,ref:N,onClick:(0,i.m)(e.onClick,e=>{F(e=>!e),S&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),S&&(0,r.jsx)(b,{control:j,bubbles:!k.current,name:l,value:p,checked:R,required:m,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});g.displayName=m;var v="SwitchThumb",j=s.forwardRef((e,t)=>{let{__scopeSwitch:a,...s}=e,i=x(v,a);return(0,r.jsx)(u.sG.span,{"data-state":y(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})});j.displayName=v;var b=e=>{let{control:t,checked:a,bubbles:i=!0,...n}=e,l=s.useRef(null),o=(0,c.Z)(a),u=(0,d.X)(t);return s.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==a&&t){let r=new Event("click",{bubbles:i});t.call(e,a),e.dispatchEvent(r)}},[o,a,i]),(0,r.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...n,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return e?"checked":"unchecked"}var w=a(29602);let N=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(g,{className:(0,w.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...s,ref:t,children:(0,r.jsx)(j,{className:(0,w.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});N.displayName=g.displayName},9246:(e,t,a)=>{a.d(t,{TooltipProvider:()=>l,ZI:()=>d,k$:()=>c,m_:()=>o});var r=a(95155),s=a(12115),i=a(19710),n=a(29602);let l=i.Kq,o=i.bL,c=i.l9,d=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...l}=e;return(0,r.jsx)(i.UC,{ref:t,sideOffset:s,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...l})});d.displayName=i.UC.displayName},20241:(e,t,a)=>{a.d(t,{dj:()=>m,oR:()=>u});var r=a(12115);let s=0,i=new Map,n=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?n(a):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],c={toasts:[]};function d(e){c=l(c,e),o.forEach(e=>{e(c)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>d({type:"DISMISS_TOAST",toastId:a});return d({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||r()}}}),{id:a,dismiss:r,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=r.useState(c);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,a)=>{a.d(t,{cn:()=>i});var r=a(43463),s=a(69795);function i(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{A:()=>r});let r=(0,a(67401).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},23950:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(67401).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7133-702ff49dc7ecf6c2.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7133-702ff49dc7ecf6c2.js new file mode 100644 index 0000000..96ab7d7 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7133-702ff49dc7ecf6c2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7133],{87133:(e,t,a)=>{a.r(t),a.d(t,{default:()=>A});var s=a(20475),r=a(20107),l=a(72167),i=a(35601),o=a(42541),n=a(76554),d=a(64219),c=a(49153),u=a(21906),m=a(45934),p=a(29475),h=a(39997);let f=(0,h.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);var g=a(52161),v=a(97801),x=a(32857),w=a(49573);let N=(0,h.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var b=a(98969);let y=(0,h.A)("Clock1",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 8",key:"12zbmj"}]]),C=(0,h.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),j=e=>{let{loading:t,scheduleData:a,onStartTimeChange:i,onEndTimeChange:n,onSchedulingToggle:u}=e,[m,h]=(0,r.useState)({text:"Disabled",color:"text-red-600",icon:N}),f=()=>{if(!a.enabled){h({text:"Disabled",color:"text-red-600",icon:N});return}let e=new Date,t=60*e.getHours()+e.getMinutes(),[s,r]=a.startTime.split(":").map(Number),[l,i]=a.endTime.split(":").map(Number),o=60*s+r,n=60*l+i;o<=n?t>=o&&t<=n?h({text:"Active",color:"text-green-600",icon:b.A}):h({text:"Inactive",color:"text-yellow-500",icon:y}):t>=o||t<=n?h({text:"Active",color:"text-green-600",icon:b.A}):h({text:"Inactive",color:"text-yellow-500",icon:y})},g=()=>{a.active?h({text:"Active",color:"text-green-600",icon:b.A}):a.enabled&&!a.active?h({text:"Inactive",color:"text-yellow-500",icon:y}):h({text:"Disabled",color:"text-red-600",icon:N})};(0,r.useEffect)(()=>{g();let e=setInterval(f,6e4);return()=>{clearInterval(e)}},[a]);let v=m.icon;return(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsxs)(l.ZB,{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{children:(0,s.jsx)("span",{children:"Cell Locking Scheduler"})}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(v,{className:"h-4 w-4 mr-1 ".concat(m.color)}),(0,s.jsx)("div",{className:"text-sm text-gray-500",children:m.text})]})]}),(0,s.jsx)(l.BT,{children:"Schedule the device to lock to specific cells at certain times."})]}),(0,s.jsxs)(l.Wu,{children:[a.enabled&&(0,s.jsxs)(w.Fc,{className:"mb-6",children:[(0,s.jsx)(p.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(w.XL,{children:"Scheduled Cell Locking Active"}),(0,s.jsx)(w.TN,{children:"Cell locking is currently being managed by the scheduler. Manual changes to cell locks may be overridden during scheduled hours."})]}),(0,s.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"start-time",children:"Start Time"}),(0,s.jsx)(d.p,{type:"time",id:"start-time",value:a.startTime,onChange:e=>i(e.target.value),disabled:t||a.enabled,placeholder:"START TIME"})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"end-time",children:"End Time"}),(0,s.jsx)(d.p,{type:"time",id:"end-time",value:a.endTime,onChange:e=>n(e.target.value),disabled:t||a.enabled,placeholder:"END TIME"})]}),(0,s.jsx)("div",{className:"lg:col-span-2 col-span-1",children:(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Make sure to properly set the timezone using Luci for this to properly work. The scheduler will lock the device to the selected cells during the specified time range. The scheduler will not lock the device if the time range is not valid (e.g. start time is after end time)."})})]})]}),(0,s.jsx)(l.wL,{className:"border-t py-4",children:(0,s.jsxs)(o.$,{onClick:()=>u(!a.enabled),disabled:t||!a.locked&&!a.enabled,children:[(0,s.jsx)(C,{className:"h-4 w-4"}),a.enabled?"Disable Scheduler":"Enable Scheduler"]})})]})};var R=a(88926);let A=()=>{let{toast:e}=(0,x.dj)(),[t,a]=(0,r.useState)(!1),[h,w]=(0,r.useState)(!1),[N,b]=(0,r.useState)(!1),[y,C]=(0,r.useState)(!1),[A,E]=(0,r.useState)({enabled:!1,startTime:"",endTime:"",active:!1,status:"",message:"",locked:!1}),[T,k]=(0,r.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[F,S]=(0,r.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),P=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},I=async()=>{try{a(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=8"),t=await e.json();if(!e.ok)throw Error("Failed to fetch current status");console.log("Current cell locking status:",t);let s=P(t[2].response);console.log("Persist status:",s),s&&s.length>=2&&(b("1"===s[1]),C("1"===s[2]));let r=P(t[0].response);if(console.log("Current LTE lock status:",r),r){let e={EARFCN1:r[2],PCI1:r[3],EARFCN2:r[4],PCI2:r[5],EARFCN3:r[6],PCI3:r[7]};k(e),console.log("New LTE state:",e),parseInt(r[1])>0&&w(!0)}let l=P(t[1].response);if(console.log("Current NR5G lock status:",l),l&&l.length>=5){let e={NRPCI:l[1],NRARFCN:l[2],SCS:l[3],NRBAND:l[4]};S(e),console.log("New NR5G state:",e),parseInt(l[1])>0&&w(!0)}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{a(!1)}},L=async t=>{try{let s;if(a(!0),t&&(!A.startTime||!A.endTime))throw Error("Please set both start and end times");let r=t?{enabled:!0,startTime:A.startTime,endTime:A.endTime}:{enabled:!1},l=await fetch("/cgi-bin/quecmanager/cell-locking/handle_scheduled_locking.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await l.text();if(!l.ok)throw Error("Server responded with status: ".concat(l.status));try{s=JSON.parse(i)}catch(e){throw Error("Failed to parse response: ".concat(i))}if("success"===s.status)E(e=>({...e,enabled:t})),e({title:"Success",description:t?"Cell locking schedule enabled":"Cell locking schedule disabled"});else throw Error(s.message||"Failed to update scheduling")}catch(e){}finally{a(!1)}},_=async()=>{try{var t,s,r,l;a(!0);let i=[];if(T.EARFCN1&&T.PCI1&&i.push([T.EARFCN1,T.PCI1]),T.EARFCN2&&T.PCI2&&i.push([T.EARFCN2,T.PCI2]),T.EARFCN3&&T.PCI3&&i.push([T.EARFCN3,T.PCI3]),0===i.length)throw Error("Please fill at least one EARFCN and PCI pair");let o='AT+QNWLOCK="common/4g",'.concat(i.length);i.forEach(e=>{let[t,a]=e;o+=",".concat(t,",").concat(a)});let n=await (0,R.a)(o,!0);if((null===(t=n.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=n.response)||void 0===r?void 0:r.raw_output)||"Failed to lock LTE cells");await new Promise(e=>setTimeout(e,1e3));let d=await (0,R.a)('AT+QNWLOCK="save_ctrl",1,0',!0);if((null===(s=d.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(l=d.response)||void 0===l?void 0:l.raw_output)||"Failed to save LTE lock configuration");await I(),e({title:"Success",description:"LTE cells locked successfully with ".concat(i.length," pair").concat(i.length>1?"s":"")})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},D=async()=>{try{var t,s,r,l;if(a(!0),!F.NRPCI||!F.NRARFCN||!F.SCS||!F.NRBAND)throw Error("Please fill all NR5G fields");let i='AT+QNWLOCK="common/5g",'.concat(F.NRPCI,",").concat(F.NRARFCN,",").concat(F.SCS,",").concat(F.NRBAND),o=await (0,R.a)(i,!0);if((null===(t=o.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=o.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NR5G cell");await new Promise(e=>setTimeout(e,1e3));let n=await (0,R.a)('AT+QNWLOCK="save_ctrl",0,1',!0);if((null===(s=n.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(l=n.response)||void 0===l?void 0:l.raw_output)||"Failed to save NR5G lock configuration");await I(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},O=async()=>{try{var t,s,r,l,i,o,n,d;a(!0);let c=await (0,R.a)('AT+QNWLOCK="common/4g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset LTE lock");await new Promise(e=>setTimeout(e,1e3));let u=await (0,R.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(s=u.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save LTE reset configuration");let m=await (0,R.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,R.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await I(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},M=async()=>{try{var t,s,r,l,i,o,n,d;a(!0);let c=await (0,R.a)('AT+QNWLOCK="common/5g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset NR5G lock");let u=await (0,R.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(s=u.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save NR5G reset configuration");let m=await (0,R.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,R.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await I(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},z=async t=>{try{var s,r;a(!0);let l=await (0,R.a)('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(y?"1":"0"),!0);if((null===(s=l.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update LTE persist setting");await I(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{a(!1)}},G=async t=>{try{var s,r;a(!0);let l=await (0,R.a)('AT+QNWLOCK="save_ctrl",'.concat(N?"1":"0",",").concat(t?"1":"0"),!0);if((null===(s=l.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update NR5G persist setting");await I(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{a(!1)}};return(0,r.useEffect)(()=>{(async()=>{let e=await fetch("/cgi-bin/quecmanager/cell-locking/get_cell_lock.sh"),t=await e.json();E({enabled:t.enabled,startTime:t.start_time||"",endTime:t.end_time||"",active:t.active,status:t.status,message:t.message,locked:t.locked}),w(t.locked),b("1"===t.ltePersist),C("1"===t.nr5gPersist),await I()})()},[]),(0,r.useEffect)(()=>{E(e=>({...e,locked:h}))},[h]),(0,s.jsxs)("div",{className:"grid gap-6",children:[(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(l.ZB,{children:"4G LTE Cellular Locking"}),(0,s.jsx)(m.E,{children:h?(0,s.jsxs)("p",{className:"flex items-center gap-x-1",children:[(0,s.jsx)(p.A,{className:"h-3 w-3"}),"Locked"]}):(0,s.jsxs)("p",{className:"flex items-center gap-x-1",children:[(0,s.jsx)(f,{className:"h-3 w-3"}),"Unlocked"]})})]}),(0,s.jsx)(l.BT,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,s.jsx)(l.Wu,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:T.EARFCN1,onChange:e=>k(t=>({...t,EARFCN1:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI1",children:"PCI 1"}),(0,s.jsx)(d.p,{type:"text",id:"PCI1",placeholder:"PCI 1",value:T.PCI1,onChange:e=>k(t=>({...t,PCI1:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:T.EARFCN2,onChange:e=>k(t=>({...t,EARFCN2:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI2",children:"PCI 2"}),(0,s.jsx)(d.p,{type:"text",id:"PCI2",placeholder:"PCI 2",value:T.PCI2,onChange:e=>k(t=>({...t,PCI2:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:T.EARFCN3,onChange:e=>k(t=>({...t,EARFCN3:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI3",children:"PCI 3"}),(0,s.jsx)(d.p,{type:"text",id:"PCI3",placeholder:"PCI 3",value:T.PCI3,onChange:e=>k(t=>({...t,PCI3:e.target.value})),disabled:t||A.enabled&&h})]})]})}),(0,s.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(o.$,{onClick:_,disabled:t||A.enabled,children:[(0,s.jsx)(p.A,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,s.jsxs)(u.l,{pressed:N,onPressedChange:z,disabled:t||A.enabled,children:[(0,s.jsx)(g.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(o.$,{variant:"secondary",onClick:O,disabled:t||A.enabled,children:[(0,s.jsx)(v.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsx)(l.ZB,{children:"NR5G-SA Cellular Locking"}),(0,s.jsx)(l.BT,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,s.jsx)(l.Wu,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,s.jsx)(d.p,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:F.NRARFCN,onChange:e=>S(t=>({...t,NRARFCN:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,s.jsx)(d.p,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:F.NRPCI,onChange:e=>S(t=>({...t,NRPCI:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsx)(n.w,{className:"my-0.5 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"SCS",children:"SCS"}),(0,s.jsxs)(i.l6,{value:F.SCS,onValueChange:e=>S(t=>({...t,SCS:e})),disabled:t||A.enabled&&h,children:[(0,s.jsx)(i.bq,{id:"SCS",children:(0,s.jsx)(i.yv,{placeholder:"SCS"})}),(0,s.jsx)(i.gC,{children:(0,s.jsxs)(i.s3,{children:[(0,s.jsx)(i.TR,{children:"SCS"}),(0,s.jsx)(i.eb,{value:"15",children:"15 kHz"}),(0,s.jsx)(i.eb,{value:"30",children:"30 kHz"}),(0,s.jsx)(i.eb,{value:"60",children:"60 kHz"}),(0,s.jsx)(i.eb,{value:"120",children:"120 kHz"}),(0,s.jsx)(i.eb,{value:"240",children:"240 kHz"})]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NRBAND",children:"NR Band"}),(0,s.jsx)(d.p,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:F.NRBAND,onChange:e=>S(t=>({...t,NRBAND:e.target.value})),disabled:t||A.enabled&&h})]})]})}),(0,s.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(o.$,{onClick:D,disabled:t||A.enabled,children:[(0,s.jsx)(p.A,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,s.jsxs)(u.l,{pressed:y,onPressedChange:G,disabled:t||A.enabled,children:[(0,s.jsx)(g.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(o.$,{variant:"secondary",onClick:M,disabled:t||A.enabled,children:[(0,s.jsx)(v.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,s.jsx)(j,{loading:t,scheduleData:A,onStartTimeChange:e=>{E(t=>({...t,startTime:e}))},onEndTimeChange:e=>{E(t=>({...t,endTime:e}))},onSchedulingToggle:L})]})}},49573:(e,t,a)=>{a.d(t,{Fc:()=>n,TN:()=>c,XL:()=>d});var s=a(20475),r=a(20107),l=a(29395),i=a(22250);let o=(0,l.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=r.forwardRef((e,t)=>{let{className:a,variant:r,...l}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:r}),a),...l})});n.displayName="Alert";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",a),...r})});d.displayName="AlertTitle";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",a),...r})});c.displayName="AlertDescription"},45934:(e,t,a)=>{a.d(t,{E:()=>o});var s=a(20475);a(20107);var r=a(29395),l=a(22250);let i=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:a,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)(i({variant:a}),t),...r})}},42541:(e,t,a)=>{a.d(t,{$:()=>d,r:()=>n});var s=a(20475),r=a(20107),l=a(61837),i=a(29395),o=a(22250);let n=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:a,variant:r,size:i,asChild:d=!1,...c}=e,u=d?l.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(n({variant:r,size:i,className:a})),ref:t,...c})});d.displayName="Button"},72167:(e,t,a)=>{a.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>n,Zp:()=>i,aR:()=>o,wL:()=>u});var s=a(20475),r=a(20107),l=a(22250);let i=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});i.displayName="Card";let o=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",a),...r})});o.displayName="CardHeader";let n=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("h3",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",a),...r})});n.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",a),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},64219:(e,t,a)=>{a.d(t,{p:()=>i});var s=a(20475),r=a(20107),l=a(22250);let i=r.forwardRef((e,t)=>{let{className:a,type:r,...i}=e;return(0,s.jsx)("input",{type:r,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...i})});i.displayName="Input"},49153:(e,t,a)=>{a.d(t,{J:()=>d});var s=a(20475),r=a(20107),l=a(21840),i=a(29395),o=a(22250);let n=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.b,{ref:t,className:(0,o.cn)(n(),a),...r})});d.displayName=l.b.displayName},35601:(e,t,a)=>{a.d(t,{TR:()=>f,bq:()=>u,eb:()=>g,gC:()=>h,l6:()=>n,s3:()=>d,yv:()=>c});var s=a(20475),r=a(20107),l=a(7197),i=a(95257),o=a(22250);let n=i.bL,d=i.YJ,c=i.WT,u=r.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,s.jsxs)(i.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...n,children:[r,(0,s.jsx)(i.In,{asChild:!0,children:(0,s.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.l9.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,s.jsx)(l.Mtm,{})})});m.displayName=i.PP.displayName;let p=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,s.jsx)(l.D3D,{})})});p.displayName=i.wn.displayName;let h=r.forwardRef((e,t)=>{let{className:a,children:r,position:l="popper",...n}=e;return(0,s.jsx)(i.ZL,{children:(0,s.jsxs)(i.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:l,...n,children:[(0,s.jsx)(m,{}),(0,s.jsx)(i.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,s.jsx)(p,{})]})})});h.displayName=i.UC.displayName;let f=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",a),...r})});f.displayName=i.JU.displayName;let g=r.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,s.jsxs)(i.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(i.p4,{children:r})]})});g.displayName=i.q7.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",a),...r})}).displayName=i.wv.displayName},76554:(e,t,a)=>{a.d(t,{w:()=>o});var s=a(20475),r=a(20107),l=a(88853),i=a(22250);let o=r.forwardRef((e,t)=>{let{className:a,orientation:r="horizontal",decorative:o=!0,...n}=e;return(0,s.jsx)(l.b,{ref:t,decorative:o,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",a),...n})});o.displayName=l.b.displayName},21906:(e,t,a)=>{a.d(t,{l:()=>m});var s=a(20475),r=a(20107),l=a(94521),i=a(13061),o=a(34544),n=r.forwardRef((e,t)=>{let{pressed:a,defaultPressed:r=!1,onPressedChange:n,...d}=e,[c=!1,u]=(0,i.i)({prop:a,onChange:n,defaultProp:r});return(0,s.jsx)(o.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:t,onClick:(0,l.m)(e.onClick,()=>{e.disabled||u(!c)})})});n.displayName="Toggle";var d=a(29395),c=a(22250);let u=(0,d.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),m=r.forwardRef((e,t)=>{let{className:a,variant:r,size:l,...i}=e;return(0,s.jsx)(n,{ref:t,className:(0,c.cn)(u({variant:r,size:l,className:a})),...i})});m.displayName=n.displayName},32857:(e,t,a)=>{a.d(t,{dj:()=>m,oR:()=>u});var s=a(20107);let r=0,l=new Map,i=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?i(a):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},n=[],d={toasts:[]};function c(e){d=o(d,e),n.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=s.useState(d);return s.useEffect(()=>(n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,a)=>{a.d(t,{cn:()=>l});var s=a(64901),r=a(868);function l(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{A:()=>s});let s=(0,a(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},29475:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},97801:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},52161:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},88926:(e,t,a)=>{a.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),l=encodeURIComponent(r),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(l);t&&(i+="&wait=1&timeout=".concat(a));let o=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*a+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let n=await o.json();if(n.error)throw Error("AT queue error: ".concat(n.error));if(t&&(null===(s=n.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(a," seconds"));return n}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,a)=>{a.d(t,{b:()=>d});var s=a(20107),r=a(34544),l=a(20475),i="horizontal",o=["horizontal","vertical"],n=s.forwardRef((e,t)=>{let{decorative:a,orientation:s=i,...n}=e,d=o.includes(s)?s:i;return(0,l.jsx)(r.sG.div,{"data-orientation":d,...a?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...n,ref:t})});n.displayName="Separator";var d=n}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7133-b33ba7c188c9e71d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7133-b33ba7c188c9e71d.js new file mode 100644 index 0000000..7018f52 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7133-b33ba7c188c9e71d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7133],{87133:(e,t,a)=>{a.r(t),a.d(t,{default:()=>A});var s=a(20475),r=a(20107),l=a(72167),i=a(35601),o=a(42541),n=a(76554),d=a(64219),c=a(49153),u=a(21906),m=a(45934),p=a(29475),h=a(39997);let f=(0,h.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);var g=a(52161),v=a(97801),x=a(32857),w=a(49573);let N=(0,h.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var b=a(98969);let y=(0,h.A)("Clock1",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 8",key:"12zbmj"}]]),C=(0,h.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),j=e=>{let{loading:t,scheduleData:a,onStartTimeChange:i,onEndTimeChange:n,onSchedulingToggle:u}=e,[m,h]=(0,r.useState)({text:"Disabled",color:"text-red-600",icon:N}),f=()=>{if(!a.enabled){h({text:"Disabled",color:"text-red-600",icon:N});return}let e=new Date,t=60*e.getHours()+e.getMinutes(),[s,r]=a.startTime.split(":").map(Number),[l,i]=a.endTime.split(":").map(Number),o=60*s+r,n=60*l+i;o<=n?t>=o&&t<=n?h({text:"Active",color:"text-green-600",icon:b.A}):h({text:"Inactive",color:"text-yellow-500",icon:y}):t>=o||t<=n?h({text:"Active",color:"text-green-600",icon:b.A}):h({text:"Inactive",color:"text-yellow-500",icon:y})},g=()=>{a.active?h({text:"Active",color:"text-green-600",icon:b.A}):a.enabled&&!a.active?h({text:"Inactive",color:"text-yellow-500",icon:y}):h({text:"Disabled",color:"text-red-600",icon:N})};(0,r.useEffect)(()=>{g();let e=setInterval(f,6e4);return()=>{clearInterval(e)}},[a]);let v=m.icon;return(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsxs)(l.ZB,{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{children:(0,s.jsx)("span",{children:"Cell Locking Scheduler"})}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(v,{className:"h-4 w-4 mr-1 ".concat(m.color)}),(0,s.jsx)("div",{className:"text-sm text-gray-500",children:m.text})]})]}),(0,s.jsx)(l.BT,{children:"Schedule the device to lock to specific cells at certain times."})]}),(0,s.jsxs)(l.Wu,{children:[a.enabled&&(0,s.jsxs)(w.Fc,{className:"mb-6",children:[(0,s.jsx)(p.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(w.XL,{children:"Scheduled Cell Locking Active"}),(0,s.jsx)(w.TN,{children:"Cell locking is currently being managed by the scheduler. Manual changes to cell locks may be overridden during scheduled hours."})]}),(0,s.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"start-time",children:"Start Time"}),(0,s.jsx)(d.p,{type:"time",id:"start-time",value:a.startTime,onChange:e=>i(e.target.value),disabled:t||a.enabled,placeholder:"START TIME"})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"end-time",children:"End Time"}),(0,s.jsx)(d.p,{type:"time",id:"end-time",value:a.endTime,onChange:e=>n(e.target.value),disabled:t||a.enabled,placeholder:"END TIME"})]}),(0,s.jsx)("div",{className:"lg:col-span-2 col-span-1",children:(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Make sure to properly set the timezone using Luci for this to properly work. The scheduler will lock the device to the selected cells during the specified time range. The scheduler will not lock the device if the time range is not valid (e.g. start time is after end time)."})})]})]}),(0,s.jsx)(l.wL,{className:"border-t py-4",children:(0,s.jsxs)(o.$,{onClick:()=>u(!a.enabled),disabled:t||!a.locked&&!a.enabled,children:[(0,s.jsx)(C,{className:"h-4 w-4"}),a.enabled?"Disable Scheduler":"Enable Scheduler"]})})]})};var R=a(88926);let A=()=>{let{toast:e}=(0,x.dj)(),[t,a]=(0,r.useState)(!1),[h,w]=(0,r.useState)(!1),[N,b]=(0,r.useState)(!1),[y,C]=(0,r.useState)(!1),[A,E]=(0,r.useState)({enabled:!1,startTime:"",endTime:"",active:!1,status:"",message:"",locked:!1}),[T,k]=(0,r.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[F,S]=(0,r.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),P=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},I=async()=>{try{a(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=8"),t=await e.json();if(!e.ok)throw Error("Failed to fetch current status");console.log("Current cell locking status:",t);let s=P(t[2].response);console.log("Persist status:",s),s&&s.length>=2&&(b("1"===s[1]),C("1"===s[2]));let r=P(t[0].response);if(console.log("Current LTE lock status:",r),r){let e={EARFCN1:r[2],PCI1:r[3],EARFCN2:r[4],PCI2:r[5],EARFCN3:r[6],PCI3:r[7]};k(e),console.log("New LTE state:",e),parseInt(r[1])>0&&w(!0)}let l=P(t[1].response);if(console.log("Current NR5G lock status:",l),l&&l.length>=5){let e={NRPCI:l[1],NRARFCN:l[2],SCS:l[3],NRBAND:l[4]};S(e),console.log("New NR5G state:",e),parseInt(l[1])>0&&w(!0)}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{a(!1)}},L=async t=>{try{let s;if(a(!0),t&&(!A.startTime||!A.endTime))throw Error("Please set both start and end times");let r=t?{enabled:!0,startTime:A.startTime,endTime:A.endTime}:{enabled:!1},l=await fetch("/cgi-bin/quecmanager/cell-locking/handle_scheduled_locking.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await l.text();if(!l.ok)throw Error("Server responded with status: ".concat(l.status));try{s=JSON.parse(i)}catch(e){throw Error("Failed to parse response: ".concat(i))}if("success"===s.status)E(e=>({...e,enabled:t})),e({title:"Success",description:t?"Cell locking schedule enabled":"Cell locking schedule disabled"});else throw Error(s.message||"Failed to update scheduling")}catch(e){}finally{a(!1),await I()}},_=async()=>{try{var t,s,r,l;a(!0);let i=[];if(T.EARFCN1&&T.PCI1&&i.push([T.EARFCN1,T.PCI1]),T.EARFCN2&&T.PCI2&&i.push([T.EARFCN2,T.PCI2]),T.EARFCN3&&T.PCI3&&i.push([T.EARFCN3,T.PCI3]),0===i.length)throw Error("Please fill at least one EARFCN and PCI pair");let o='AT+QNWLOCK="common/4g",'.concat(i.length);i.forEach(e=>{let[t,a]=e;o+=",".concat(t,",").concat(a)});let n=await (0,R.a)(o,!0);if((null===(t=n.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=n.response)||void 0===r?void 0:r.raw_output)||"Failed to lock LTE cells");await new Promise(e=>setTimeout(e,1e3));let d=await (0,R.a)('AT+QNWLOCK="save_ctrl",1,0',!0);if((null===(s=d.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(l=d.response)||void 0===l?void 0:l.raw_output)||"Failed to save LTE lock configuration");await I(),e({title:"Success",description:"LTE cells locked successfully with ".concat(i.length," pair").concat(i.length>1?"s":"")})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},D=async()=>{try{var t,s,r,l;if(a(!0),!F.NRPCI||!F.NRARFCN||!F.SCS||!F.NRBAND)throw Error("Please fill all NR5G fields");let i='AT+QNWLOCK="common/5g",'.concat(F.NRPCI,",").concat(F.NRARFCN,",").concat(F.SCS,",").concat(F.NRBAND),o=await (0,R.a)(i,!0);if((null===(t=o.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=o.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NR5G cell");await new Promise(e=>setTimeout(e,1e3));let n=await (0,R.a)('AT+QNWLOCK="save_ctrl",0,1',!0);if((null===(s=n.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(l=n.response)||void 0===l?void 0:l.raw_output)||"Failed to save NR5G lock configuration");await I(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},O=async()=>{try{var t,s,r,l,i,o,n,d;a(!0);let c=await (0,R.a)('AT+QNWLOCK="common/4g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset LTE lock");await new Promise(e=>setTimeout(e,1e3));let u=await (0,R.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(s=u.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save LTE reset configuration");let m=await (0,R.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,R.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await I(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},M=async()=>{try{var t,s,r,l,i,o,n,d;a(!0);let c=await (0,R.a)('AT+QNWLOCK="common/5g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset NR5G lock");let u=await (0,R.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(s=u.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save NR5G reset configuration");let m=await (0,R.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,R.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await I(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},z=async t=>{try{var s,r;a(!0);let l=await (0,R.a)('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(y?"1":"0"),!0);if((null===(s=l.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update LTE persist setting");await I(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{a(!1)}},G=async t=>{try{var s,r;a(!0);let l=await (0,R.a)('AT+QNWLOCK="save_ctrl",'.concat(N?"1":"0",",").concat(t?"1":"0"),!0);if((null===(s=l.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update NR5G persist setting");await I(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{a(!1)}};return(0,r.useEffect)(()=>{(async()=>{let e=await fetch("/cgi-bin/quecmanager/cell-locking/get_cell_lock.sh"),t=await e.json();E({enabled:t.enabled,startTime:t.start_time||"",endTime:t.end_time||"",active:t.active,status:t.status,message:t.message,locked:t.locked}),w(t.locked),b("1"===t.ltePersist),C("1"===t.nr5gPersist),await I()})()},[]),(0,r.useEffect)(()=>{E(e=>({...e,locked:h}))},[h]),(0,s.jsxs)("div",{className:"grid gap-6",children:[(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(l.ZB,{children:"4G LTE Cellular Locking"}),(0,s.jsx)(m.E,{children:h?(0,s.jsxs)("p",{className:"flex items-center gap-x-1",children:[(0,s.jsx)(p.A,{className:"h-3 w-3"}),"Locked"]}):(0,s.jsxs)("p",{className:"flex items-center gap-x-1",children:[(0,s.jsx)(f,{className:"h-3 w-3"}),"Unlocked"]})})]}),(0,s.jsx)(l.BT,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,s.jsx)(l.Wu,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:T.EARFCN1,onChange:e=>k(t=>({...t,EARFCN1:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI1",children:"PCI 1"}),(0,s.jsx)(d.p,{type:"text",id:"PCI1",placeholder:"PCI 1",value:T.PCI1,onChange:e=>k(t=>({...t,PCI1:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:T.EARFCN2,onChange:e=>k(t=>({...t,EARFCN2:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI2",children:"PCI 2"}),(0,s.jsx)(d.p,{type:"text",id:"PCI2",placeholder:"PCI 2",value:T.PCI2,onChange:e=>k(t=>({...t,PCI2:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:T.EARFCN3,onChange:e=>k(t=>({...t,EARFCN3:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI3",children:"PCI 3"}),(0,s.jsx)(d.p,{type:"text",id:"PCI3",placeholder:"PCI 3",value:T.PCI3,onChange:e=>k(t=>({...t,PCI3:e.target.value})),disabled:t||A.enabled&&h})]})]})}),(0,s.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(o.$,{onClick:_,disabled:t||A.enabled,children:[(0,s.jsx)(p.A,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,s.jsxs)(u.l,{pressed:N,onPressedChange:z,disabled:t||A.enabled,children:[(0,s.jsx)(g.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(o.$,{variant:"secondary",onClick:O,disabled:t||A.enabled,children:[(0,s.jsx)(v.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsx)(l.ZB,{children:"NR5G-SA Cellular Locking"}),(0,s.jsx)(l.BT,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,s.jsx)(l.Wu,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,s.jsx)(d.p,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:F.NRARFCN,onChange:e=>S(t=>({...t,NRARFCN:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,s.jsx)(d.p,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:F.NRPCI,onChange:e=>S(t=>({...t,NRPCI:e.target.value})),disabled:t||A.enabled&&h})]}),(0,s.jsx)(n.w,{className:"my-0.5 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"SCS",children:"SCS"}),(0,s.jsxs)(i.l6,{value:F.SCS,onValueChange:e=>S(t=>({...t,SCS:e})),disabled:t||A.enabled&&h,children:[(0,s.jsx)(i.bq,{id:"SCS",children:(0,s.jsx)(i.yv,{placeholder:"SCS"})}),(0,s.jsx)(i.gC,{children:(0,s.jsxs)(i.s3,{children:[(0,s.jsx)(i.TR,{children:"SCS"}),(0,s.jsx)(i.eb,{value:"15",children:"15 kHz"}),(0,s.jsx)(i.eb,{value:"30",children:"30 kHz"}),(0,s.jsx)(i.eb,{value:"60",children:"60 kHz"}),(0,s.jsx)(i.eb,{value:"120",children:"120 kHz"}),(0,s.jsx)(i.eb,{value:"240",children:"240 kHz"})]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NRBAND",children:"NR Band"}),(0,s.jsx)(d.p,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:F.NRBAND,onChange:e=>S(t=>({...t,NRBAND:e.target.value})),disabled:t||A.enabled&&h})]})]})}),(0,s.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(o.$,{onClick:D,disabled:t||A.enabled,children:[(0,s.jsx)(p.A,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,s.jsxs)(u.l,{pressed:y,onPressedChange:G,disabled:t||A.enabled,children:[(0,s.jsx)(g.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(o.$,{variant:"secondary",onClick:M,disabled:t||A.enabled,children:[(0,s.jsx)(v.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,s.jsx)(j,{loading:t,scheduleData:A,onStartTimeChange:e=>{E(t=>({...t,startTime:e}))},onEndTimeChange:e=>{E(t=>({...t,endTime:e}))},onSchedulingToggle:L})]})}},49573:(e,t,a)=>{a.d(t,{Fc:()=>n,TN:()=>c,XL:()=>d});var s=a(20475),r=a(20107),l=a(29395),i=a(22250);let o=(0,l.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=r.forwardRef((e,t)=>{let{className:a,variant:r,...l}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:r}),a),...l})});n.displayName="Alert";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",a),...r})});d.displayName="AlertTitle";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",a),...r})});c.displayName="AlertDescription"},45934:(e,t,a)=>{a.d(t,{E:()=>o});var s=a(20475);a(20107);var r=a(29395),l=a(22250);let i=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:a,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)(i({variant:a}),t),...r})}},42541:(e,t,a)=>{a.d(t,{$:()=>d,r:()=>n});var s=a(20475),r=a(20107),l=a(61837),i=a(29395),o=a(22250);let n=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:a,variant:r,size:i,asChild:d=!1,...c}=e,u=d?l.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(n({variant:r,size:i,className:a})),ref:t,...c})});d.displayName="Button"},72167:(e,t,a)=>{a.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>n,Zp:()=>i,aR:()=>o,wL:()=>u});var s=a(20475),r=a(20107),l=a(22250);let i=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});i.displayName="Card";let o=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",a),...r})});o.displayName="CardHeader";let n=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("h3",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",a),...r})});n.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",a),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},64219:(e,t,a)=>{a.d(t,{p:()=>i});var s=a(20475),r=a(20107),l=a(22250);let i=r.forwardRef((e,t)=>{let{className:a,type:r,...i}=e;return(0,s.jsx)("input",{type:r,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...i})});i.displayName="Input"},49153:(e,t,a)=>{a.d(t,{J:()=>d});var s=a(20475),r=a(20107),l=a(21840),i=a(29395),o=a(22250);let n=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.b,{ref:t,className:(0,o.cn)(n(),a),...r})});d.displayName=l.b.displayName},35601:(e,t,a)=>{a.d(t,{TR:()=>f,bq:()=>u,eb:()=>g,gC:()=>h,l6:()=>n,s3:()=>d,yv:()=>c});var s=a(20475),r=a(20107),l=a(7197),i=a(95257),o=a(22250);let n=i.bL,d=i.YJ,c=i.WT,u=r.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,s.jsxs)(i.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...n,children:[r,(0,s.jsx)(i.In,{asChild:!0,children:(0,s.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.l9.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,s.jsx)(l.Mtm,{})})});m.displayName=i.PP.displayName;let p=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,s.jsx)(l.D3D,{})})});p.displayName=i.wn.displayName;let h=r.forwardRef((e,t)=>{let{className:a,children:r,position:l="popper",...n}=e;return(0,s.jsx)(i.ZL,{children:(0,s.jsxs)(i.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:l,...n,children:[(0,s.jsx)(m,{}),(0,s.jsx)(i.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,s.jsx)(p,{})]})})});h.displayName=i.UC.displayName;let f=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",a),...r})});f.displayName=i.JU.displayName;let g=r.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,s.jsxs)(i.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(i.p4,{children:r})]})});g.displayName=i.q7.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",a),...r})}).displayName=i.wv.displayName},76554:(e,t,a)=>{a.d(t,{w:()=>o});var s=a(20475),r=a(20107),l=a(88853),i=a(22250);let o=r.forwardRef((e,t)=>{let{className:a,orientation:r="horizontal",decorative:o=!0,...n}=e;return(0,s.jsx)(l.b,{ref:t,decorative:o,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",a),...n})});o.displayName=l.b.displayName},21906:(e,t,a)=>{a.d(t,{l:()=>m});var s=a(20475),r=a(20107),l=a(94521),i=a(13061),o=a(34544),n=r.forwardRef((e,t)=>{let{pressed:a,defaultPressed:r=!1,onPressedChange:n,...d}=e,[c=!1,u]=(0,i.i)({prop:a,onChange:n,defaultProp:r});return(0,s.jsx)(o.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:t,onClick:(0,l.m)(e.onClick,()=>{e.disabled||u(!c)})})});n.displayName="Toggle";var d=a(29395),c=a(22250);let u=(0,d.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),m=r.forwardRef((e,t)=>{let{className:a,variant:r,size:l,...i}=e;return(0,s.jsx)(n,{ref:t,className:(0,c.cn)(u({variant:r,size:l,className:a})),...i})});m.displayName=n.displayName},32857:(e,t,a)=>{a.d(t,{dj:()=>m,oR:()=>u});var s=a(20107);let r=0,l=new Map,i=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?i(a):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},n=[],d={toasts:[]};function c(e){d=o(d,e),n.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=s.useState(d);return s.useEffect(()=>(n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,a)=>{a.d(t,{cn:()=>l});var s=a(64901),r=a(868);function l(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{A:()=>s});let s=(0,a(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},29475:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},97801:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},52161:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},88926:(e,t,a)=>{a.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),l=encodeURIComponent(r),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(l);t&&(i+="&wait=1&timeout=".concat(a));let o=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*a+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let n=await o.json();if(n.error)throw Error("AT queue error: ".concat(n.error));if(t&&(null===(s=n.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(a," seconds"));return n}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,a)=>{a.d(t,{b:()=>d});var s=a(20107),r=a(34544),l=a(20475),i="horizontal",o=["horizontal","vertical"],n=s.forwardRef((e,t)=>{let{decorative:a,orientation:s=i,...n}=e,d=o.includes(s)?s:i;return(0,l.jsx)(r.sG.div,{"data-orientation":d,...a?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...n,ref:t})});n.displayName="Separator";var d=n}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7401-f818b07f5ea91edc.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7401-f818b07f5ea91edc.js deleted file mode 100644 index 5734b39..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7401-f818b07f5ea91edc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7401],{93610:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},18166:(e,t,n)=>{n.d(t,{A:()=>s,q:()=>i});var r=n(12115),u=n(95155);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,s=r.useMemo(()=>i,Object.values(i));return(0,u.jsx)(n.Provider,{value:s,children:t})};return i.displayName=e+"Provider",[i,function(u){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function s(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return i.scopeName=e,[function(t,i){let s=r.createContext(i),o=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,a=n?.[e]?.[o]||s,d=r.useMemo(()=>l,Object.values(l));return(0,u.jsx)(a.Provider,{value:d,children:i})};return l.displayName=t+"Provider",[l,function(n,u){let l=u?.[e]?.[o]||s,a=r.useContext(l);if(a)return a;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(i,...t)]}},59674:(e,t,n)=>{n.d(t,{lg:()=>b,qW:()=>v,bL:()=>E});var r,u=n(12115),i=n(93610),s=n(23360),o=n(88068),l=n(41524),a=n(95155),d="dismissableLayer.update",c=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=u.forwardRef((e,t)=>{var n,v;let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:E,onPointerDownOutside:b,onFocusOutside:y,onInteractOutside:h,onDismiss:w,...C}=e,g=u.useContext(c),[P,L]=u.useState(null),x=null!==(v=null==P?void 0:P.ownerDocument)&&void 0!==v?v:null===(n=globalThis)||void 0===n?void 0:n.document,[,N]=u.useState({}),D=(0,o.s)(t,e=>L(e)),O=Array.from(g.layers),[S]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),k=O.indexOf(S),R=P?O.indexOf(P):-1,T=g.layersWithOutsidePointerEventsDisabled.size>0,$=R>=k,_=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.c)(e),i=u.useRef(!1),s=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){p("dismissableLayer.pointerDownOutside",r,u,{discrete:!0})},u={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",s.current),s.current=t,n.addEventListener("click",s.current,{once:!0})):t()}else n.removeEventListener("click",s.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!$||n||(null==b||b(e),null==h||h(e),e.defaultPrevented||null==w||w())},x),j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.c)(e),i=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!i.current&&p("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(null==y||y(e),null==h||h(e),e.defaultPrevented||null==w||w())},x);return!function(e,t=globalThis?.document){let n=(0,l.c)(e);u.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{R!==g.layers.size-1||(null==E||E(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},x),u.useEffect(()=>{if(P)return f&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(P)),g.layers.add(P),m(),()=>{f&&1===g.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[P,x,f,g]),u.useEffect(()=>()=>{P&&(g.layers.delete(P),g.layersWithOutsidePointerEventsDisabled.delete(P),m())},[P,g]),u.useEffect(()=>{let e=()=>N({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,a.jsx)(s.sG.div,{...C,ref:D,style:{pointerEvents:T?$?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,_.onPointerDownCapture)})});v.displayName="DismissableLayer";var f=u.forwardRef((e,t)=>{let n=u.useContext(c),r=u.useRef(null),i=(0,o.s)(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(s.sG.div,{...e,ref:i})});function m(){let e=new CustomEvent(d);document.dispatchEvent(e)}function p(e,t,n,r){let{discrete:u}=r,i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),u?(0,s.hO)(i,o):i.dispatchEvent(o)}f.displayName="DismissableLayerBranch";var E=v,b=f},67668:(e,t,n)=>{n.d(t,{B:()=>l});var r,u=n(12115),i=n(46611),s=(r||(r=n.t(u,2)))[" useId ".trim().toString()]||(()=>void 0),o=0;function l(e){let[t,n]=u.useState(s());return(0,i.N)(()=>{e||n(e=>e??String(o++))},[e]),e||(t?`radix-${t}`:"")}},17323:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(12115),u=n(47650),i=n(23360),s=n(46611),o=n(95155),l=r.forwardRef((e,t)=>{var n,l;let{container:a,...d}=e,[c,v]=r.useState(!1);(0,s.N)(()=>v(!0),[]);let f=a||c&&(null===(l=globalThis)||void 0===l?void 0:null===(n=l.document)||void 0===n?void 0:n.body);return f?u.createPortal((0,o.jsx)(i.sG.div,{...d,ref:t}),f):null});l.displayName="Portal"},23360:(e,t,n)=>{n.d(t,{hO:()=>l,sG:()=>o});var r=n(12115),u=n(47650),i=n(12317),s=n(95155),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),u=r.forwardRef((e,r)=>{let{asChild:u,...i}=e,o=u?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o,{...i,ref:r})});return u.displayName=`Primitive.${t}`,{...e,[t]:u}},{});function l(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},41524:(e,t,n)=>{n.d(t,{c:()=>u});var r=n(12115);function u(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(12115),u=n(41524);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,s]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,s=r.useRef(i),o=(0,u.c)(t);return r.useEffect(()=>{s.current!==i&&(o(i),s.current=i)},[i,s,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,l=o?e:i,a=(0,u.c)(n);return[l,r.useCallback(t=>{if(o){let n="function"==typeof t?t(e):t;n!==e&&a(n)}else s(t)},[o,e,s,a])]}},46611:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(12115),u=globalThis?.document?r.useLayoutEffect:()=>{}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7414-d6480d4dfb8a2ef8.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7414-d6480d4dfb8a2ef8.js new file mode 100644 index 0000000..fde3de9 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7414-d6480d4dfb8a2ef8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7414],{32474:(e,t,r)=>{r.d(t,{N:()=>u});var n=r(20107),o=r(54379),a=r(64236),l=r(61837),i=r(20475);function u(e){let t=e+"CollectionProvider",[r,u]=(0,o.A)(t),[c,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=s(f,r),u=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(l.DX,{ref:u,children:n})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",h=n.forwardRef((e,t)=>{let{scope:r,children:o,...u}=e,c=n.useRef(null),d=(0,a.s)(t,c),f=s(m,r);return n.useEffect(()=>(f.itemMap.set(c,{ref:c,...u}),()=>void f.itemMap.delete(c))),(0,i.jsx)(l.DX,{[v]:"",ref:d,children:o})});return h.displayName=m,[{Provider:d,Slot:p,ItemSlot:h},function(t){let r=s(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}},76056:(e,t,r)=>{r.d(t,{jH:()=>a});var n=r(20107);r(20475);var o=n.createContext(void 0);function a(e){let t=n.useContext(o);return e||t||"ltr"}},77536:(e,t,r)=>{r.d(t,{H_:()=>e3,UC:()=>e7,YJ:()=>e4,q7:()=>e2,VF:()=>e8,JU:()=>e5,ZL:()=>e1,z6:()=>e6,hN:()=>e9,bL:()=>e$,wv:()=>te,Pb:()=>tt,G5:()=>tn,ZP:()=>tr,l9:()=>e0});var n=r(20107),o=r(94521),a=r(64236),l=r(45170),i=r(13061),u=r(34544),c=r(32474),s=r(76056),d=r(55302),f=r(10201),p=r(38573),m=r(72763),v=r(57563),h=r(41913),g=r(54245),w=r(71856),y=r(61837),x=r(46774),b=r(58020),C=r(9543),R=r(20475),M=["Enter"," "],j=["ArrowUp","PageDown","End"],D=["ArrowDown","PageUp","Home",...j],k={ltr:[...M,"ArrowRight"],rtl:[...M,"ArrowLeft"]},S={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_="Menu",[E,I,T]=(0,c.N)(_),[P,N]=(0,l.A)(_,[T,v.Bk,w.RG]),A=(0,v.Bk)(),L=(0,w.RG)(),[O,F]=P(_),[K,G]=P(_),B=e=>{let{__scopeMenu:t,open:r=!1,children:o,dir:a,onOpenChange:l,modal:i=!0}=e,u=A(t),[c,d]=n.useState(null),f=n.useRef(!1),p=(0,x.c)(l),m=(0,s.jH)(a);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,R.jsx)(v.bL,{...u,children:(0,R.jsx)(O,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:d,children:(0,R.jsx)(K,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:i,children:o})})})};B.displayName=_;var U=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=A(r);return(0,R.jsx)(v.Mz,{...o,...n,ref:t})});U.displayName="MenuAnchor";var V="MenuPortal",[X,H]=P(V,{forceMount:void 0}),q=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=F(V,t);return(0,R.jsx)(X,{scope:t,forceMount:r,children:(0,R.jsx)(g.C,{present:r||a.open,children:(0,R.jsx)(h.Z,{asChild:!0,container:o,children:n})})})};q.displayName=V;var z="MenuContent",[J,Z]=P(z),Y=n.forwardRef((e,t)=>{let r=H(z,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=F(z,e.__scopeMenu),l=G(z,e.__scopeMenu);return(0,R.jsx)(E.Provider,{scope:e.__scopeMenu,children:(0,R.jsx)(g.C,{present:n||a.open,children:(0,R.jsx)(E.Slot,{scope:e.__scopeMenu,children:l.modal?(0,R.jsx)(W,{...o,ref:t}):(0,R.jsx)(Q,{...o,ref:t})})})})}),W=n.forwardRef((e,t)=>{let r=F(z,e.__scopeMenu),l=n.useRef(null),i=(0,a.s)(t,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,b.Eq)(e)},[]),(0,R.jsx)($,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Q=n.forwardRef((e,t)=>{let r=F(z,e.__scopeMenu);return(0,R.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),$=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:l=!1,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:b,onDismiss:M,disableOutsideScroll:k,...S}=e,_=F(z,r),E=G(z,r),T=A(r),P=L(r),N=I(r),[O,K]=n.useState(null),B=n.useRef(null),U=(0,a.s)(t,B,_.onContentChange),V=n.useRef(0),X=n.useRef(""),H=n.useRef(0),q=n.useRef(null),Z=n.useRef("right"),Y=n.useRef(0),W=k?C.A:n.Fragment,Q=k?{as:y.DX,allowPinchZoom:!0}:void 0,$=e=>{var t,r;let n=X.current+e,o=N().filter(e=>!e.disabled),a=document.activeElement,l=null===(t=o.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,i=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}(o.map(e=>e.textValue),n,l),u=null===(r=o.find(e=>e.textValue===i))||void 0===r?void 0:r.ref.current;!function e(t){X.current=t,window.clearTimeout(V.current),""!==t&&(V.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())};n.useEffect(()=>()=>window.clearTimeout(V.current),[]),(0,f.Oh)();let ee=n.useCallback(e=>{var t,r;return Z.current===(null===(t=q.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;en!=c>n&&r<(u-l)*(n-i)/(c-i)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(r=q.current)||void 0===r?void 0:r.area)},[]);return(0,R.jsx)(J,{scope:r,searchRef:X,onItemEnter:n.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:n.useCallback(e=>{var t;ee(e)||(null===(t=B.current)||void 0===t||t.focus(),K(null))},[ee]),onTriggerLeave:n.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:H,onPointerGraceIntentChange:n.useCallback(e=>{q.current=e},[]),children:(0,R.jsx)(W,{...Q,children:(0,R.jsx)(p.n,{asChild:!0,trapped:i,onMountAutoFocus:(0,o.m)(u,e=>{var t;e.preventDefault(),null===(t=B.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,R.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:b,onDismiss:M,children:(0,R.jsx)(w.bL,{asChild:!0,...P,dir:E.dir,orientation:"vertical",loop:l,currentTabStopId:O,onCurrentTabStopIdChange:K,onEntryFocus:(0,o.m)(m,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,R.jsx)(v.UC,{role:"menu","aria-orientation":"vertical","data-state":ek(_.open),"data-radix-menu-content":"",dir:E.dir,...T,...S,ref:U,style:{outline:"none",...S.style},onKeyDown:(0,o.m)(S.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&$(e.key));let o=B.current;if(e.target!==o||!D.includes(e.key))return;e.preventDefault();let a=N().filter(e=>!e.disabled).map(e=>e.ref.current);j.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,o.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(V.current),X.current="")}),onPointerMove:(0,o.m)(e.onPointerMove,eE(e=>{let t=e.target,r=Y.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>Y.current?"right":"left";Z.current=t,Y.current=e.clientX}}))})})})})})})});Y.displayName=z;var ee=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,R.jsx)(u.sG.div,{role:"group",...n,ref:t})});ee.displayName="MenuGroup";var et=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,R.jsx)(u.sG.div,{...n,ref:t})});et.displayName="MenuLabel";var er="MenuItem",en="menu.itemSelect",eo=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:l,...i}=e,c=n.useRef(null),s=G(er,e.__scopeMenu),d=Z(er,e.__scopeMenu),f=(0,a.s)(t,c),p=n.useRef(!1);return(0,R.jsx)(ea,{...i,ref:f,disabled:r,onClick:(0,o.m)(e.onClick,()=>{let e=c.current;if(!r&&e){let t=new CustomEvent(en,{bubbles:!0,cancelable:!0});e.addEventListener(en,e=>null==l?void 0:l(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,o.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!r&&(!t||" "!==e.key)&&M.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=er;var ea=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:l=!1,textValue:i,...c}=e,s=Z(er,r),d=L(r),f=n.useRef(null),p=(0,a.s)(t,f),[m,v]=n.useState(!1),[h,g]=n.useState("");return n.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,R.jsx)(E.ItemSlot,{scope:r,disabled:l,textValue:null!=i?i:h,children:(0,R.jsx)(w.q7,{asChild:!0,...d,focusable:!l,children:(0,R.jsx)(u.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...c,ref:p,onPointerMove:(0,o.m)(e.onPointerMove,eE(e=>{l?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eE(e=>s.onItemLeave(e))),onFocus:(0,o.m)(e.onFocus,()=>v(!0)),onBlur:(0,o.m)(e.onBlur,()=>v(!1))})})})}),el=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...a}=e;return(0,R.jsx)(em,{scope:e.__scopeMenu,checked:r,children:(0,R.jsx)(eo,{role:"menuitemcheckbox","aria-checked":eS(r)?"mixed":r,...a,ref:t,"data-state":e_(r),onSelect:(0,o.m)(a.onSelect,()=>null==n?void 0:n(!!eS(r)||!r),{checkForDefaultPrevented:!1})})})});el.displayName="MenuCheckboxItem";var ei="MenuRadioGroup",[eu,ec]=P(ei,{value:void 0,onValueChange:()=>{}}),es=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=(0,x.c)(n);return(0,R.jsx)(eu,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,R.jsx)(ee,{...o,ref:t})})});es.displayName=ei;var ed="MenuRadioItem",ef=n.forwardRef((e,t)=>{let{value:r,...n}=e,a=ec(ed,e.__scopeMenu),l=r===a.value;return(0,R.jsx)(em,{scope:e.__scopeMenu,checked:l,children:(0,R.jsx)(eo,{role:"menuitemradio","aria-checked":l,...n,ref:t,"data-state":e_(l),onSelect:(0,o.m)(n.onSelect,()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,r)},{checkForDefaultPrevented:!1})})})});ef.displayName=ed;var ep="MenuItemIndicator",[em,ev]=P(ep,{checked:!1}),eh=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=ev(ep,r);return(0,R.jsx)(g.C,{present:n||eS(a.checked)||!0===a.checked,children:(0,R.jsx)(u.sG.span,{...o,ref:t,"data-state":e_(a.checked)})})});eh.displayName=ep;var eg=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,R.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eg.displayName="MenuSeparator";var ew=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=A(r);return(0,R.jsx)(v.i3,{...o,...n,ref:t})});ew.displayName="MenuArrow";var ey="MenuSub",[ex,eb]=P(ey),eC=e=>{let{__scopeMenu:t,children:r,open:o=!1,onOpenChange:a}=e,l=F(ey,t),i=A(t),[u,c]=n.useState(null),[s,d]=n.useState(null),f=(0,x.c)(a);return n.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,R.jsx)(v.bL,{...i,children:(0,R.jsx)(O,{scope:t,open:o,onOpenChange:f,content:s,onContentChange:d,children:(0,R.jsx)(ex,{scope:t,contentId:(0,m.B)(),triggerId:(0,m.B)(),trigger:u,onTriggerChange:c,children:r})})})};eC.displayName=ey;var eR="MenuSubTrigger",eM=n.forwardRef((e,t)=>{let r=F(eR,e.__scopeMenu),l=G(eR,e.__scopeMenu),i=eb(eR,e.__scopeMenu),u=Z(eR,e.__scopeMenu),c=n.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,R.jsx)(U,{asChild:!0,...f,children:(0,R.jsx)(ea,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":ek(r.open),...e,ref:(0,a.t)(t,i.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.m)(e.onPointerMove,eE(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eE(e=>{var t,n;p();let o=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,a="right"===t,l=o[a?"left":"right"],i=o[a?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:i,y:o.top},{x:i,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.m)(e.onKeyDown,t=>{let n=""!==u.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&k[l.dir].includes(t.key)){var o;r.onOpenChange(!0),null===(o=r.content)||void 0===o||o.focus(),t.preventDefault()}})})})});eM.displayName=eR;var ej="MenuSubContent",eD=n.forwardRef((e,t)=>{let r=H(z,e.__scopeMenu),{forceMount:l=r.forceMount,...i}=e,u=F(z,e.__scopeMenu),c=G(z,e.__scopeMenu),s=eb(ej,e.__scopeMenu),d=n.useRef(null),f=(0,a.s)(t,d);return(0,R.jsx)(E.Provider,{scope:e.__scopeMenu,children:(0,R.jsx)(g.C,{present:l||u.open,children:(0,R.jsx)(E.Slot,{scope:e.__scopeMenu,children:(0,R.jsx)($,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.m)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=S[c.dir].includes(e.key);if(t&&r){var n;u.onOpenChange(!1),null===(n=s.trigger)||void 0===n||n.focus(),e.preventDefault()}})})})})})});function ek(e){return e?"open":"closed"}function eS(e){return"indeterminate"===e}function e_(e){return eS(e)?"indeterminate":e?"checked":"unchecked"}function eE(e){return t=>"mouse"===t.pointerType?e(t):void 0}eD.displayName=ej;var eI="DropdownMenu",[eT,eP]=(0,l.A)(eI,[N]),eN=N(),[eA,eL]=eT(eI),eO=e=>{let{__scopeDropdownMenu:t,children:r,dir:o,open:a,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,s=eN(t),d=n.useRef(null),[f=!1,p]=(0,i.i)({prop:a,defaultProp:l,onChange:u});return(0,R.jsx)(eA,{scope:t,triggerId:(0,m.B)(),triggerRef:d,contentId:(0,m.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:c,children:(0,R.jsx)(B,{...s,open:f,onOpenChange:p,dir:o,modal:c,children:r})})};eO.displayName=eI;var eF="DropdownMenuTrigger",eK=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...l}=e,i=eL(eF,r),c=eN(r);return(0,R.jsx)(U,{asChild:!0,...c,children:(0,R.jsx)(u.sG.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...l,ref:(0,a.t)(t,i.triggerRef),onPointerDown:(0,o.m)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eK.displayName=eF;var eG=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eN(t);return(0,R.jsx)(q,{...n,...r})};eG.displayName="DropdownMenuPortal";var eB="DropdownMenuContent",eU=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=eL(eB,r),i=eN(r),u=n.useRef(!1);return(0,R.jsx)(Y,{id:l.contentId,"aria-labelledby":l.triggerId,...i,...a,ref:t,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=l.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!l.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eU.displayName=eB;var eV=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(ee,{...o,...n,ref:t})});eV.displayName="DropdownMenuGroup";var eX=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(et,{...o,...n,ref:t})});eX.displayName="DropdownMenuLabel";var eH=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(eo,{...o,...n,ref:t})});eH.displayName="DropdownMenuItem";var eq=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(el,{...o,...n,ref:t})});eq.displayName="DropdownMenuCheckboxItem";var ez=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(es,{...o,...n,ref:t})});ez.displayName="DropdownMenuRadioGroup";var eJ=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(ef,{...o,...n,ref:t})});eJ.displayName="DropdownMenuRadioItem";var eZ=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(eh,{...o,...n,ref:t})});eZ.displayName="DropdownMenuItemIndicator";var eY=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(eg,{...o,...n,ref:t})});eY.displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(ew,{...o,...n,ref:t})}).displayName="DropdownMenuArrow";var eW=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(eM,{...o,...n,ref:t})});eW.displayName="DropdownMenuSubTrigger";var eQ=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eN(r);return(0,R.jsx)(eD,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eQ.displayName="DropdownMenuSubContent";var e$=eO,e0=eK,e1=eG,e7=eU,e4=eV,e5=eX,e2=eH,e3=eq,e6=ez,e9=eJ,e8=eZ,te=eY,tt=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,l=eN(t),[u=!1,c]=(0,i.i)({prop:n,defaultProp:a,onChange:o});return(0,R.jsx)(eC,{...l,open:u,onOpenChange:c,children:r})},tr=eW,tn=eQ},71856:(e,t,r)=>{r.d(t,{RG:()=>b,bL:()=>E,q7:()=>I});var n=r(20107),o=r(94521),a=r(32474),l=r(64236),i=r(54379),u=r(72763),c=r(34544),s=r(46774),d=r(13061),f=r(76056),p=r(20475),m="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,w,y]=(0,a.N)(h),[x,b]=(0,i.A)(h,[y]),[C,R]=x(h),M=n.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(j,{...e,ref:t})})}));M.displayName=h;var j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:b=!1,...R}=e,M=n.useRef(null),j=(0,l.s)(t,M),D=(0,f.jH)(u),[k=null,S]=(0,d.i)({prop:h,defaultProp:g,onChange:y}),[E,I]=n.useState(!1),T=(0,s.c)(x),P=w(r),N=n.useRef(!1),[A,L]=n.useState(0);return n.useEffect(()=>{let e=M.current;if(e)return e.addEventListener(m,T),()=>e.removeEventListener(m,T)},[T]),(0,p.jsx)(C,{scope:r,orientation:a,dir:D,loop:i,currentTabStopId:k,onItemFocus:n.useCallback(e=>S(e),[S]),onItemShiftTab:n.useCallback(()=>I(!0),[]),onFocusableItemAdd:n.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(c.sG.div,{tabIndex:E||0===A?-1:0,"data-orientation":a,...R,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(m,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);_([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),b)}}N.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>I(!1))})})}),D="RovingFocusGroupItem",k=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:l=!1,tabStopId:i,...s}=e,d=(0,u.B)(),f=i||d,m=R(D,r),v=m.currentTabStopId===f,h=w(r),{onFocusableItemAdd:y,onFocusableItemRemove:x}=m;return n.useEffect(()=>{if(a)return y(),()=>x()},[a,y,x]),(0,p.jsx)(g.ItemSlot,{scope:r,id:f,focusable:a,active:l,children:(0,p.jsx)(c.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...s,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return S[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>_(r))}})})})});k.displayName=D;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var E=M,I=k},92159:(e,t,r)=>{r.d(t,{D:()=>c,N:()=>s});var n=r(20107),o=["light","dark"],a="(prefers-color-scheme: dark)",l="undefined"==typeof window,i=n.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(i))?e:u},s=e=>n.useContext(i)?e.children:n.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:l=!0,enableColorScheme:u=!0,storageKey:c="theme",themes:s=d,defaultTheme:f=l?"system":"light",attribute:g="data-theme",value:w,children:y,nonce:x}=e,[b,C]=n.useState(()=>m(c,f)),[R,M]=n.useState(()=>m(c)),j=w?Object.values(w):s,D=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&l&&(t=h());let n=w?w[t]:t,a=r?v():null,i=document.documentElement;if("class"===g?(i.classList.remove(...j),n&&i.classList.add(n)):n?i.setAttribute(g,n):i.removeAttribute(g),u){let e=o.includes(f)?f:null,r=o.includes(t)?t:e;i.style.colorScheme=r}null==a||a()},[]),k=n.useCallback(e=>{let t="function"==typeof e?e(e):e;C(t);try{localStorage.setItem(c,t)}catch(e){}},[t]),S=n.useCallback(e=>{M(h(e)),"system"===b&&l&&!t&&D("system")},[b,t]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(S),S(e),()=>e.removeListener(S)},[S]),n.useEffect(()=>{let e=e=>{e.key===c&&k(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),n.useEffect(()=>{D(null!=t?t:b)},[t,b]);let _=n.useMemo(()=>({theme:b,setTheme:k,forcedTheme:t,resolvedTheme:"system"===b?R:b,themes:l?[...s,"system"]:s,systemTheme:l?R:void 0}),[b,k,t,R,l,s]);return n.createElement(i.Provider,{value:_},n.createElement(p,{forcedTheme:t,disableTransitionOnChange:r,enableSystem:l,enableColorScheme:u,storageKey:c,themes:s,defaultTheme:f,attribute:g,value:w,children:y,attrs:j,nonce:x}),y)},p=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:l,enableSystem:i,enableColorScheme:u,defaultTheme:c,value:s,attrs:d,nonce:f}=e,p="system"===c,m="class"===l?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(l,"',s='setAttribute';"),v=u?(o.includes(c)?c:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(c,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=s?s[e]:e,a=t?e+"|| ''":"'".concat(n,"'"),i="";return u&&r&&!t&&o.includes(e)&&(i+="d.style.colorScheme = '".concat(e,"';")),"class"===l?t||n?i+="c.add(".concat(a,")"):i+="null":n&&(i+="d[s](n,".concat(a,")")),i},g=t?"!function(){".concat(m).concat(h(t),"}()"):i?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(r,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(h("dark"),"}else{").concat(h("light"),"}}else if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(h(s?"x[e]":"e",!0),"}").concat(p?"":"else{"+h(c,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(r,"');if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(h(s?"x[e]":"e",!0),"}else{").concat(h(c,!1,!1),";}").concat(v,"}catch(t){}}();");return n.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})}),m=(e,t)=>{let r;if(!l){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7510-b5c5a53e21a04c67.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7510-b5c5a53e21a04c67.js new file mode 100644 index 0000000..66c5168 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7510-b5c5a53e21a04c67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7510],{59166:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},51873:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},76171:(e,t,n)=>{n.d(t,{A:()=>H});var r,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create;var i=("function"==typeof SuppressedError&&SuppressedError,n(20107)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,d=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,a=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return a.options=o({async:!0,ssr:!1},e),a}(),v=function(){},m=i.forwardRef(function(e,t){var n,r,l,u,f=i.useRef(null),m=i.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),h=m[0],g=m[1],y=e.forwardProps,w=e.children,b=e.className,E=e.removeScrollBar,x=e.enabled,C=e.shards,N=e.sideCar,O=e.noIsolation,R=e.inert,P=e.allowPinchZoom,A=e.as,j=e.gapMode,D=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[f,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(l=(0,i.useState)(function(){return{value:null,callback:r,facade:{get current(){return l.value},set current(value){var e=l.value;e!==value&&(l.value=value,l.callback(value,e))}}}})[0]).callback=r,u=l.facade,s(function(){var e=d.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,o)})}d.set(u,n)},[n]),u),T=o(o({},D),h);return i.createElement(i.Fragment,null,x&&i.createElement(N,{sideCar:p,removeScrollBar:E,shards:C,noIsolation:O,inert:R,setCallbacks:g,allowPinchZoom:!!P,lockRef:f,gapMode:j}),y?i.cloneElement(i.Children.only(w),o(o({},T),{ref:S})):i.createElement(void 0===A?"div":A,o({},T,{className:b,ref:S}),w))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:u,zeroRight:l};var h=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,o({},n))};h.isSideCarExport=!0;var g=n(91059),y=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,g.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=y();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},E={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[x(n),x(r),x(o)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return E;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},O=b(),R="data-scroll-locked",P=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(R,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(R,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},A=function(){var e=parseInt(document.body.getAttribute(R)||"0",10);return isFinite(e)?e:0},j=function(){i.useEffect(function(){return document.body.setAttribute(R,(A()+1).toString()),function(){var e=A()-1;e<=0?document.body.removeAttribute(R):document.body.setAttribute(R,e.toString())}},[])},D=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;j();var a=i.useMemo(function(){return N(o)},[o]);return i.createElement(O,{styles:P(a,!t,o,n?"":"!important")})},S=!1;if("undefined"!=typeof window)try{var T=Object.defineProperty({},"passive",{get:function(){return S=!0,!0}});window.addEventListener("test",T,T),window.removeEventListener("test",T,T)}catch(e){S=!1}var M=!!S&&{passive:!1},L=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},I=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),k(e,r)){var o=F(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},k=function(e,t){return"v"===e?L(t,"overflowY"):L(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},_=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,u=n.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{var v=F(e,u),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&k(e,u)&&(f+=h,p+=m),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},W=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},G=0,X=[];let z=(r=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(G++)[0],a=i.useState(b)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oMath.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=I(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=I(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return _(p,t,e,"h"===p?u:c,!0)},[]),c=i.useCallback(function(e){if(X.length&&X[X.length-1]===a){var n="deltaY"in e?U(e):W(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=i.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=i.useCallback(function(e){n.current=W(e),r.current=void 0},[]),f=i.useCallback(function(t){s(t.type,U(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){s(t.type,W(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return X.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,M),document.addEventListener("touchmove",c,M),document.addEventListener("touchstart",d,M),function(){X=X.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,M),document.removeEventListener("touchmove",c,M),document.removeEventListener("touchstart",d,M)}},[]);var v=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?i.createElement(D,{gapMode:e.gapMode}):null)},p.useMedium(r),h);var Y=i.forwardRef(function(e,t){return i.createElement(m,o({},e,{ref:t,sideCar:z}))});Y.classNames=m.classNames;let H=Y},75456:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},72706:(e,t,n)=>{n.d(t,{s:()=>i,t:()=>a});var r=n(20107);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{n.d(t,{G$:()=>Z,Hs:()=>E,UC:()=>et,VY:()=>er,ZL:()=>Q,bL:()=>$,bm:()=>eo,hE:()=>en,hJ:()=>ee,l9:()=>J});var r=n(20107),o=n(94521),a=n(64236),i=n(45170),l=n(72763),u=n(13061),c=n(55302),s=n(38573),d=n(41913),f=n(54245),p=n(34544),v=n(10201),m=n(9543),h=n(58020),g=n(61837),y=n(20475),w="Dialog",[b,E]=(0,i.A)(w),[x,C]=b(w),N=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:c=!0}=e,s=r.useRef(null),d=r.useRef(null),[f=!1,p]=(0,u.i)({prop:o,defaultProp:a,onChange:i});return(0,y.jsx)(x,{scope:t,triggerRef:s,contentRef:d,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:n})};N.displayName=w;var O="DialogTrigger",R=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(O,n),l=(0,a.s)(t,i.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Y(i.open),...r,ref:l,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});R.displayName=O;var P="DialogPortal",[A,j]=b(P,{forceMount:void 0}),D=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=C(P,t);return(0,y.jsx)(A,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:n||i.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:a,children:e})}))})};D.displayName=P;var S="DialogOverlay",T=r.forwardRef((e,t)=>{let n=j(S,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=C(S,e.__scopeDialog);return a.modal?(0,y.jsx)(f.C,{present:r||a.open,children:(0,y.jsx)(M,{...o,ref:t})}):null});T.displayName=S;var M=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(S,n);return(0,y.jsx)(m.A,{as:g.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":Y(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),L="DialogContent",I=r.forwardRef((e,t)=>{let n=j(L,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=C(L,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||a.open,children:a.modal?(0,y.jsx)(k,{...o,ref:t}):(0,y.jsx)(F,{...o,ref:t})})});I.displayName=L;var k=r.forwardRef((e,t)=>{let n=C(L,e.__scopeDialog),i=r.useRef(null),l=(0,a.s)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,h.Eq)(e)},[]),(0,y.jsx)(_,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),F=r.forwardRef((e,t)=>{let n=C(L,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,y.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),_=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...u}=e,d=C(L,n),f=r.useRef(null),p=(0,a.s)(t,f);return(0,v.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(s.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,y.jsx)(c.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Y(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(V,{titleId:d.titleId}),(0,y.jsx)(q,{contentRef:f,descriptionId:d.descriptionId})]})]})}),W="DialogTitle",U=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(W,n);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});U.displayName=W;var B="DialogDescription",G=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(B,n);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});G.displayName=B;var X="DialogClose",z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=C(X,n);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})});function Y(e){return e?"open":"closed"}z.displayName=X;var H="DialogTitleWarning",[Z,K]=(0,i.q)(H,{contentName:L,titleName:W,docsSlug:"dialog"}),V=e=>{let{titleId:t}=e,n=K(H),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},q=e=>{let{contentRef:t,descriptionId:n}=e,o=K("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(a)},[a,t,n]),null},$=N,J=R,Q=D,ee=T,et=I,en=U,er=G,eo=z},80560:(e,t,n)=>{n.d(t,{qW:()=>p});var r,o=n(20107),a=n(75456),i=n(3328),l=n(72706),u=n(46774),c=n(91624),s=n(20475),d="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{var n,p;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:b,onDismiss:E,...x}=e,C=o.useContext(f),[N,O]=o.useState(null),R=null!==(p=null==N?void 0:N.ownerDocument)&&void 0!==p?p:null===(n=globalThis)||void 0===n?void 0:n.document,[,P]=o.useState({}),A=(0,l.s)(t,e=>O(e)),j=Array.from(C.layers),[D]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),S=j.indexOf(D),T=N?j.indexOf(N):-1,M=C.layersWithOutsidePointerEventsDisabled.size>0,L=T>=S,I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.c)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...C.branches].some(e=>e.contains(t));!L||n||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==E||E())},R),k=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.c)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;[...C.branches].some(e=>e.contains(t))||(null==w||w(e),null==b||b(e),e.defaultPrevented||null==E||E())},R);return(0,c.U)(e=>{T!==C.layers.size-1||(null==g||g(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))},R),o.useEffect(()=>{if(N)return h&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(N)),C.layers.add(N),v(),()=>{h&&1===C.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[N,R,h,C]),o.useEffect(()=>()=>{N&&(C.layers.delete(N),C.layersWithOutsidePointerEventsDisabled.delete(N),v())},[N,C]),o.useEffect(()=>{let e=()=>P({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,s.jsx)(i.sG.div,{...x,ref:A,style:{pointerEvents:M?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,I.onPointerDownCapture)})});function v(){let e=new CustomEvent(d);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,i.hO)(a,l):a.dispatchEvent(l)}p.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),a=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(i.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},62802:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(20107),o=n(72706),a=n(3328),i=n(46774),l=n(20475),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",s={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:g,...y}=e,[w,b]=r.useState(null),E=(0,i.c)(h),x=(0,i.c)(g),C=r.useRef(null),N=(0,o.s)(t,e=>b(e)),O=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(O.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:v(C.current,{select:!0})},t=function(e){if(O.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||v(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&v(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,w,O.paused]),r.useEffect(()=>{if(w){m.add(O);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(u,s);w.addEventListener(u,E),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(v(r,{select:t}),document.activeElement!==n)return}(f(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&v(w))}return()=>{w.removeEventListener(u,E),setTimeout(()=>{let t=new CustomEvent(c,s);w.addEventListener(c,x),w.dispatchEvent(t),t.defaultPrevented||v(null!=e?e:document.body,{select:!0}),w.removeEventListener(c,x),m.remove(O)},0)}}},[w,E,x,O]);let R=r.useCallback(e=>{if(!n&&!d||O.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,a]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&v(a,{select:!0})):(e.preventDefault(),n&&v(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,O.paused]);return(0,l.jsx)(a.sG.div,{tabIndex:-1,...y,ref:N,onKeyDown:R})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function v(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=h(e,t)).unshift(t)},remove(t){var n;null===(n=(e=h(e,t))[0])||void 0===n||n.resume()}}}();function h(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},21869:(e,t,n)=>{n.d(t,{Mz:()=>ef,UC:()=>em,ZL:()=>ev,bL:()=>ed,l9:()=>ep});var r=n(20107),o=n(75456),a=n(72706),i=n(45170),l=n(80560),u=n(10201),c=n(62802),s=n(72763),d=n(9895),f=n(84069),p=n(3328),v=n(20475),m=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,v.jsx)(p.sG.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,v.jsx)("polygon",{points:"0,0 30,0 15,10"})})});m.displayName="Arrow";var h=n(46774),g=n(54122),y=n(63620),w="Popper",[b,E]=(0,i.A)(w),[x,C]=b(w),N=e=>{let{__scopePopper:t,children:n}=e,[o,a]=r.useState(null);return(0,v.jsx)(x,{scope:t,anchor:o,onAnchorChange:a,children:n})};N.displayName=w;var O="PopperAnchor",R=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=C(O,n),u=r.useRef(null),c=(0,a.s)(t,u);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,v.jsx)(p.sG.div,{...i,ref:c})});R.displayName=O;var P="PopperContent",[A,j]=b(P),D=r.forwardRef((e,t)=>{var n,o,i,l,u,c,s,m;let{__scopePopper:w,side:b="bottom",sideOffset:E=0,align:x="center",alignOffset:N=0,arrowPadding:O=0,avoidCollisions:R=!0,collisionBoundary:j=[],collisionPadding:D=0,sticky:S="partial",hideWhenDetached:T=!1,updatePositionStrategy:M="optimized",onPlaced:F,..._}=e,W=C(P,w),[U,B]=r.useState(null),G=(0,a.s)(t,e=>B(e)),[X,z]=r.useState(null),Y=(0,y.X)(X),H=null!==(s=null==Y?void 0:Y.width)&&void 0!==s?s:0,Z=null!==(m=null==Y?void 0:Y.height)&&void 0!==m?m:0,K="number"==typeof D?D:{top:0,right:0,bottom:0,left:0,...D},V=Array.isArray(j)?j:[j],q=V.length>0,$={padding:K,boundary:V.filter(L),altBoundary:q},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:en}=(0,d.we)({strategy:"fixed",placement:b+("center"!==x?"-"+x:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),X&&(0,d.UE)({element:X,padding:O}),I({arrowWidth:H,arrowHeight:Z}),T&&(0,d.jD)({strategy:"referenceHidden",...$})]}),[er,eo]=k(ee),ea=(0,h.c)(F);(0,g.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null===(n=en.arrow)||void 0===n?void 0:n.x,el=null===(o=en.arrow)||void 0===o?void 0:o.y,eu=(null===(i=en.arrow)||void 0===i?void 0:i.centerOffset)!==0,[ec,es]=r.useState();return(0,g.N)(()=>{U&&es(window.getComputedStyle(U).zIndex)},[U]),(0,v.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(l=en.transformOrigin)||void 0===l?void 0:l.x,null===(u=en.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(c=en.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,v.jsx)(A,{scope:w,placedSide:er,onArrowChange:z,arrowX:ei,arrowY:el,shouldHideArrow:eu,children:(0,v.jsx)(p.sG.div,{"data-side":er,"data-align":eo,..._,ref:G,style:{..._.style,animation:et?void 0:"none"}})})})});D.displayName=P;var S="PopperArrow",T={top:"bottom",right:"left",bottom:"top",left:"right"},M=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=j(S,n),a=T[o.placedSide];return(0,v.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,v.jsx)(m,{...r,ref:t,style:{...r.style,display:"block"}})})});function L(e){return null!==e}M.displayName=S;var I=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=k(l),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+d/2,g=(null!==(i=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+f/2,y="",w="";return"bottom"===p?(y=s?m:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=s?m:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function k(e){let[t,n="center"]=e.split("-");return[t,n]}var F=n(46527),_=n(86432),W=n(79571),U=n(13061),B=n(58020),G=n(76171),X="Popover",[z,Y]=(0,i.A)(X,[E]),H=E(),[Z,K]=z(X),V=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,u=H(t),c=r.useRef(null),[d,f]=r.useState(!1),[p=!1,m]=(0,U.i)({prop:o,defaultProp:a,onChange:i});return(0,v.jsx)(N,{...u,children:(0,v.jsx)(Z,{scope:t,contentId:(0,s.B)(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:l,children:n})})};V.displayName=X;var q="PopoverAnchor",$=r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,a=K(q,n),i=H(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=a;return r.useEffect(()=>(l(),()=>u()),[l,u]),(0,v.jsx)(R,{...i,...o,ref:t})});$.displayName=q;var J="PopoverTrigger",Q=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=K(J,n),l=H(n),u=(0,a.s)(t,i.triggerRef),c=(0,v.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":es(i.open),...r,ref:u,onClick:(0,o.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,v.jsx)(R,{asChild:!0,...l,children:c})});Q.displayName=J;var ee="PopoverPortal",[et,en]=z(ee,{forceMount:void 0}),er=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=K(ee,t);return(0,v.jsx)(et,{scope:t,forceMount:n,children:(0,v.jsx)(_.C,{present:n||a.open,children:(0,v.jsx)(F.Z,{asChild:!0,container:o,children:r})})})};er.displayName=ee;var eo="PopoverContent",ea=r.forwardRef((e,t)=>{let n=en(eo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=K(eo,e.__scopePopover);return(0,v.jsx)(_.C,{present:r||a.open,children:a.modal?(0,v.jsx)(ei,{...o,ref:t}):(0,v.jsx)(el,{...o,ref:t})})});ea.displayName=eo;var ei=r.forwardRef((e,t)=>{let n=K(eo,e.__scopePopover),i=r.useRef(null),l=(0,a.s)(t,i),u=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,B.Eq)(e)},[]),(0,v.jsx)(G.A,{as:W.DX,allowPinchZoom:!0,children:(0,v.jsx)(eu,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;u.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),el=r.forwardRef((e,t)=>{let n=K(eo,e.__scopePopover),o=r.useRef(!1),a=r.useRef(!1);return(0,v.jsx)(eu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),eu=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,...m}=e,h=K(eo,n),g=H(n);return(0,u.Oh)(),(0,v.jsx)(c.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,v.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1),children:(0,v.jsx)(D,{"data-state":es(h.open),role:"dialog",id:h.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ec="PopoverClose";function es(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=K(ec,n);return(0,v.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=ec,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=H(n);return(0,v.jsx)(M,{...o,...r,ref:t})}).displayName="PopoverArrow";var ed=V,ef=$,ep=Q,ev=er,em=ea},46527:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(20107),o=n(25642),a=n(3328),i=n(54122),l=n(20475),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[d,f]=r.useState(!1);(0,i.N)(()=>f(!0),[]);let p=c||d&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,l.jsx)(a.sG.div,{...s,ref:t}),p):null});u.displayName="Portal"},54245:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(20107),o=n(64236),a=n(54122),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[o,i]=r.useState(),u=r.useRef({}),c=r.useRef(e),s=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(u.current);s.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=u.current,n=c.current;if(n!==e){let r=s.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(s.current=l(u.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),i(e)},[])}}(t),u="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),c=(0,o.s)(i.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||i.isPresent?r.cloneElement(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},86432:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(20107),o=n(72706),a=n(54122),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[o,i]=r.useState(),u=r.useRef({}),c=r.useRef(e),s=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(u.current);s.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=u.current,n=c.current;if(n!==e){let r=s.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(s.current=l(u.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),i(e)},[])}}(t),u="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),c=(0,o.s)(i.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||i.isPresent?r.cloneElement(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},3328:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>l});var r=n(20107),o=n(25642),a=n(79571),i=n(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?a.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},88853:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(20107),o=n(34544),a=n(20475),i="horizontal",l=["horizontal","vertical"],u=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...u}=e,c=l.includes(r)?r:i;return(0,a.jsx)(o.sG.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});u.displayName="Separator";var c=u},79571:(e,t,n)=>{n.d(t,{DX:()=>i});var r=n(20107),o=n(72706),a=n(20475),i=r.forwardRef((e,t)=>{let{children:n,...o}=e,i=r.Children.toArray(n),u=i.find(c);if(u){let e=u.props.children,n=i.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(l,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,a.jsx)(l,{...o,ref:t,children:n})});i.displayName="Slot";var l=r.forwardRef((e,t)=>{let{children:n,...a}=e;if(r.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),i=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props);return n.type!==r.Fragment&&(i.ref=t?(0,o.t)(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null});l.displayName="SlotClone";var u=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===u}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7536-99552f97cdce7493.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7536-99552f97cdce7493.js new file mode 100644 index 0000000..a64abb8 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7536-99552f97cdce7493.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7536],{76056:(e,r,n)=>{n.d(r,{jH:()=>a});var t=n(20107);n(20475);var o=t.createContext(void 0);function a(e){let r=t.useContext(o);return e||r||"ltr"}},77536:(e,r,n)=>{n.d(r,{H_:()=>e6,UC:()=>e7,YJ:()=>e5,q7:()=>e3,VF:()=>e8,JU:()=>e4,ZL:()=>e1,z6:()=>e2,hN:()=>e9,bL:()=>e$,wv:()=>re,Pb:()=>rr,G5:()=>rt,ZP:()=>rn,l9:()=>e0});var t=n(20107),o=n(94521),a=n(64236),u=n(45170),l=n(13061),i=n(34544),d=n(32474),s=n(76056),c=n(55302),p=n(10201),f=n(38573),v=n(72763),m=n(57563),h=n(41913),g=n(54245),w=n(71856),x=n(61837),y=n(46774),b=n(58020),C=n(9543),R=n(20475),j=["Enter"," "],M=["ArrowUp","PageDown","End"],D=["ArrowDown","PageUp","Home",...M],_={ltr:[...j,"ArrowRight"],rtl:[...j,"ArrowLeft"]},k={ltr:["ArrowLeft"],rtl:["ArrowRight"]},I="Menu",[P,E,T]=(0,d.N)(I),[N,F]=(0,u.A)(I,[T,m.Bk,w.RG]),S=(0,m.Bk)(),A=(0,w.RG)(),[L,O]=N(I),[G,K]=N(I),B=e=>{let{__scopeMenu:r,open:n=!1,children:o,dir:a,onOpenChange:u,modal:l=!0}=e,i=S(r),[d,c]=t.useState(null),p=t.useRef(!1),f=(0,y.c)(u),v=(0,s.jH)(a);return t.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",r,{capture:!0,once:!0}),document.addEventListener("pointermove",r,{capture:!0,once:!0})},r=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",r,{capture:!0}),document.removeEventListener("pointermove",r,{capture:!0})}},[]),(0,R.jsx)(m.bL,{...i,children:(0,R.jsx)(L,{scope:r,open:n,onOpenChange:f,content:d,onContentChange:c,children:(0,R.jsx)(G,{scope:r,onClose:t.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:v,modal:l,children:o})})})};B.displayName=I;var U=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e,o=S(n);return(0,R.jsx)(m.Mz,{...o,...t,ref:r})});U.displayName="MenuAnchor";var V="MenuPortal",[H,X]=N(V,{forceMount:void 0}),q=e=>{let{__scopeMenu:r,forceMount:n,children:t,container:o}=e,a=O(V,r);return(0,R.jsx)(H,{scope:r,forceMount:n,children:(0,R.jsx)(g.C,{present:n||a.open,children:(0,R.jsx)(h.Z,{asChild:!0,container:o,children:t})})})};q.displayName=V;var z="MenuContent",[Z,Y]=N(z),J=t.forwardRef((e,r)=>{let n=X(z,e.__scopeMenu),{forceMount:t=n.forceMount,...o}=e,a=O(z,e.__scopeMenu),u=K(z,e.__scopeMenu);return(0,R.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,R.jsx)(g.C,{present:t||a.open,children:(0,R.jsx)(P.Slot,{scope:e.__scopeMenu,children:u.modal?(0,R.jsx)(W,{...o,ref:r}):(0,R.jsx)(Q,{...o,ref:r})})})})}),W=t.forwardRef((e,r)=>{let n=O(z,e.__scopeMenu),u=t.useRef(null),l=(0,a.s)(r,u);return t.useEffect(()=>{let e=u.current;if(e)return(0,b.Eq)(e)},[]),(0,R.jsx)($,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Q=t.forwardRef((e,r)=>{let n=O(z,e.__scopeMenu);return(0,R.jsx)($,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),$=t.forwardRef((e,r)=>{let{__scopeMenu:n,loop:u=!1,trapFocus:l,onOpenAutoFocus:i,onCloseAutoFocus:d,disableOutsidePointerEvents:s,onEntryFocus:v,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:b,onDismiss:j,disableOutsideScroll:_,...k}=e,I=O(z,n),P=K(z,n),T=S(n),N=A(n),F=E(n),[L,G]=t.useState(null),B=t.useRef(null),U=(0,a.s)(r,B,I.onContentChange),V=t.useRef(0),H=t.useRef(""),X=t.useRef(0),q=t.useRef(null),Y=t.useRef("right"),J=t.useRef(0),W=_?C.A:t.Fragment,Q=_?{as:x.DX,allowPinchZoom:!0}:void 0,$=e=>{var r,n;let t=H.current+e,o=F().filter(e=>!e.disabled),a=document.activeElement,u=null===(r=o.find(e=>e.ref.current===a))||void 0===r?void 0:r.textValue,l=function(e,r,n){var t;let o=r.length>1&&Array.from(r).every(e=>e===r[0])?r[0]:r,a=(t=Math.max(n?e.indexOf(n):-1,0),e.map((r,n)=>e[(t+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let u=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(o.map(e=>e.textValue),t,u),i=null===(n=o.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(r){H.current=r,window.clearTimeout(V.current),""!==r&&(V.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};t.useEffect(()=>()=>window.clearTimeout(V.current),[]),(0,p.Oh)();let ee=t.useCallback(e=>{var r,n;return Y.current===(null===(r=q.current)||void 0===r?void 0:r.side)&&function(e,r){return!!r&&function(e,r){let{x:n,y:t}=e,o=!1;for(let e=0,a=r.length-1;et!=d>t&&n<(i-u)*(t-l)/(d-l)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)}(e,null===(n=q.current)||void 0===n?void 0:n.area)},[]);return(0,R.jsx)(Z,{scope:n,searchRef:H,onItemEnter:t.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:t.useCallback(e=>{var r;ee(e)||(null===(r=B.current)||void 0===r||r.focus(),G(null))},[ee]),onTriggerLeave:t.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:X,onPointerGraceIntentChange:t.useCallback(e=>{q.current=e},[]),children:(0,R.jsx)(W,{...Q,children:(0,R.jsx)(f.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.m)(i,e=>{var r;e.preventDefault(),null===(r=B.current)||void 0===r||r.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,R.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:b,onDismiss:j,children:(0,R.jsx)(w.bL,{asChild:!0,...N,dir:P.dir,orientation:"vertical",loop:u,currentTabStopId:L,onCurrentTabStopIdChange:G,onEntryFocus:(0,o.m)(v,e=>{P.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,R.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":e_(I.open),"data-radix-menu-content":"",dir:P.dir,...T,...k,ref:U,style:{outline:"none",...k.style},onKeyDown:(0,o.m)(k.onKeyDown,e=>{let r=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,t=1===e.key.length;r&&("Tab"===e.key&&e.preventDefault(),!n&&t&&$(e.key));let o=B.current;if(e.target!==o||!D.includes(e.key))return;e.preventDefault();let a=F().filter(e=>!e.disabled).map(e=>e.ref.current);M.includes(e.key)&&a.reverse(),function(e){let r=document.activeElement;for(let n of e)if(n===r||(n.focus(),document.activeElement!==r))return}(a)}),onBlur:(0,o.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(V.current),H.current="")}),onPointerMove:(0,o.m)(e.onPointerMove,eP(e=>{let r=e.target,n=J.current!==e.clientX;if(e.currentTarget.contains(r)&&n){let r=e.clientX>J.current?"right":"left";Y.current=r,J.current=e.clientX}}))})})})})})})});J.displayName=z;var ee=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,R.jsx)(i.sG.div,{role:"group",...t,ref:r})});ee.displayName="MenuGroup";var er=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,R.jsx)(i.sG.div,{...t,ref:r})});er.displayName="MenuLabel";var en="MenuItem",et="menu.itemSelect",eo=t.forwardRef((e,r)=>{let{disabled:n=!1,onSelect:u,...l}=e,d=t.useRef(null),s=K(en,e.__scopeMenu),c=Y(en,e.__scopeMenu),p=(0,a.s)(r,d),f=t.useRef(!1);return(0,R.jsx)(ea,{...l,ref:p,disabled:n,onClick:(0,o.m)(e.onClick,()=>{let e=d.current;if(!n&&e){let r=new CustomEvent(et,{bubbles:!0,cancelable:!0});e.addEventListener(et,e=>null==u?void 0:u(e),{once:!0}),(0,i.hO)(e,r),r.defaultPrevented?f.current=!1:s.onClose()}}),onPointerDown:r=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,r),f.current=!0},onPointerUp:(0,o.m)(e.onPointerUp,e=>{var r;f.current||null===(r=e.currentTarget)||void 0===r||r.click()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let r=""!==c.searchRef.current;!n&&(!r||" "!==e.key)&&j.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=en;var ea=t.forwardRef((e,r)=>{let{__scopeMenu:n,disabled:u=!1,textValue:l,...d}=e,s=Y(en,n),c=A(n),p=t.useRef(null),f=(0,a.s)(r,p),[v,m]=t.useState(!1),[h,g]=t.useState("");return t.useEffect(()=>{let e=p.current;if(e){var r;g((null!==(r=e.textContent)&&void 0!==r?r:"").trim())}},[d.children]),(0,R.jsx)(P.ItemSlot,{scope:n,disabled:u,textValue:null!=l?l:h,children:(0,R.jsx)(w.q7,{asChild:!0,...c,focusable:!u,children:(0,R.jsx)(i.sG.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0,...d,ref:f,onPointerMove:(0,o.m)(e.onPointerMove,eP(e=>{u?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eP(e=>s.onItemLeave(e))),onFocus:(0,o.m)(e.onFocus,()=>m(!0)),onBlur:(0,o.m)(e.onBlur,()=>m(!1))})})})}),eu=t.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:t,...a}=e;return(0,R.jsx)(ev,{scope:e.__scopeMenu,checked:n,children:(0,R.jsx)(eo,{role:"menuitemcheckbox","aria-checked":ek(n)?"mixed":n,...a,ref:r,"data-state":eI(n),onSelect:(0,o.m)(a.onSelect,()=>null==t?void 0:t(!!ek(n)||!n),{checkForDefaultPrevented:!1})})})});eu.displayName="MenuCheckboxItem";var el="MenuRadioGroup",[ei,ed]=N(el,{value:void 0,onValueChange:()=>{}}),es=t.forwardRef((e,r)=>{let{value:n,onValueChange:t,...o}=e,a=(0,y.c)(t);return(0,R.jsx)(ei,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,R.jsx)(ee,{...o,ref:r})})});es.displayName=el;var ec="MenuRadioItem",ep=t.forwardRef((e,r)=>{let{value:n,...t}=e,a=ed(ec,e.__scopeMenu),u=n===a.value;return(0,R.jsx)(ev,{scope:e.__scopeMenu,checked:u,children:(0,R.jsx)(eo,{role:"menuitemradio","aria-checked":u,...t,ref:r,"data-state":eI(u),onSelect:(0,o.m)(t.onSelect,()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})})});ep.displayName=ec;var ef="MenuItemIndicator",[ev,em]=N(ef,{checked:!1}),eh=t.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:t,...o}=e,a=em(ef,n);return(0,R.jsx)(g.C,{present:t||ek(a.checked)||!0===a.checked,children:(0,R.jsx)(i.sG.span,{...o,ref:r,"data-state":eI(a.checked)})})});eh.displayName=ef;var eg=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,R.jsx)(i.sG.div,{role:"separator","aria-orientation":"horizontal",...t,ref:r})});eg.displayName="MenuSeparator";var ew=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e,o=S(n);return(0,R.jsx)(m.i3,{...o,...t,ref:r})});ew.displayName="MenuArrow";var ex="MenuSub",[ey,eb]=N(ex),eC=e=>{let{__scopeMenu:r,children:n,open:o=!1,onOpenChange:a}=e,u=O(ex,r),l=S(r),[i,d]=t.useState(null),[s,c]=t.useState(null),p=(0,y.c)(a);return t.useEffect(()=>(!1===u.open&&p(!1),()=>p(!1)),[u.open,p]),(0,R.jsx)(m.bL,{...l,children:(0,R.jsx)(L,{scope:r,open:o,onOpenChange:p,content:s,onContentChange:c,children:(0,R.jsx)(ey,{scope:r,contentId:(0,v.B)(),triggerId:(0,v.B)(),trigger:i,onTriggerChange:d,children:n})})})};eC.displayName=ex;var eR="MenuSubTrigger",ej=t.forwardRef((e,r)=>{let n=O(eR,e.__scopeMenu),u=K(eR,e.__scopeMenu),l=eb(eR,e.__scopeMenu),i=Y(eR,e.__scopeMenu),d=t.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=i,p={__scopeMenu:e.__scopeMenu},f=t.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return t.useEffect(()=>f,[f]),t.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,R.jsx)(U,{asChild:!0,...p,children:(0,R.jsx)(ea,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":e_(n.open),...e,ref:(0,a.t)(r,l.onTriggerChange),onClick:r=>{var t;null===(t=e.onClick)||void 0===t||t.call(e,r),e.disabled||r.defaultPrevented||(r.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.m)(e.onPointerMove,eP(r=>{i.onItemEnter(r),r.defaultPrevented||e.disabled||n.open||d.current||(i.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eP(e=>{var r,t;f();let o=null===(r=n.content)||void 0===r?void 0:r.getBoundingClientRect();if(o){let r=null===(t=n.content)||void 0===t?void 0:t.dataset.side,a="right"===r,u=o[a?"left":"right"],l=o[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:u,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:u,y:o.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.m)(e.onKeyDown,r=>{let t=""!==i.searchRef.current;if(!e.disabled&&(!t||" "!==r.key)&&_[u.dir].includes(r.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),r.preventDefault()}})})})});ej.displayName=eR;var eM="MenuSubContent",eD=t.forwardRef((e,r)=>{let n=X(z,e.__scopeMenu),{forceMount:u=n.forceMount,...l}=e,i=O(z,e.__scopeMenu),d=K(z,e.__scopeMenu),s=eb(eM,e.__scopeMenu),c=t.useRef(null),p=(0,a.s)(r,c);return(0,R.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,R.jsx)(g.C,{present:u||i.open,children:(0,R.jsx)(P.Slot,{scope:e.__scopeMenu,children:(0,R.jsx)($,{id:s.contentId,"aria-labelledby":s.triggerId,...l,ref:p,align:"start",side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var r;d.isUsingKeyboardRef.current&&(null===(r=c.current)||void 0===r||r.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>{e.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,o.m)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let r=e.currentTarget.contains(e.target),n=k[d.dir].includes(e.key);if(r&&n){var t;i.onOpenChange(!1),null===(t=s.trigger)||void 0===t||t.focus(),e.preventDefault()}})})})})})});function e_(e){return e?"open":"closed"}function ek(e){return"indeterminate"===e}function eI(e){return ek(e)?"indeterminate":e?"checked":"unchecked"}function eP(e){return r=>"mouse"===r.pointerType?e(r):void 0}eD.displayName=eM;var eE="DropdownMenu",[eT,eN]=(0,u.A)(eE,[F]),eF=F(),[eS,eA]=eT(eE),eL=e=>{let{__scopeDropdownMenu:r,children:n,dir:o,open:a,defaultOpen:u,onOpenChange:i,modal:d=!0}=e,s=eF(r),c=t.useRef(null),[p=!1,f]=(0,l.i)({prop:a,defaultProp:u,onChange:i});return(0,R.jsx)(eS,{scope:r,triggerId:(0,v.B)(),triggerRef:c,contentId:(0,v.B)(),open:p,onOpenChange:f,onOpenToggle:t.useCallback(()=>f(e=>!e),[f]),modal:d,children:(0,R.jsx)(B,{...s,open:p,onOpenChange:f,dir:o,modal:d,children:n})})};eL.displayName=eE;var eO="DropdownMenuTrigger",eG=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,disabled:t=!1,...u}=e,l=eA(eO,n),d=eF(n);return(0,R.jsx)(U,{asChild:!0,...d,children:(0,R.jsx)(i.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...u,ref:(0,a.t)(r,l.triggerRef),onPointerDown:(0,o.m)(e.onPointerDown,e=>{t||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{!t&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eG.displayName=eO;var eK=e=>{let{__scopeDropdownMenu:r,...n}=e,t=eF(r);return(0,R.jsx)(q,{...t,...n})};eK.displayName="DropdownMenuPortal";var eB="DropdownMenuContent",eU=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,u=eA(eB,n),l=eF(n),i=t.useRef(!1);return(0,R.jsx)(J,{id:u.contentId,"aria-labelledby":u.triggerId,...l,...a,ref:r,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var r;i.current||null===(r=u.triggerRef.current)||void 0===r||r.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,o.m)(e.onInteractOutside,e=>{let r=e.detail.originalEvent,n=0===r.button&&!0===r.ctrlKey,t=2===r.button||n;(!u.modal||t)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eU.displayName=eB;var eV=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(ee,{...o,...t,ref:r})});eV.displayName="DropdownMenuGroup";var eH=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(er,{...o,...t,ref:r})});eH.displayName="DropdownMenuLabel";var eX=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(eo,{...o,...t,ref:r})});eX.displayName="DropdownMenuItem";var eq=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(eu,{...o,...t,ref:r})});eq.displayName="DropdownMenuCheckboxItem";var ez=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(es,{...o,...t,ref:r})});ez.displayName="DropdownMenuRadioGroup";var eZ=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(ep,{...o,...t,ref:r})});eZ.displayName="DropdownMenuRadioItem";var eY=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(eh,{...o,...t,ref:r})});eY.displayName="DropdownMenuItemIndicator";var eJ=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(eg,{...o,...t,ref:r})});eJ.displayName="DropdownMenuSeparator",t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(ew,{...o,...t,ref:r})}).displayName="DropdownMenuArrow";var eW=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(ej,{...o,...t,ref:r})});eW.displayName="DropdownMenuSubTrigger";var eQ=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eF(n);return(0,R.jsx)(eD,{...o,...t,ref:r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eQ.displayName="DropdownMenuSubContent";var e$=eL,e0=eG,e1=eK,e7=eU,e5=eV,e4=eH,e3=eX,e6=eq,e2=ez,e9=eZ,e8=eY,re=eJ,rr=e=>{let{__scopeDropdownMenu:r,children:n,open:t,onOpenChange:o,defaultOpen:a}=e,u=eF(r),[i=!1,d]=(0,l.i)({prop:t,defaultProp:a,onChange:o});return(0,R.jsx)(eC,{...u,open:i,onOpenChange:d,children:n})},rn=eW,rt=eQ},71856:(e,r,n)=>{n.d(r,{RG:()=>b,bL:()=>P,q7:()=>E});var t=n(20107),o=n(94521),a=n(32474),u=n(64236),l=n(54379),i=n(72763),d=n(34544),s=n(46774),c=n(13061),p=n(76056),f=n(20475),v="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,w,x]=(0,a.N)(h),[y,b]=(0,l.A)(h,[x]),[C,R]=y(h),j=t.forwardRef((e,r)=>(0,f.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(M,{...e,ref:r})})}));j.displayName=h;var M=t.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:l=!1,dir:i,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:x,onEntryFocus:y,preventScrollOnEntryFocus:b=!1,...R}=e,j=t.useRef(null),M=(0,u.s)(r,j),D=(0,p.jH)(i),[_=null,k]=(0,c.i)({prop:h,defaultProp:g,onChange:x}),[P,E]=t.useState(!1),T=(0,s.c)(y),N=w(n),F=t.useRef(!1),[S,A]=t.useState(0);return t.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(v,T),()=>e.removeEventListener(v,T)},[T]),(0,f.jsx)(C,{scope:n,orientation:a,dir:D,loop:l,currentTabStopId:_,onItemFocus:t.useCallback(e=>k(e),[k]),onItemShiftTab:t.useCallback(()=>E(!0),[]),onFocusableItemAdd:t.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>A(e=>e-1),[]),children:(0,f.jsx)(d.sG.div,{tabIndex:P||0===S?-1:0,"data-orientation":a,...R,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let r=!F.current;if(e.target===e.currentTarget&&r&&!P){let r=new CustomEvent(v,m);if(e.currentTarget.dispatchEvent(r),!r.defaultPrevented){let e=N().filter(e=>e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===_),...e].filter(Boolean).map(e=>e.ref.current),b)}}F.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>E(!1))})})}),D="RovingFocusGroupItem",_=t.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:u=!1,tabStopId:l,...s}=e,c=(0,i.B)(),p=l||c,v=R(D,n),m=v.currentTabStopId===p,h=w(n),{onFocusableItemAdd:x,onFocusableItemRemove:y}=v;return t.useEffect(()=>{if(a)return x(),()=>y()},[a,x,y]),(0,f.jsx)(g.ItemSlot,{scope:n,id:p,focusable:a,active:u,children:(0,f.jsx)(d.sG.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...s,ref:r,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?v.onItemFocus(p):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>v.onItemFocus(p)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let r=function(e,r,n){var t;let o=(t=e.key,"rtl"!==n?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(o)))return k[o]}(e,v.orientation,v.dir);if(void 0!==r){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===r)n.reverse();else if("prev"===r||"next"===r){"prev"===r&&n.reverse();let t=n.indexOf(e.currentTarget);n=v.loop?function(e,r){return e.map((n,t)=>e[(r+t)%e.length])}(n,t+1):n.slice(t+1)}setTimeout(()=>I(n))}})})})});_.displayName=D;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let t of e)if(t===n||(t.focus({preventScroll:r}),document.activeElement!==n))return}var P=j,E=_}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7563-33b7de2a93dcbe27.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7563-33b7de2a93dcbe27.js new file mode 100644 index 0000000..490c5e2 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7563-33b7de2a93dcbe27.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7563],{84069:(e,t,n)=>{n.d(t,{UE:()=>ec,ll:()=>ei,rD:()=>ed,UU:()=>ea,jD:()=>eu,ER:()=>es,cY:()=>eo,BN:()=>el,Ej:()=>ef});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,l=Math.round,a=Math.floor,f=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function s(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(d(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>c[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function v(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function b(e,t,n){let r,{reference:i,floating:o}=e,l=g(t),a=h(g(t)),f=m(a),u=d(t),c="y"===l,s=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,w=i[f]/2-o[f]/2;switch(u){case"top":r={x:s,y:i.y-o.height};break;case"bottom":r={x:s,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-o.width,y:y};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[a]-=w*(n&&c?-1:1);break;case"end":r[a]+=w*(n&&c?-1:1)}return r}let A=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:s}=b(u,r,f),d=r,p={},h=0;for(let n=0;ne[t]>=0)}async function S(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=d(n),a=p(n),f="y"===g(n),u=["left","top"].includes(l)?-1:1,c=o&&f?-1:1,h=s(t,e),{mainAxis:m,crossAxis:y,alignmentAxis:w}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof w&&(y="end"===a?-1*w:w),f?{x:y*c,y:m*u}:{x:m*u,y:y*c}}function T(){return"undefined"!=typeof window}function C(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function P(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return!!T()&&(e instanceof Node||e instanceof O(e).Node)}function D(e){return!!T()&&(e instanceof Element||e instanceof O(e).Element)}function j(e){return!!T()&&(e instanceof HTMLElement||e instanceof O(e).HTMLElement)}function k(e){return!!T()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}function H(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function M(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function B(e){let t=F(),n=D(e)?z(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function F(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function W(e){return["html","body","#document"].includes(C(e))}function z(e){return O(e).getComputedStyle(e)}function U(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _(e){if("html"===C(e))return e;let t=e.assignedSlot||e.parentNode||k(e)&&e.host||P(e);return k(t)?t.host:t}function V(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=_(t);return W(n)?t.ownerDocument?t.ownerDocument.body:t.body:j(n)&&H(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=O(i);if(o){let e=Y(l);return t.concat(l,l.visualViewport||[],H(i)?i:[],e&&n?V(e):[])}return t.concat(i,V(i,[],n))}function Y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $(e){let t=z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=j(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,f=l(n)!==o||l(r)!==a;return f&&(n=o,r=a),{width:n,height:r,$:f}}function X(e){return D(e)?e:e.contextElement}function I(e){let t=X(e);if(!j(t))return f(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=$(t),a=(o?l(n.width):n.width)/r,u=(o?l(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let G=f(0);function q(e){let t=O(e);return F()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:G}function J(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=X(e),a=f(1);t&&(r?D(r)&&(a=I(r)):a=I(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===O(l))&&i)?q(l):f(0),c=(o.left+u.x)/a.x,s=(o.top+u.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=O(l),t=r&&D(r)?O(r):r,n=e,i=Y(n);for(;i&&r&&t!==n;){let e=I(i),t=i.getBoundingClientRect(),r=z(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,p*=e.y,c+=o,s+=l,i=Y(n=O(i))}}return x({width:d,height:p,x:c,y:s})}function K(e,t){let n=U(e).scrollLeft;return t?t.left+n:J(P(e)).left+n}function Q(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=O(e),r=P(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let e=F();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:l,x:a,y:f}}(e,n);else if("document"===t)r=function(e){let t=P(e),n=U(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+K(e),f=-n.scrollTop;return"rtl"===z(r).direction&&(a+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:f}}(P(e));else if(D(t))r=function(e,t){let n=J(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=j(e)?I(e):f(1),l=e.clientWidth*o.x;return{width:l,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=q(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return x(r)}function Z(e){return"static"===z(e).position}function ee(e,t){if(!j(e)||"fixed"===z(e).position)return null;if(t)return t(e);let n=e.offsetParent;return P(e)===n&&(n=n.ownerDocument.body),n}function et(e,t){let n=O(e);if(M(e))return n;if(!j(e)){let t=_(e);for(;t&&!W(t);){if(D(t)&&!Z(t))return t;t=_(t)}return n}let r=ee(e,t);for(;r&&["table","td","th"].includes(C(r))&&Z(r);)r=ee(r,t);return r&&W(r)&&Z(r)&&!B(r)?n:r||function(e){let t=_(e);for(;j(t)&&!W(t);){if(B(t))return t;if(M(t))break;t=_(t)}return null}(e)||n}let en=async function(e){let t=this.getOffsetParent||et,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=j(t),i=P(t),o="fixed"===n,l=J(e,!0,o,t),a={scrollLeft:0,scrollTop:0},u=f(0);if(r||!r&&!o){if(("body"!==C(t)||H(i))&&(a=U(t)),r){let e=J(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=K(i))}let c=0,s=0;if(i&&!r&&!o){let e=i.getBoundingClientRect();s=e.top+a.scrollTop,c=e.left+a.scrollLeft-K(i,e)}return{x:l.left+a.scrollLeft-u.x-c,y:l.top+a.scrollTop-u.y-s,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},er={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=P(r),a=!!t&&M(t.floating);if(r===l||a&&o)return n;let u={scrollLeft:0,scrollTop:0},c=f(1),s=f(0),d=j(r);if((d||!d&&!o)&&(("body"!==C(r)||H(l))&&(u=U(r)),j(r))){let e=J(r);c=I(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x,y:n.y*c.y-u.scrollTop*c.y+s.y}},getDocumentElement:P,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?M(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=V(e,[],!1).filter(e=>D(e)&&"body"!==C(e)),i=null,o="fixed"===z(e).position,l=o?_(e):e;for(;D(l)&&!W(l);){let t=z(l),n=B(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||H(l)&&!n&&function e(t,n){let r=_(t);return!(r===n||!D(r)||W(r))&&("fixed"===z(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=_(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=a[0],u=a.reduce((e,n)=>{let r=Q(t,n,l);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},Q(t,f,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:et,getElementRects:en,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=$(e);return{width:t,height:n}},getScale:I,isElement:D,isRTL:function(e){return"rtl"===z(e).direction}};function ei(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:f=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=X(e),h=f||u?[...p?V(p):[],...V(t)]:[];h.forEach(e=>{f&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&s?function(e,t){let n,r=null,l=P(e);function f(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),f();let{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(c||t(),!h||!m)return;let g=a(p),y=a(l.clientWidth-(d+h)),w={rootMargin:-g+"px "+-y+"px "+-a(l.clientHeight-(p+m))+"px "+-a(d)+"px",threshold:o(0,i(1,s))||1},v=!0;function x(e){let t=e[0].intersectionRatio;if(t!==s){if(!v)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}v=!1}try{r=new IntersectionObserver(x,{...w,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(x,w)}r.observe(e)}(!0),f}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let w=d?J(e):null;return d&&function t(){let r=J(e);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{f&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(l)}}let eo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,f=await S(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}},el=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:f=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=s(e,t),p={x:n,y:r},m=await R(t,c),y=g(d(l)),w=h(y),v=p[w],x=p[y];if(a){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=v+m[e],r=v-m[t];v=o(n,i(v,r))}if(f){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+m[e],r=x-m[t];x=o(n,i(x,r))}let b=u.fn({...t,[w]:v,[y]:x});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[w]:a,[y]:f}}}}}},ea=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:f,rects:u,initialPlacement:c,platform:v,elements:x}=t,{mainAxis:b=!0,crossAxis:A=!0,fallbackPlacements:E,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:T=!0,...C}=s(e,t);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let O=d(a),P=g(c),N=d(c)===c,D=await (null==v.isRTL?void 0:v.isRTL(x.floating)),j=E||(N||!T?[w(c)]:function(e){let t=w(e);return[y(e),t,y(t)]}(c)),k="none"!==S;!E&&k&&j.push(...function(e,t,n,r){let i=p(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(d(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}(c,T,S,D));let H=[c,...j],M=await R(t,C),B=[],F=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&B.push(M[O]),A){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),i=h(g(e)),o=m(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=w(l)),[l,w(l)]}(a,u,D);B.push(M[e[0]],M[e[1]])}if(F=[...F,{placement:a,overflows:B}],!B.every(e=>e<=0)){let e=((null==(i=f.flip)?void 0:i.index)||0)+1,t=H[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(L){case"bestFit":{let e=null==(l=F.filter(e=>{if(k){let t=g(e.placement);return t===P||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},ef=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,a;let{placement:f,rects:u,platform:c,elements:h}=t,{apply:m=()=>{},...y}=s(e,t),w=await R(t,y),v=d(f),x=p(f),b="y"===g(f),{width:A,height:E}=u.floating;"top"===v||"bottom"===v?(l=v,a=x===(await (null==c.isRTL?void 0:c.isRTL(h.floating))?"start":"end")?"left":"right"):(a=v,l="end"===x?"top":"bottom");let L=E-w.top-w.bottom,S=A-w.left-w.right,T=i(E-w[l],L),C=i(A-w[a],S),O=!t.middlewareData.shift,P=T,N=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=S),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=L),O&&!x){let e=o(w.left,0),t=o(w.right,0),n=o(w.top,0),r=o(w.bottom,0);b?N=A-2*(0!==e||0!==t?e+t:o(w.left,w.right)):P=E-2*(0!==n||0!==r?n+r:o(w.top,w.bottom))}await m({...t,availableWidth:N,availableHeight:P});let D=await c.getDimensions(h.floating);return A!==D.width||E!==D.height?{reset:{rects:!0}}:{}}}},eu=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=s(e,t);switch(r){case"referenceHidden":{let e=E(await R(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:L(e)}}}case"escaped":{let e=E(await R(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:L(e)}}}default:return{}}}}},ec=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:f,elements:u,middlewareData:c}=t,{element:d,padding:y=0}=s(e,t)||{};if(null==d)return{};let w=v(y),x={x:n,y:r},b=h(g(l)),A=m(b),R=await f.getDimensions(d),E="y"===b,L=E?"clientHeight":"clientWidth",S=a.reference[A]+a.reference[b]-x[b]-a.floating[A],T=x[b]-a.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(d)),O=C?C[L]:0;O&&await (null==f.isElement?void 0:f.isElement(C))||(O=u.floating[L]||a.floating[A]);let P=O/2-R[A]/2-1,N=i(w[E?"top":"left"],P),D=i(w[E?"bottom":"right"],P),j=O-R[A]-D,k=O/2-R[A]/2+(S/2-T/2),H=o(N,i(k,j)),M=!c.arrow&&null!=p(l)&&k!==H&&a.reference[A]/2-(kn&&(y=n)}if(u){var b,A;let e="y"===m?"width":"height",t=["top","left"].includes(d(i)),n=o.reference[p]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[p])||0)+(t?0:x.crossAxis),r=o.reference[p]+o.reference[e]+(t?0:(null==(A=l.offset)?void 0:A[p])||0)-(t?x.crossAxis:0);wr&&(w=r)}return{[m]:y,[p]:w}}}},ed=(e,t,n)=>{let r=new Map,i={platform:er,...n},o={...i.platform,_c:r};return A(e,t,{...i,platform:o})}},9895:(e,t,n)=>{n.d(t,{BN:()=>h,ER:()=>m,Ej:()=>y,UE:()=>v,UU:()=>g,cY:()=>p,jD:()=>w,we:()=>s});var r=n(84069),i=n(20107),o=n(25642),l="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function a(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function f(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=f(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return l(()=>{t.current=e}),t}function s(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:d,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:g,open:y}=e,[w,v]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,b]=i.useState(s);a(x,s)||b(s);let[A,R]=i.useState(null),[E,L]=i.useState(null),S=i.useCallback(e=>{e!==P.current&&(P.current=e,R(e))},[]),T=i.useCallback(e=>{e!==N.current&&(N.current=e,L(e))},[]),C=p||A,O=h||E,P=i.useRef(null),N=i.useRef(null),D=i.useRef(w),j=null!=g,k=c(g),H=c(d),M=c(y),B=i.useCallback(()=>{if(!P.current||!N.current)return;let e={placement:t,strategy:n,middleware:x};H.current&&(e.platform=H.current),(0,r.rD)(P.current,N.current,e).then(e=>{let t={...e,isPositioned:!1!==M.current};F.current&&!a(D.current,t)&&(D.current=t,o.flushSync(()=>{v(t)}))})},[x,t,n,H,M]);l(()=>{!1===y&&D.current.isPositioned&&(D.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[y]);let F=i.useRef(!1);l(()=>(F.current=!0,()=>{F.current=!1}),[]),l(()=>{if(C&&(P.current=C),O&&(N.current=O),C&&O){if(k.current)return k.current(C,O,B);B()}},[C,O,B,k,j]);let W=i.useMemo(()=>({reference:P,floating:N,setReference:S,setFloating:T}),[S,T]),z=i.useMemo(()=>({reference:C,floating:O}),[C,O]),U=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=u(z.floating,w.x),r=u(z.floating,w.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...f(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,z.floating,w.x,w.y]);return i.useMemo(()=>({...w,update:B,refs:W,elements:z,floatingStyles:U}),[w,B,W,z,U])}let d=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{}}}),p=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),m=(e,t)=>({...(0,r.ER)(e),options:[e,t]}),g=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),y=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),w=(e,t)=>({...(0,r.jD)(e),options:[e,t]}),v=(e,t)=>({...d(e),options:[e,t]})},54379:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(20107),i=n(20475);function o(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return l.scopeName=e,[function(t,o){let l=r.createContext(o),a=n.length;function f(t){let{scope:n,children:o,...f}=t,u=n?.[e][a]||l,c=r.useMemo(()=>f,Object.values(f));return(0,i.jsx)(u.Provider,{value:c,children:o})}return n=[...n,o],f.displayName=t+"Provider",[f,function(n,i){let f=i?.[e][a]||l,u=r.useContext(f);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(l,...t)]}},57563:(e,t,n)=>{n.d(t,{Mz:()=>j,i3:()=>H,UC:()=>k,bL:()=>D,Bk:()=>g});var r=n(20107),i=n(9895),o=n(84069),l=n(34544),a=n(20475),f=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,a.jsx)(l.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});f.displayName="Arrow";var u=n(64236),c=n(54379),s=n(46774),d=n(54122),p=n(63620),h="Popper",[m,g]=(0,c.A)(h),[y,w]=m(h),v=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,a.jsx)(y,{scope:t,anchor:i,onAnchorChange:o,children:n})};v.displayName=h;var x="PopperAnchor",b=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,f=w(x,n),c=r.useRef(null),s=(0,u.s)(t,c);return r.useEffect(()=>{f.onAnchorChange((null==i?void 0:i.current)||c.current)}),i?null:(0,a.jsx)(l.sG.div,{...o,ref:s})});b.displayName=x;var A="PopperContent",[R,E]=m(A),L=r.forwardRef((e,t)=>{var n,f,c,h,m,g,y,v;let{__scopePopper:x,side:b="bottom",sideOffset:E=0,align:L="center",alignOffset:S=0,arrowPadding:T=0,avoidCollisions:C=!0,collisionBoundary:D=[],collisionPadding:j=0,sticky:k="partial",hideWhenDetached:H=!1,updatePositionStrategy:M="optimized",onPlaced:B,...F}=e,W=w(A,x),[z,U]=r.useState(null),_=(0,u.s)(t,e=>U(e)),[V,Y]=r.useState(null),$=(0,p.X)(V),X=null!==(y=null==$?void 0:$.width)&&void 0!==y?y:0,I=null!==(v=null==$?void 0:$.height)&&void 0!==v?v:0,G="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},q=Array.isArray(D)?D:[D],J=q.length>0,K={padding:G,boundary:q.filter(O),altBoundary:J},{refs:Q,floatingStyles:Z,placement:ee,isPositioned:et,middlewareData:en}=(0,i.we)({strategy:"fixed",placement:b+("center"!==L?"-"+L:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),V&&(0,i.UE)({element:V,padding:T}),P({arrowWidth:X,arrowHeight:I}),H&&(0,i.jD)({strategy:"referenceHidden",...K})]}),[er,ei]=N(ee),eo=(0,s.c)(B);(0,d.N)(()=>{et&&(null==eo||eo())},[et,eo]);let el=null===(n=en.arrow)||void 0===n?void 0:n.x,ea=null===(f=en.arrow)||void 0===f?void 0:f.y,ef=(null===(c=en.arrow)||void 0===c?void 0:c.centerOffset)!==0,[eu,ec]=r.useState();return(0,d.N)(()=>{z&&ec(window.getComputedStyle(z).zIndex)},[z]),(0,a.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:et?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(h=en.transformOrigin)||void 0===h?void 0:h.x,null===(m=en.transformOrigin)||void 0===m?void 0:m.y].join(" "),...(null===(g=en.hide)||void 0===g?void 0:g.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(R,{scope:x,placedSide:er,onArrowChange:Y,arrowX:el,arrowY:ea,shouldHideArrow:ef,children:(0,a.jsx)(l.sG.div,{"data-side":er,"data-align":ei,...F,ref:_,style:{...F.style,animation:et?void 0:"none"}})})})});L.displayName=A;var S="PopperArrow",T={top:"bottom",right:"left",bottom:"top",left:"right"},C=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=E(S,n),o=T[i.placedSide];return(0,a.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,a.jsx)(f,{...r,ref:t,style:{...r.style,display:"block"}})})});function O(e){return null!==e}C.displayName=S;var P=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:a,rects:f,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,s=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=N(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+s/2,y=(null!==(l=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==l?l:0)+d/2,w="",v="";return"bottom"===p?(w=c?m:"".concat(g,"px"),v="".concat(-d,"px")):"top"===p?(w=c?m:"".concat(g,"px"),v="".concat(f.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),v=c?m:"".concat(y,"px")):"left"===p&&(w="".concat(f.floating.width+d,"px"),v=c?m:"".concat(y,"px")),{data:{x:w,y:v}}}});function N(e){let[t,n="center"]=e.split("-");return[t,n]}var D=v,j=b,k=L,H=C},63620:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(20107),i=n(54122);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7780-d44d1f6d676771d4.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7780-d44d1f6d676771d4.js new file mode 100644 index 0000000..b34df0b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7780-d44d1f6d676771d4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7780],{64236:(e,r,o)=>{o.d(r,{s:()=>l,t:()=>n});var t=o(20107);function n(...e){return r=>e.forEach(e=>{"function"==typeof e?e(r):null!=e&&(e.current=r)})}function l(...e){return t.useCallback(n(...e),e)}},61837:(e,r,o)=>{o.d(r,{DX:()=>s,xV:()=>i});var t=o(20107),n=o(64236),l=o(20475),s=t.forwardRef((e,r)=>{let{children:o,...n}=e,s=t.Children.toArray(o),i=s.find(d);if(i){let e=i.props.children,o=s.map(r=>r!==i?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,l.jsx)(a,{...n,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,o):null})}return(0,l.jsx)(a,{...n,ref:r,children:o})});s.displayName="Slot";var a=t.forwardRef((e,r)=>{let{children:o,...l}=e;if(t.isValidElement(o)){let e=function(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o);return t.cloneElement(o,{...function(e,r){let o={...r};for(let t in r){let n=e[t],l=r[t];/^on[A-Z]/.test(t)?n&&l?o[t]=(...e)=>{l(...e),n(...e)}:n&&(o[t]=n):"style"===t?o[t]={...n,...l}:"className"===t&&(o[t]=[n,l].filter(Boolean).join(" "))}return{...e,...o}}(l,o.props),ref:r?(0,n.t)(r,e):e})}return t.Children.count(o)>1?t.Children.only(null):null});a.displayName="SlotClone";var i=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function d(e){return t.isValidElement(e)&&e.type===i}},64901:(e,r,o)=>{function t(){for(var e,r,o=0,t="",n=arguments.length;ot,A:()=>n});let n=t},868:(e,r,o)=>{o.d(r,{QP:()=>J});let t=e=>{let r=a(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{let o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),n(o,r)||s(e)},getConflictingClassGroupIds:(e,r)=>{let n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},n=(e,r)=>{if(0===e.length)return r.classGroupId;let o=e[0],t=r.nextPart.get(o),l=t?n(e.slice(1),t):void 0;if(l)return l;if(0===r.validators.length)return;let s=e.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId},l=/^\[(.+)\]$/,s=e=>{if(l.test(e)){let r=l.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},a=e=>{let{theme:r,prefix:o}=e,t={nextPart:new Map,validators:[]};return p(Object.entries(e.classGroups),o).forEach(([e,o])=>{i(o,t,e,r)}),t},i=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:d(r,e)).classGroupId=o;return}if("function"==typeof e){if(c(e)){i(e(t),r,o,t);return}r.validators.push({validator:e,classGroupId:o});return}Object.entries(e).forEach(([e,n])=>{i(n,d(r,e),o,t)})})},d=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},c=e=>e.isThemeGetter,p=(e,r)=>r?e.map(([e,o])=>[e,o.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,o])=>[r+e,o])):e)]):e,u=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,o=new Map,t=new Map,n=(n,l)=>{o.set(n,l),++r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},b=e=>{let{separator:r,experimentalParseClassName:o}=e,t=1===r.length,n=r[0],l=r.length,s=e=>{let o;let s=[],a=0,i=0;for(let d=0;di?o-i:void 0}};return o?e=>o({className:e,parseClassName:s}):s},f=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(e=>{"["===e[0]?(r.push(...o.sort(),e),o=[]):o.push(e)}),r.push(...o.sort()),r},m=e=>({cache:u(e.cacheSize),parseClassName:b(e),...t(e)}),g=/\s+/,h=(e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n}=r,l=[],s=e.trim().split(g),a="";for(let e=s.length-1;e>=0;e-=1){let r=s[e],{modifiers:i,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=o(r),u=!!p,b=t(u?c.substring(0,p):c);if(!b){if(!u||!(b=t(c))){a=r+(a.length>0?" "+a:a);continue}u=!1}let m=f(i).join(":"),g=d?m+"!":m,h=g+b;if(l.includes(h))continue;l.push(h);let y=n(b,u);for(let e=0;e0?" "+a:a)}return a};function y(){let e,r,o=0,t="";for(;o{let r;if("string"==typeof e)return e;let o="";for(let t=0;t{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,z=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>R(e)||z.has(e)||k.test(e),G=e=>F(e,"length",Q),R=e=>!!e&&!Number.isNaN(Number(e)),O=e=>F(e,"number",R),W=e=>!!e&&Number.isInteger(Number(e)),$=e=>e.endsWith("%")&&R(e.slice(0,-1)),M=e=>w.test(e),I=e=>j.test(e),_=new Set(["length","size","percentage"]),A=e=>F(e,_,X),V=e=>F(e,"position",X),D=new Set(["image","url"]),T=e=>F(e,D,H),q=e=>F(e,"",Z),B=()=>!0,F=(e,r,o)=>{let t=w.exec(e);return!!t&&(t[1]?"string"==typeof r?t[1]===r:r.has(t[1]):o(t[2]))},Q=e=>C.test(e)&&!E.test(e),X=()=>!1,Z=e=>S.test(e),H=e=>P.test(e);Symbol.toStringTag;let J=function(e,...r){let o,t,n;let l=function(a){return t=(o=m(r.reduce((e,r)=>r(e),e()))).cache.get,n=o.cache.set,l=s,s(a)};function s(e){let r=t(e);if(r)return r;let l=h(e,o);return n(e,l),l}return function(){return l(y.apply(null,arguments))}}(()=>{let e=v("colors"),r=v("spacing"),o=v("blur"),t=v("brightness"),n=v("borderColor"),l=v("borderRadius"),s=v("borderSpacing"),a=v("borderWidth"),i=v("contrast"),d=v("grayscale"),c=v("hueRotate"),p=v("invert"),u=v("gap"),b=v("gradientColorStops"),f=v("gradientColorStopPositions"),m=v("inset"),g=v("margin"),h=v("opacity"),y=v("padding"),x=v("saturate"),w=v("scale"),k=v("sepia"),z=v("skew"),j=v("space"),C=v("translate"),E=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",M,r],_=()=>[M,r],D=()=>["",N,G],F=()=>["auto",R,M],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",M],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[R,M];return{cacheSize:500,separator:":",theme:{colors:[B],spacing:[N,G],blur:["none","",I,M],brightness:L(),borderColor:[e],borderRadius:["none","","full",I,M],borderSpacing:_(),borderWidth:D(),contrast:L(),grayscale:J(),hueRotate:L(),invert:J(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[$,G],inset:P(),margin:P(),opacity:L(),padding:_(),saturate:L(),scale:L(),sepia:J(),skew:L(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),M]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,M]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",W,M]}],"grid-cols":[{"grid-cols":[B]}],"col-start-end":[{col:["auto",{span:["full",W,M]},M]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[B]}],"row-start-end":[{row:["auto",{span:[W,M]},M]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,r]}],"min-w":[{"min-w":[M,r,"min","max","fit"]}],"max-w":[{"max-w":[M,r,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[M,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,r,"auto","min","max","fit"]}],"font-size":[{text:["base",I,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[B]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",R,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",N,G]}],"underline-offset":[{"underline-offset":["auto",N,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),V]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},T]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:X()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[N,M]}],"outline-w":[{outline:[N,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[N,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,q]}],"shadow-color":[{shadow:[B]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",I,M]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[W,M]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[N,G,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7780-f325b2d7864a75f9.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7780-f325b2d7864a75f9.js new file mode 100644 index 0000000..b34df0b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7780-f325b2d7864a75f9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7780],{64236:(e,r,o)=>{o.d(r,{s:()=>l,t:()=>n});var t=o(20107);function n(...e){return r=>e.forEach(e=>{"function"==typeof e?e(r):null!=e&&(e.current=r)})}function l(...e){return t.useCallback(n(...e),e)}},61837:(e,r,o)=>{o.d(r,{DX:()=>s,xV:()=>i});var t=o(20107),n=o(64236),l=o(20475),s=t.forwardRef((e,r)=>{let{children:o,...n}=e,s=t.Children.toArray(o),i=s.find(d);if(i){let e=i.props.children,o=s.map(r=>r!==i?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,l.jsx)(a,{...n,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,o):null})}return(0,l.jsx)(a,{...n,ref:r,children:o})});s.displayName="Slot";var a=t.forwardRef((e,r)=>{let{children:o,...l}=e;if(t.isValidElement(o)){let e=function(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o);return t.cloneElement(o,{...function(e,r){let o={...r};for(let t in r){let n=e[t],l=r[t];/^on[A-Z]/.test(t)?n&&l?o[t]=(...e)=>{l(...e),n(...e)}:n&&(o[t]=n):"style"===t?o[t]={...n,...l}:"className"===t&&(o[t]=[n,l].filter(Boolean).join(" "))}return{...e,...o}}(l,o.props),ref:r?(0,n.t)(r,e):e})}return t.Children.count(o)>1?t.Children.only(null):null});a.displayName="SlotClone";var i=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function d(e){return t.isValidElement(e)&&e.type===i}},64901:(e,r,o)=>{function t(){for(var e,r,o=0,t="",n=arguments.length;ot,A:()=>n});let n=t},868:(e,r,o)=>{o.d(r,{QP:()=>J});let t=e=>{let r=a(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{let o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),n(o,r)||s(e)},getConflictingClassGroupIds:(e,r)=>{let n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},n=(e,r)=>{if(0===e.length)return r.classGroupId;let o=e[0],t=r.nextPart.get(o),l=t?n(e.slice(1),t):void 0;if(l)return l;if(0===r.validators.length)return;let s=e.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId},l=/^\[(.+)\]$/,s=e=>{if(l.test(e)){let r=l.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},a=e=>{let{theme:r,prefix:o}=e,t={nextPart:new Map,validators:[]};return p(Object.entries(e.classGroups),o).forEach(([e,o])=>{i(o,t,e,r)}),t},i=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:d(r,e)).classGroupId=o;return}if("function"==typeof e){if(c(e)){i(e(t),r,o,t);return}r.validators.push({validator:e,classGroupId:o});return}Object.entries(e).forEach(([e,n])=>{i(n,d(r,e),o,t)})})},d=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},c=e=>e.isThemeGetter,p=(e,r)=>r?e.map(([e,o])=>[e,o.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,o])=>[r+e,o])):e)]):e,u=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,o=new Map,t=new Map,n=(n,l)=>{o.set(n,l),++r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},b=e=>{let{separator:r,experimentalParseClassName:o}=e,t=1===r.length,n=r[0],l=r.length,s=e=>{let o;let s=[],a=0,i=0;for(let d=0;di?o-i:void 0}};return o?e=>o({className:e,parseClassName:s}):s},f=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(e=>{"["===e[0]?(r.push(...o.sort(),e),o=[]):o.push(e)}),r.push(...o.sort()),r},m=e=>({cache:u(e.cacheSize),parseClassName:b(e),...t(e)}),g=/\s+/,h=(e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n}=r,l=[],s=e.trim().split(g),a="";for(let e=s.length-1;e>=0;e-=1){let r=s[e],{modifiers:i,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=o(r),u=!!p,b=t(u?c.substring(0,p):c);if(!b){if(!u||!(b=t(c))){a=r+(a.length>0?" "+a:a);continue}u=!1}let m=f(i).join(":"),g=d?m+"!":m,h=g+b;if(l.includes(h))continue;l.push(h);let y=n(b,u);for(let e=0;e0?" "+a:a)}return a};function y(){let e,r,o=0,t="";for(;o{let r;if("string"==typeof e)return e;let o="";for(let t=0;t{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,z=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>R(e)||z.has(e)||k.test(e),G=e=>F(e,"length",Q),R=e=>!!e&&!Number.isNaN(Number(e)),O=e=>F(e,"number",R),W=e=>!!e&&Number.isInteger(Number(e)),$=e=>e.endsWith("%")&&R(e.slice(0,-1)),M=e=>w.test(e),I=e=>j.test(e),_=new Set(["length","size","percentage"]),A=e=>F(e,_,X),V=e=>F(e,"position",X),D=new Set(["image","url"]),T=e=>F(e,D,H),q=e=>F(e,"",Z),B=()=>!0,F=(e,r,o)=>{let t=w.exec(e);return!!t&&(t[1]?"string"==typeof r?t[1]===r:r.has(t[1]):o(t[2]))},Q=e=>C.test(e)&&!E.test(e),X=()=>!1,Z=e=>S.test(e),H=e=>P.test(e);Symbol.toStringTag;let J=function(e,...r){let o,t,n;let l=function(a){return t=(o=m(r.reduce((e,r)=>r(e),e()))).cache.get,n=o.cache.set,l=s,s(a)};function s(e){let r=t(e);if(r)return r;let l=h(e,o);return n(e,l),l}return function(){return l(y.apply(null,arguments))}}(()=>{let e=v("colors"),r=v("spacing"),o=v("blur"),t=v("brightness"),n=v("borderColor"),l=v("borderRadius"),s=v("borderSpacing"),a=v("borderWidth"),i=v("contrast"),d=v("grayscale"),c=v("hueRotate"),p=v("invert"),u=v("gap"),b=v("gradientColorStops"),f=v("gradientColorStopPositions"),m=v("inset"),g=v("margin"),h=v("opacity"),y=v("padding"),x=v("saturate"),w=v("scale"),k=v("sepia"),z=v("skew"),j=v("space"),C=v("translate"),E=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",M,r],_=()=>[M,r],D=()=>["",N,G],F=()=>["auto",R,M],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",M],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[R,M];return{cacheSize:500,separator:":",theme:{colors:[B],spacing:[N,G],blur:["none","",I,M],brightness:L(),borderColor:[e],borderRadius:["none","","full",I,M],borderSpacing:_(),borderWidth:D(),contrast:L(),grayscale:J(),hueRotate:L(),invert:J(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[$,G],inset:P(),margin:P(),opacity:L(),padding:_(),saturate:L(),scale:L(),sepia:J(),skew:L(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),M]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,M]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",W,M]}],"grid-cols":[{"grid-cols":[B]}],"col-start-end":[{col:["auto",{span:["full",W,M]},M]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[B]}],"row-start-end":[{row:["auto",{span:[W,M]},M]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,r]}],"min-w":[{"min-w":[M,r,"min","max","fit"]}],"max-w":[{"max-w":[M,r,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[M,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,r,"auto","min","max","fit"]}],"font-size":[{text:["base",I,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[B]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",R,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",N,G]}],"underline-offset":[{"underline-offset":["auto",N,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),V]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},T]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:X()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[N,M]}],"outline-w":[{outline:[N,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[N,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,q]}],"shadow-color":[{shadow:[B]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",I,M]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[W,M]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[N,G,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7b0cf0b7-aa73cc75e53c5793.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7b0cf0b7-aa73cc75e53c5793.js new file mode 100644 index 0000000..aa7570a --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7b0cf0b7-aa73cc75e53c5793.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9980],{7197:(e,C,l)=>{l.d(C,{$p$:()=>H,A60:()=>n,D3D:()=>a,ERf:()=>Z,MKb:()=>m,Mtm:()=>g,RiX:()=>E,Srz:()=>w,TBE:()=>f,flY:()=>c,gLX:()=>j,rRK:()=>V,vKP:()=>u});var r=l(20107);function o(e,C){if(null==e)return{};var l,r,o={},t=Object.keys(e);for(r=0;r=0||(o[l]=e[l]);return o}var t=["color"],n=(0,r.forwardRef)(function(e,C){var l=e.color,n=o(e,t);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:C}),(0,r.createElement)("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),i=["color"],c=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,i);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),d=["color"],f=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,d);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),v=["color"],w=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,v);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),L=["color"],a=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,L);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),s=["color"],u=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,s);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),h=["color"],g=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,h);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),p=["color"],m=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,p);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),R=["color"],E=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,R);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:void 0===l?"currentColor":l}))}),M=["color"],Z=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,M);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),x=["color"],H=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,x);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),b=["color"],V=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,b);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),O=["color"],j=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,O);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7b0cf0b7-d2ef6403b3e42593.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7b0cf0b7-d2ef6403b3e42593.js new file mode 100644 index 0000000..aa7570a --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7b0cf0b7-d2ef6403b3e42593.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9980],{7197:(e,C,l)=>{l.d(C,{$p$:()=>H,A60:()=>n,D3D:()=>a,ERf:()=>Z,MKb:()=>m,Mtm:()=>g,RiX:()=>E,Srz:()=>w,TBE:()=>f,flY:()=>c,gLX:()=>j,rRK:()=>V,vKP:()=>u});var r=l(20107);function o(e,C){if(null==e)return{};var l,r,o={},t=Object.keys(e);for(r=0;r=0||(o[l]=e[l]);return o}var t=["color"],n=(0,r.forwardRef)(function(e,C){var l=e.color,n=o(e,t);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:C}),(0,r.createElement)("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),i=["color"],c=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,i);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),d=["color"],f=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,d);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),v=["color"],w=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,v);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),L=["color"],a=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,L);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),s=["color"],u=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,s);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),h=["color"],g=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,h);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),p=["color"],m=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,p);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),R=["color"],E=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,R);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:void 0===l?"currentColor":l}))}),M=["color"],Z=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,M);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),x=["color"],H=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,x);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),b=["color"],V=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,b);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))}),O=["color"],j=(0,r.forwardRef)(function(e,C){var l=e.color,t=o(e,O);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:C}),(0,r.createElement)("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:void 0===l?"currentColor":l,fillRule:"evenodd",clipRule:"evenodd"}))})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8112-8c3d22fe142f8630.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8112-8c3d22fe142f8630.js new file mode 100644 index 0000000..49855bd --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8112-8c3d22fe142f8630.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8112],{39997:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:d,className:s="",children:p,iconNode:c,...u}=e;return(0,n.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:r,strokeWidth:d?24*Number(l)/Number(o):l,className:a("lucide",s),...u},[...c.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(p)?p:[p]])}),d=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:d,...s}=r;return(0,n.createElement)(l,{ref:i,iconNode:t,className:a("lucide-".concat(o(e)),d),...s})});return r.displayName="".concat(e),r}},29475:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},12607:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},54379:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(20107),o=r(20475);function a(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,a){let i=n.createContext(a),l=r.length;function d(t){let{scope:r,children:a,...d}=t,s=r?.[e][l]||i,p=n.useMemo(()=>d,Object.values(d));return(0,o.jsx)(s.Provider,{value:p,children:a})}return r=[...r,a],d.displayName=t+"Provider",[d,function(r,o){let d=o?.[e][l]||i,s=n.useContext(d);if(s)return s;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},21840:(e,t,r)=>{r.d(t,{b:()=>l});var n=r(20107),o=r(34544),a=r(20475),i=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},57563:(e,t,r)=>{r.d(t,{Mz:()=>O,i3:()=>$,UC:()=>z,bL:()=>_,Bk:()=>m});var n=r(20107),o=r(9895),a=r(84069),i=r(34544),l=r(20475),d=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,l.jsx)(i.sG.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})});d.displayName="Arrow";var s=r(64236),p=r(54379),c=r(46774),u=r(54122),f=r(63620),h="Popper",[v,m]=(0,p.A)(h),[w,g]=v(h),x=e=>{let{__scopePopper:t,children:r}=e,[o,a]=n.useState(null);return(0,l.jsx)(w,{scope:t,anchor:o,onAnchorChange:a,children:r})};x.displayName=h;var y="PopperAnchor",A=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...a}=e,d=g(y,r),p=n.useRef(null),c=(0,s.s)(t,p);return n.useEffect(()=>{d.onAnchorChange((null==o?void 0:o.current)||p.current)}),o?null:(0,l.jsx)(i.sG.div,{...a,ref:c})});A.displayName=y;var b="PopperContent",[N,j]=v(b),k=n.forwardRef((e,t)=>{var r,d,p,h,v,m,w,x;let{__scopePopper:y,side:A="bottom",sideOffset:j=0,align:k="center",alignOffset:C=0,arrowPadding:E=0,avoidCollisions:P=!0,collisionBoundary:_=[],collisionPadding:O=0,sticky:z="partial",hideWhenDetached:$=!1,updatePositionStrategy:H="optimized",onPlaced:L,...B}=e,G=g(b,y),[W,Y]=n.useState(null),D=(0,s.s)(t,e=>Y(e)),[U,X]=n.useState(null),F=(0,f.X)(U),I=null!==(w=null==F?void 0:F.width)&&void 0!==w?w:0,V=null!==(x=null==F?void 0:F.height)&&void 0!==x?x:0,q="number"==typeof O?O:{top:0,right:0,bottom:0,left:0,...O},T=Array.isArray(_)?_:[_],Z=T.length>0,J={padding:q,boundary:T.filter(R),altBoundary:Z},{refs:K,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:er}=(0,o.we)({strategy:"fixed",placement:A+("center"!==k?"-"+k:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:a,height:i}=r.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(n,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),U&&(0,o.UE)({element:U,padding:E}),M({arrowWidth:I,arrowHeight:V}),$&&(0,o.jD)({strategy:"referenceHidden",...J})]}),[en,eo]=S(ee),ea=(0,c.c)(L);(0,u.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null===(r=er.arrow)||void 0===r?void 0:r.x,el=null===(d=er.arrow)||void 0===d?void 0:d.y,ed=(null===(p=er.arrow)||void 0===p?void 0:p.centerOffset)!==0,[es,ep]=n.useState();return(0,u.N)(()=>{W&&ep(window.getComputedStyle(W).zIndex)},[W]),(0,l.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null===(h=er.transformOrigin)||void 0===h?void 0:h.x,null===(v=er.transformOrigin)||void 0===v?void 0:v.y].join(" "),...(null===(m=er.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,l.jsx)(N,{scope:y,placedSide:en,onArrowChange:X,arrowX:ei,arrowY:el,shouldHideArrow:ed,children:(0,l.jsx)(i.sG.div,{"data-side":en,"data-align":eo,...B,ref:D,style:{...B.style,animation:et?void 0:"none"}})})})});k.displayName=b;var C="PopperArrow",E={top:"bottom",right:"left",bottom:"top",left:"right"},P=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=j(C,r),a=E[o.placedSide];return(0,l.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(d,{...n,ref:t,style:{...n.style,display:"block"}})})});function R(e){return null!==e}P.displayName=C;var M=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,i;let{placement:l,rects:d,middlewareData:s}=t,p=(null===(r=s.arrow)||void 0===r?void 0:r.centerOffset)!==0,c=p?0:e.arrowWidth,u=p?0:e.arrowHeight,[f,h]=S(l),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(a=null===(n=s.arrow)||void 0===n?void 0:n.x)&&void 0!==a?a:0)+c/2,w=(null!==(i=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+u/2,g="",x="";return"bottom"===f?(g=p?v:"".concat(m,"px"),x="".concat(-u,"px")):"top"===f?(g=p?v:"".concat(m,"px"),x="".concat(d.floating.height+u,"px")):"right"===f?(g="".concat(-u,"px"),x=p?v:"".concat(w,"px")):"left"===f&&(g="".concat(d.floating.width+u,"px"),x=p?v:"".concat(w,"px")),{data:{x:g,y:x}}}});function S(e){let[t,r="center"]=e.split("-");return[t,r]}var _=x,O=A,z=k,$=P},91475:(e,t,r)=>{r.d(t,{b:()=>l,s:()=>i});var n=r(20107),o=r(34544),a=r(20475),i=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var l=i}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8520-8a39faa16961c17c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8520-8a39faa16961c17c.js new file mode 100644 index 0000000..d684b8e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8520-8a39faa16961c17c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8520],{39997:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(20107);let i=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var t=arguments.length,e=Array(t),n=0;n!!t&&n.indexOf(t)===e).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,r.forwardRef)((t,e)=>{let{color:n="currentColor",size:i=24,strokeWidth:c=2,absoluteStrokeWidth:l,className:u="",children:s,iconNode:f,...d}=t;return(0,r.createElement)("svg",{ref:e,...a,width:i,height:i,stroke:n,strokeWidth:l?24*Number(c)/Number(i):c,className:o("lucide",u),...d},[...f.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(s)?s:[s]])}),l=(t,e)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:l,...u}=n;return(0,r.createElement)(c,{ref:a,iconNode:e,className:o("lucide-".concat(i(t)),l),...u})});return n.displayName="".concat(t),n}},17799:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},89463:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]])},622:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},98969:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},14389:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},8782:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},10964:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},99312:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},7778:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},25262:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},97801:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},91994:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},90304:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},20633:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},12607:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},92823:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(39997).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},92776:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0});var l=a(n(20107)),u=n(22184),s=n(30120),f=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];e.default=function(t){var e=t.loading,n=t.color,i=void 0===n?"#000000":n,o=t.speedMultiplier,a=void 0===o?1:o,s=t.cssOverride,d=t.size,p=c(t,["loading","color","speedMultiplier","cssOverride","size"]),y=(0,u.parseLengthAndUnit)(void 0===d?15:d),h=y.value,m=y.unit,v=r({display:"inherit",position:"relative"},void 0===s?{}:s),g=function(t){return{position:"absolute",fontSize:"".concat(h/3).concat(m),width:"".concat(h).concat(m),height:"".concat(h).concat(m),background:i,borderRadius:"50%",animation:"".concat(f[t]," ").concat(1.5/a,"s infinite"),animationFillMode:"forwards"}};return void 0===e||e?l.createElement("span",r({style:v},p),l.createElement("span",{style:g(0)}),l.createElement("span",{style:g(1)}),l.createElement("span",{style:g(2)}),l.createElement("span",{style:g(3)}),l.createElement("span",{style:g(4)}),l.createElement("span",{style:g(5)})):null}},71834:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(20107),i={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function o(t){var e=function(t){if("number"==typeof t)return{value:t,unit:"px"};var e,n=(t.match(/^[0-9.]*/)||"").toString();e=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(t.match(/[^0-9]*$/)||"").toString();return i[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}(t);return"".concat(e.value).concat(e.unit)}var a=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return o&&o.insertRule(a,0),r},c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},u=[a("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),a("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];let s=function(t){var e=t.loading,n=t.color,i=void 0===n?"#000000":n,a=t.speedMultiplier,s=void 0===a?1:a,f=t.cssOverride,d=t.size,p=void 0===d?60:d,y=l(t,["loading","color","speedMultiplier","cssOverride","size"]),h=c({display:"inherit",position:"relative",width:o(p),height:o(p)},void 0===f?{}:f),m=function(t){return{position:"absolute",height:o(p),width:o(p),border:"thick solid ".concat(i),borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:"".concat(u[0],", ").concat(u[1]),animationDuration:"".concat(2/s,"s"),animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:1===t?"-1s":"0s"}};return void 0===e||e?r.createElement("span",c({style:h},y),r.createElement("span",{style:m(1)}),r.createElement("span",{style:m(2)})):null}},30120:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=void 0,e.createAnimation=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(e,"\n }\n ");return o&&o.insertRule(a,0),r}},22184:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cssValue=e.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(t){if("number"==typeof t)return{value:t,unit:"px"};var e,r=(t.match(/^[0-9.]*/)||"").toString();e=r.includes(".")?parseFloat(r):parseInt(r,10);var i=(t.match(/[^0-9]*$/)||"").toString();return n[i]?{value:e,unit:i}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}e.parseLengthAndUnit=r,e.cssValue=function(t){var e=r(t);return"".concat(e.value).concat(e.unit)}},79492:(t,e,n)=>{n.d(e,{G:()=>R});var r=n(20107),i=n(64901),o=n(61075),a=n(14632),c=n.n(a),l=n(12838),u=n.n(l),s=n(87107),f=n.n(s),d=n(50801),p=n.n(d),y=n(6440),h=n.n(y),m=n(60992),v=n(42555),g=n(37819),b=n(58864),x=n(95392),O=n(89952),w=n(95492),A=n(61211),k=["layout","type","stroke","connectNulls","isRange","ref"],P=["key"];function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function S(){return(S=Object.assign?Object.assign.bind():function(t){for(var e=1;e0||!h()(c,r)||!h()(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,o=e.dot,a=e.points,c=e.className,l=e.top,u=e.left,s=e.xAxis,d=e.yAxis,p=e.width,y=e.height,h=e.isAnimationActive,m=e.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,O=(0,i.A)("recharts-area",c),w=s&&s.allowDataOverflow,k=d&&d.allowDataOverflow,P=w||k,E=f()(m)?this.id:m,j=null!==(t=(0,A.J9)(o,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=j.r,M=j.strokeWidth,D=((0,A.sT)(o)?o:{}).clipDot,L=void 0===D||D,z=2*(void 0===S?3:S)+(void 0===M?2:M);return r.createElement(g.W,{className:O},w||k?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(E)},r.createElement("rect",{x:w?u:u-p/2,y:k?l:l-y/2,width:w?p:2*p,height:k?y:2*y})),!L&&r.createElement("clipPath",{id:"clipPath-dots-".concat(E)},r.createElement("rect",{x:u-z/2,y:l-z/2,width:p+z,height:y+z}))):null,x?null:this.renderArea(P,E),(o||x)&&this.renderDots(P,L,E),(!h||v)&&b.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],e&&L(a.prototype,e),n&&L(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);I(R,"displayName","Area"),I(R,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),I(R,"getBaseValue",function(t,e,n,r){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if((0,O.Et)(c)&&"number"==typeof c)return c;var l="horizontal"===i?r:n,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c?s:s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]}),I(R,"getComposedData",function(t){var e,n=t.props,r=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,d=t.displayedData,p=t.offset,y=n.layout,h=s&&s.length,m=R.getBaseValue(n,r,i,o),v="horizontal"===y,g=!1,b=d.map(function(t,e){h?n=s[f+e]:Array.isArray(n=(0,w.kr)(t,u))?g=!0:n=[m,n];var n,r=null==n[1]||h&&null==(0,w.kr)(t,u);return v?{x:(0,w.nb)({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:r?null:o.scale(n[1]),value:n,payload:t}:{x:r?null:i.scale(n[1]),y:(0,w.nb)({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:n,payload:t}});return e=h||g?b.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return v?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}}):v?o.scale(m):i.scale(m),D({points:b,baseLine:e,layout:y,isRange:g},p)}),I(R,"renderDotItem",function(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(c()(t))n=t(e);else{var o=(0,i.A)("recharts-area-dot","boolean"!=typeof t?t.className:""),a=e.key,l=j(e,P);n=r.createElement(v.c,S({},l,{key:a,className:o}))}return n})},94005:(t,e,n)=>{n.d(e,{d:()=>M});var r=n(20107),i=n(14632),o=n.n(i),a=n(42228),c=n(89952),l=n(61211),u=n(95492),s=n(62882),f=n(67064),d=n(25161),p=["x1","y1","x2","y2","key"],y=["offset"];function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function v(t){for(var e=1;e=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var x=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,c=t.height,l=t.ry;return r.createElement("rect",{x:i,y:o,ry:l,width:a,height:c,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function O(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(o()(t))n=t(e);else{var i=e.x1,a=e.y1,c=e.x2,u=e.y2,s=e.key,f=b(e,p),d=(0,l.J9)(f,!1),h=(d.offset,b(d,y));n=r.createElement("line",g({},h,{x1:i,y1:a,x2:c,y2:u,fill:"none",key:s}))}return n}function w(t){var e=t.x,n=t.width,i=t.horizontal,o=void 0===i||i,a=t.horizontalPoints;if(!o||!a||!a.length)return null;var c=a.map(function(r,i){return O(o,v(v({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function A(t){var e=t.y,n=t.height,i=t.vertical,o=void 0===i||i,a=t.verticalPoints;if(!o||!a||!a.length)return null;var c=a.map(function(r,i){return O(o,v(v({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function k(t){var e=t.horizontalFill,n=t.fillOpacity,i=t.x,o=t.y,a=t.width,c=t.height,l=t.horizontalPoints,u=t.horizontal;if(!(void 0===u||u)||!e||!e.length)return null;var s=l.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,l){var u=s[l+1]?s[l+1]-t:o+c-t;if(u<=0)return null;var f=l%e.length;return r.createElement("rect",{key:"react-".concat(l),y:t,x:i,height:u,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function P(t){var e=t.vertical,n=t.verticalFill,i=t.fillOpacity,o=t.x,a=t.y,c=t.width,l=t.height,u=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var s=u.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,e){var u=s[e+1]?s[e+1]-t:o+c-t;if(u<=0)return null;var f=e%n.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:u,height:l,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)},j=function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)},S={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function M(t){var e,n,i,l,u,s,f=(0,d.yi)(),p=(0,d.rY)(),y=(0,d.hj)(),m=v(v({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:S.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:S.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:S.horizontal,horizontalFill:null!==(l=t.horizontalFill)&&void 0!==l?l:S.horizontalFill,vertical:null!==(u=t.vertical)&&void 0!==u?u:S.vertical,verticalFill:null!==(s=t.verticalFill)&&void 0!==s?s:S.verticalFill,x:(0,c.Et)(t.x)?t.x:y.left,y:(0,c.Et)(t.y)?t.y:y.top,width:(0,c.Et)(t.width)?t.width:y.width,height:(0,c.Et)(t.height)?t.height:y.height}),b=m.x,O=m.y,M=m.width,D=m.height,L=m.syncWithTicks,z=m.horizontalValues,N=m.verticalValues,C=(0,d.pj)(),I=(0,d.$G)();if(!(0,c.Et)(M)||M<=0||!(0,c.Et)(D)||D<=0||!(0,c.Et)(b)||b!==+b||!(0,c.Et)(O)||O!==+O)return null;var F=m.verticalCoordinatesGenerator||E,R=m.horizontalCoordinatesGenerator||j,_=m.horizontalPoints,T=m.verticalPoints;if((!_||!_.length)&&o()(R)){var B=z&&z.length,V=R({yAxis:I?v(v({},I),{},{ticks:B?z:I.ticks}):void 0,width:f,height:p,offset:y},!!B||L);(0,a.R)(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h(V),"]")),Array.isArray(V)&&(_=V)}if((!T||!T.length)&&o()(F)){var X=N&&N.length,W=F({xAxis:C?v(v({},C),{},{ticks:X?N:C.ticks}):void 0,width:f,height:p,offset:y},!!X||L);(0,a.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h(W),"]")),Array.isArray(W)&&(T=W)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),r.createElement(w,g({},m,{offset:y,horizontalPoints:_,xAxis:C,yAxis:I})),r.createElement(A,g({},m,{offset:y,verticalPoints:T,xAxis:C,yAxis:I})),r.createElement(k,g({},m,{horizontalPoints:_})),r.createElement(P,g({},m,{verticalPoints:T})))}M.displayName="CartesianGrid"},53134:(t,e,n)=>{n.d(e,{Q:()=>l});var r=n(90805),i=n(79492),o=n(4538),a=n(41797),c=n(98456),l=(0,r.gu)({chartName:"AreaChart",GraphicalChild:i.G,axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:c.pr})},74043:(t,e,n)=>{n.d(e,{A:()=>P});var r=n(20107);function i(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function o(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&n.every(n=>{let r=t[n],a=e[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function a(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function c(t){return"number"==typeof t}function l(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return Math.abs(t)}function d(t){return Math.sign(t)}function p(t){return v(t).map(Number)}function y(t){return t[h(t)]}function h(t){return Math.max(0,t.length-1)}function m(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function v(t){return Object.keys(t)}function g(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function b(){let t=[],e={add:function(n,r,i,o={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,i,o),a=()=>n.removeEventListener(r,i,o)):(n.addListener(i),a=()=>n.removeListener(i)),t.push(a),e},clear:function(){t=t.filter(t=>t())}};return e}function x(t=0,e=0){let n=f(t-e);function r(n){return ne}return{length:n,max:e,min:t,constrain:function(n){return r(n)?ne},reachedMin:function(e){return e(v(n).forEach(r=>{let i=e[r],o=n[r],a=s(i)&&s(o);e[r]=a?t(i,o):o}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){let r=n.breakpoints||{},i=v(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,n)=>e(t,n),{});return e(n,i)},optionsMediaQueries:function(e){return e.map(t=>v(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(j),M=(P=[],{init:function(t,e){return(P=e.filter(({options:t})=>!1!==S.optionsAtMedia(t).active)).forEach(e=>e.init(t,S)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){P=P.filter(t=>t.destroy())}}),D=b(),L=function(){let t,e={},n={init:function(e){t=e},emit:function(r){return(e[r]||[]).forEach(e=>e(t,r)),n},off:function(t,r){return e[t]=(e[t]||[]).filter(t=>t!==r),n},on:function(t,r){return e[t]=(e[t]||[]).concat([r]),n},clear:function(){e={}}};return n}(),{mergeOptions:z,optionsAtMedia:N,optionsMediaQueries:C}=S,{on:I,off:F,emit:R}=L,_=!1,T=z(A,k.globalOptions),B=z(T),V=[];function X(e,n){!_&&(B=N(T=z(T,e)),V=n||V,function(){let{container:e,slides:n}=B;o=(l(e)?t.querySelector(e):e)||t.children[0];let r=l(n)?o.querySelectorAll(n):n;a=[].slice.call(r||o.children)}(),r=function e(n){let r=function(t,e,n,r,i,o,a){let s,A;let{align:k,axis:P,direction:E,startIndex:j,loop:S,duration:M,dragFree:D,dragThreshold:L,inViewThreshold:z,slidesToScroll:N,skipSnaps:C,containScroll:I,watchResize:F,watchSlides:R,watchDrag:_,watchFocus:T}=o,B={measure:function(t){let{offsetTop:e,offsetLeft:n,offsetWidth:r,offsetHeight:i}=t;return{top:e,right:n+r,bottom:e+i,left:n,width:r,height:i}}},V=B.measure(e),X=n.map(B.measure),W=function(t,e){let n="rtl"===e,r="y"===t,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(t){let{height:e,width:n}=t;return r?e:n},direction:function(t){return t*i}}}(P,E),q=W.measureSize(V),H={measure:function(t){return t/100*q}},$=function(t,e){let n={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(r,i){return l(t)?n[t](r):t(e,r,i)}}}(k,q),G=!S&&!!I,{slideSizes:J,slideSizesWithGaps:U,startGap:K,endGap:Z}=function(t,e,n,r,i,o){let{measureSize:a,startEdge:c,endEdge:l}=t,u=n[0]&&i,s=function(){if(!u)return 0;let t=n[0];return f(e[c]-t[c])}(),d=u?parseFloat(o.getComputedStyle(y(r)).getPropertyValue(`margin-${l}`)):0,p=n.map(a),m=n.map((t,e,n)=>{let r=e===h(n);return e?r?p[e]+d:n[e+1][c]-t[c]:p[e]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:m,startGap:s,endGap:d}}(W,V,X,n,S||!!I,i),Q=function(t,e,n,r,i,o,a,l,u){let{startEdge:s,endEdge:d,direction:m}=t,v=c(n);return{groupSlides:function(t){return v?p(t).filter(t=>t%n==0).map(e=>t.slice(e,e+n)):t.length?p(t).reduce((n,c,u)=>{let p=y(n)||0,v=c===h(t),g=i[s]-o[p][s],b=i[s]-o[c][d],x=r||0!==p?0:m(a),O=f(b-(!r&&v?m(l):0)-(g+x));return u&&O>e+2&&n.push(c),v&&n.push(t.length),n},[]).map((e,n,r)=>{let i=Math.max(r[n-1]||0);return t.slice(i,e)}):[]}}}(W,q,N,S,V,X,K,Z,0),{snaps:Y,snapsAligned:tt}=function(t,e,n,r,i){let{startEdge:o,endEdge:a}=t,{groupSlides:c}=i,l=c(r).map(t=>y(t)[a]-t[0][o]).map(f).map(e.measure),u=r.map(t=>n[o]-t[o]).map(t=>-f(t)),s=c(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:s}}(W,$,V,X,Q),te=-y(Y)+y(U),{snapsContained:tn,scrollContainLimit:tr}=function(t,e,n,r,i){let o=x(-e+t,0),a=n.map((t,e)=>{let{min:r,max:i}=o,a=o.constrain(t),c=e===h(n);return e?c||1>f(r-a)?r:1>f(i-a)?i:a:i}).map(t=>parseFloat(t.toFixed(3))),c=function(){let t=a[0],e=y(a);return x(a.lastIndexOf(t),a.indexOf(e)+1)}();return{snapsContained:function(){if(e<=t+2)return[o.max];if("keepSnaps"===r)return a;let{min:n,max:i}=c;return a.slice(n,i)}(),scrollContainLimit:c}}(q,te,tt,I,0),ti=G?tn:tt,{limit:to}=function(t,e,n){let r=e[0];return{limit:x(n?r-t:y(e),r)}}(te,ti,S),ta=function t(e,n,r){let{constrain:i}=x(0,e),o=e+1,a=c(n);function c(t){return r?f((o+t)%o):i(t)}function l(){return t(e,a,r)}let u={get:function(){return a},set:function(t){return a=c(t),u},add:function(t){return l().set(a+t)},clone:l};return u}(h(ti),j,S),tc=ta.clone(),tl=p(n),tu=({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:r}},i)=>{r||n.constrain(t.pointerDown()),e.seek(i)},ts=({scrollBody:t,translate:e,location:n,offsetLocation:r,scrollLooper:i,slideLooper:o,dragHandler:a,animation:c,eventHandler:l,scrollBounds:u,options:{loop:s}},f)=>{let d=t.settled(),p=!u.shouldConstrain(),y=s?d:d&&p;y&&!a.pointerDown()&&(c.stop(),l.emit("settle")),y||l.emit("scroll");let h=n.get()*f+ty.get()*(1-f);r.set(h),s&&(i.loop(t.direction()),o.loop()),e.to(r.get())},tf=function(t,e,n,r){let i=b(),o=1e3/60,a=null,c=0,l=0;function u(t){if(!l)return;a||(a=t);let i=t-a;for(a=t,c+=i;c>=o;)n(o),c-=o;r(c/o),l&&e.requestAnimationFrame(u)}function s(){e.cancelAnimationFrame(l),a=null,c=0,l=0}return{init:function(){i.add(t,"visibilitychange",()=>{t.hidden&&(a=null,c=0)})},destroy:function(){s(),i.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:s,update:()=>n(o),render:r}}(r,i,t=>tu(tP,t),t=>ts(tP,t)),td=ti[ta.get()],tp=O(td),ty=O(td),th=O(td),tm=O(td),tv=function(t,e,n,r,i,o){let a=0,c=0,l=i,u=.68,s=t.get(),p=0;function y(t){return l=t,m}function h(t){return u=t,m}let m={direction:function(){return c},duration:function(){return l},velocity:function(){return a},seek:function(e){let i=e/1e3,o=l*i,f=r.get()-t.get(),y=0;return l?(n.set(t),a+=f/o,a*=u,s+=a,t.add(a*i),y=s-p):(a=0,n.set(r),t.set(r),y=f),c=d(y),p=s,m},settled:function(){return .001>f(r.get()-e.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return y(i)},useFriction:h,useDuration:y};return m}(tp,th,ty,tm,M,0),tg=function(t,e,n,r,i){let{reachedAny:o,removeOffset:a,constrain:c}=r;function l(t){return t.concat().sort((t,e)=>f(t)-f(e))[0]}function u(e,r){let i=[e,e+n,e-n];if(!t)return e;if(!r)return l(i);let o=i.filter(t=>d(t)===r);return o.length?l(o):y(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:s,distance:d}=function(n){let r=t?a(n):c(n),{index:i}=e.map((t,e)=>({diff:u(t-r,0),index:e})).sort((t,e)=>f(t.diff)-f(e.diff))[0];return{index:i,distance:r}}(l),p=!t&&o(l);if(!r||p)return{index:s,distance:n};let y=n+u(e[s]-d,0);return{index:s,distance:y}},byIndex:function(t,n){let r=u(e[t]-i.get(),n);return{index:t,distance:r}},shortcut:u}}(S,ti,te,to,tm),tb=function(t,e,n,r,i,o,a){function c(i){let c=i.distance,l=i.index!==e.get();o.add(c),c&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(n.set(e.get()),e.set(i.index),a.emit("select"))}return{distance:function(t,e){c(i.byDistance(t,e))},index:function(t,n){let r=e.clone().set(t);c(i.byIndex(r.get(),n))}}}(tf,ta,tc,tv,tg,tm,a),tx=function(t){let{max:e,length:n}=t;return{get:function(t){return n?-((t-e)/n):0}}}(to),tO=b(),tw=function(t,e,n,r){let i;let o={},a=null,c=null,l=!1;return{init:function(){i=new IntersectionObserver(t=>{l||(t.forEach(t=>{o[e.indexOf(t.target)]=t}),a=null,c=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(t=>i.observe(t))},destroy:function(){i&&i.disconnect(),l=!0},get:function(t=!0){if(t&&a)return a;if(!t&&c)return c;let e=v(o).reduce((e,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(t&&i||!t&&!i)&&e.push(r),e},[]);return t&&(a=e),t||(c=e),e}}}(e,n,a,z),{slideRegistry:tA}=function(t,e,n,r,i,o){let{groupSlides:a}=i,{min:c,max:l}=r;return{slideRegistry:function(){let r=a(o);return 1===n.length?[o]:t&&"keepSnaps"!==e?r.slice(c,l).map((t,e,n)=>{let r=e===h(n);return e?r?m(h(o)-y(n)[0]+1,y(n)[0]):t:m(y(n[0])+1)}):r}()}}(G,I,ti,tr,Q,tl),tk=function(t,e,n,r,i,o,a,l){let s={passive:!0,capture:!0},f=0;function d(t){"Tab"===t.code&&(f=new Date().getTime())}return{init:function(p){l&&(o.add(document,"keydown",d,!1),e.forEach((e,d)=>{o.add(e,"focus",e=>{(u(l)||l(p,e))&&function(e){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),t.scrollLeft=0;let o=n.findIndex(t=>t.includes(e));c(o)&&(i.useDuration(0),r.index(o,0),a.emit("slideFocus"))}(d)},s)}))}}}(t,n,tA,tb,tv,tO,a,T),tP={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:V,slideRects:X,animation:tf,axis:W,dragHandler:function(t,e,n,r,i,o,a,c,l,s,p,y,h,m,v,O,w,A,k){let{cross:P,direction:E}=t,j=["INPUT","SELECT","TEXTAREA"],S={passive:!1},M=b(),D=b(),L=x(50,225).constrain(m.measure(20)),z={mouse:300,touch:400},N={mouse:500,touch:600},C=v?43:25,I=!1,F=0,R=0,_=!1,T=!1,B=!1,V=!1;function X(t){if(!g(t,r)&&t.touches.length>=2)return W(t);let e=o.readPoint(t),n=o.readPoint(t,P),a=f(e-F),l=f(n-R);if(!T&&!V&&(!t.cancelable||!(T=a>l)))return W(t);let u=o.pointerMove(t);a>O&&(B=!0),s.useFriction(.3).useDuration(.75),c.start(),i.add(E(u)),t.preventDefault()}function W(t){let e=p.byDistance(0,!1).index!==y.get(),n=o.pointerUp(t)*(v?N:z)[V?"mouse":"touch"],r=function(t,e){let n=y.add(-1*d(t)),r=p.byDistance(t,!v).distance;return v||f(t)t.preventDefault(),S).add(e,"touchmove",()=>void 0,S).add(e,"touchend",()=>void 0).add(e,"touchstart",c).add(e,"mousedown",c).add(e,"touchcancel",W).add(e,"contextmenu",W).add(e,"click",q,!0);function c(c){(u(k)||k(t,c))&&function(t){let c=g(t,r);V=c,B=v&&c&&!t.buttons&&I,I=f(i.get()-a.get())>=2,c&&0!==t.button||function(t){let e=t.nodeName||"";return j.includes(e)}(t.target)||(_=!0,o.pointerDown(t),s.useFriction(0).useDuration(0),i.set(a),function(){let t=V?n:e;D.add(t,"touchmove",X,S).add(t,"touchend",W).add(t,"mousemove",X,S).add(t,"mouseup",W)}(),F=o.readPoint(t),R=o.readPoint(t,P),h.emit("pointerDown"))}(c)}},destroy:function(){M.clear(),D.clear()},pointerDown:function(){return _}}}(W,t,r,i,tm,function(t,e){let n,r;function i(t){return t.timeStamp}function o(n,r){let i=r||t.scroll,o=`client${"x"===i?"X":"Y"}`;return(g(n,e)?n:n.touches[0])[o]}return{pointerDown:function(t){return n=t,r=t,o(t)},pointerMove:function(t){let e=o(t)-o(r),a=i(t)-i(n)>170;return r=t,a&&(n=t),e},pointerUp:function(t){if(!n||!r)return 0;let e=o(r)-o(n),a=i(t)-i(n),c=i(t)-i(r)>170,l=e/a;return a&&!c&&f(l)>.1?l:0},readPoint:o}}(W,i),tp,tf,tb,tv,tg,ta,a,H,D,L,C,0,_),eventStore:tO,percentOfView:H,index:ta,indexPrevious:tc,limit:to,location:tp,offsetLocation:th,previousLocation:ty,options:o,resizeHandler:function(t,e,n,r,i,o,a){let c,l;let s=[t].concat(r),d=[],p=!1;function y(t){return i.measureSize(a.measure(t))}return{init:function(i){o&&(l=y(t),d=r.map(y),c=new ResizeObserver(n=>{(u(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===t,a=r.indexOf(o.target),c=n?l:d[a];if(f(y(n?t:r[a])-c)>=.5){i.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(t=>c.observe(t))}))},destroy:function(){p=!0,c&&c.disconnect()}}}(e,a,i,n,W,F,B),scrollBody:tv,scrollBounds:function(t,e,n,r,i){let o=i.measure(10),a=i.measure(50),c=x(.1,.99),l=!1;function u(){return!!(!l&&t.reachedAny(n.get())&&t.reachedAny(e.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=t.reachedMin(e.get())?"min":"max",s=f(t[l]-e.get()),d=n.get()-e.get(),p=c.constrain(s/a);n.subtract(d*p),!i&&f(d)t.add(a))}}}(te,to,th,[tp,th,ty,tm]),scrollProgress:tx,scrollSnapList:ti.map(tx.get),scrollSnaps:ti,scrollTarget:tg,scrollTo:tb,slideLooper:function(t,e,n,r,i,o,a,c,l){let u=p(i),s=y(d(p(i).reverse(),a[0]),n,!1).concat(y(d(u,e-a[0]-1),-n,!0));function f(t,e){return t.reduce((t,e)=>t-i[e],e)}function d(t,e){return t.reduce((t,n)=>f(t,e)>0?t.concat([n]):t,[])}function y(i,a,u){let s=o.map((t,n)=>({start:t-r[n]+.5+a,end:t+e-.5+a}));return i.map(e=>{let r=u?0:-n,i=u?n:0,o=s[e][u?"end":"start"];return{index:e,loopPoint:o,slideLocation:O(-1),translate:w(t,l[e]),target:()=>c.get()>o?r:i}})}return{canLoop:function(){return s.every(({index:t})=>.1>=f(u.filter(e=>e!==t),e))},clear:function(){s.forEach(t=>t.translate.clear())},loop:function(){s.forEach(t=>{let{target:e,translate:n,slideLocation:r}=t,i=e();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:s}}(W,q,te,J,U,Y,ti,th,n),slideFocus:tk,slidesHandler:(A=!1,{init:function(t){R&&(s=new MutationObserver(e=>{!A&&(u(R)||R(t,e))&&function(e){for(let n of e)if("childList"===n.type){t.reInit(),a.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){s&&s.disconnect(),A=!0}}),slidesInView:tw,slideIndexes:tl,slideRegistry:tA,slidesToScroll:Q,target:tm,translate:w(W,e)};return tP}(t,o,a,E,j,n,L);return n.loop&&!r.slideLooper.canLoop()?e(Object.assign({},n,{loop:!1})):r}(B),C([T,...V.map(({options:t})=>t)]).forEach(t=>D.add(t,"change",W)),B.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(G),r.eventHandler.init(G),r.resizeHandler.init(G),r.slidesHandler.init(G),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&a.length&&r.dragHandler.init(G),i=M.init(G,V)))}function W(t,e){let n=$();q(),X(z({startIndex:n},t),e),L.emit("reInit")}function q(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),M.destroy(),D.clear()}function H(t,e,n){B.active&&!_&&(r.scrollBody.useBaseFriction().useDuration(!0===e?0:B.duration),r.scrollTo.index(t,n||0))}function $(){return r.index.get()}let G={canScrollNext:function(){return r.index.add(1).get()!==$()},canScrollPrev:function(){return r.index.add(-1).get()!==$()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){_||(_=!0,D.clear(),q(),L.emit("destroy"),L.clear())},off:F,on:I,emit:R,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:W,rootNode:function(){return t},scrollNext:function(t){H(r.index.add(1).get(),t,-1)},scrollPrev:function(t){H(r.index.add(-1).get(),t,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:H,selectedScrollSnap:$,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return X(e,n),setTimeout(()=>L.emit("init"),0),G}function P(t={},e=[]){let n=(0,r.useRef)(t),i=(0,r.useRef)(e),[c,l]=(0,r.useState)(),[u,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{c&&c.reInit(n.current,i.current)},[c]);return(0,r.useEffect)(()=>{o(n.current,t)||(n.current=t,f())},[t,f]),(0,r.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let n=a(t),r=a(e);return n.every((t,e)=>o(t,r[e]))}(i.current,e)&&(i.current=e,f())},[e,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){k.globalOptions=P.globalOptions;let t=k(u,n.current,i.current);return l(t),()=>t.destroy()}l(void 0)},[u,l]),[s,c]}k.globalOptions=void 0,P.globalOptions=void 0},45930:(t,e,n)=>{n.d(e,{k5:()=>s});var r=n(20107),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;er.createElement(f,c({attr:u({},t.attr)},e),function t(e){return e&&e.map((e,n)=>r.createElement(e.tag,u({key:n},e.attr),t(e.child)))}(t.child))}function f(t){var e=e=>{var n,{attr:i,size:o,title:l}=t,s=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,a),f=o||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,s,{className:n,style:u(u({color:t.color||e.color},e.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),t.children)};return void 0!==o?r.createElement(o.Consumer,null,t=>e(t)):e(i)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8885-1b9ab3cbb10cf437.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8885-1b9ab3cbb10cf437.js new file mode 100644 index 0000000..11282a7 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8885-1b9ab3cbb10cf437.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8885],{94521:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},45170:(e,t,n)=>{n.d(t,{A:()=>o,q:()=>i});var r=n(20107),u=n(20475);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,o=r.useMemo(()=>i,Object.values(i));return(0,u.jsx)(n.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(u){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),l=n.length;n=[...n,i];let s=t=>{let{scope:n,children:i,...s}=t,a=n?.[e]?.[l]||o,d=r.useMemo(()=>s,Object.values(s));return(0,u.jsx)(a.Provider,{value:d,children:i})};return s.displayName=t+"Provider",[s,function(n,u){let s=u?.[e]?.[l]||o,a=r.useContext(s);if(a)return a;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(i,...t)]}},55302:(e,t,n)=>{n.d(t,{bL:()=>b,lg:()=>E,qW:()=>f});var r,u=n(20107),i=n(94521),o=n(34544),l=n(64236),s=n(46774),a=n(91624),d=n(20475),c="dismissableLayer.update",v=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=u.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:b,onPointerDownOutside:E,onFocusOutside:h,onInteractOutside:w,onDismiss:g,...C}=e,P=u.useContext(v),[L,N]=u.useState(null),x=null!==(f=null==L?void 0:L.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,O]=u.useState({}),D=(0,l.s)(t,e=>N(e)),k=Array.from(P.layers),[S]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),j=k.indexOf(S),R=L?k.indexOf(L):-1,_=P.layersWithOutsidePointerEventsDisabled.size>0,T=R>=j,$=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.c)(e),i=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){y("dismissableLayer.pointerDownOutside",r,u,{discrete:!0})},u={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...P.branches].some(e=>e.contains(t));!T||n||(null==E||E(e),null==w||w(e),e.defaultPrevented||null==g||g())},x),W=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.c)(e),i=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...P.branches].some(e=>e.contains(t))||(null==h||h(e),null==w||w(e),e.defaultPrevented||null==g||g())},x);return(0,a.U)(e=>{R!==P.layers.size-1||(null==b||b(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},x),u.useEffect(()=>{if(L)return m&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(L)),P.layers.add(L),p(),()=>{m&&1===P.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[L,x,m,P]),u.useEffect(()=>()=>{L&&(P.layers.delete(L),P.layersWithOutsidePointerEventsDisabled.delete(L),p())},[L,P]),u.useEffect(()=>{let e=()=>O({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,d.jsx)(o.sG.div,{...C,ref:D,style:{pointerEvents:_?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,W.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,W.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});f.displayName="DismissableLayer";var m=u.forwardRef((e,t)=>{let n=u.useContext(v),r=u.useRef(null),i=(0,l.s)(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(o.sG.div,{...e,ref:i})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function y(e,t,n,r){let{discrete:u}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),u?(0,o.hO)(i,l):i.dispatchEvent(l)}m.displayName="DismissableLayerBranch";var b=f,E=m},72763:(e,t,n)=>{n.d(t,{B:()=>s});var r,u=n(20107),i=n(54122),o=(r||(r=n.t(u,2)))["useId".toString()]||(()=>void 0),l=0;function s(e){let[t,n]=u.useState(o());return(0,i.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},41913:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(20107),u=n(25642),i=n(34544),o=n(54122),l=n(20475),s=r.forwardRef((e,t)=>{var n,s;let{container:a,...d}=e,[c,v]=r.useState(!1);(0,o.N)(()=>v(!0),[]);let f=a||c&&(null===(s=globalThis)||void 0===s?void 0:null===(n=s.document)||void 0===n?void 0:n.body);return f?u.createPortal((0,l.jsx)(i.sG.div,{...d,ref:t}),f):null});s.displayName="Portal"},34544:(e,t,n)=>{n.d(t,{hO:()=>s,sG:()=>l});var r=n(20107),u=n(25642),i=n(61837),o=n(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...u}=e,l=r?i.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(l,{...u,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,n)=>{n.d(t,{c:()=>u});var r=n(20107);function u(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(20107),u=n(46774);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,o]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,o=r.useRef(i),l=(0,u.c)(t);return r.useEffect(()=>{o.current!==i&&(l(i),o.current=i)},[i,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:i,a=(0,u.c)(n);return[s,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a(n)}else o(t)},[l,e,o,a])]}},91624:(e,t,n)=>{n.d(t,{U:()=>i});var r=n(20107),u=n(46774);function i(e,t=globalThis?.document){let n=(0,u.c)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},54122:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(20107),u=globalThis?.document?r.useLayoutEffect:()=>{}},29395:(e,t,n)=>{n.d(t,{F:()=>i});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u=function(){for(var e,t,n=0,r="";nn=>{var i;if((null==t?void 0:t.variants)==null)return u(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:l}=t,s=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],u=null==l?void 0:l[e];if(null===t)return null;let i=r(t)||r(u);return o[e][i]}),a=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return u(e,s,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:n,className:r,...u}=t;return Object.entries(u).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...a}[t]):({...l,...a})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8885-ae45735eaa57e8dd.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8885-ae45735eaa57e8dd.js new file mode 100644 index 0000000..11282a7 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8885-ae45735eaa57e8dd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8885],{94521:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},45170:(e,t,n)=>{n.d(t,{A:()=>o,q:()=>i});var r=n(20107),u=n(20475);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,o=r.useMemo(()=>i,Object.values(i));return(0,u.jsx)(n.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(u){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),l=n.length;n=[...n,i];let s=t=>{let{scope:n,children:i,...s}=t,a=n?.[e]?.[l]||o,d=r.useMemo(()=>s,Object.values(s));return(0,u.jsx)(a.Provider,{value:d,children:i})};return s.displayName=t+"Provider",[s,function(n,u){let s=u?.[e]?.[l]||o,a=r.useContext(s);if(a)return a;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(i,...t)]}},55302:(e,t,n)=>{n.d(t,{bL:()=>b,lg:()=>E,qW:()=>f});var r,u=n(20107),i=n(94521),o=n(34544),l=n(64236),s=n(46774),a=n(91624),d=n(20475),c="dismissableLayer.update",v=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=u.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:b,onPointerDownOutside:E,onFocusOutside:h,onInteractOutside:w,onDismiss:g,...C}=e,P=u.useContext(v),[L,N]=u.useState(null),x=null!==(f=null==L?void 0:L.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,O]=u.useState({}),D=(0,l.s)(t,e=>N(e)),k=Array.from(P.layers),[S]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),j=k.indexOf(S),R=L?k.indexOf(L):-1,_=P.layersWithOutsidePointerEventsDisabled.size>0,T=R>=j,$=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.c)(e),i=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){y("dismissableLayer.pointerDownOutside",r,u,{discrete:!0})},u={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...P.branches].some(e=>e.contains(t));!T||n||(null==E||E(e),null==w||w(e),e.defaultPrevented||null==g||g())},x),W=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.c)(e),i=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...P.branches].some(e=>e.contains(t))||(null==h||h(e),null==w||w(e),e.defaultPrevented||null==g||g())},x);return(0,a.U)(e=>{R!==P.layers.size-1||(null==b||b(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},x),u.useEffect(()=>{if(L)return m&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(L)),P.layers.add(L),p(),()=>{m&&1===P.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[L,x,m,P]),u.useEffect(()=>()=>{L&&(P.layers.delete(L),P.layersWithOutsidePointerEventsDisabled.delete(L),p())},[L,P]),u.useEffect(()=>{let e=()=>O({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,d.jsx)(o.sG.div,{...C,ref:D,style:{pointerEvents:_?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,W.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,W.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});f.displayName="DismissableLayer";var m=u.forwardRef((e,t)=>{let n=u.useContext(v),r=u.useRef(null),i=(0,l.s)(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(o.sG.div,{...e,ref:i})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function y(e,t,n,r){let{discrete:u}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),u?(0,o.hO)(i,l):i.dispatchEvent(l)}m.displayName="DismissableLayerBranch";var b=f,E=m},72763:(e,t,n)=>{n.d(t,{B:()=>s});var r,u=n(20107),i=n(54122),o=(r||(r=n.t(u,2)))["useId".toString()]||(()=>void 0),l=0;function s(e){let[t,n]=u.useState(o());return(0,i.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},41913:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(20107),u=n(25642),i=n(34544),o=n(54122),l=n(20475),s=r.forwardRef((e,t)=>{var n,s;let{container:a,...d}=e,[c,v]=r.useState(!1);(0,o.N)(()=>v(!0),[]);let f=a||c&&(null===(s=globalThis)||void 0===s?void 0:null===(n=s.document)||void 0===n?void 0:n.body);return f?u.createPortal((0,l.jsx)(i.sG.div,{...d,ref:t}),f):null});s.displayName="Portal"},34544:(e,t,n)=>{n.d(t,{hO:()=>s,sG:()=>l});var r=n(20107),u=n(25642),i=n(61837),o=n(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...u}=e,l=r?i.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(l,{...u,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,n)=>{n.d(t,{c:()=>u});var r=n(20107);function u(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(20107),u=n(46774);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,o]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,o=r.useRef(i),l=(0,u.c)(t);return r.useEffect(()=>{o.current!==i&&(l(i),o.current=i)},[i,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:i,a=(0,u.c)(n);return[s,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a(n)}else o(t)},[l,e,o,a])]}},91624:(e,t,n)=>{n.d(t,{U:()=>i});var r=n(20107),u=n(46774);function i(e,t=globalThis?.document){let n=(0,u.c)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},54122:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(20107),u=globalThis?.document?r.useLayoutEffect:()=>{}},29395:(e,t,n)=>{n.d(t,{F:()=>i});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u=function(){for(var e,t,n=0,r="";nn=>{var i;if((null==t?void 0:t.variants)==null)return u(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:l}=t,s=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],u=null==l?void 0:l[e];if(null===t)return null;let i=r(t)||r(u);return o[e][i]}),a=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return u(e,s,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:n,className:r,...u}=t;return Object.entries(u).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...a}[t]):({...l,...a})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9464-54895f8e78c474f0.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9464-54895f8e78c474f0.js new file mode 100644 index 0000000..15a5ffc --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9464-54895f8e78c474f0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9464],{58020:(e,t,n)=>{n.d(t,{Eq:()=>l});var r=new WeakMap,o=new WeakMap,a={},c=0,i=function(e){return e&&(e.host||i(e.parentNode))},u=function(e,t,n,u){var l=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=i(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[n]||(a[n]=new WeakMap);var d=a[n],s=[],f=new Set,v=new Set(l),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};l.forEach(p);var h=function(e){!e||v.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(u),a=null!==t&&"false"!==t,c=(r.get(e)||0)+1,i=(d.get(e)||0)+1;r.set(e,c),d.set(e,i),s.push(e),1===c&&a&&o.set(e,!0),1===i&&e.setAttribute(n,"true"),a||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),c++,function(){s.forEach(function(e){var t=r.get(e)-1,a=d.get(e)-1;r.set(e,t),d.set(e,a),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),a||e.removeAttribute(n)}),--c||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]),a=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),u(o,a,n,"aria-hidden")):function(){return null}}},91059:(e,t,n)=>{n.d(t,{m:()=>o});var r,o=function(){return r||n.nc}},9543:(e,t,n)=>{n.d(t,{A:()=>Z});var r,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var c=n(20107),i="right-scroll-bar-position",u="width-before-scroll-bar";function l(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,s=new WeakMap;function f(e){return e}var v=function(e){void 0===e&&(e={});var t,n,r,a=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}});return a.options=o({async:!0,ssr:!1},e),a}(),p=function(){},h=c.forwardRef(function(e,t){var n,r,i,u,f=c.useRef(null),h=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),m=h[0],g=h[1],y=e.forwardProps,b=e.children,E=e.className,w=e.removeScrollBar,S=e.enabled,C=e.shards,k=e.sideCar,A=e.noIsolation,M=e.inert,N=e.allowPinchZoom,L=e.as,T=e.gapMode,R=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(n=[f,t],r=function(e){return n.forEach(function(t){return l(t,e)})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,u=i.facade,d(function(){var e=s.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||l(e,null)}),r.forEach(function(e){t.has(e)||l(e,o)})}s.set(u,n)},[n]),u),O=o(o({},R),m);return c.createElement(c.Fragment,null,S&&c.createElement(k,{sideCar:v,removeScrollBar:w,shards:C,noIsolation:A,inert:M,setCallbacks:g,allowPinchZoom:!!N,lockRef:f,gapMode:T}),y?c.cloneElement(c.Children.only(b),o(o({},O),{ref:x})):c.createElement(void 0===L?"div":L,o({},O,{className:E,ref:x}),b))});h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:u,zeroRight:i};var m=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,o({},n))};m.isSideCarExport=!0;var g=n(91059),y=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,g.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=y();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},S=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[S(n),S(r),S(o)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},A=E(),M="data-scroll-locked",N=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(M,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(i," .").concat(i," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(M,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},L=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},T=function(){c.useEffect(function(){return document.body.setAttribute(M,(L()+1).toString()),function(){var e=L()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},R=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;T();var a=c.useMemo(function(){return k(o)},[o]);return c.createElement(A,{styles:N(a,!t,o,n?"":"!important")})},x=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return x=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){x=!1}var P=!!x&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(e,r)){var o=j(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},F=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},j=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},B=function(e,t,n,r,o){var a,c=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=c*r,u=n.target,l=t.contains(u),d=!1,s=i>0,f=0,v=0;do{var p=j(e,u),h=p[0],m=p[1]-p[2]-c*h;(h||m)&&F(e,u)&&(f+=m,v+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return s&&(o&&1>Math.abs(f)||!o&&i>f)?d=!0:!s&&(o&&1>Math.abs(v)||!o&&-i>v)&&(d=!0),d},D=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},K=function(e){return[e.deltaX,e.deltaY]},_=function(e){return e&&"current"in e?e.current:e},X=0,Y=[];let q=(r=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(X++)[0],a=c.useState(E)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oMath.abs(l)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=W(s,d);if(!f)return!0;if(f?o=s:(o="v"===s?"h":"v",f=W(s,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var v=r.current||o;return B(v,t,e,"h"===v?u:l,!0)},[]),l=c.useCallback(function(e){if(Y.length&&Y[Y.length-1]===a){var n="deltaY"in e?K(e):D(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(_).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=c.useCallback(function(e){n.current=D(e),r.current=void 0},[]),f=c.useCallback(function(t){d(t.type,K(t),t.target,u(t,e.lockRef.current))},[]),v=c.useCallback(function(t){d(t.type,D(t),t.target,u(t,e.lockRef.current))},[]);c.useEffect(function(){return Y.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,P),document.addEventListener("touchmove",l,P),document.addEventListener("touchstart",s,P),function(){Y=Y.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,P),document.removeEventListener("touchmove",l,P),document.removeEventListener("touchstart",s,P)}},[]);var p=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?c.createElement(R,{gapMode:e.gapMode}):null)},v.useMedium(r),m);var H=c.forwardRef(function(e,t){return c.createElement(h,o({},e,{ref:t,sideCar:q}))});H.classNames=h.classNames;let Z=H},10201:(e,t,n)=>{n.d(t,{Oh:()=>a});var r=n(20107),o=0;function a(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:c()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:c()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function c(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},38573:(e,t,n)=>{n.d(t,{n:()=>s});var r=n(20107),o=n(64236),a=n(34544),c=n(46774),i=n(20475),u="focusScope.autoFocusOnMount",l="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},s=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:s=!1,onMountAutoFocus:m,onUnmountAutoFocus:g,...y}=e,[b,E]=r.useState(null),w=(0,c.c)(m),S=(0,c.c)(g),C=r.useRef(null),k=(0,o.s)(t,e=>E(e)),A=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(s){let e=function(e){if(A.paused||!b)return;let t=e.target;b.contains(t)?C.current=t:p(C.current,{select:!0})},t=function(e){if(A.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||p(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[s,b,A.paused]),r.useEffect(()=>{if(b){h.add(A);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(l,d);b.addEventListener(l,S),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(l,S),h.remove(A)},0)}}},[b,w,S,A]);let M=r.useCallback(e=>{if(!n&&!s||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,a]=function(e){let t=f(e);return[v(t,e),v(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&p(a,{select:!0})):(e.preventDefault(),n&&p(o,{select:!0})):r===t&&e.preventDefault()}},[n,s,A.paused]);return(0,i.jsx)(a.sG.div,{tabIndex:-1,...y,ref:k,onKeyDown:M})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function v(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}s.displayName="FocusScope";var h=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=m(e,t)).unshift(t)},remove(t){var n;null===(n=(e=m(e,t))[0])||void 0===n||n.resume()}}}();function m(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9464-f5c3c85ad60907ac.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9464-f5c3c85ad60907ac.js new file mode 100644 index 0000000..15a5ffc --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9464-f5c3c85ad60907ac.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9464],{58020:(e,t,n)=>{n.d(t,{Eq:()=>l});var r=new WeakMap,o=new WeakMap,a={},c=0,i=function(e){return e&&(e.host||i(e.parentNode))},u=function(e,t,n,u){var l=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=i(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[n]||(a[n]=new WeakMap);var d=a[n],s=[],f=new Set,v=new Set(l),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};l.forEach(p);var h=function(e){!e||v.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(u),a=null!==t&&"false"!==t,c=(r.get(e)||0)+1,i=(d.get(e)||0)+1;r.set(e,c),d.set(e,i),s.push(e),1===c&&a&&o.set(e,!0),1===i&&e.setAttribute(n,"true"),a||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),c++,function(){s.forEach(function(e){var t=r.get(e)-1,a=d.get(e)-1;r.set(e,t),d.set(e,a),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),a||e.removeAttribute(n)}),--c||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]),a=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),u(o,a,n,"aria-hidden")):function(){return null}}},91059:(e,t,n)=>{n.d(t,{m:()=>o});var r,o=function(){return r||n.nc}},9543:(e,t,n)=>{n.d(t,{A:()=>Z});var r,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var c=n(20107),i="right-scroll-bar-position",u="width-before-scroll-bar";function l(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,s=new WeakMap;function f(e){return e}var v=function(e){void 0===e&&(e={});var t,n,r,a=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}});return a.options=o({async:!0,ssr:!1},e),a}(),p=function(){},h=c.forwardRef(function(e,t){var n,r,i,u,f=c.useRef(null),h=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),m=h[0],g=h[1],y=e.forwardProps,b=e.children,E=e.className,w=e.removeScrollBar,S=e.enabled,C=e.shards,k=e.sideCar,A=e.noIsolation,M=e.inert,N=e.allowPinchZoom,L=e.as,T=e.gapMode,R=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(n=[f,t],r=function(e){return n.forEach(function(t){return l(t,e)})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,u=i.facade,d(function(){var e=s.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||l(e,null)}),r.forEach(function(e){t.has(e)||l(e,o)})}s.set(u,n)},[n]),u),O=o(o({},R),m);return c.createElement(c.Fragment,null,S&&c.createElement(k,{sideCar:v,removeScrollBar:w,shards:C,noIsolation:A,inert:M,setCallbacks:g,allowPinchZoom:!!N,lockRef:f,gapMode:T}),y?c.cloneElement(c.Children.only(b),o(o({},O),{ref:x})):c.createElement(void 0===L?"div":L,o({},O,{className:E,ref:x}),b))});h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:u,zeroRight:i};var m=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,o({},n))};m.isSideCarExport=!0;var g=n(91059),y=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,g.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=y();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},S=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[S(n),S(r),S(o)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},A=E(),M="data-scroll-locked",N=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(M,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(i," .").concat(i," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(M,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},L=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},T=function(){c.useEffect(function(){return document.body.setAttribute(M,(L()+1).toString()),function(){var e=L()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},R=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;T();var a=c.useMemo(function(){return k(o)},[o]);return c.createElement(A,{styles:N(a,!t,o,n?"":"!important")})},x=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return x=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){x=!1}var P=!!x&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(e,r)){var o=j(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},F=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},j=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},B=function(e,t,n,r,o){var a,c=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=c*r,u=n.target,l=t.contains(u),d=!1,s=i>0,f=0,v=0;do{var p=j(e,u),h=p[0],m=p[1]-p[2]-c*h;(h||m)&&F(e,u)&&(f+=m,v+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return s&&(o&&1>Math.abs(f)||!o&&i>f)?d=!0:!s&&(o&&1>Math.abs(v)||!o&&-i>v)&&(d=!0),d},D=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},K=function(e){return[e.deltaX,e.deltaY]},_=function(e){return e&&"current"in e?e.current:e},X=0,Y=[];let q=(r=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(X++)[0],a=c.useState(E)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oMath.abs(l)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=W(s,d);if(!f)return!0;if(f?o=s:(o="v"===s?"h":"v",f=W(s,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var v=r.current||o;return B(v,t,e,"h"===v?u:l,!0)},[]),l=c.useCallback(function(e){if(Y.length&&Y[Y.length-1]===a){var n="deltaY"in e?K(e):D(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(_).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=c.useCallback(function(e){n.current=D(e),r.current=void 0},[]),f=c.useCallback(function(t){d(t.type,K(t),t.target,u(t,e.lockRef.current))},[]),v=c.useCallback(function(t){d(t.type,D(t),t.target,u(t,e.lockRef.current))},[]);c.useEffect(function(){return Y.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,P),document.addEventListener("touchmove",l,P),document.addEventListener("touchstart",s,P),function(){Y=Y.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,P),document.removeEventListener("touchmove",l,P),document.removeEventListener("touchstart",s,P)}},[]);var p=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?c.createElement(R,{gapMode:e.gapMode}):null)},v.useMedium(r),m);var H=c.forwardRef(function(e,t){return c.createElement(h,o({},e,{ref:t,sideCar:q}))});H.classNames=h.classNames;let Z=H},10201:(e,t,n)=>{n.d(t,{Oh:()=>a});var r=n(20107),o=0;function a(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:c()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:c()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function c(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},38573:(e,t,n)=>{n.d(t,{n:()=>s});var r=n(20107),o=n(64236),a=n(34544),c=n(46774),i=n(20475),u="focusScope.autoFocusOnMount",l="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},s=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:s=!1,onMountAutoFocus:m,onUnmountAutoFocus:g,...y}=e,[b,E]=r.useState(null),w=(0,c.c)(m),S=(0,c.c)(g),C=r.useRef(null),k=(0,o.s)(t,e=>E(e)),A=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(s){let e=function(e){if(A.paused||!b)return;let t=e.target;b.contains(t)?C.current=t:p(C.current,{select:!0})},t=function(e){if(A.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||p(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[s,b,A.paused]),r.useEffect(()=>{if(b){h.add(A);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(l,d);b.addEventListener(l,S),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(l,S),h.remove(A)},0)}}},[b,w,S,A]);let M=r.useCallback(e=>{if(!n&&!s||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,a]=function(e){let t=f(e);return[v(t,e),v(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&p(a,{select:!0})):(e.preventDefault(),n&&p(o,{select:!0})):r===t&&e.preventDefault()}},[n,s,A.paused]);return(0,i.jsx)(a.sG.div,{tabIndex:-1,...y,ref:k,onKeyDown:M})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function v(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}s.displayName="FocusScope";var h=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=m(e,t)).unshift(t)},remove(t){var n;null===(n=(e=m(e,t))[0])||void 0===n||n.resume()}}}();function m(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9477-215fa25b7251af44.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9477-215fa25b7251af44.js new file mode 100644 index 0000000..b672d11 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9477-215fa25b7251af44.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9477],{9477:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(67342),o=n(20475),u=r._(n(20107)),l=n(91004),a=n(32618),f=n(62044),i=n(23093),c=n(91297),s=n(77554),d=n(95376);function p(e,t,n){"undefined"!=typeof window&&(async()=>e.prefetch(t,n))().catch(e=>{})}function h(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}n(20339);let y=u.default.forwardRef(function(e,t){let n,r;let{href:l,as:y,children:g,prefetch:b=null,passHref:m,replace:P,shallow:_,scroll:v,onClick:E,onMouseEnter:j,onTouchStart:O,legacyBehavior:M=!1,...C}=e;n=g,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=u.default.useContext(a.AppRouterContext),w=!1!==b,I=null===b?i.PrefetchKind.AUTO:i.PrefetchKind.FULL,{href:x,as:S}=u.default.useMemo(()=>{let e=h(l);return{href:e,as:y?h(y):e}},[l,y]),T=u.default.useRef(x),N=u.default.useRef(S);M&&(r=u.default.Children.only(n));let A=M?r&&"object"==typeof r&&r.ref:t,[R,U,F]=(0,f.useIntersection)({rootMargin:"200px"}),L=u.default.useCallback(e=>{(N.current!==S||T.current!==x)&&(F(),N.current=S,T.current=x),R(e)},[S,x,F,R]),K=(0,c.useMergedRef)(L,A);u.default.useEffect(()=>{k&&U&&w&&p(k,x,{kind:I})},[S,x,U,w,k,I]);let q={ref:K,onClick(e){M||"function"!=typeof E||E(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),k&&!e.defaultPrevented&&function(e,t,n,r,o,l,a){let{nodeName:f}=e.currentTarget;"A"===f.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||(e.preventDefault(),u.default.startTransition(()=>{let e=null==a||a;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})}))}(e,k,x,S,P,_,v)},onMouseEnter(e){M||"function"!=typeof j||j(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),k&&w&&p(k,x,{kind:I})},onTouchStart:function(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),k&&w&&p(k,x,{kind:I})}};return(0,s.isAbsoluteUrl)(S)?q.href=S:M&&!m&&("a"!==r.type||"href"in r.props)||(q.href=(0,d.addBasePath)(S)),M?u.default.cloneElement(r,q):(0,o.jsx)("a",{...C,...q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64803:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62044:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return f}});let r=n(20107),o=n(64803),u="function"==typeof IntersectionObserver,l=new Map,a=[];function f(e){let{rootRef:t,rootMargin:n,disabled:f}=e,i=f||!u,[c,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(u){if(i||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:u}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},a.push(n),l.set(n,t),t}(n);return u.set(e,t),o.observe(e),function(){if(u.delete(e),o.unobserve(e),0===u.size){o.disconnect(),l.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>s(!0));return()=>(0,o.cancelIdleCallback)(e)}},[i,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{s(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91297:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let r=n(20107);function o(e,t){let n=(0,r.useRef)(()=>{}),o=(0,r.useRef)(()=>{});return(0,r.useMemo)(()=>e&&t?r=>{null===r?(n.current(),o.current()):(n.current=u(e,r),o.current=u(t,r))}:e||t,[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91004:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return u},formatWithValidation:function(){return a},urlObjectKeys:function(){return l}});let r=n(62599)._(n(32580)),o=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:n}=e,u=e.protocol||"",l=e.pathname||"",a=e.hash||"",f=e.query||"",i=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?i=t+e.host:n&&(i=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(i+=":"+e.port)),f&&"object"==typeof f&&(f=String(r.urlQueryToSearchParams(f)));let c=e.search||f&&"?"+f||"";return u&&!u.endsWith(":")&&(u+=":"),e.slashes||(!u||o.test(u))&&!1!==i?(i="//"+(i||""),l&&"/"!==l[0]&&(l="/"+l)):i||(i=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+u+i+(l=l.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return u(e)}},32580:(e,t)=>{function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return u},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},77554:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return m},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return f},getLocationOrigin:function(){return l},getURL:function(){return a},isAbsoluteUrl:function(){return u},isResSent:function(){return i},loadGetInitialProps:function(){return s},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return P}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),u=0;uo.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=l();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function i(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function s(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await s(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&i(n))return r;if(!r)throw Error('"'+f(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class b extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class m extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9477-4478381adb29cdff.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9477-4478381adb29cdff.js new file mode 100644 index 0000000..b672d11 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9477-4478381adb29cdff.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9477],{9477:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(67342),o=n(20475),u=r._(n(20107)),l=n(91004),a=n(32618),f=n(62044),i=n(23093),c=n(91297),s=n(77554),d=n(95376);function p(e,t,n){"undefined"!=typeof window&&(async()=>e.prefetch(t,n))().catch(e=>{})}function h(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}n(20339);let y=u.default.forwardRef(function(e,t){let n,r;let{href:l,as:y,children:g,prefetch:b=null,passHref:m,replace:P,shallow:_,scroll:v,onClick:E,onMouseEnter:j,onTouchStart:O,legacyBehavior:M=!1,...C}=e;n=g,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=u.default.useContext(a.AppRouterContext),w=!1!==b,I=null===b?i.PrefetchKind.AUTO:i.PrefetchKind.FULL,{href:x,as:S}=u.default.useMemo(()=>{let e=h(l);return{href:e,as:y?h(y):e}},[l,y]),T=u.default.useRef(x),N=u.default.useRef(S);M&&(r=u.default.Children.only(n));let A=M?r&&"object"==typeof r&&r.ref:t,[R,U,F]=(0,f.useIntersection)({rootMargin:"200px"}),L=u.default.useCallback(e=>{(N.current!==S||T.current!==x)&&(F(),N.current=S,T.current=x),R(e)},[S,x,F,R]),K=(0,c.useMergedRef)(L,A);u.default.useEffect(()=>{k&&U&&w&&p(k,x,{kind:I})},[S,x,U,w,k,I]);let q={ref:K,onClick(e){M||"function"!=typeof E||E(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),k&&!e.defaultPrevented&&function(e,t,n,r,o,l,a){let{nodeName:f}=e.currentTarget;"A"===f.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||(e.preventDefault(),u.default.startTransition(()=>{let e=null==a||a;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})}))}(e,k,x,S,P,_,v)},onMouseEnter(e){M||"function"!=typeof j||j(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),k&&w&&p(k,x,{kind:I})},onTouchStart:function(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),k&&w&&p(k,x,{kind:I})}};return(0,s.isAbsoluteUrl)(S)?q.href=S:M&&!m&&("a"!==r.type||"href"in r.props)||(q.href=(0,d.addBasePath)(S)),M?u.default.cloneElement(r,q):(0,o.jsx)("a",{...C,...q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64803:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62044:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return f}});let r=n(20107),o=n(64803),u="function"==typeof IntersectionObserver,l=new Map,a=[];function f(e){let{rootRef:t,rootMargin:n,disabled:f}=e,i=f||!u,[c,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(u){if(i||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:u}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},a.push(n),l.set(n,t),t}(n);return u.set(e,t),o.observe(e),function(){if(u.delete(e),o.unobserve(e),0===u.size){o.disconnect(),l.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>s(!0));return()=>(0,o.cancelIdleCallback)(e)}},[i,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{s(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91297:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let r=n(20107);function o(e,t){let n=(0,r.useRef)(()=>{}),o=(0,r.useRef)(()=>{});return(0,r.useMemo)(()=>e&&t?r=>{null===r?(n.current(),o.current()):(n.current=u(e,r),o.current=u(t,r))}:e||t,[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91004:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return u},formatWithValidation:function(){return a},urlObjectKeys:function(){return l}});let r=n(62599)._(n(32580)),o=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:n}=e,u=e.protocol||"",l=e.pathname||"",a=e.hash||"",f=e.query||"",i=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?i=t+e.host:n&&(i=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(i+=":"+e.port)),f&&"object"==typeof f&&(f=String(r.urlQueryToSearchParams(f)));let c=e.search||f&&"?"+f||"";return u&&!u.endsWith(":")&&(u+=":"),e.slashes||(!u||o.test(u))&&!1!==i?(i="//"+(i||""),l&&"/"!==l[0]&&(l="/"+l)):i||(i=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+u+i+(l=l.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return u(e)}},32580:(e,t)=>{function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return u},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},77554:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return m},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return f},getLocationOrigin:function(){return l},getURL:function(){return a},isAbsoluteUrl:function(){return u},isResSent:function(){return i},loadGetInitialProps:function(){return s},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return P}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),u=0;uo.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=l();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function i(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function s(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await s(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&i(n))return r;if(!r)throw Error('"'+f(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class b extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class m extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9488-bb625e27d04568c8.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9488-bb625e27d04568c8.js new file mode 100644 index 0000000..080c19e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9488-bb625e27d04568c8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9488],{76076:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(39997).A)("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]])},59166:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},91994:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(39997).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},27720:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(39997).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},28702:(e,r,t)=>{t.d(r,{UC:()=>ei,Y9:()=>ea,q7:()=>en,bL:()=>et,l9:()=>eo});var n=t(20107),a=t(45170),o=t(32474),i=t(64236),l=t(94521),d=t(13061),s=t(34544),c=t(54122),u=t(54245),p=t(72763),f=t(20475),v="Collapsible",[h,m]=(0,a.A)(v),[y,g]=h(v),b=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:a,defaultOpen:o,disabled:i,onOpenChange:l,...c}=e,[u=!1,v]=(0,d.i)({prop:a,defaultProp:o,onChange:l});return(0,f.jsx)(y,{scope:t,disabled:i,contentId:(0,p.B)(),open:u,onOpenToggle:n.useCallback(()=>v(e=>!e),[v]),children:(0,f.jsx)(s.sG.div,{"data-state":C(u),"data-disabled":i?"":void 0,...c,ref:r})})});b.displayName=v;var x="CollapsibleTrigger",w=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,...n}=e,a=g(x,t);return(0,f.jsx)(s.sG.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":C(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:r,onClick:(0,l.m)(e.onClick,a.onOpenToggle)})});w.displayName=x;var j="CollapsibleContent",A=n.forwardRef((e,r)=>{let{forceMount:t,...n}=e,a=g(j,e.__scopeCollapsible);return(0,f.jsx)(u.C,{present:t||a.open,children:e=>{let{present:t}=e;return(0,f.jsx)(O,{...n,ref:r,present:t})}})});A.displayName=j;var O=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:a,children:o,...l}=e,d=g(j,t),[u,p]=n.useState(a),v=n.useRef(null),h=(0,i.s)(r,v),m=n.useRef(0),y=m.current,b=n.useRef(0),x=b.current,w=d.open||u,A=n.useRef(w),O=n.useRef();return n.useEffect(()=>{let e=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=v.current;if(e){O.current=O.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();m.current=r.height,b.current=r.width,A.current||(e.style.transitionDuration=O.current.transitionDuration,e.style.animationName=O.current.animationName),p(a)}},[d.open,a]),(0,f.jsx)(s.sG.div,{"data-state":C(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!w,...l,ref:h,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":x?"".concat(x,"px"):void 0,...e.style},children:w&&o})});function C(e){return e?"open":"closed"}var N=t(76056),k="Accordion",P=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[R,E,I]=(0,o.N)(k),[S,D]=(0,a.A)(k,[I,m]),_=m(),H=n.forwardRef((e,r)=>{let{type:t,...n}=e;return(0,f.jsx)(R.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,f.jsx)(q,{...n,ref:r}):(0,f.jsx)(U,{...n,ref:r})})});H.displayName=k;var[z,G]=S(k),[M,L]=S(k,{collapsible:!1}),U=n.forwardRef((e,r)=>{let{value:t,defaultValue:a,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[s,c]=(0,d.i)({prop:t,defaultProp:a,onChange:o});return(0,f.jsx)(z,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:n.useCallback(()=>i&&c(""),[i,c]),children:(0,f.jsx)(M,{scope:e.__scopeAccordion,collapsible:i,children:(0,f.jsx)(Y,{...l,ref:r})})})}),q=n.forwardRef((e,r)=>{let{value:t,defaultValue:a,onValueChange:o=()=>{},...i}=e,[l=[],s]=(0,d.i)({prop:t,defaultProp:a,onChange:o}),c=n.useCallback(e=>s(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[s]),u=n.useCallback(e=>s(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[s]);return(0,f.jsx)(z,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:u,children:(0,f.jsx)(M,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(Y,{...i,ref:r})})})}),[B,T]=S(k),Y=n.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:a,dir:o,orientation:d="vertical",...c}=e,u=n.useRef(null),p=(0,i.s)(u,r),v=E(t),h="ltr"===(0,N.jH)(o),m=(0,l.m)(e.onKeyDown,e=>{var r;if(!P.includes(e.key))return;let t=e.target,n=v().filter(e=>{var r;return!(null===(r=e.ref.current)||void 0===r?void 0:r.disabled)}),a=n.findIndex(e=>e.ref.current===t),o=n.length;if(-1===a)return;e.preventDefault();let i=a,l=o-1,s=()=>{(i=a+1)>l&&(i=0)},c=()=>{(i=a-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===d&&(h?s():c());break;case"ArrowDown":"vertical"===d&&s();break;case"ArrowLeft":"horizontal"===d&&(h?c():s());break;case"ArrowUp":"vertical"===d&&c()}null===(r=n[i%o].ref.current)||void 0===r||r.focus()});return(0,f.jsx)(B,{scope:t,disabled:a,direction:o,orientation:d,children:(0,f.jsx)(R.Slot,{scope:t,children:(0,f.jsx)(s.sG.div,{...c,"data-orientation":d,ref:p,onKeyDown:a?void 0:m})})})}),F="AccordionItem",[W,X]=S(F),K=n.forwardRef((e,r)=>{let{__scopeAccordion:t,value:n,...a}=e,o=T(F,t),i=G(F,t),l=_(t),d=(0,p.B)(),s=n&&i.value.includes(n)||!1,c=o.disabled||e.disabled;return(0,f.jsx)(W,{scope:t,open:s,disabled:c,triggerId:d,children:(0,f.jsx)(b,{"data-orientation":o.orientation,"data-state":er(s),...l,...a,ref:r,disabled:c,open:s,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})});K.displayName=F;var V="AccordionHeader",Z=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=T(k,t),o=X(V,t);return(0,f.jsx)(s.sG.h3,{"data-orientation":a.orientation,"data-state":er(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:r})});Z.displayName=V;var J="AccordionTrigger",Q=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=T(k,t),o=X(J,t),i=L(J,t),l=_(t);return(0,f.jsx)(R.ItemSlot,{scope:t,children:(0,f.jsx)(w,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...l,...n,ref:r})})});Q.displayName=J;var $="AccordionContent",ee=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=T(k,t),o=X($,t),i=_(t);return(0,f.jsx)(A,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...i,...n,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=$;var et=H,en=K,ea=Z,eo=Q,ei=ee},57563:(e,r,t)=>{t.d(r,{Mz:()=>D,i3:()=>H,UC:()=>_,bL:()=>S,Bk:()=>m});var n=t(20107),a=t(9895),o=t(84069),i=t(34544),l=t(20475),d=n.forwardRef((e,r)=>{let{children:t,width:n=10,height:a=5,...o}=e;return(0,l.jsx)(i.sG.svg,{...o,ref:r,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})});d.displayName="Arrow";var s=t(64236),c=t(54379),u=t(46774),p=t(54122),f=t(63620),v="Popper",[h,m]=(0,c.A)(v),[y,g]=h(v),b=e=>{let{__scopePopper:r,children:t}=e,[a,o]=n.useState(null);return(0,l.jsx)(y,{scope:r,anchor:a,onAnchorChange:o,children:t})};b.displayName=v;var x="PopperAnchor",w=n.forwardRef((e,r)=>{let{__scopePopper:t,virtualRef:a,...o}=e,d=g(x,t),c=n.useRef(null),u=(0,s.s)(r,c);return n.useEffect(()=>{d.onAnchorChange((null==a?void 0:a.current)||c.current)}),a?null:(0,l.jsx)(i.sG.div,{...o,ref:u})});w.displayName=x;var j="PopperContent",[A,O]=h(j),C=n.forwardRef((e,r)=>{var t,d,c,v,h,m,y,b;let{__scopePopper:x,side:w="bottom",sideOffset:O=0,align:C="center",alignOffset:N=0,arrowPadding:k=0,avoidCollisions:P=!0,collisionBoundary:S=[],collisionPadding:D=0,sticky:_="partial",hideWhenDetached:H=!1,updatePositionStrategy:z="optimized",onPlaced:G,...M}=e,L=g(j,x),[U,q]=n.useState(null),B=(0,s.s)(r,e=>q(e)),[T,Y]=n.useState(null),F=(0,f.X)(T),W=null!==(y=null==F?void 0:F.width)&&void 0!==y?y:0,X=null!==(b=null==F?void 0:F.height)&&void 0!==b?b:0,K="number"==typeof D?D:{top:0,right:0,bottom:0,left:0,...D},V=Array.isArray(S)?S:[S],Z=V.length>0,J={padding:K,boundary:V.filter(R),altBoundary:Z},{refs:Q,floatingStyles:$,placement:ee,isPositioned:er,middlewareData:et}=(0,a.we)({strategy:"fixed",placement:w+("center"!==C?"-"+C:""),whileElementsMounted:function(){for(var e=arguments.length,r=Array(e),t=0;t{let{elements:r,rects:t,availableWidth:n,availableHeight:a}=e,{width:o,height:i}=t.reference,l=r.floating.style;l.setProperty("--radix-popper-available-width","".concat(n,"px")),l.setProperty("--radix-popper-available-height","".concat(a,"px")),l.setProperty("--radix-popper-anchor-width","".concat(o,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),T&&(0,a.UE)({element:T,padding:k}),E({arrowWidth:W,arrowHeight:X}),H&&(0,a.jD)({strategy:"referenceHidden",...J})]}),[en,ea]=I(ee),eo=(0,u.c)(G);(0,p.N)(()=>{er&&(null==eo||eo())},[er,eo]);let ei=null===(t=et.arrow)||void 0===t?void 0:t.x,el=null===(d=et.arrow)||void 0===d?void 0:d.y,ed=(null===(c=et.arrow)||void 0===c?void 0:c.centerOffset)!==0,[es,ec]=n.useState();return(0,p.N)(()=>{U&&ec(window.getComputedStyle(U).zIndex)},[U]),(0,l.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:er?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null===(v=et.transformOrigin)||void 0===v?void 0:v.x,null===(h=et.transformOrigin)||void 0===h?void 0:h.y].join(" "),...(null===(m=et.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,l.jsx)(A,{scope:x,placedSide:en,onArrowChange:Y,arrowX:ei,arrowY:el,shouldHideArrow:ed,children:(0,l.jsx)(i.sG.div,{"data-side":en,"data-align":ea,...M,ref:B,style:{...M.style,animation:er?void 0:"none"}})})})});C.displayName=j;var N="PopperArrow",k={top:"bottom",right:"left",bottom:"top",left:"right"},P=n.forwardRef(function(e,r){let{__scopePopper:t,...n}=e,a=O(N,t),o=k[a.placedSide];return(0,l.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(d,{...n,ref:r,style:{...n.style,display:"block"}})})});function R(e){return null!==e}P.displayName=N;var E=e=>({name:"transformOrigin",options:e,fn(r){var t,n,a,o,i;let{placement:l,rects:d,middlewareData:s}=r,c=(null===(t=s.arrow)||void 0===t?void 0:t.centerOffset)!==0,u=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[f,v]=I(l),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(o=null===(n=s.arrow)||void 0===n?void 0:n.x)&&void 0!==o?o:0)+u/2,y=(null!==(i=null===(a=s.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+p/2,g="",b="";return"bottom"===f?(g=c?h:"".concat(m,"px"),b="".concat(-p,"px")):"top"===f?(g=c?h:"".concat(m,"px"),b="".concat(d.floating.height+p,"px")):"right"===f?(g="".concat(-p,"px"),b=c?h:"".concat(y,"px")):"left"===f&&(g="".concat(d.floating.width+p,"px"),b=c?h:"".concat(y,"px")),{data:{x:g,y:b}}}});function I(e){let[r,t="center"]=e.split("-");return[r,t]}var S=b,D=w,_=C,H=P},33466:(e,r,t)=>{t.d(r,{C1:()=>w,bL:()=>x});var n=t(20107),a=t(54379),o=t(34544),i=t(20475),l="Progress",[d,s]=(0,a.A)(l),[c,u]=d(l),p=n.forwardRef((e,r)=>{var t,n,a,l;let{__scopeProgress:d,value:s=null,max:u,getValueLabel:p=h,...f}=e;(u||0===u)&&!g(u)&&console.error((t="".concat(u),n="Progress","Invalid prop `max` of value `".concat(t,"` supplied to `").concat(n,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let v=g(u)?u:100;null===s||b(s,v)||console.error((a="".concat(s),l="Progress","Invalid prop `value` of value `".concat(a,"` supplied to `").concat(l,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let x=b(s,v)?s:null,w=y(x)?p(x,v):void 0;return(0,i.jsx)(c,{scope:d,value:x,max:v,children:(0,i.jsx)(o.sG.div,{"aria-valuemax":v,"aria-valuemin":0,"aria-valuenow":y(x)?x:void 0,"aria-valuetext":w,role:"progressbar","data-state":m(x,v),"data-value":null!=x?x:void 0,"data-max":v,...f,ref:r})})});p.displayName=l;var f="ProgressIndicator",v=n.forwardRef((e,r)=>{var t;let{__scopeProgress:n,...a}=e,l=u(f,n);return(0,i.jsx)(o.sG.div,{"data-state":m(l.value,l.max),"data-value":null!==(t=l.value)&&void 0!==t?t:void 0,"data-max":l.max,...a,ref:r})});function h(e,r){return"".concat(Math.round(e/r*100),"%")}function m(e,r){return null==e?"indeterminate":e===r?"complete":"loading"}function y(e){return"number"==typeof e}function g(e){return y(e)&&!isNaN(e)&&e>0}function b(e,r){return y(e)&&!isNaN(e)&&e<=r&&e>=0}v.displayName=f;var x=p,w=v},91475:(e,r,t)=>{t.d(r,{b:()=>l,s:()=>i});var n=t(20107),a=t(34544),o=t(20475),i=n.forwardRef((e,r)=>(0,o.jsx)(a.sG.span,{...e,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var l=i},45930:(e,r,t)=>{t.d(r,{k5:()=>c});var n=t(20107),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(a),i=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var r=1;rn.createElement(u,l({attr:s({},e.attr)},r),function e(r){return r&&r.map((r,t)=>n.createElement(r.tag,s({key:t},r.attr),e(r.child)))}(e.child))}function u(e){var r=r=>{var t,{attr:a,size:o,title:d}=e,c=function(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r.indexOf(n)>=0)continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(e,i),u=o||r.size||"1em";return r.className&&(t=r.className),e.className&&(t=(t?t+" ":"")+e.className),n.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,c,{className:t,style:s(s({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),d&&n.createElement("title",null,d),e.children)};return void 0!==o?n.createElement(o.Consumer,null,e=>r(e)):r(a)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9496-be6846c9c8851cc7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9496-be6846c9c8851cc7.js new file mode 100644 index 0000000..6e5404b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9496-be6846c9c8851cc7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9496],{19496:(e,t,a)=>{a.r(t),a.d(t,{default:()=>j});var s=a(20475),r=a(20107),l=a(72167),i=a(35601),o=a(42541),n=a(76554),d=a(64219),c=a(49153),u=a(21906),m=a(29475),p=a(52161),h=a(97801),f=a(32857),v=a(49573),g=a(39997);let x=(0,g.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var w=a(98969);let N=(0,g.A)("Clock1",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 8",key:"12zbmj"}]]),b=(0,g.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),y=e=>{let{loading:t,scheduleData:a,onStartTimeChange:i,onEndTimeChange:n,onSchedulingToggle:u}=e,[p,h]=(0,r.useState)({text:"Disabled",color:"text-red-600",icon:x}),f=()=>{if(!a.enabled){h({text:"Disabled",color:"text-red-600",icon:x});return}let e=new Date,t=60*e.getHours()+e.getMinutes(),[s,r]=a.startTime.split(":").map(Number),[l,i]=a.endTime.split(":").map(Number),o=60*s+r,n=60*l+i;o<=n?t>=o&&t<=n?h({text:"Active",color:"text-green-600",icon:w.A}):h({text:"Inactive",color:"text-yellow-500",icon:N}):t>=o||t<=n?h({text:"Active",color:"text-green-600",icon:w.A}):h({text:"Inactive",color:"text-yellow-500",icon:N})},g=()=>{a.active?h({text:"Active",color:"text-green-600",icon:w.A}):a.enabled&&!a.active?h({text:"Inactive",color:"text-yellow-500",icon:N}):h({text:"Disabled",color:"text-red-600",icon:x})};(0,r.useEffect)(()=>{g();let e=setInterval(f,6e4);return()=>{clearInterval(e)}},[a]);let y=p.icon;return(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsxs)(l.ZB,{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{children:(0,s.jsx)("span",{children:"Cell Locking Scheduler"})}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(y,{className:"h-4 w-4 mr-1 ".concat(p.color)}),(0,s.jsx)("div",{className:"text-sm text-gray-500",children:p.text})]})]}),(0,s.jsx)(l.BT,{children:"Schedule the device to lock to specific cells at certain times."})]}),(0,s.jsxs)(l.Wu,{children:[a.enabled&&(0,s.jsxs)(v.Fc,{className:"mb-6",children:[(0,s.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(v.XL,{children:"Scheduled Cell Locking Active"}),(0,s.jsx)(v.TN,{children:"Cell locking is currently being managed by the scheduler. Manual changes to cell locks may be overridden during scheduled hours."})]}),(0,s.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"start-time",children:"Start Time"}),(0,s.jsx)(d.p,{type:"time",id:"start-time",value:a.startTime,onChange:e=>i(e.target.value),disabled:t||a.enabled,placeholder:"START TIME"})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"end-time",children:"End Time"}),(0,s.jsx)(d.p,{type:"time",id:"end-time",value:a.endTime,onChange:e=>n(e.target.value),disabled:t||a.enabled,placeholder:"END TIME"})]}),(0,s.jsx)("div",{className:"lg:col-span-2 col-span-1",children:(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Make sure to properly set the timezone using Luci for this to properly work. The scheduler will lock the device to the selected cells during the specified time range. The scheduler will not lock the device if the time range is not valid (e.g. start time is after end time)."})})]})]}),(0,s.jsx)(l.wL,{className:"border-t py-4",children:(0,s.jsxs)(o.$,{onClick:()=>u(!a.enabled),disabled:t||!a.locked&&!a.enabled,children:[(0,s.jsx)(b,{className:"h-4 w-4"}),a.enabled?"Disable Scheduler":"Enable Scheduler"]})})]})};var C=a(88926);let j=()=>{let{toast:e}=(0,f.dj)(),[t,a]=(0,r.useState)(!1),[v,g]=(0,r.useState)(!1),[x,w]=(0,r.useState)(!1),[N,b]=(0,r.useState)(!1),[j,R]=(0,r.useState)({enabled:!1,startTime:"",endTime:"",active:!1,status:"",message:"",locked:!1}),[A,T]=(0,r.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[E,k]=(0,r.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),F=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},S=async()=>{try{a(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=8"),t=await e.json();if(!e.ok)throw Error("Failed to fetch current status");console.log("Current cell locking status:",t);let s=F(t[2].response);console.log("Persist status:",s),s&&s.length>=2&&(w("1"===s[1]),b("1"===s[2]));let r=F(t[0].response);if(console.log("Current LTE lock status:",r),r){let e={EARFCN1:r[2],PCI1:r[3],EARFCN2:r[4],PCI2:r[5],EARFCN3:r[6],PCI3:r[7]};T(e),console.log("New LTE state:",e),parseInt(r[1])>0&&g(!0)}let l=F(t[1].response);if(console.log("Current NR5G lock status:",l),l&&l.length>=5){let e={NRPCI:l[1],NRARFCN:l[2],SCS:l[3],NRBAND:l[4]};k(e),console.log("New NR5G state:",e),parseInt(l[1])>0&&g(!0)}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{a(!1)}},P=async t=>{try{let s;if(a(!0),t&&(!j.startTime||!j.endTime))throw Error("Please set both start and end times");let r=t?{enabled:!0,startTime:j.startTime,endTime:j.endTime}:{enabled:!1},l=await fetch("/cgi-bin/quecmanager/cell-locking/scheduled_cell_locking.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await l.text();if(!l.ok)throw Error("Server responded with status: ".concat(l.status));try{s=JSON.parse(i)}catch(e){throw Error("Failed to parse response: ".concat(i))}if("success"===s.status)R(e=>({...e,enabled:t})),e({title:"Success",description:t?"Cell locking schedule enabled":"Cell locking schedule disabled"});else throw Error(s.message||"Failed to update scheduling")}catch(e){}finally{a(!1)}},I=async()=>{try{var t,s,r,l;a(!0);let i=[];if(A.EARFCN1&&A.PCI1&&i.push([A.EARFCN1,A.PCI1]),A.EARFCN2&&A.PCI2&&i.push([A.EARFCN2,A.PCI2]),A.EARFCN3&&A.PCI3&&i.push([A.EARFCN3,A.PCI3]),0===i.length)throw Error("Please fill at least one EARFCN and PCI pair");let o='AT+QNWLOCK="common/4g",'.concat(i.length);i.forEach(e=>{let[t,a]=e;o+=",".concat(t,",").concat(a)});let n=await (0,C.a)(o,!0);if((null===(t=n.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=n.response)||void 0===r?void 0:r.raw_output)||"Failed to lock LTE cells");await new Promise(e=>setTimeout(e,1e3));let d=await (0,C.a)('AT+QNWLOCK="save_ctrl",1,0',!0);if((null===(s=d.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(l=d.response)||void 0===l?void 0:l.raw_output)||"Failed to save LTE lock configuration");await S(),e({title:"Success",description:"LTE cells locked successfully with ".concat(i.length," pair").concat(i.length>1?"s":"")})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},_=async()=>{try{var t,s,r,l;if(a(!0),!E.NRPCI||!E.NRARFCN||!E.SCS||!E.NRBAND)throw Error("Please fill all NR5G fields");let i='AT+QNWLOCK="common/5g",'.concat(E.NRPCI,",").concat(E.NRARFCN,",").concat(E.SCS,",").concat(E.NRBAND),o=await (0,C.a)(i,!0);if((null===(t=o.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=o.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NR5G cell");await new Promise(e=>setTimeout(e,1e3));let n=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,1',!0);if((null===(s=n.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(l=n.response)||void 0===l?void 0:l.raw_output)||"Failed to save NR5G lock configuration");await S(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},L=async()=>{try{var t,s,r,l,i,o,n,d;a(!0);let c=await (0,C.a)('AT+QNWLOCK="common/4g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset LTE lock");await new Promise(e=>setTimeout(e,1e3));let u=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(s=u.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save LTE reset configuration");let m=await (0,C.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,C.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await S(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},D=async()=>{try{var t,s,r,l,i,o,n,d;a(!0);let c=await (0,C.a)('AT+QNWLOCK="common/5g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset NR5G lock");let u=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(s=u.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save NR5G reset configuration");let m=await (0,C.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,C.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await S(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},O=async t=>{try{var s,r;a(!0);let l=await (0,C.a)('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(N?"1":"0"),!0);if((null===(s=l.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update LTE persist setting");await S(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{a(!1)}},z=async t=>{try{var s,r;a(!0);let l=await (0,C.a)('AT+QNWLOCK="save_ctrl",'.concat(x?"1":"0",",").concat(t?"1":"0"),!0);if((null===(s=l.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update NR5G persist setting");await S(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{a(!1)}};return(0,r.useEffect)(()=>{(async()=>{let e=await fetch("/cgi-bin/quecmanager/cell-locking/get_cell_lock.sh"),t=await e.json();R({enabled:t.enabled,startTime:t.start_time||"",endTime:t.end_time||"",active:t.active,status:t.status,message:t.message,locked:t.locked}),g(t.locked),w("1"===t.ltePersist),b("1"===t.nr5gPersist),await S()})()},[]),(0,r.useEffect)(()=>{R(e=>({...e,locked:v}))},[v]),(0,s.jsxs)("div",{className:"grid gap-6",children:[(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsx)(l.ZB,{children:"4G LTE Cellular Locking"}),(0,s.jsx)(l.BT,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,s.jsx)(l.Wu,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:A.EARFCN1,onChange:e=>T(t=>({...t,EARFCN1:e.target.value})),disabled:t||j.enabled&&v})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI1",children:"PCI 1"}),(0,s.jsx)(d.p,{type:"text",id:"PCI1",placeholder:"PCI 1",value:A.PCI1,onChange:e=>T(t=>({...t,PCI1:e.target.value})),disabled:t||j.enabled&&v})]}),(0,s.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:A.EARFCN2,onChange:e=>T(t=>({...t,EARFCN2:e.target.value})),disabled:t||j.enabled&&v})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI2",children:"PCI 2"}),(0,s.jsx)(d.p,{type:"text",id:"PCI2",placeholder:"PCI 2",value:A.PCI2,onChange:e=>T(t=>({...t,PCI2:e.target.value})),disabled:t||j.enabled&&v})]}),(0,s.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,s.jsx)(d.p,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:A.EARFCN3,onChange:e=>T(t=>({...t,EARFCN3:e.target.value})),disabled:t||j.enabled&&v})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"PCI3",children:"PCI 3"}),(0,s.jsx)(d.p,{type:"text",id:"PCI3",placeholder:"PCI 3",value:A.PCI3,onChange:e=>T(t=>({...t,PCI3:e.target.value})),disabled:t||j.enabled&&v})]})]})}),(0,s.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(o.$,{onClick:I,disabled:t||j.enabled&&v,children:[(0,s.jsx)(m.A,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,s.jsxs)(u.l,{pressed:x,onPressedChange:O,disabled:t||j.enabled&&v,children:[(0,s.jsx)(p.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(o.$,{variant:"secondary",onClick:L,disabled:t||j.enabled&&v,children:[(0,s.jsx)(h.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,s.jsxs)(l.Zp,{children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsx)(l.ZB,{children:"NR5G-SA Cellular Locking"}),(0,s.jsx)(l.BT,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,s.jsx)(l.Wu,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,s.jsx)(d.p,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:E.NRARFCN,onChange:e=>k(t=>({...t,NRARFCN:e.target.value})),disabled:t||j.enabled&&v})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,s.jsx)(d.p,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:E.NRPCI,onChange:e=>k(t=>({...t,NRPCI:e.target.value})),disabled:t||j.enabled&&v})]}),(0,s.jsx)(n.w,{className:"my-0.5 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"SCS",children:"SCS"}),(0,s.jsxs)(i.l6,{value:E.SCS,onValueChange:e=>k(t=>({...t,SCS:e})),disabled:t||j.enabled&&v,children:[(0,s.jsx)(i.bq,{id:"SCS",children:(0,s.jsx)(i.yv,{placeholder:"SCS"})}),(0,s.jsx)(i.gC,{children:(0,s.jsxs)(i.s3,{children:[(0,s.jsx)(i.TR,{children:"SCS"}),(0,s.jsx)(i.eb,{value:"15",children:"15 kHz"}),(0,s.jsx)(i.eb,{value:"30",children:"30 kHz"}),(0,s.jsx)(i.eb,{value:"60",children:"60 kHz"}),(0,s.jsx)(i.eb,{value:"120",children:"120 kHz"}),(0,s.jsx)(i.eb,{value:"240",children:"240 kHz"})]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"NRBAND",children:"NR Band"}),(0,s.jsx)(d.p,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:E.NRBAND,onChange:e=>k(t=>({...t,NRBAND:e.target.value})),disabled:t||j.enabled&&v})]})]})}),(0,s.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(o.$,{onClick:_,disabled:t||j.enabled&&v,children:[(0,s.jsx)(m.A,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,s.jsxs)(u.l,{pressed:N,onPressedChange:z,disabled:t||j.enabled&&v,children:[(0,s.jsx)(p.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(o.$,{variant:"secondary",onClick:D,disabled:t||j.enabled&&v,children:[(0,s.jsx)(h.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,s.jsx)(y,{loading:t,scheduleData:j,onStartTimeChange:e=>{R(t=>({...t,startTime:e}))},onEndTimeChange:e=>{R(t=>({...t,endTime:e}))},onSchedulingToggle:P})]})}},49573:(e,t,a)=>{a.d(t,{Fc:()=>n,TN:()=>c,XL:()=>d});var s=a(20475),r=a(20107),l=a(29395),i=a(22250);let o=(0,l.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=r.forwardRef((e,t)=>{let{className:a,variant:r,...l}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:r}),a),...l})});n.displayName="Alert";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",a),...r})});d.displayName="AlertTitle";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",a),...r})});c.displayName="AlertDescription"},42541:(e,t,a)=>{a.d(t,{$:()=>d,r:()=>n});var s=a(20475),r=a(20107),l=a(61837),i=a(29395),o=a(22250);let n=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:a,variant:r,size:i,asChild:d=!1,...c}=e,u=d?l.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(n({variant:r,size:i,className:a})),ref:t,...c})});d.displayName="Button"},72167:(e,t,a)=>{a.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>n,Zp:()=>i,aR:()=>o,wL:()=>u});var s=a(20475),r=a(20107),l=a(22250);let i=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});i.displayName="Card";let o=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",a),...r})});o.displayName="CardHeader";let n=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("h3",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",a),...r})});n.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",a),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},64219:(e,t,a)=>{a.d(t,{p:()=>i});var s=a(20475),r=a(20107),l=a(22250);let i=r.forwardRef((e,t)=>{let{className:a,type:r,...i}=e;return(0,s.jsx)("input",{type:r,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...i})});i.displayName="Input"},49153:(e,t,a)=>{a.d(t,{J:()=>d});var s=a(20475),r=a(20107),l=a(21840),i=a(29395),o=a(22250);let n=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.b,{ref:t,className:(0,o.cn)(n(),a),...r})});d.displayName=l.b.displayName},35601:(e,t,a)=>{a.d(t,{TR:()=>f,bq:()=>u,eb:()=>v,gC:()=>h,l6:()=>n,s3:()=>d,yv:()=>c});var s=a(20475),r=a(20107),l=a(7197),i=a(95257),o=a(22250);let n=i.bL,d=i.YJ,c=i.WT,u=r.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,s.jsxs)(i.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...n,children:[r,(0,s.jsx)(i.In,{asChild:!0,children:(0,s.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.l9.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,s.jsx)(l.Mtm,{})})});m.displayName=i.PP.displayName;let p=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,s.jsx)(l.D3D,{})})});p.displayName=i.wn.displayName;let h=r.forwardRef((e,t)=>{let{className:a,children:r,position:l="popper",...n}=e;return(0,s.jsx)(i.ZL,{children:(0,s.jsxs)(i.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:l,...n,children:[(0,s.jsx)(m,{}),(0,s.jsx)(i.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,s.jsx)(p,{})]})})});h.displayName=i.UC.displayName;let f=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",a),...r})});f.displayName=i.JU.displayName;let v=r.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,s.jsxs)(i.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(i.p4,{children:r})]})});v.displayName=i.q7.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",a),...r})}).displayName=i.wv.displayName},76554:(e,t,a)=>{a.d(t,{w:()=>o});var s=a(20475),r=a(20107),l=a(88853),i=a(22250);let o=r.forwardRef((e,t)=>{let{className:a,orientation:r="horizontal",decorative:o=!0,...n}=e;return(0,s.jsx)(l.b,{ref:t,decorative:o,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",a),...n})});o.displayName=l.b.displayName},21906:(e,t,a)=>{a.d(t,{l:()=>m});var s=a(20475),r=a(20107),l=a(94521),i=a(13061),o=a(34544),n=r.forwardRef((e,t)=>{let{pressed:a,defaultPressed:r=!1,onPressedChange:n,...d}=e,[c=!1,u]=(0,i.i)({prop:a,onChange:n,defaultProp:r});return(0,s.jsx)(o.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:t,onClick:(0,l.m)(e.onClick,()=>{e.disabled||u(!c)})})});n.displayName="Toggle";var d=a(29395),c=a(22250);let u=(0,d.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),m=r.forwardRef((e,t)=>{let{className:a,variant:r,size:l,...i}=e;return(0,s.jsx)(n,{ref:t,className:(0,c.cn)(u({variant:r,size:l,className:a})),...i})});m.displayName=n.displayName},32857:(e,t,a)=>{a.d(t,{dj:()=>m,oR:()=>u});var s=a(20107);let r=0,l=new Map,i=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?i(a):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},n=[],d={toasts:[]};function c(e){d=o(d,e),n.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=s.useState(d);return s.useEffect(()=>(n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,a)=>{a.d(t,{cn:()=>l});var s=a(64901),r=a(868);function l(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{A:()=>s});let s=(0,a(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},29475:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},97801:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},52161:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(39997).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},88926:(e,t,a)=>{a.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),l=encodeURIComponent(r),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(l);t&&(i+="&wait=1&timeout=".concat(a));let o=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*a+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let n=await o.json();if(n.error)throw Error("AT queue error: ".concat(n.error));if(t&&(null===(s=n.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(a," seconds"));return n}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,a)=>{a.d(t,{b:()=>d});var s=a(20107),r=a(34544),l=a(20475),i="horizontal",o=["horizontal","vertical"],n=s.forwardRef((e,t)=>{let{decorative:a,orientation:s=i,...n}=e,d=o.includes(s)?s:i;return(0,l.jsx)(r.sG.div,{"data-orientation":d,...a?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...n,ref:t})});n.displayName="Separator";var d=n}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9563-6d9d0f6708af335e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9563-6d9d0f6708af335e.js new file mode 100644 index 0000000..91ea362 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9563-6d9d0f6708af335e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9563],{17799:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},89463:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]])},622:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},98969:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},14389:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},8782:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},10964:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},13624:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},99312:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},7778:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},25262:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},99015:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]])},97801:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},90304:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},20633:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},12607:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},92823:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(39997).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},92776:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0});var c=a(n(20107)),u=n(22184),s=n(30120),f=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];t.default=function(e){var t=e.loading,n=e.color,i=void 0===n?"#000000":n,o=e.speedMultiplier,a=void 0===o?1:o,s=e.cssOverride,d=e.size,p=l(e,["loading","color","speedMultiplier","cssOverride","size"]),y=(0,u.parseLengthAndUnit)(void 0===d?15:d),h=y.value,m=y.unit,v=r({display:"inherit",position:"relative"},void 0===s?{}:s),g=function(e){return{position:"absolute",fontSize:"".concat(h/3).concat(m),width:"".concat(h).concat(m),height:"".concat(h).concat(m),background:i,borderRadius:"50%",animation:"".concat(f[e]," ").concat(1.5/a,"s infinite"),animationFillMode:"forwards"}};return void 0===t||t?c.createElement("span",r({style:v},p),c.createElement("span",{style:g(0)}),c.createElement("span",{style:g(1)}),c.createElement("span",{style:g(2)}),c.createElement("span",{style:g(3)}),c.createElement("span",{style:g(4)}),c.createElement("span",{style:g(5)})):null}},71834:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(20107),i={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function o(e){var t=function(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return i[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var a=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return o&&o.insertRule(a,0),r},l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},u=[a("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),a("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];let s=function(e){var t=e.loading,n=e.color,i=void 0===n?"#000000":n,a=e.speedMultiplier,s=void 0===a?1:a,f=e.cssOverride,d=e.size,p=void 0===d?60:d,y=c(e,["loading","color","speedMultiplier","cssOverride","size"]),h=l({display:"inherit",position:"relative",width:o(p),height:o(p)},void 0===f?{}:f),m=function(e){return{position:"absolute",height:o(p),width:o(p),border:"thick solid ".concat(i),borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:"".concat(u[0],", ").concat(u[1]),animationDuration:"".concat(2/s,"s"),animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:1===e?"-1s":"0s"}};return void 0===t||t?r.createElement("span",l({style:h},y),r.createElement("span",{style:m(1)}),r.createElement("span",{style:m(2)})):null}},30120:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return o&&o.insertRule(a,0),r}},22184:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var i=(e.match(/[^0-9]*$/)||"").toString();return n[i]?{value:t,unit:i}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return"".concat(t.value).concat(t.unit)}},79492:(e,t,n)=>{n.d(t,{G:()=>z});var r=n(20107),i=n(64901),o=n(61075),a=n(14632),l=n.n(a),c=n(12838),u=n.n(c),s=n(87107),f=n.n(s),d=n(50801),p=n.n(d),y=n(6440),h=n.n(y),m=n(60992),v=n(42555),g=n(37819),b=n(58864),x=n(95392),O=n(89952),A=n(95492),w=n(61211),k=["layout","type","stroke","connectNulls","isRange","ref"],E=["key"];function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!h()(l,r)||!h()(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,o=t.dot,a=t.points,l=t.className,c=t.top,u=t.left,s=t.xAxis,d=t.yAxis,p=t.width,y=t.height,h=t.isAnimationActive,m=t.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,O=(0,i.A)("recharts-area",l),A=s&&s.allowDataOverflow,k=d&&d.allowDataOverflow,E=A||k,j=f()(m)?this.id:m,P=null!==(e=(0,w.J9)(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},D=P.r,S=P.strokeWidth,M=((0,w.sT)(o)?o:{}).clipDot,I=void 0===M||M,C=2*(void 0===D?3:D)+(void 0===S?2:S);return r.createElement(g.W,{className:O},A||k?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(j)},r.createElement("rect",{x:A?u:u-p/2,y:k?c:c-y/2,width:A?p:2*p,height:k?y:2*y})),!I&&r.createElement("clipPath",{id:"clipPath-dots-".concat(j)},r.createElement("rect",{x:u-C/2,y:c-C/2,width:p+C,height:y+C}))):null,x?null:this.renderArea(E,j),(o||x)&&this.renderDots(E,I,j),(!h||v)&&b.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],t&&I(a.prototype,t),n&&I(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);L(z,"displayName","Area"),L(z,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),L(z,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,l=null!=a?a:o;if((0,O.Et)(l)&&"number"==typeof l)return l;var c="horizontal"===i?r:n,u=c.scale.domain();if("number"===c.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===l?f:"dataMax"===l?s:s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===l?u[0]:"dataMax"===l?u[1]:u[0]}),L(z,"getComposedData",function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=e.yAxis,a=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,u=e.dataKey,s=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,y=n.layout,h=s&&s.length,m=z.getBaseValue(n,r,i,o),v="horizontal"===y,g=!1,b=d.map(function(e,t){h?n=s[f+t]:Array.isArray(n=(0,A.kr)(e,u))?g=!0:n=[m,n];var n,r=null==n[1]||h&&null==(0,A.kr)(e,u);return v?{x:(0,A.nb)({axis:i,ticks:a,bandSize:c,entry:e,index:t}),y:r?null:o.scale(n[1]),value:n,payload:e}:{x:r?null:i.scale(n[1]),y:(0,A.nb)({axis:o,ticks:l,bandSize:c,entry:e,index:t}),value:n,payload:e}});return t=h||g?b.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=t&&null!=e.y?o.scale(t):null}:{x:null!=t?i.scale(t):null,y:e.y}}):v?o.scale(m):i.scale(m),M({points:b,baseLine:t,layout:y,isRange:g},p)}),L(z,"renderDotItem",function(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(l()(e))n=e(t);else{var o=(0,i.A)("recharts-area-dot","boolean"!=typeof e?e.className:""),a=t.key,c=P(t,E);n=r.createElement(v.c,D({},c,{key:a,className:o}))}return n})},94005:(e,t,n)=>{n.d(t,{d:()=>S});var r=n(20107),i=n(14632),o=n.n(i),a=n(42228),l=n(89952),c=n(61211),u=n(95492),s=n(62882),f=n(67064),d=n(25161),p=["x1","y1","x2","y2","key"],y=["offset"];function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var x=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,i=e.x,o=e.y,a=e.width,l=e.height,c=e.ry;return r.createElement("rect",{x:i,y:o,ry:c,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function O(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(o()(e))n=e(t);else{var i=t.x1,a=t.y1,l=t.x2,u=t.y2,s=t.key,f=b(t,p),d=(0,c.J9)(f,!1),h=(d.offset,b(d,y));n=r.createElement("line",g({},h,{x1:i,y1:a,x2:l,y2:u,fill:"none",key:s}))}return n}function A(e){var t=e.x,n=e.width,i=e.horizontal,o=void 0===i||i,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var l=a.map(function(r,i){return O(o,v(v({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function w(e){var t=e.y,n=e.height,i=e.vertical,o=void 0===i||i,a=e.verticalPoints;if(!o||!a||!a.length)return null;var l=a.map(function(r,i){return O(o,v(v({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function k(e){var t=e.horizontalFill,n=e.fillOpacity,i=e.x,o=e.y,a=e.width,l=e.height,c=e.horizontalPoints,u=e.horizontal;if(!(void 0===u||u)||!t||!t.length)return null;var s=c.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==s[0]&&s.unshift(0);var f=s.map(function(e,c){var u=s[c+1]?s[c+1]-e:o+l-e;if(u<=0)return null;var f=c%t.length;return r.createElement("rect",{key:"react-".concat(c),y:e,x:i,height:u,width:a,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function E(e){var t=e.vertical,n=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var s=u.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==s[0]&&s.unshift(0);var f=s.map(function(e,t){var u=s[t+1]?s[t+1]-e:o+l-e;if(u<=0)return null;var f=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:u,height:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var j=function(e,t){var n=e.xAxis,r=e.width,i=e.height,o=e.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},P=function(e,t){var n=e.yAxis,r=e.width,i=e.height,o=e.offset;return(0,u.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,u.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},D={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function S(e){var t,n,i,c,u,s,f=(0,d.yi)(),p=(0,d.rY)(),y=(0,d.hj)(),m=v(v({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:D.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:D.fill,horizontal:null!==(i=e.horizontal)&&void 0!==i?i:D.horizontal,horizontalFill:null!==(c=e.horizontalFill)&&void 0!==c?c:D.horizontalFill,vertical:null!==(u=e.vertical)&&void 0!==u?u:D.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:D.verticalFill,x:(0,l.Et)(e.x)?e.x:y.left,y:(0,l.Et)(e.y)?e.y:y.top,width:(0,l.Et)(e.width)?e.width:y.width,height:(0,l.Et)(e.height)?e.height:y.height}),b=m.x,O=m.y,S=m.width,M=m.height,I=m.syncWithTicks,C=m.horizontalValues,N=m.verticalValues,F=(0,d.pj)(),L=(0,d.$G)();if(!(0,l.Et)(S)||S<=0||!(0,l.Et)(M)||M<=0||!(0,l.Et)(b)||b!==+b||!(0,l.Et)(O)||O!==+O)return null;var R=m.verticalCoordinatesGenerator||j,z=m.horizontalCoordinatesGenerator||P,_=m.horizontalPoints,T=m.verticalPoints;if((!_||!_.length)&&o()(z)){var B=C&&C.length,V=z({yAxis:L?v(v({},L),{},{ticks:B?C:L.ticks}):void 0,width:f,height:p,offset:y},!!B||I);(0,a.R)(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h(V),"]")),Array.isArray(V)&&(_=V)}if((!T||!T.length)&&o()(R)){var X=N&&N.length,W=R({xAxis:F?v(v({},F),{},{ticks:X?N:F.ticks}):void 0,width:f,height:p,offset:y},!!X||I);(0,a.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h(W),"]")),Array.isArray(W)&&(T=W)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),r.createElement(A,g({},m,{offset:y,horizontalPoints:_,xAxis:F,yAxis:L})),r.createElement(w,g({},m,{offset:y,verticalPoints:T,xAxis:F,yAxis:L})),r.createElement(k,g({},m,{horizontalPoints:_})),r.createElement(E,g({},m,{verticalPoints:T})))}S.displayName="CartesianGrid"},53134:(e,t,n)=>{n.d(t,{Q:()=>c});var r=n(90805),i=n(79492),o=n(4538),a=n(41797),l=n(98456),c=(0,r.gu)({chartName:"AreaChart",GraphicalChild:i.G,axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},60241:(e,t,n)=>{n.d(t,{G$:()=>U,Hs:()=>O,UC:()=>et,VY:()=>er,ZL:()=>Q,bL:()=>K,bm:()=>ei,hE:()=>en,hJ:()=>ee,l9:()=>Y});var r=n(20107),i=n(94521),o=n(64236),a=n(45170),l=n(72763),c=n(13061),u=n(55302),s=n(38573),f=n(41913),d=n(54245),p=n(34544),y=n(10201),h=n(9543),m=n(58020),v=n(61837),g=n(20475),b="Dialog",[x,O]=(0,a.A)(b),[A,w]=x(b),k=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,s=r.useRef(null),f=r.useRef(null),[d=!1,p]=(0,c.i)({prop:i,defaultProp:o,onChange:a});return(0,g.jsx)(A,{scope:t,triggerRef:s,contentRef:f,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:d,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};k.displayName=b;var E="DialogTrigger",j=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=w(E,n),l=(0,o.s)(t,a.triggerRef);return(0,g.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":G(a.open),...r,ref:l,onClick:(0,i.m)(e.onClick,a.onOpenToggle)})});j.displayName=E;var P="DialogPortal",[D,S]=x(P,{forceMount:void 0}),M=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,a=w(P,t);return(0,g.jsx)(D,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,g.jsx)(d.C,{present:n||a.open,children:(0,g.jsx)(f.Z,{asChild:!0,container:o,children:e})}))})};M.displayName=P;var I="DialogOverlay",C=r.forwardRef((e,t)=>{let n=S(I,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=w(I,e.__scopeDialog);return o.modal?(0,g.jsx)(d.C,{present:r||o.open,children:(0,g.jsx)(N,{...i,ref:t})}):null});C.displayName=I;var N=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=w(I,n);return(0,g.jsx)(h.A,{as:v.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,g.jsx)(p.sG.div,{"data-state":G(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),F="DialogContent",L=r.forwardRef((e,t)=>{let n=S(F,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=w(F,e.__scopeDialog);return(0,g.jsx)(d.C,{present:r||o.open,children:o.modal?(0,g.jsx)(R,{...i,ref:t}):(0,g.jsx)(z,{...i,ref:t})})});L.displayName=F;var R=r.forwardRef((e,t)=>{let n=w(F,e.__scopeDialog),a=r.useRef(null),l=(0,o.s)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,m.Eq)(e)},[]),(0,g.jsx)(_,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),z=r.forwardRef((e,t)=>{let n=w(F,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,g.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),_=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,...c}=e,f=w(F,n),d=r.useRef(null),p=(0,o.s)(t,d);return(0,y.Oh)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(s.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,g.jsx)(u.qW,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":G(f.open),...c,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)($,{titleId:f.titleId}),(0,g.jsx)(Z,{contentRef:d,descriptionId:f.descriptionId})]})]})}),T="DialogTitle",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=w(T,n);return(0,g.jsx)(p.sG.h2,{id:i.titleId,...r,ref:t})});B.displayName=T;var V="DialogDescription",X=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=w(V,n);return(0,g.jsx)(p.sG.p,{id:i.descriptionId,...r,ref:t})});X.displayName=V;var W="DialogClose",q=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(W,n);return(0,g.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function G(e){return e?"open":"closed"}q.displayName=W;var H="DialogTitleWarning",[U,J]=(0,a.q)(H,{contentName:F,titleName:T,docsSlug:"dialog"}),$=e=>{let{titleId:t}=e,n=J(H),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(i)},[i,t]),null},Z=e=>{let{contentRef:t,descriptionId:n}=e,i=J("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},K=k,Y=j,Q=M,ee=C,et=L,en=B,er=X,ei=q},74043:(e,t,n)=>{n.d(t,{A:()=>E});var r=n(20107);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function l(e){return"number"==typeof e}function c(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function f(e){return Math.abs(e)}function d(e){return Math.sign(e)}function p(e){return v(e).map(Number)}function y(e){return e[h(e)]}function h(e){return Math.max(0,e.length-1)}function m(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function v(e){return Object.keys(e)}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(n,r,i,o={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,i,o),a=()=>n.removeEventListener(r,i,o)):(n.addListener(i),a=()=>n.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e=0,t=0){let n=f(e-t);function r(n){return nt}return{length:n,max:t,min:e,constrain:function(n){return r(n)?nt},reachedMin:function(t){return t(v(n).forEach(r=>{let i=t[r],o=n[r],a=s(i)&&s(o);t[r]=a?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=v(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>v(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(P),S=(E=[],{init:function(e,t){return(E=t.filter(({options:e})=>!1!==D.optionsAtMedia(e).active)).forEach(t=>t.init(e,D)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){E=E.filter(e=>e.destroy())}}),M=b(),I=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:C,optionsAtMedia:N,optionsMediaQueries:F}=D,{on:L,off:R,emit:z}=I,_=!1,T=C(w,k.globalOptions),B=C(T),V=[];function X(t,n){!_&&(B=N(T=C(T,t)),V=n||V,function(){let{container:t,slides:n}=B;o=(c(t)?e.querySelector(t):t)||e.children[0];let r=c(n)?o.querySelectorAll(n):n;a=[].slice.call(r||o.children)}(),r=function t(n){let r=function(e,t,n,r,i,o,a){let s,w;let{align:k,axis:E,direction:j,startIndex:P,loop:D,duration:S,dragFree:M,dragThreshold:I,inViewThreshold:C,slidesToScroll:N,skipSnaps:F,containScroll:L,watchResize:R,watchSlides:z,watchDrag:_,watchFocus:T}=o,B={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},V=B.measure(t),X=n.map(B.measure),W=function(e,t){let n="rtl"===t,r="y"===e,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*i}}}(E,j),q=W.measureSize(V),G={measure:function(e){return e/100*q}},H=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,i){return c(e)?n[e](r):e(t,r,i)}}}(k,q),U=!D&&!!L,{slideSizes:J,slideSizesWithGaps:$,startGap:Z,endGap:K}=function(e,t,n,r,i,o){let{measureSize:a,startEdge:l,endEdge:c}=e,u=n[0]&&i,s=function(){if(!u)return 0;let e=n[0];return f(t[l]-e[l])}(),d=u?parseFloat(o.getComputedStyle(y(r)).getPropertyValue(`margin-${c}`)):0,p=n.map(a),m=n.map((e,t,n)=>{let r=t===h(n);return t?r?p[t]+d:n[t+1][l]-e[l]:p[t]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:m,startGap:s,endGap:d}}(W,V,X,n,D||!!L,i),Y=function(e,t,n,r,i,o,a,c,u){let{startEdge:s,endEdge:d,direction:m}=e,v=l(n);return{groupSlides:function(e){return v?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,l,u)=>{let p=y(n)||0,v=l===h(e),g=i[s]-o[p][s],b=i[s]-o[l][d],x=r||0!==p?0:m(a),O=f(b-(!r&&v?m(c):0)-(g+x));return u&&O>t+2&&n.push(l),v&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(W,q,N,D,V,X,Z,K,0),{snaps:Q,snapsAligned:ee}=function(e,t,n,r,i){let{startEdge:o,endEdge:a}=e,{groupSlides:l}=i,c=l(r).map(e=>y(e)[a]-e[0][o]).map(f).map(t.measure),u=r.map(e=>n[o]-e[o]).map(e=>-f(e)),s=l(u).map(e=>e[0]).map((e,t)=>e+c[t]);return{snaps:u,snapsAligned:s}}(W,H,V,X,Y),et=-y(Q)+y($),{snapsContained:en,scrollContainLimit:er}=function(e,t,n,r,i){let o=x(-t+e,0),a=n.map((e,t)=>{let{min:r,max:i}=o,a=o.constrain(e),l=t===h(n);return t?l||1>f(r-a)?r:1>f(i-a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),l=function(){let e=a[0],t=y(a);return x(a.lastIndexOf(e),a.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return a;let{min:n,max:i}=l;return a.slice(n,i)}(),scrollContainLimit:l}}(q,et,ee,L,0),ei=U?en:ee,{limit:eo}=function(e,t,n){let r=t[0];return{limit:x(n?r-e:y(t),r)}}(et,ei,D),ea=function e(t,n,r){let{constrain:i}=x(0,t),o=t+1,a=l(n);function l(e){return r?f((o+e)%o):i(e)}function c(){return e(t,a,r)}let u={get:function(){return a},set:function(e){return a=l(e),u},add:function(e){return c().set(a+e)},clone:c};return u}(h(ei),P,D),el=ea.clone(),ec=p(n),eu=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}},i)=>{r||n.constrain(e.pointerDown()),t.seek(i)},es=({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:i,slideLooper:o,dragHandler:a,animation:l,eventHandler:c,scrollBounds:u,options:{loop:s}},f)=>{let d=e.settled(),p=!u.shouldConstrain(),y=s?d:d&&p;y&&!a.pointerDown()&&(l.stop(),c.emit("settle")),y||c.emit("scroll");let h=n.get()*f+ey.get()*(1-f);r.set(h),s&&(i.loop(e.direction()),o.loop()),t.to(r.get())},ef=function(e,t,n,r){let i=b(),o=1e3/60,a=null,l=0,c=0;function u(e){if(!c)return;a||(a=e);let i=e-a;for(a=e,l+=i;l>=o;)n(o),l-=o;r(l/o),c&&t.requestAnimationFrame(u)}function s(){t.cancelAnimationFrame(c),a=null,l=0,c=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,l=0)})},destroy:function(){s(),i.clear()},start:function(){c||(c=t.requestAnimationFrame(u))},stop:s,update:()=>n(o),render:r}}(r,i,e=>eu(eE,e),e=>es(eE,e)),ed=ei[ea.get()],ep=O(ed),ey=O(ed),eh=O(ed),em=O(ed),ev=function(e,t,n,r,i,o){let a=0,l=0,c=i,u=.68,s=e.get(),p=0;function y(e){return c=e,m}function h(e){return u=e,m}let m={direction:function(){return l},duration:function(){return c},velocity:function(){return a},seek:function(t){let i=t/1e3,o=c*i,f=r.get()-e.get(),y=0;return c?(n.set(e),a+=f/o,a*=u,s+=a,e.add(a*i),y=s-p):(a=0,n.set(r),e.set(r),y=f),l=d(y),p=s,m},settled:function(){return .001>f(r.get()-t.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return y(i)},useFriction:h,useDuration:y};return m}(ep,eh,ey,em,S,0),eg=function(e,t,n,r,i){let{reachedAny:o,removeOffset:a,constrain:l}=r;function c(e){return e.concat().sort((e,t)=>f(e)-f(t))[0]}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let o=i.filter(e=>d(e)===r);return o.length?c(o):y(i)-n}return{byDistance:function(n,r){let c=i.get()+n,{index:s,distance:d}=function(n){let r=e?a(n):l(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>f(e.diff)-f(t.diff))[0];return{index:i,distance:r}}(c),p=!e&&o(c);if(!r||p)return{index:s,distance:n};let y=n+u(t[s]-d,0);return{index:s,distance:y}},byIndex:function(e,n){let r=u(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:u}}(D,ei,et,eo,em),eb=function(e,t,n,r,i,o,a){function l(i){let l=i.distance,c=i.index!==t.get();o.add(l),l&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){l(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);l(i.byIndex(r.get(),n))}}}(ef,ea,el,ev,eg,em,a),ex=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eo),eO=b(),eA=function(e,t,n,r){let i;let o={},a=null,l=null,c=!1;return{init:function(){i=new IntersectionObserver(e=>{c||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),a=null,l=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),c=!0},get:function(e=!0){if(e&&a)return a;if(!e&&l)return l;let t=v(o).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(a=t),e||(l=t),t}}}(t,n,a,C),{slideRegistry:ew}=function(e,t,n,r,i,o){let{groupSlides:a}=i,{min:l,max:c}=r;return{slideRegistry:function(){let r=a(o);return 1===n.length?[o]:e&&"keepSnaps"!==t?r.slice(l,c).map((e,t,n)=>{let r=t===h(n);return t?r?m(h(o)-y(n)[0]+1,y(n)[0]):e:m(y(n[0])+1)}):r}()}}(U,L,ei,er,Y,ec),ek=function(e,t,n,r,i,o,a,c){let s={passive:!0,capture:!0},f=0;function d(e){"Tab"===e.code&&(f=new Date().getTime())}return{init:function(p){c&&(o.add(document,"keydown",d,!1),t.forEach((t,d)=>{o.add(t,"focus",t=>{(u(c)||c(p,t))&&function(t){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));l(o)&&(i.useDuration(0),r.index(o,0),a.emit("slideFocus"))}(d)},s)}))}}}(e,n,ew,eb,ev,eO,a,T),eE={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:V,slideRects:X,animation:ef,axis:W,dragHandler:function(e,t,n,r,i,o,a,l,c,s,p,y,h,m,v,O,A,w,k){let{cross:E,direction:j}=e,P=["INPUT","SELECT","TEXTAREA"],D={passive:!1},S=b(),M=b(),I=x(50,225).constrain(m.measure(20)),C={mouse:300,touch:400},N={mouse:500,touch:600},F=v?43:25,L=!1,R=0,z=0,_=!1,T=!1,B=!1,V=!1;function X(e){if(!g(e,r)&&e.touches.length>=2)return W(e);let t=o.readPoint(e),n=o.readPoint(e,E),a=f(t-R),c=f(n-z);if(!T&&!V&&(!e.cancelable||!(T=a>c)))return W(e);let u=o.pointerMove(e);a>O&&(B=!0),s.useFriction(.3).useDuration(.75),l.start(),i.add(j(u)),e.preventDefault()}function W(e){let t=p.byDistance(0,!1).index!==y.get(),n=o.pointerUp(e)*(v?N:C)[V?"mouse":"touch"],r=function(e,t){let n=y.add(-1*d(e)),r=p.byDistance(e,!v).distance;return v||f(e)e.preventDefault(),D).add(t,"touchmove",()=>void 0,D).add(t,"touchend",()=>void 0).add(t,"touchstart",l).add(t,"mousedown",l).add(t,"touchcancel",W).add(t,"contextmenu",W).add(t,"click",q,!0);function l(l){(u(k)||k(e,l))&&function(e){let l=g(e,r);V=l,B=v&&l&&!e.buttons&&L,L=f(i.get()-a.get())>=2,l&&0!==e.button||function(e){let t=e.nodeName||"";return P.includes(t)}(e.target)||(_=!0,o.pointerDown(e),s.useFriction(0).useDuration(0),i.set(a),function(){let e=V?n:t;M.add(e,"touchmove",X,D).add(e,"touchend",W).add(e,"mousemove",X,D).add(e,"mouseup",W)}(),R=o.readPoint(e),z=o.readPoint(e,E),h.emit("pointerDown"))}(l)}},destroy:function(){S.clear(),M.clear()},pointerDown:function(){return _}}}(W,e,r,i,em,function(e,t){let n,r;function i(e){return e.timeStamp}function o(n,r){let i=r||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(g(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){let t=o(e)-o(r),a=i(e)-i(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=o(r)-o(n),a=i(e)-i(n),l=i(e)-i(r)>170,c=t/a;return a&&!l&&f(c)>.1?c:0},readPoint:o}}(W,i),ep,ef,eb,ev,eg,ea,a,G,M,I,F,0,_),eventStore:eO,percentOfView:G,index:ea,indexPrevious:el,limit:eo,location:ep,offsetLocation:eh,previousLocation:ey,options:o,resizeHandler:function(e,t,n,r,i,o,a){let l,c;let s=[e].concat(r),d=[],p=!1;function y(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(c=y(e),d=r.map(y),l=new ResizeObserver(n=>{(u(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===e,a=r.indexOf(o.target),l=n?c:d[a];if(f(y(n?e:r[a])-l)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(e=>l.observe(e))}))},destroy:function(){p=!0,l&&l.disconnect()}}}(t,a,i,n,W,R,B),scrollBody:ev,scrollBounds:function(e,t,n,r,i){let o=i.measure(10),a=i.measure(50),l=x(.1,.99),c=!1;function u(){return!!(!c&&e.reachedAny(n.get())&&e.reachedAny(t.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;let c=e.reachedMin(t.get())?"min":"max",s=f(e[c]-t.get()),d=n.get()-t.get(),p=l.constrain(s/a);n.subtract(d*p),!i&&f(d)e.add(a))}}}(et,eo,eh,[ep,eh,ey,em]),scrollProgress:ex,scrollSnapList:ei.map(ex.get),scrollSnaps:ei,scrollTarget:eg,scrollTo:eb,slideLooper:function(e,t,n,r,i,o,a,l,c){let u=p(i),s=y(d(p(i).reverse(),a[0]),n,!1).concat(y(d(u,t-a[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function d(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function y(i,a,u){let s=o.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return i.map(t=>{let r=u?0:-n,i=u?n:0,o=s[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:O(-1),translate:A(e,c[t]),target:()=>l.get()>o?r:i}})}return{canLoop:function(){return s.every(({index:e})=>.1>=f(u.filter(t=>t!==e),t))},clear:function(){s.forEach(e=>e.translate.clear())},loop:function(){s.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:s}}(W,q,et,J,$,Q,ei,eh,n),slideFocus:ek,slidesHandler:(w=!1,{init:function(e){z&&(s=new MutationObserver(t=>{!w&&(u(z)||z(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){s&&s.disconnect(),w=!0}}),slidesInView:eA,slideIndexes:ec,slideRegistry:ew,slidesToScroll:Y,target:em,translate:A(W,t)};return eE}(e,o,a,j,P,n,I);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(B),F([T,...V.map(({options:e})=>e)]).forEach(e=>M.add(e,"change",W)),B.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(U),r.eventHandler.init(U),r.resizeHandler.init(U),r.slidesHandler.init(U),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&a.length&&r.dragHandler.init(U),i=S.init(U,V)))}function W(e,t){let n=H();q(),X(C({startIndex:n},e),t),I.emit("reInit")}function q(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),S.destroy(),M.clear()}function G(e,t,n){B.active&&!_&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:B.duration),r.scrollTo.index(e,n||0))}function H(){return r.index.get()}let U={canScrollNext:function(){return r.index.add(1).get()!==H()},canScrollPrev:function(){return r.index.add(-1).get()!==H()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){_||(_=!0,M.clear(),q(),I.emit("destroy"),I.clear())},off:R,on:L,emit:z,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:W,rootNode:function(){return e},scrollNext:function(e){G(r.index.add(1).get(),e,-1)},scrollPrev:function(e){G(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:G,selectedScrollSnap:H,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return X(t,n),setTimeout(()=>I.emit("init"),0),U}function E(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[l,c]=(0,r.useState)(),[u,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{l&&l.reInit(n.current,i.current)},[l]);return(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,f())},[e,f]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=a(e),r=a(t);return n.every((e,t)=>o(e,r[t]))}(i.current,t)&&(i.current=t,f())},[t,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){k.globalOptions=E.globalOptions;let e=k(u,n.current,i.current);return c(e),()=>e.destroy()}c(void 0)},[u,c]),[s,l]}k.globalOptions=void 0,E.globalOptions=void 0}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9679-2e6404ffd44175ca.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9679-2e6404ffd44175ca.js new file mode 100644 index 0000000..76ddb60 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9679-2e6404ffd44175ca.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9679],{56703:(e,r,t)=>{t.d(r,{q:()=>n});function n(e,[r,t]){return Math.min(t,Math.max(r,e))}},76056:(e,r,t)=>{t.d(r,{jH:()=>l});var n=t(20107);t(20475);var o=n.createContext(void 0);function l(e){let r=n.useContext(o);return e||r||"ltr"}},89679:(e,r,t)=>{t.d(r,{LM:()=>q,OK:()=>K,VM:()=>C,bL:()=>G,lr:()=>H});var n=t(20107),o=t(34544),l=t(54245),i=t(45170),a=t(64236),s=t(46774),c=t(76056),d=t(54122),u=t(56703),f=t(94521),p=t(20475),h="ScrollArea",[v,w]=(0,i.A)(h),[g,b]=v(h),m=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,type:l="hover",dir:i,scrollHideDelay:s=600,...d}=e,[u,f]=n.useState(null),[h,v]=n.useState(null),[w,b]=n.useState(null),[m,S]=n.useState(null),[x,E]=n.useState(null),[C,y]=n.useState(0),[T,R]=n.useState(0),[L,P]=n.useState(!1),[_,j]=n.useState(!1),D=(0,a.s)(r,e=>f(e)),A=(0,c.jH)(i);return(0,p.jsx)(g,{scope:t,type:l,dir:A,scrollHideDelay:s,scrollArea:u,viewport:h,onViewportChange:v,content:w,onContentChange:b,scrollbarX:m,onScrollbarXChange:S,scrollbarXEnabled:L,onScrollbarXEnabledChange:P,scrollbarY:x,onScrollbarYChange:E,scrollbarYEnabled:_,onScrollbarYEnabledChange:j,onCornerWidthChange:y,onCornerHeightChange:R,children:(0,p.jsx)(o.sG.div,{dir:A,...d,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":T+"px",...e.style}})})});m.displayName=h;var S="ScrollAreaViewport",x=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,children:l,asChild:i,nonce:s,...c}=e,d=b(S,t),u=n.useRef(null),f=(0,a.s)(r,u,d.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n[data-radix-scroll-area-viewport] {\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n flex-grow: 1;\n}\n"},nonce:s}),(0,p.jsx)(o.sG.div,{"data-radix-scroll-area-viewport":"",...c,asChild:i,ref:f,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...e.style},children:function(e,r){let{asChild:t,children:o}=e;if(!t)return"function"==typeof r?r(o):r;let l=n.Children.only(o);return n.cloneElement(l,{children:"function"==typeof r?r(l.props.children):r})}({asChild:i,children:l},e=>(0,p.jsx)("div",{"data-radix-scroll-area-content":"",ref:d.onContentChange,style:{minWidth:d.scrollbarXEnabled?"fit-content":void 0},children:e}))})]})});x.displayName=S;var E="ScrollAreaScrollbar",C=n.forwardRef((e,r)=>{let{forceMount:t,...o}=e,l=b(E,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===e.orientation;return n.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),"hover"===l.type?(0,p.jsx)(y,{...o,ref:r,forceMount:t}):"scroll"===l.type?(0,p.jsx)(T,{...o,ref:r,forceMount:t}):"auto"===l.type?(0,p.jsx)(R,{...o,ref:r,forceMount:t}):"always"===l.type?(0,p.jsx)(L,{...o,ref:r}):null});C.displayName=E;var y=n.forwardRef((e,r)=>{let{forceMount:t,...o}=e,i=b(E,e.__scopeScrollArea),[a,s]=n.useState(!1);return n.useEffect(()=>{let e=i.scrollArea,r=0;if(e){let t=()=>{window.clearTimeout(r),s(!0)},n=()=>{r=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,p.jsx)(l.C,{present:t||a,children:(0,p.jsx)(R,{"data-state":a?"visible":"hidden",...o,ref:r})})}),T=n.forwardRef((e,r)=>{var t,o;let{forceMount:i,...a}=e,s=b(E,e.__scopeScrollArea),c="horizontal"===e.orientation,d=V(()=>h("SCROLL_END"),100),[u,h]=(t="hidden",o={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,r)=>{let t=o[e][r];return null!=t?t:e},t));return n.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>h("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,s.scrollHideDelay,h]),n.useEffect(()=>{let e=s.viewport,r=c?"scrollLeft":"scrollTop";if(e){let t=e[r],n=()=>{let n=e[r];t!==n&&(h("SCROLL"),d()),t=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,c,h,d]),(0,p.jsx)(l.C,{present:i||"hidden"!==u,children:(0,p.jsx)(L,{"data-state":"hidden"===u?"hidden":"visible",...a,ref:r,onPointerEnter:(0,f.m)(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:(0,f.m)(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),R=n.forwardRef((e,r)=>{let t=b(E,e.__scopeScrollArea),{forceMount:o,...i}=e,[a,s]=n.useState(!1),c="horizontal"===e.orientation,d=V(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{orientation:t="vertical",...o}=e,l=b(E,e.__scopeScrollArea),i=n.useRef(null),a=n.useRef(0),[s,c]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Y(s.viewport,s.content),u={...o,sizes:s,onSizesChange:c,hasThumb:!!(d>0&&d<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,r){return function(e,r,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=k(t),l=r||o/2,i=t.scrollbar.paddingStart+l,a=t.scrollbar.size-t.scrollbar.paddingEnd-(o-l),s=t.content-t.viewport;return M([i,a],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,a.current,s,r)}return"horizontal"===t?(0,p.jsx)(P,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=U(l.viewport.scrollLeft,s,l.dir);i.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===t?(0,p.jsx)(_,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=U(l.viewport.scrollTop,s);i.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null}),P=n.forwardRef((e,r)=>{let{sizes:t,onSizesChange:o,...l}=e,i=b(E,e.__scopeScrollArea),[s,c]=n.useState(),d=n.useRef(null),u=(0,a.s)(r,d,i.onScrollbarXChange);return n.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(A,{"data-orientation":"horizontal",...l,ref:u,sizes:t,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":k(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.x),onDragScroll:r=>e.onDragScroll(r.x),onWheelScroll:(r,t)=>{if(i.viewport){let n=i.viewport.scrollLeft+r.deltaX;e.onWheelScroll(n),function(e,r){return e>0&&e{d.current&&i.viewport&&s&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:X(s.paddingLeft),paddingEnd:X(s.paddingRight)}})}})}),_=n.forwardRef((e,r)=>{let{sizes:t,onSizesChange:o,...l}=e,i=b(E,e.__scopeScrollArea),[s,c]=n.useState(),d=n.useRef(null),u=(0,a.s)(r,d,i.onScrollbarYChange);return n.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(A,{"data-orientation":"vertical",...l,ref:u,sizes:t,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":k(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.y),onDragScroll:r=>e.onDragScroll(r.y),onWheelScroll:(r,t)=>{if(i.viewport){let n=i.viewport.scrollTop+r.deltaY;e.onWheelScroll(n),function(e,r){return e>0&&e{d.current&&i.viewport&&s&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:X(s.paddingTop),paddingEnd:X(s.paddingBottom)}})}})}),[j,D]=v(E),A=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,sizes:l,hasThumb:i,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:u,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:w,onResize:g,...m}=e,S=b(E,t),[x,C]=n.useState(null),y=(0,a.s)(r,e=>C(e)),T=n.useRef(null),R=n.useRef(""),L=S.viewport,P=l.content-l.viewport,_=(0,s.c)(w),D=(0,s.c)(h),A=V(g,10);function N(e){T.current&&v({x:e.clientX-T.current.left,y:e.clientY-T.current.top})}return n.useEffect(()=>{let e=e=>{let r=e.target;(null==x?void 0:x.contains(r))&&_(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[L,x,P,_]),n.useEffect(D,[l,D]),B(x,A),B(S.content,A),(0,p.jsx)(j,{scope:t,scrollbar:x,hasThumb:i,onThumbChange:(0,s.c)(c),onThumbPointerUp:(0,s.c)(d),onThumbPositionChange:D,onThumbPointerDown:(0,s.c)(u),children:(0,p.jsx)(o.sG.div,{...m,ref:y,style:{position:"absolute",...m.style},onPointerDown:(0,f.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),T.current=x.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),N(e))}),onPointerMove:(0,f.m)(e.onPointerMove,N),onPointerUp:(0,f.m)(e.onPointerUp,e=>{let r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=R.current,S.viewport&&(S.viewport.style.scrollBehavior=""),T.current=null})})})}),N="ScrollAreaThumb",H=n.forwardRef((e,r)=>{let{forceMount:t,...n}=e,o=D(N,e.__scopeScrollArea);return(0,p.jsx)(l.C,{present:t||o.hasThumb,children:(0,p.jsx)(z,{ref:r,...n})})}),z=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,style:l,...i}=e,s=b(N,t),c=D(N,t),{onThumbPositionChange:d}=c,u=(0,a.s)(r,e=>c.onThumbChange(e)),h=n.useRef(),v=V(()=>{h.current&&(h.current(),h.current=void 0)},100);return n.useEffect(()=>{let e=s.viewport;if(e){let r=()=>{if(v(),!h.current){let r=F(e,d);h.current=r,d()}};return d(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,v,d]),(0,p.jsx)(o.sG.div,{"data-state":c.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,f.m)(e.onPointerDownCapture,e=>{let r=e.target.getBoundingClientRect(),t=e.clientX-r.left,n=e.clientY-r.top;c.onThumbPointerDown({x:t,y:n})}),onPointerUp:(0,f.m)(e.onPointerUp,c.onThumbPointerUp)})});H.displayName=N;var W="ScrollAreaCorner",O=n.forwardRef((e,r)=>{let t=b(W,e.__scopeScrollArea),n=!!(t.scrollbarX&&t.scrollbarY);return"scroll"!==t.type&&n?(0,p.jsx)(I,{...e,ref:r}):null});O.displayName=W;var I=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,...l}=e,i=b(W,t),[a,s]=n.useState(0),[c,d]=n.useState(0),u=!!(a&&c);return B(i.scrollbarX,()=>{var e;let r=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(r),d(r)}),B(i.scrollbarY,()=>{var e;let r=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(r),s(r)}),u?(0,p.jsx)(o.sG.div,{...l,ref:r,style:{width:a,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function X(e){return e?parseInt(e,10):0}function Y(e,r){let t=e/r;return isNaN(t)?0:t}function k(e){let r=Y(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-t)*r,18)}function U(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=k(r),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-o,i=r.content-r.viewport,a=(0,u.q)(e,"ltr"===t?[0,i]:[-1*i,0]);return M([0,i],[0,l-n])(a)}function M(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(t-e[0])}}var F=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},t={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,a=t.top!==l.top;(i||a)&&r(),t=l,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function V(e,r){let t=(0,s.c)(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(t,r)},[t,r])}function B(e,r){let t=(0,s.c)(r);(0,d.N)(()=>{let r=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(r),n.unobserve(e)}}},[e,t])}var G=m,q=x,K=O}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9679-e42f7aaecc29c6da.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9679-e42f7aaecc29c6da.js new file mode 100644 index 0000000..76ddb60 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9679-e42f7aaecc29c6da.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9679],{56703:(e,r,t)=>{t.d(r,{q:()=>n});function n(e,[r,t]){return Math.min(t,Math.max(r,e))}},76056:(e,r,t)=>{t.d(r,{jH:()=>l});var n=t(20107);t(20475);var o=n.createContext(void 0);function l(e){let r=n.useContext(o);return e||r||"ltr"}},89679:(e,r,t)=>{t.d(r,{LM:()=>q,OK:()=>K,VM:()=>C,bL:()=>G,lr:()=>H});var n=t(20107),o=t(34544),l=t(54245),i=t(45170),a=t(64236),s=t(46774),c=t(76056),d=t(54122),u=t(56703),f=t(94521),p=t(20475),h="ScrollArea",[v,w]=(0,i.A)(h),[g,b]=v(h),m=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,type:l="hover",dir:i,scrollHideDelay:s=600,...d}=e,[u,f]=n.useState(null),[h,v]=n.useState(null),[w,b]=n.useState(null),[m,S]=n.useState(null),[x,E]=n.useState(null),[C,y]=n.useState(0),[T,R]=n.useState(0),[L,P]=n.useState(!1),[_,j]=n.useState(!1),D=(0,a.s)(r,e=>f(e)),A=(0,c.jH)(i);return(0,p.jsx)(g,{scope:t,type:l,dir:A,scrollHideDelay:s,scrollArea:u,viewport:h,onViewportChange:v,content:w,onContentChange:b,scrollbarX:m,onScrollbarXChange:S,scrollbarXEnabled:L,onScrollbarXEnabledChange:P,scrollbarY:x,onScrollbarYChange:E,scrollbarYEnabled:_,onScrollbarYEnabledChange:j,onCornerWidthChange:y,onCornerHeightChange:R,children:(0,p.jsx)(o.sG.div,{dir:A,...d,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":T+"px",...e.style}})})});m.displayName=h;var S="ScrollAreaViewport",x=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,children:l,asChild:i,nonce:s,...c}=e,d=b(S,t),u=n.useRef(null),f=(0,a.s)(r,u,d.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n[data-radix-scroll-area-viewport] {\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n flex-grow: 1;\n}\n"},nonce:s}),(0,p.jsx)(o.sG.div,{"data-radix-scroll-area-viewport":"",...c,asChild:i,ref:f,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...e.style},children:function(e,r){let{asChild:t,children:o}=e;if(!t)return"function"==typeof r?r(o):r;let l=n.Children.only(o);return n.cloneElement(l,{children:"function"==typeof r?r(l.props.children):r})}({asChild:i,children:l},e=>(0,p.jsx)("div",{"data-radix-scroll-area-content":"",ref:d.onContentChange,style:{minWidth:d.scrollbarXEnabled?"fit-content":void 0},children:e}))})]})});x.displayName=S;var E="ScrollAreaScrollbar",C=n.forwardRef((e,r)=>{let{forceMount:t,...o}=e,l=b(E,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===e.orientation;return n.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),"hover"===l.type?(0,p.jsx)(y,{...o,ref:r,forceMount:t}):"scroll"===l.type?(0,p.jsx)(T,{...o,ref:r,forceMount:t}):"auto"===l.type?(0,p.jsx)(R,{...o,ref:r,forceMount:t}):"always"===l.type?(0,p.jsx)(L,{...o,ref:r}):null});C.displayName=E;var y=n.forwardRef((e,r)=>{let{forceMount:t,...o}=e,i=b(E,e.__scopeScrollArea),[a,s]=n.useState(!1);return n.useEffect(()=>{let e=i.scrollArea,r=0;if(e){let t=()=>{window.clearTimeout(r),s(!0)},n=()=>{r=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,p.jsx)(l.C,{present:t||a,children:(0,p.jsx)(R,{"data-state":a?"visible":"hidden",...o,ref:r})})}),T=n.forwardRef((e,r)=>{var t,o;let{forceMount:i,...a}=e,s=b(E,e.__scopeScrollArea),c="horizontal"===e.orientation,d=V(()=>h("SCROLL_END"),100),[u,h]=(t="hidden",o={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,r)=>{let t=o[e][r];return null!=t?t:e},t));return n.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>h("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,s.scrollHideDelay,h]),n.useEffect(()=>{let e=s.viewport,r=c?"scrollLeft":"scrollTop";if(e){let t=e[r],n=()=>{let n=e[r];t!==n&&(h("SCROLL"),d()),t=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,c,h,d]),(0,p.jsx)(l.C,{present:i||"hidden"!==u,children:(0,p.jsx)(L,{"data-state":"hidden"===u?"hidden":"visible",...a,ref:r,onPointerEnter:(0,f.m)(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:(0,f.m)(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),R=n.forwardRef((e,r)=>{let t=b(E,e.__scopeScrollArea),{forceMount:o,...i}=e,[a,s]=n.useState(!1),c="horizontal"===e.orientation,d=V(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{orientation:t="vertical",...o}=e,l=b(E,e.__scopeScrollArea),i=n.useRef(null),a=n.useRef(0),[s,c]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Y(s.viewport,s.content),u={...o,sizes:s,onSizesChange:c,hasThumb:!!(d>0&&d<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,r){return function(e,r,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=k(t),l=r||o/2,i=t.scrollbar.paddingStart+l,a=t.scrollbar.size-t.scrollbar.paddingEnd-(o-l),s=t.content-t.viewport;return M([i,a],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,a.current,s,r)}return"horizontal"===t?(0,p.jsx)(P,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=U(l.viewport.scrollLeft,s,l.dir);i.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===t?(0,p.jsx)(_,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=U(l.viewport.scrollTop,s);i.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null}),P=n.forwardRef((e,r)=>{let{sizes:t,onSizesChange:o,...l}=e,i=b(E,e.__scopeScrollArea),[s,c]=n.useState(),d=n.useRef(null),u=(0,a.s)(r,d,i.onScrollbarXChange);return n.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(A,{"data-orientation":"horizontal",...l,ref:u,sizes:t,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":k(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.x),onDragScroll:r=>e.onDragScroll(r.x),onWheelScroll:(r,t)=>{if(i.viewport){let n=i.viewport.scrollLeft+r.deltaX;e.onWheelScroll(n),function(e,r){return e>0&&e{d.current&&i.viewport&&s&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:X(s.paddingLeft),paddingEnd:X(s.paddingRight)}})}})}),_=n.forwardRef((e,r)=>{let{sizes:t,onSizesChange:o,...l}=e,i=b(E,e.__scopeScrollArea),[s,c]=n.useState(),d=n.useRef(null),u=(0,a.s)(r,d,i.onScrollbarYChange);return n.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(A,{"data-orientation":"vertical",...l,ref:u,sizes:t,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":k(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.y),onDragScroll:r=>e.onDragScroll(r.y),onWheelScroll:(r,t)=>{if(i.viewport){let n=i.viewport.scrollTop+r.deltaY;e.onWheelScroll(n),function(e,r){return e>0&&e{d.current&&i.viewport&&s&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:X(s.paddingTop),paddingEnd:X(s.paddingBottom)}})}})}),[j,D]=v(E),A=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,sizes:l,hasThumb:i,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:u,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:w,onResize:g,...m}=e,S=b(E,t),[x,C]=n.useState(null),y=(0,a.s)(r,e=>C(e)),T=n.useRef(null),R=n.useRef(""),L=S.viewport,P=l.content-l.viewport,_=(0,s.c)(w),D=(0,s.c)(h),A=V(g,10);function N(e){T.current&&v({x:e.clientX-T.current.left,y:e.clientY-T.current.top})}return n.useEffect(()=>{let e=e=>{let r=e.target;(null==x?void 0:x.contains(r))&&_(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[L,x,P,_]),n.useEffect(D,[l,D]),B(x,A),B(S.content,A),(0,p.jsx)(j,{scope:t,scrollbar:x,hasThumb:i,onThumbChange:(0,s.c)(c),onThumbPointerUp:(0,s.c)(d),onThumbPositionChange:D,onThumbPointerDown:(0,s.c)(u),children:(0,p.jsx)(o.sG.div,{...m,ref:y,style:{position:"absolute",...m.style},onPointerDown:(0,f.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),T.current=x.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),N(e))}),onPointerMove:(0,f.m)(e.onPointerMove,N),onPointerUp:(0,f.m)(e.onPointerUp,e=>{let r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=R.current,S.viewport&&(S.viewport.style.scrollBehavior=""),T.current=null})})})}),N="ScrollAreaThumb",H=n.forwardRef((e,r)=>{let{forceMount:t,...n}=e,o=D(N,e.__scopeScrollArea);return(0,p.jsx)(l.C,{present:t||o.hasThumb,children:(0,p.jsx)(z,{ref:r,...n})})}),z=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,style:l,...i}=e,s=b(N,t),c=D(N,t),{onThumbPositionChange:d}=c,u=(0,a.s)(r,e=>c.onThumbChange(e)),h=n.useRef(),v=V(()=>{h.current&&(h.current(),h.current=void 0)},100);return n.useEffect(()=>{let e=s.viewport;if(e){let r=()=>{if(v(),!h.current){let r=F(e,d);h.current=r,d()}};return d(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,v,d]),(0,p.jsx)(o.sG.div,{"data-state":c.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,f.m)(e.onPointerDownCapture,e=>{let r=e.target.getBoundingClientRect(),t=e.clientX-r.left,n=e.clientY-r.top;c.onThumbPointerDown({x:t,y:n})}),onPointerUp:(0,f.m)(e.onPointerUp,c.onThumbPointerUp)})});H.displayName=N;var W="ScrollAreaCorner",O=n.forwardRef((e,r)=>{let t=b(W,e.__scopeScrollArea),n=!!(t.scrollbarX&&t.scrollbarY);return"scroll"!==t.type&&n?(0,p.jsx)(I,{...e,ref:r}):null});O.displayName=W;var I=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,...l}=e,i=b(W,t),[a,s]=n.useState(0),[c,d]=n.useState(0),u=!!(a&&c);return B(i.scrollbarX,()=>{var e;let r=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(r),d(r)}),B(i.scrollbarY,()=>{var e;let r=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(r),s(r)}),u?(0,p.jsx)(o.sG.div,{...l,ref:r,style:{width:a,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function X(e){return e?parseInt(e,10):0}function Y(e,r){let t=e/r;return isNaN(t)?0:t}function k(e){let r=Y(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-t)*r,18)}function U(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=k(r),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-o,i=r.content-r.viewport,a=(0,u.q)(e,"ltr"===t?[0,i]:[-1*i,0]);return M([0,i],[0,l-n])(a)}function M(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(t-e[0])}}var F=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},t={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,a=t.top!==l.top;(i||a)&&r(),t=l,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function V(e,r){let t=(0,s.c)(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(t,r)},[t,r])}function B(e,r){let t=(0,s.c)(r);(0,d.N)(()=>{let r=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(r),n.unobserve(e)}}},[e,t])}var G=m,q=x,K=O}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9710-a27eac95e49499fd.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9710-a27eac95e49499fd.js deleted file mode 100644 index 61b4288..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9710-a27eac95e49499fd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9710],{17028:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(12115),o=n(88068),i=n(46611),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[o,l]=r.useState(),u=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(u.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=u.current,n=s.current;if(n!==e){let r=c.current,o=a(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=e}},[e,p]),(0,i.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=a(u.current).includes(e.animationName);if(e.target===o&&r&&(p("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=a(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),s=(0,o.s)(l.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||l.isPresent?r.cloneElement(u,{ref:s}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},19710:(e,t,n)=>{n.d(t,{Kq:()=>S,UC:()=>q,bL:()=>W,l9:()=>H});var r=n(12115),o=n(93610),i=n(88068),l=n(18166),a=n(59674),u=n(67668),s=n(19895),c=(n(17323),n(17028)),d=n(23360),p=n(12317),f=n(1488),m=n(63543),v=n(95155),[g,y]=(0,l.A)("Tooltip",[s.Bk]),h=(0,s.Bk)(),x="TooltipProvider",w="tooltip.open",[b,T]=g(x),C=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,a=r.useRef(!0),u=r.useRef(!1),s=r.useRef(0);return r.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(b,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(s.current),a.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:i,children:l})};C.displayName=x;var E="Tooltip",[N,R]=g(E),M=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,d=T(E,e.__scopeTooltip),p=h(t),[m,g]=r.useState(null),y=(0,u.B)(),x=r.useRef(0),b=null!=a?a:d.disableHoverableContent,C=null!=c?c:d.delayDuration,R=r.useRef(!1),[M=!1,k]=(0,f.i)({prop:o,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==l||l(e)}}),O=r.useMemo(()=>M?R.current?"delayed-open":"instant-open":"closed",[M]),L=r.useCallback(()=>{window.clearTimeout(x.current),x.current=0,R.current=!1,k(!0)},[k]),_=r.useCallback(()=>{window.clearTimeout(x.current),x.current=0,k(!1)},[k]),P=r.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{R.current=!0,k(!0),x.current=0},C)},[C,k]);return r.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),(0,v.jsx)(s.bL,{...p,children:(0,v.jsx)(N,{scope:t,contentId:y,open:M,stateAttribute:O,trigger:m,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?P():L()},[d.isOpenDelayedRef,P,L]),onTriggerLeave:r.useCallback(()=>{b?_():(window.clearTimeout(x.current),x.current=0)},[_,b]),onOpen:L,onClose:_,disableHoverableContent:b,children:n})})};M.displayName=E;var k="TooltipTrigger",O=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...l}=e,a=R(k,n),u=T(k,n),c=h(n),p=r.useRef(null),f=(0,i.s)(t,p,a.onTriggerChange),m=r.useRef(!1),g=r.useRef(!1),y=r.useCallback(()=>m.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,v.jsx)(s.Mz,{asChild:!0,...c,children:(0,v.jsx)(d.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:f,onPointerMove:(0,o.m)(e.onPointerMove,e=>{"touch"===e.pointerType||g.current||u.isPointerInTransitRef.current||(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:(0,o.m)(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:(0,o.m)(e.onPointerDown,()=>{a.open&&a.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,o.m)(e.onFocus,()=>{m.current||a.onOpen()}),onBlur:(0,o.m)(e.onBlur,a.onClose),onClick:(0,o.m)(e.onClick,a.onClose)})})});O.displayName=k;var[L,_]=g("TooltipPortal",{forceMount:void 0}),P="TooltipContent",j=r.forwardRef((e,t)=>{let n=_(P,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=R(P,e.__scopeTooltip);return(0,v.jsx)(c.C,{present:r||l.open,children:l.disableHoverableContent?(0,v.jsx)(B,{side:o,...i,ref:t}):(0,v.jsx)(I,{side:o,...i,ref:t})})}),I=r.forwardRef((e,t)=>{let n=R(P,e.__scopeTooltip),o=T(P,e.__scopeTooltip),l=r.useRef(null),a=(0,i.s)(t,l),[u,s]=r.useState(null),{trigger:c,onClose:d}=n,p=l.current,{onPointerInTransitChange:f}=o,m=r.useCallback(()=>{s(null),f(!1)},[f]),g=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&p){let e=e=>g(e,p),t=e=>g(e,c);return c.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[c,p,g,m]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=s>r&&n<(u-l)*(r-a)/(s-a)+l&&(o=!o)}return o}(n,u);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,p,u,d,m]),(0,v.jsx)(B,{...e,ref:a})}),[D,A]=g(E,{isInside:!1}),U=(0,p.Dc)("TooltipContent"),B=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...c}=e,d=R(P,n),p=h(n),{onClose:f}=d;return r.useEffect(()=>(document.addEventListener(w,f),()=>document.removeEventListener(w,f)),[f]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,f]),(0,v.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,v.jsxs)(s.UC,{"data-state":d.stateAttribute,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,v.jsx)(U,{children:o}),(0,v.jsx)(D,{scope:n,isInside:!0,children:(0,v.jsx)(m.b,{id:d.contentId,role:"tooltip",children:i||o})})]})})});j.displayName=P;var F="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=h(n);return A(F,n).isInside?null:(0,v.jsx)(s.i3,{...o,...r,ref:t})}).displayName=F;var S=C,W=M,H=O,q=j}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9824-36f7c2c056010bce.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9824-36f7c2c056010bce.js new file mode 100644 index 0000000..bb27a0d --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9824-36f7c2c056010bce.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9824],{79824:(e,t,a)=>{a.r(t),a.d(t,{default:()=>y});var r=a(20475),s=a(20107),i=a(72167),n=a(35601),l=a(85014),o=a(42541),d=a(18861),c=a(49153),u=a(64219),m=a(59166),h=a(39997);let p=(0,h.A)("ShieldX",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]),f=(0,h.A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var x=a(12607);let g=(0,h.A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),v=(0,h.A)("ScanEye",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),b=(0,h.A)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);var j=a(32857);let y=()=>{let{toast:e}=(0,j.dj)(),[t,a]=(0,s.useState)({pingTarget:"8.8.8.8",pingInterval:60,pingFailures:3,maxRetries:5,connectionRefresh:!1,autoSimFailover:!1,simFailoverSchedule:30}),[h,y]=(0,s.useState)("loading"),[w,N]=(0,s.useState)(!1),[k,S]=(0,s.useState)(null),[R,F]=(0,s.useState)(null),[C,T]=(0,s.useState)(0),E=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh");if(!e.ok)throw Error("Network response was not ok");let t=await e.json();if("active"===t.status){if(t.config){let e={pingTarget:t.config.pingTarget||"8.8.8.8",pingInterval:t.config.pingInterval||60,pingFailures:t.config.pingFailures||3,maxRetries:t.config.maxRetries||5,connectionRefresh:!!t.config.connectionRefresh,autoSimFailover:!!t.config.autoSimFailover,simFailoverSchedule:t.config.simFailoverSchedule||30};a(e),void 0!==t.config.currentRetries?(T(t.config.currentRetries),t.config.currentRetries>=e.maxRetries?y("maxRetries"):y("active")):y("active"),F(t.lastActivity||null)}else y("active")}else"inactive"===t.status?y("inactive"):(y("error"),S(t.message||"Unknown error occurred"))}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:"Failed to fetch QuecWatch configuration",variant:"destructive"})}};(0,s.useEffect)(()=>{E()},[]),(0,s.useEffect)(()=>{if("active"===h||"maxRetries"===h){let e=setInterval(E,5e3);return()=>clearInterval(e)}},[h]);let A=async()=>{N(!0);try{let t=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/reset-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let a=await t.json();if("success"===a.status)e({title:"QuecWatch Reset",description:"Counter reset and service restarted successfully"}),y("active"),T(0),setTimeout(E,1e3);else throw Error(a.message||"Failed to reset retry counter")}catch(t){e({title:"Error",description:t instanceof Error?t.message:"Failed to reset retry counter",variant:"destructive"})}finally{N(!1)}},I=async()=>{N(!0),S(null);try{let a=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/enable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pingTarget:t.pingTarget,pingInterval:t.pingInterval,pingFailures:t.pingFailures,maxRetries:t.maxRetries,connectionRefresh:t.connectionRefresh,autoSimFailover:t.autoSimFailover,simFailoverSchedule:t.simFailoverSchedule})});if(!a.ok)throw Error("Network response was not ok");let r=await a.json();if("success"===r.status)y("active"),e({title:"QuecWatch Enabled",description:"QuecWatch enabled successfully"}),await E();else throw Error(r.message||"Failed to enable QuecWatch")}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:t instanceof Error?t.message:"Failed to enable QuecWatch",variant:"destructive"})}finally{N(!1)}},M=async()=>{N(!0),S(null);try{let t=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/disable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let a=await t.json();if("success"===a.status)y("inactive"),e({title:"QuecWatch Disabled",description:"QuecWatch disabled successfully",variant:"default"});else throw Error(a.message||"Failed to disable QuecWatch")}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:t instanceof Error?t.message:"Failed to disable QuecWatch",variant:"destructive"})}finally{N(!1)}};return(0,r.jsxs)(i.Zp,{children:[(0,r.jsxs)(i.aR,{children:[(0,r.jsx)(i.ZB,{children:"QuecWatch"}),(0,r.jsx)(i.BT,{children:"An intelligent watchdog service for Quectel-AP modems that ensures network reliability through automated monitoring, connection management, and SIM failover capabilities."})]}),(0,r.jsx)(i.Wu,{children:(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,r.jsx)(c.J,{children:"QuecWatch Status"}),(0,r.jsx)("div",{className:"flex items-center space-x-1",children:"loading"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"animate-spin text-primary size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Loading..."})]}):"inactive"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{className:"text-rose-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Inactive"})]}):"active"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f,{className:"text-green-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Active"})]}):"maxRetries"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{className:"text-yellow-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Maximum Retries Exhausted"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{className:"text-amber-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Error"})]})})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,r.jsx)(c.J,{children:"Remaining Retries"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[("active"===h||"maxRetries"===h)&&(0,r.jsx)(l.TooltipProvider,{children:(0,r.jsxs)(l.m_,{children:[(0,r.jsx)(l.k$,{children:(0,r.jsx)(o.$,{variant:"outline",size:"icon",className:"h-6 w-6",onClick:A,disabled:w,children:(0,r.jsx)(g,{className:"h-4 w-4"})})}),(0,r.jsx)(l.ZI,{children:(0,r.jsx)("p",{children:"Reset the retry counter"})})]})}),(0,r.jsxs)("p",{className:"text-muted-foreground text-sm",children:[C," / ",t.maxRetries]})]})]})]}),(0,r.jsxs)("div",{className:"grid grid-flow-row lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"ping",children:"Ping Target"}),(0,r.jsx)(u.p,{id:"ping",placeholder:"8.8.8.8",value:t.pingTarget,disabled:"active"===h||"maxRetries"===h,onChange:e=>a(t=>({...t,pingTarget:e.target.value}))})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"ping-interval",children:"Ping Interval"}),(0,r.jsxs)(n.l6,{value:t.pingInterval.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,pingInterval:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"ping-interval",children:(0,r.jsx)(n.yv,{placeholder:"Select Ping Interval"})}),(0,r.jsx)(n.gC,{children:[5,10,15,30,60,120,300,600,1800,3600].map(e=>(0,r.jsx)(n.eb,{value:e.toString(),children:e>=3600?"".concat(e/3600," hour").concat(e>3600?"s":""):e>=60?"".concat(e/60," minute").concat(e>=120?"s":""):"".concat(e," second").concat(1!==e?"s":"")},e))})]})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"ping-failure",children:"Ping Failures"}),(0,r.jsxs)(n.l6,{value:t.pingFailures.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,pingFailures:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"ping-failure",children:(0,r.jsx)(n.yv,{placeholder:"Select Ping Failures"})}),(0,r.jsx)(n.gC,{children:[1,3,5,10].map(e=>(0,r.jsxs)(n.eb,{value:e.toString(),children:[e," failure",1!==e?"s":""]},e))})]})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"max-retries",children:"Max Retries"}),(0,r.jsxs)(n.l6,{value:t.maxRetries.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,maxRetries:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"max-retries",children:(0,r.jsx)(n.yv,{placeholder:"Select Max Retries"})}),(0,r.jsx)(n.gC,{children:[1,3,5,10,15,20].map(e=>(0,r.jsx)(n.eb,{value:e.toString(),children:e},e))})]})]})]}),(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[(0,r.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,r.jsx)(c.J,{className:"text-base",children:"Connection Refresh"}),(0,r.jsx)(c.J,{className:"text-sm font-normal text-muted-foreground",children:"Toggle the connection refresh for the modem to first attempt reconnecting to the network before restarting."})]}),(0,r.jsx)(d.d,{checked:t.connectionRefresh,disabled:"active"===h||"maxRetries"===h,onCheckedChange:e=>a(t=>({...t,connectionRefresh:e}))})]}),(0,r.jsxs)("div",{className:" rounded-lg border p-4 grid gap-y-6",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,r.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,r.jsx)(c.J,{className:"text-base",children:"Auto SIM Failover"}),(0,r.jsx)(c.J,{className:"text-sm font-normal text-muted-foreground",children:"Auto SIM Failover will automatically switch to the next available SIM card when the current SIM card fails to connect to the network."})]}),(0,r.jsx)(d.d,{checked:t.autoSimFailover,disabled:"active"===h||"maxRetries"===h,onCheckedChange:e=>a(t=>({...t,autoSimFailover:e}))})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"sim-failover",children:"Schedule SIM Checking"}),(0,r.jsxs)(n.l6,{value:t.simFailoverSchedule.toString(),disabled:"active"===h||"maxRetries"===h||!t.autoSimFailover,onValueChange:e=>a(t=>({...t,simFailoverSchedule:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"sim-failover",className:"max-w-xs",children:(0,r.jsx)(n.yv,{placeholder:"Select SIM Checking Interval"})}),(0,r.jsxs)(n.gC,{children:[(0,r.jsx)(n.eb,{value:"0",children:"Disabled"}),(0,r.jsx)(n.eb,{value:"1",children:"1 Minute"}),(0,r.jsx)(n.eb,{value:"5",children:"5 Minutes"}),(0,r.jsx)(n.eb,{value:"30",children:"30 Minutes"}),(0,r.jsx)(n.eb,{value:"60",children:"1 Hour"}),(0,r.jsx)(n.eb,{value:"360",children:"6 Hours"}),(0,r.jsx)(n.eb,{value:"720",children:"12 Hours"}),(0,r.jsx)(n.eb,{value:"1440",children:"24 Hours"})]})]})]})]}),(0,r.jsxs)("div",{className:"rounded-lg border p-4",children:[(0,r.jsx)(c.J,{className:"text-base",children:"Last Activity"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:R||"No recent activity"})]}),k&&(0,r.jsx)("div",{className:"text-red-500 text-sm",children:k})]})}),(0,r.jsxs)(i.wL,{className:"flex gap-4 border-t py-4",children:[("inactive"===h||"error"===h)&&(0,r.jsx)(o.$,{onClick:I,disabled:w||!t.pingTarget,children:w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"h-4 w-4 animate-spin"}),"Enabling..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{className:"w-4 h-4"}),"Enable QuecWatch"]})}),("active"===h||"maxRetries"===h)&&(0,r.jsx)(o.$,{variant:"destructive",onClick:M,disabled:w,children:w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"h-4 w-4 animate-spin"}),"Disabling..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{className:"w-4 h-4"}),"Disable QuecWatch"]})})]})]})}},42541:(e,t,a)=>{a.d(t,{$:()=>d,r:()=>o});var r=a(20475),s=a(20107),i=a(61837),n=a(29395),l=a(22250);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:a,variant:s,size:n,asChild:d=!1,...c}=e,u=d?i.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:s,size:n,className:a})),ref:t,...c})});d.displayName="Button"},72167:(e,t,a)=>{a.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>n,aR:()=>l,wL:()=>u});var r=a(20475),s=a(20107),i=a(22250);let n=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",a),...s})});l.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",a),...s})});o.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",a),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",a),...s})});u.displayName="CardFooter"},64219:(e,t,a)=>{a.d(t,{p:()=>n});var r=a(20475),s=a(20107),i=a(22250);let n=s.forwardRef((e,t)=>{let{className:a,type:s,...n}=e;return(0,r.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...n})});n.displayName="Input"},49153:(e,t,a)=>{a.d(t,{J:()=>d});var r=a(20475),s=a(20107),i=a(21840),n=a(29395),l=a(22250);let o=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.b,{ref:t,className:(0,l.cn)(o(),a),...s})});d.displayName=i.b.displayName},35601:(e,t,a)=>{a.d(t,{TR:()=>f,bq:()=>u,eb:()=>x,gC:()=>p,l6:()=>o,s3:()=>d,yv:()=>c});var r=a(20475),s=a(20107),i=a(7197),n=a(95257),l=a(22250);let o=n.bL,d=n.YJ,c=n.WT,u=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,r.jsxs)(n.l9,{ref:t,className:(0,l.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...o,children:[s,(0,r.jsx)(n.In,{asChild:!0,children:(0,r.jsx)(i.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.PP,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,r.jsx)(i.Mtm,{})})});m.displayName=n.PP.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.wn,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,r.jsx)(i.D3D,{})})});h.displayName=n.wn.displayName;let p=s.forwardRef((e,t)=>{let{className:a,children:s,position:i="popper",...o}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsxs)(n.UC,{ref:t,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:i,...o,children:[(0,r.jsx)(m,{}),(0,r.jsx)(n.LM,{className:(0,l.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,r.jsx)(h,{})]})})});p.displayName=n.UC.displayName;let f=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.JU,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",a),...s})});f.displayName=n.JU.displayName;let x=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,r.jsxs)(n.q7,{ref:t,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.VF,{children:(0,r.jsx)(i.Srz,{className:"h-4 w-4"})})}),(0,r.jsx)(n.p4,{children:s})]})});x.displayName=n.q7.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.wv,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=n.wv.displayName},18861:(e,t,a)=>{a.d(t,{d:()=>l});var r=a(20475),s=a(20107),i=a(80982),n=a(22250);let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.bL,{className:(0,n.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...s,ref:t,children:(0,r.jsx)(i.zi,{className:(0,n.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});l.displayName=i.bL.displayName},85014:(e,t,a)=>{a.d(t,{TooltipProvider:()=>l,ZI:()=>c,k$:()=>d,m_:()=>o});var r=a(20475),s=a(20107),i=a(43048),n=a(22250);let l=i.Kq,o=i.bL,d=i.l9,c=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...l}=e;return(0,r.jsx)(i.UC,{ref:t,sideOffset:s,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...l})});c.displayName=i.UC.displayName},32857:(e,t,a)=>{a.d(t,{dj:()=>m,oR:()=>u});var r=a(20107);let s=0,i=new Map,n=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?n(a):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||r()}}}),{id:a,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=r.useState(d);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,a)=>{a.d(t,{cn:()=>i});var r=a(64901),s=a(868);function i(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{A:()=>r});let r=(0,a(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},12607:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},80982:(e,t,a)=>{a.d(t,{bL:()=>w,zi:()=>N});var r=a(20107),s=a(94521),i=a(64236),n=a(45170),l=a(13061),o=a(65163),d=a(63620),c=a(34544),u=a(20475),m="Switch",[h,p]=(0,n.A)(m),[f,x]=h(m),g=r.forwardRef((e,t)=>{let{__scopeSwitch:a,name:n,checked:o,defaultChecked:d,required:m,disabled:h,value:p="on",onCheckedChange:x,form:g,...v}=e,[b,w]=r.useState(null),N=(0,i.s)(t,e=>w(e)),k=r.useRef(!1),S=!b||g||!!b.closest("form"),[R=!1,F]=(0,l.i)({prop:o,defaultProp:d,onChange:x});return(0,u.jsxs)(f,{scope:a,checked:R,disabled:h,children:[(0,u.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":R,"aria-required":m,"data-state":y(R),"data-disabled":h?"":void 0,disabled:h,value:p,...v,ref:N,onClick:(0,s.m)(e.onClick,e=>{F(e=>!e),S&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),S&&(0,u.jsx)(j,{control:b,bubbles:!k.current,name:n,value:p,checked:R,required:m,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});g.displayName=m;var v="SwitchThumb",b=r.forwardRef((e,t)=>{let{__scopeSwitch:a,...r}=e,s=x(v,a);return(0,u.jsx)(c.sG.span,{"data-state":y(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t})});b.displayName=v;var j=e=>{let{control:t,checked:a,bubbles:s=!0,...i}=e,n=r.useRef(null),l=(0,o.Z)(a),c=(0,d.X)(t);return r.useEffect(()=>{let e=n.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==a&&t){let r=new Event("click",{bubbles:s});t.call(e,a),e.dispatchEvent(r)}},[l,a,s]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...i,tabIndex:-1,ref:n,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return e?"checked":"unchecked"}var w=g,N=b}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9824-6ab65b6c93ad02a4.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9824-6ab65b6c93ad02a4.js new file mode 100644 index 0000000..bb27a0d --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9824-6ab65b6c93ad02a4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9824],{79824:(e,t,a)=>{a.r(t),a.d(t,{default:()=>y});var r=a(20475),s=a(20107),i=a(72167),n=a(35601),l=a(85014),o=a(42541),d=a(18861),c=a(49153),u=a(64219),m=a(59166),h=a(39997);let p=(0,h.A)("ShieldX",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]),f=(0,h.A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var x=a(12607);let g=(0,h.A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),v=(0,h.A)("ScanEye",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),b=(0,h.A)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);var j=a(32857);let y=()=>{let{toast:e}=(0,j.dj)(),[t,a]=(0,s.useState)({pingTarget:"8.8.8.8",pingInterval:60,pingFailures:3,maxRetries:5,connectionRefresh:!1,autoSimFailover:!1,simFailoverSchedule:30}),[h,y]=(0,s.useState)("loading"),[w,N]=(0,s.useState)(!1),[k,S]=(0,s.useState)(null),[R,F]=(0,s.useState)(null),[C,T]=(0,s.useState)(0),E=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh");if(!e.ok)throw Error("Network response was not ok");let t=await e.json();if("active"===t.status){if(t.config){let e={pingTarget:t.config.pingTarget||"8.8.8.8",pingInterval:t.config.pingInterval||60,pingFailures:t.config.pingFailures||3,maxRetries:t.config.maxRetries||5,connectionRefresh:!!t.config.connectionRefresh,autoSimFailover:!!t.config.autoSimFailover,simFailoverSchedule:t.config.simFailoverSchedule||30};a(e),void 0!==t.config.currentRetries?(T(t.config.currentRetries),t.config.currentRetries>=e.maxRetries?y("maxRetries"):y("active")):y("active"),F(t.lastActivity||null)}else y("active")}else"inactive"===t.status?y("inactive"):(y("error"),S(t.message||"Unknown error occurred"))}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:"Failed to fetch QuecWatch configuration",variant:"destructive"})}};(0,s.useEffect)(()=>{E()},[]),(0,s.useEffect)(()=>{if("active"===h||"maxRetries"===h){let e=setInterval(E,5e3);return()=>clearInterval(e)}},[h]);let A=async()=>{N(!0);try{let t=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/reset-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let a=await t.json();if("success"===a.status)e({title:"QuecWatch Reset",description:"Counter reset and service restarted successfully"}),y("active"),T(0),setTimeout(E,1e3);else throw Error(a.message||"Failed to reset retry counter")}catch(t){e({title:"Error",description:t instanceof Error?t.message:"Failed to reset retry counter",variant:"destructive"})}finally{N(!1)}},I=async()=>{N(!0),S(null);try{let a=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/enable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pingTarget:t.pingTarget,pingInterval:t.pingInterval,pingFailures:t.pingFailures,maxRetries:t.maxRetries,connectionRefresh:t.connectionRefresh,autoSimFailover:t.autoSimFailover,simFailoverSchedule:t.simFailoverSchedule})});if(!a.ok)throw Error("Network response was not ok");let r=await a.json();if("success"===r.status)y("active"),e({title:"QuecWatch Enabled",description:"QuecWatch enabled successfully"}),await E();else throw Error(r.message||"Failed to enable QuecWatch")}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:t instanceof Error?t.message:"Failed to enable QuecWatch",variant:"destructive"})}finally{N(!1)}},M=async()=>{N(!0),S(null);try{let t=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/disable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let a=await t.json();if("success"===a.status)y("inactive"),e({title:"QuecWatch Disabled",description:"QuecWatch disabled successfully",variant:"default"});else throw Error(a.message||"Failed to disable QuecWatch")}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:t instanceof Error?t.message:"Failed to disable QuecWatch",variant:"destructive"})}finally{N(!1)}};return(0,r.jsxs)(i.Zp,{children:[(0,r.jsxs)(i.aR,{children:[(0,r.jsx)(i.ZB,{children:"QuecWatch"}),(0,r.jsx)(i.BT,{children:"An intelligent watchdog service for Quectel-AP modems that ensures network reliability through automated monitoring, connection management, and SIM failover capabilities."})]}),(0,r.jsx)(i.Wu,{children:(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,r.jsx)(c.J,{children:"QuecWatch Status"}),(0,r.jsx)("div",{className:"flex items-center space-x-1",children:"loading"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"animate-spin text-primary size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Loading..."})]}):"inactive"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{className:"text-rose-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Inactive"})]}):"active"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f,{className:"text-green-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Active"})]}):"maxRetries"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{className:"text-yellow-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Maximum Retries Exhausted"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{className:"text-amber-500 size-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"Error"})]})})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,r.jsx)(c.J,{children:"Remaining Retries"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[("active"===h||"maxRetries"===h)&&(0,r.jsx)(l.TooltipProvider,{children:(0,r.jsxs)(l.m_,{children:[(0,r.jsx)(l.k$,{children:(0,r.jsx)(o.$,{variant:"outline",size:"icon",className:"h-6 w-6",onClick:A,disabled:w,children:(0,r.jsx)(g,{className:"h-4 w-4"})})}),(0,r.jsx)(l.ZI,{children:(0,r.jsx)("p",{children:"Reset the retry counter"})})]})}),(0,r.jsxs)("p",{className:"text-muted-foreground text-sm",children:[C," / ",t.maxRetries]})]})]})]}),(0,r.jsxs)("div",{className:"grid grid-flow-row lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"ping",children:"Ping Target"}),(0,r.jsx)(u.p,{id:"ping",placeholder:"8.8.8.8",value:t.pingTarget,disabled:"active"===h||"maxRetries"===h,onChange:e=>a(t=>({...t,pingTarget:e.target.value}))})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"ping-interval",children:"Ping Interval"}),(0,r.jsxs)(n.l6,{value:t.pingInterval.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,pingInterval:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"ping-interval",children:(0,r.jsx)(n.yv,{placeholder:"Select Ping Interval"})}),(0,r.jsx)(n.gC,{children:[5,10,15,30,60,120,300,600,1800,3600].map(e=>(0,r.jsx)(n.eb,{value:e.toString(),children:e>=3600?"".concat(e/3600," hour").concat(e>3600?"s":""):e>=60?"".concat(e/60," minute").concat(e>=120?"s":""):"".concat(e," second").concat(1!==e?"s":"")},e))})]})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"ping-failure",children:"Ping Failures"}),(0,r.jsxs)(n.l6,{value:t.pingFailures.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,pingFailures:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"ping-failure",children:(0,r.jsx)(n.yv,{placeholder:"Select Ping Failures"})}),(0,r.jsx)(n.gC,{children:[1,3,5,10].map(e=>(0,r.jsxs)(n.eb,{value:e.toString(),children:[e," failure",1!==e?"s":""]},e))})]})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"max-retries",children:"Max Retries"}),(0,r.jsxs)(n.l6,{value:t.maxRetries.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>a(t=>({...t,maxRetries:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"max-retries",children:(0,r.jsx)(n.yv,{placeholder:"Select Max Retries"})}),(0,r.jsx)(n.gC,{children:[1,3,5,10,15,20].map(e=>(0,r.jsx)(n.eb,{value:e.toString(),children:e},e))})]})]})]}),(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[(0,r.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,r.jsx)(c.J,{className:"text-base",children:"Connection Refresh"}),(0,r.jsx)(c.J,{className:"text-sm font-normal text-muted-foreground",children:"Toggle the connection refresh for the modem to first attempt reconnecting to the network before restarting."})]}),(0,r.jsx)(d.d,{checked:t.connectionRefresh,disabled:"active"===h||"maxRetries"===h,onCheckedChange:e=>a(t=>({...t,connectionRefresh:e}))})]}),(0,r.jsxs)("div",{className:" rounded-lg border p-4 grid gap-y-6",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,r.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,r.jsx)(c.J,{className:"text-base",children:"Auto SIM Failover"}),(0,r.jsx)(c.J,{className:"text-sm font-normal text-muted-foreground",children:"Auto SIM Failover will automatically switch to the next available SIM card when the current SIM card fails to connect to the network."})]}),(0,r.jsx)(d.d,{checked:t.autoSimFailover,disabled:"active"===h||"maxRetries"===h,onCheckedChange:e=>a(t=>({...t,autoSimFailover:e}))})]}),(0,r.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,r.jsx)(c.J,{htmlFor:"sim-failover",children:"Schedule SIM Checking"}),(0,r.jsxs)(n.l6,{value:t.simFailoverSchedule.toString(),disabled:"active"===h||"maxRetries"===h||!t.autoSimFailover,onValueChange:e=>a(t=>({...t,simFailoverSchedule:parseInt(e)})),children:[(0,r.jsx)(n.bq,{id:"sim-failover",className:"max-w-xs",children:(0,r.jsx)(n.yv,{placeholder:"Select SIM Checking Interval"})}),(0,r.jsxs)(n.gC,{children:[(0,r.jsx)(n.eb,{value:"0",children:"Disabled"}),(0,r.jsx)(n.eb,{value:"1",children:"1 Minute"}),(0,r.jsx)(n.eb,{value:"5",children:"5 Minutes"}),(0,r.jsx)(n.eb,{value:"30",children:"30 Minutes"}),(0,r.jsx)(n.eb,{value:"60",children:"1 Hour"}),(0,r.jsx)(n.eb,{value:"360",children:"6 Hours"}),(0,r.jsx)(n.eb,{value:"720",children:"12 Hours"}),(0,r.jsx)(n.eb,{value:"1440",children:"24 Hours"})]})]})]})]}),(0,r.jsxs)("div",{className:"rounded-lg border p-4",children:[(0,r.jsx)(c.J,{className:"text-base",children:"Last Activity"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:R||"No recent activity"})]}),k&&(0,r.jsx)("div",{className:"text-red-500 text-sm",children:k})]})}),(0,r.jsxs)(i.wL,{className:"flex gap-4 border-t py-4",children:[("inactive"===h||"error"===h)&&(0,r.jsx)(o.$,{onClick:I,disabled:w||!t.pingTarget,children:w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"h-4 w-4 animate-spin"}),"Enabling..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{className:"w-4 h-4"}),"Enable QuecWatch"]})}),("active"===h||"maxRetries"===h)&&(0,r.jsx)(o.$,{variant:"destructive",onClick:M,disabled:w,children:w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{className:"h-4 w-4 animate-spin"}),"Disabling..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{className:"w-4 h-4"}),"Disable QuecWatch"]})})]})]})}},42541:(e,t,a)=>{a.d(t,{$:()=>d,r:()=>o});var r=a(20475),s=a(20107),i=a(61837),n=a(29395),l=a(22250);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:a,variant:s,size:n,asChild:d=!1,...c}=e,u=d?i.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:s,size:n,className:a})),ref:t,...c})});d.displayName="Button"},72167:(e,t,a)=>{a.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>n,aR:()=>l,wL:()=>u});var r=a(20475),s=a(20107),i=a(22250);let n=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",a),...s})});l.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",a),...s})});o.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",a),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",a),...s})});u.displayName="CardFooter"},64219:(e,t,a)=>{a.d(t,{p:()=>n});var r=a(20475),s=a(20107),i=a(22250);let n=s.forwardRef((e,t)=>{let{className:a,type:s,...n}=e;return(0,r.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...n})});n.displayName="Input"},49153:(e,t,a)=>{a.d(t,{J:()=>d});var r=a(20475),s=a(20107),i=a(21840),n=a(29395),l=a(22250);let o=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.b,{ref:t,className:(0,l.cn)(o(),a),...s})});d.displayName=i.b.displayName},35601:(e,t,a)=>{a.d(t,{TR:()=>f,bq:()=>u,eb:()=>x,gC:()=>p,l6:()=>o,s3:()=>d,yv:()=>c});var r=a(20475),s=a(20107),i=a(7197),n=a(95257),l=a(22250);let o=n.bL,d=n.YJ,c=n.WT,u=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,r.jsxs)(n.l9,{ref:t,className:(0,l.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...o,children:[s,(0,r.jsx)(n.In,{asChild:!0,children:(0,r.jsx)(i.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.PP,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,r.jsx)(i.Mtm,{})})});m.displayName=n.PP.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.wn,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,r.jsx)(i.D3D,{})})});h.displayName=n.wn.displayName;let p=s.forwardRef((e,t)=>{let{className:a,children:s,position:i="popper",...o}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsxs)(n.UC,{ref:t,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:i,...o,children:[(0,r.jsx)(m,{}),(0,r.jsx)(n.LM,{className:(0,l.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,r.jsx)(h,{})]})})});p.displayName=n.UC.displayName;let f=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.JU,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",a),...s})});f.displayName=n.JU.displayName;let x=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,r.jsxs)(n.q7,{ref:t,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.VF,{children:(0,r.jsx)(i.Srz,{className:"h-4 w-4"})})}),(0,r.jsx)(n.p4,{children:s})]})});x.displayName=n.q7.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.wv,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=n.wv.displayName},18861:(e,t,a)=>{a.d(t,{d:()=>l});var r=a(20475),s=a(20107),i=a(80982),n=a(22250);let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.bL,{className:(0,n.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...s,ref:t,children:(0,r.jsx)(i.zi,{className:(0,n.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});l.displayName=i.bL.displayName},85014:(e,t,a)=>{a.d(t,{TooltipProvider:()=>l,ZI:()=>c,k$:()=>d,m_:()=>o});var r=a(20475),s=a(20107),i=a(43048),n=a(22250);let l=i.Kq,o=i.bL,d=i.l9,c=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...l}=e;return(0,r.jsx)(i.UC,{ref:t,sideOffset:s,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...l})});c.displayName=i.UC.displayName},32857:(e,t,a)=>{a.d(t,{dj:()=>m,oR:()=>u});var r=a(20107);let s=0,i=new Map,n=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?n(a):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||r()}}}),{id:a,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=r.useState(d);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,a)=>{a.d(t,{cn:()=>i});var r=a(64901),s=a(868);function i(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{A:()=>r});let r=(0,a(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},12607:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},80982:(e,t,a)=>{a.d(t,{bL:()=>w,zi:()=>N});var r=a(20107),s=a(94521),i=a(64236),n=a(45170),l=a(13061),o=a(65163),d=a(63620),c=a(34544),u=a(20475),m="Switch",[h,p]=(0,n.A)(m),[f,x]=h(m),g=r.forwardRef((e,t)=>{let{__scopeSwitch:a,name:n,checked:o,defaultChecked:d,required:m,disabled:h,value:p="on",onCheckedChange:x,form:g,...v}=e,[b,w]=r.useState(null),N=(0,i.s)(t,e=>w(e)),k=r.useRef(!1),S=!b||g||!!b.closest("form"),[R=!1,F]=(0,l.i)({prop:o,defaultProp:d,onChange:x});return(0,u.jsxs)(f,{scope:a,checked:R,disabled:h,children:[(0,u.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":R,"aria-required":m,"data-state":y(R),"data-disabled":h?"":void 0,disabled:h,value:p,...v,ref:N,onClick:(0,s.m)(e.onClick,e=>{F(e=>!e),S&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),S&&(0,u.jsx)(j,{control:b,bubbles:!k.current,name:n,value:p,checked:R,required:m,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});g.displayName=m;var v="SwitchThumb",b=r.forwardRef((e,t)=>{let{__scopeSwitch:a,...r}=e,s=x(v,a);return(0,u.jsx)(c.sG.span,{"data-state":y(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t})});b.displayName=v;var j=e=>{let{control:t,checked:a,bubbles:s=!0,...i}=e,n=r.useRef(null),l=(0,o.Z)(a),c=(0,d.X)(t);return r.useEffect(()=>{let e=n.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==a&&t){let r=new Event("click",{bubbles:s});t.call(e,a),e.dispatchEvent(r)}},[l,a,s]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...i,tabIndex:-1,ref:n,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return e?"checked":"unchecked"}var w=g,N=b}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9895-60e84ac7e5963a2e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9895-60e84ac7e5963a2e.js deleted file mode 100644 index c84882e..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9895-60e84ac7e5963a2e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9895],{19895:(t,e,n)=>{n.d(e,{Mz:()=>tJ,i3:()=>tQ,UC:()=>tK,bL:()=>tU,Bk:()=>tD});var r=n(12115);let i=["top","right","bottom","left"],o=Math.min,l=Math.max,a=Math.round,f=Math.floor,s=t=>({x:t,y:t}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(t,e){return"function"==typeof t?t(e):t}function p(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function m(t){return"x"===t?"y":"x"}function g(t){return"y"===t?"height":"width"}function y(t){return["top","bottom"].includes(p(t))?"y":"x"}function w(t){return t.replace(/start|end/g,t=>c[t])}function v(t){return t.replace(/left|right|bottom|top/g,t=>u[t])}function x(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function b(t){let{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function A(t,e,n){let r,{reference:i,floating:o}=t,l=y(e),a=m(y(e)),f=g(a),s=p(e),u="y"===l,c=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,w=i[f]/2-o[f]/2;switch(s){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}switch(h(e)){case"start":r[a]-=w*(n&&u?-1:1);break;case"end":r[a]+=w*(n&&u?-1:1)}return r}let R=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(e)),s=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:c}=A(s,r,f),d=r,p={},h=0;for(let n=0;nt[e]>=0)}async function S(t,e){let{placement:n,platform:r,elements:i}=t,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=p(n),a=h(n),f="y"===y(n),s=["left","top"].includes(l)?-1:1,u=o&&f?-1:1,c=d(e,t),{mainAxis:m,crossAxis:g,alignmentAxis:w}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof w&&(g="end"===a?-1*w:w),f?{x:g*u,y:m*s}:{x:m*s,y:g*u}}function C(){return"undefined"!=typeof window}function O(t){return H(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function k(t){var e;return null==(e=(H(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function H(t){return!!C()&&(t instanceof Node||t instanceof P(t).Node)}function D(t){return!!C()&&(t instanceof Element||t instanceof P(t).Element)}function F(t){return!!C()&&(t instanceof HTMLElement||t instanceof P(t).HTMLElement)}function N(t){return!!C()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof P(t).ShadowRoot)}function j(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function M(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(t){return!1}})}function W(t){let e=z(),n=D(t)?V(t):t;return["transform","translate","scale","rotate","perspective"].some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(O(t))}function V(t){return P(t).getComputedStyle(t)}function _(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function X(t){if("html"===O(t))return t;let e=t.assignedSlot||t.parentNode||N(t)&&t.host||k(t);return N(e)?e.host:e}function I(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);let i=function t(e){let n=X(e);return B(n)?e.ownerDocument?e.ownerDocument.body:e.body:F(n)&&j(n)?n:t(n)}(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),l=P(i);if(o){let t=Y(l);return e.concat(l,l.visualViewport||[],j(i)?i:[],t&&n?I(t):[])}return e.concat(i,I(i,[],n))}function Y(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function G(t){let e=V(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=F(t),o=i?t.offsetWidth:n,l=i?t.offsetHeight:r,f=a(n)!==o||a(r)!==l;return f&&(n=o,r=l),{width:n,height:r,$:f}}function $(t){return D(t)?t:t.contextElement}function q(t){let e=$(t);if(!F(e))return s(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:o}=G(e),l=(o?a(n.width):n.width)/r,f=(o?a(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),f&&Number.isFinite(f)||(f=1),{x:l,y:f}}let U=s(0);function J(t){let e=P(t);return z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:U}function K(t,e,n,r){var i;void 0===e&&(e=!1),void 0===n&&(n=!1);let o=t.getBoundingClientRect(),l=$(t),a=s(1);e&&(r?D(r)&&(a=q(r)):a=q(t));let f=(void 0===(i=n)&&(i=!1),r&&(!i||r===P(l))&&i)?J(l):s(0),u=(o.left+f.x)/a.x,c=(o.top+f.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let t=P(l),e=r&&D(r)?P(r):r,n=t,i=Y(n);for(;i&&r&&e!==n;){let t=q(i),e=i.getBoundingClientRect(),r=V(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;u*=t.x,c*=t.y,d*=t.x,p*=t.y,u+=o,c+=l,i=Y(n=P(i))}}return b({width:d,height:p,x:u,y:c})}function Q(t,e){let n=_(t).scrollLeft;return e?e.left+n:K(k(t)).left+n}function Z(t,e,n){void 0===n&&(n=!1);let r=t.getBoundingClientRect();return{x:r.left+e.scrollLeft-(n?0:Q(t,r)),y:r.top+e.scrollTop}}function tt(t,e,n){let r;if("viewport"===e)r=function(t,e){let n=P(t),r=k(t),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let t=z();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:l,x:a,y:f}}(t,n);else if("document"===e)r=function(t){let e=k(t),n=_(t),r=t.ownerDocument.body,i=l(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=l(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+Q(t),f=-n.scrollTop;return"rtl"===V(r).direction&&(a+=l(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:f}}(k(t));else if(D(e))r=function(t,e){let n=K(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=F(t)?q(t):s(1),l=t.clientWidth*o.x;return{width:l,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{let n=J(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return b(r)}function te(t){return"static"===V(t).position}function tn(t,e){if(!F(t)||"fixed"===V(t).position)return null;if(e)return e(t);let n=t.offsetParent;return k(t)===n&&(n=n.ownerDocument.body),n}function tr(t,e){let n=P(t);if(M(t))return n;if(!F(t)){let e=X(t);for(;e&&!B(e);){if(D(e)&&!te(e))return e;e=X(e)}return n}let r=tn(t,e);for(;r&&["table","td","th"].includes(O(r))&&te(r);)r=tn(r,e);return r&&B(r)&&te(r)&&!W(r)?n:r||function(t){let e=X(t);for(;F(e)&&!B(e);){if(W(e))return e;if(M(e))break;e=X(e)}return null}(t)||n}let ti=async function(t){let e=this.getOffsetParent||tr,n=this.getDimensions,r=await n(t.floating);return{reference:function(t,e,n){let r=F(e),i=k(e),o="fixed"===n,l=K(t,!0,o,e),a={scrollLeft:0,scrollTop:0},f=s(0);if(r||!r&&!o){if(("body"!==O(e)||j(i))&&(a=_(e)),r){let t=K(e,!0,o,e);f.x=t.x+e.clientLeft,f.y=t.y+e.clientTop}else i&&(f.x=Q(i))}let u=!i||r||o?s(0):Z(i,a);return{x:l.left+a.scrollLeft-f.x-u.x,y:l.top+a.scrollTop-f.y-u.y,width:l.width,height:l.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},to={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t,o="fixed"===i,l=k(r),a=!!e&&M(e.floating);if(r===l||a&&o)return n;let f={scrollLeft:0,scrollTop:0},u=s(1),c=s(0),d=F(r);if((d||!d&&!o)&&(("body"!==O(r)||j(l))&&(f=_(r)),F(r))){let t=K(r);u=q(r),c.x=t.x+r.clientLeft,c.y=t.y+r.clientTop}let p=!l||d||o?s(0):Z(l,f,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-f.scrollTop*u.y+c.y+p.y}},getDocumentElement:k,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,a=[..."clippingAncestors"===n?M(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let r=I(t,[],!1).filter(t=>D(t)&&"body"!==O(t)),i=null,o="fixed"===V(t).position,l=o?X(t):t;for(;D(l)&&!B(l);){let e=V(l),n=W(l);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||j(l)&&!n&&function t(e,n){let r=X(e);return!(r===n||!D(r)||B(r))&&("fixed"===V(r).position||t(r,n))}(t,l))?r=r.filter(t=>t!==l):i=e,l=X(l)}return e.set(t,r),r}(e,this._c):[].concat(n),r],f=a[0],s=a.reduce((t,n)=>{let r=tt(e,n,i);return t.top=l(r.top,t.top),t.right=o(r.right,t.right),t.bottom=o(r.bottom,t.bottom),t.left=l(r.left,t.left),t},tt(e,f,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:tr,getElementRects:ti,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=G(t);return{width:e,height:n}},getScale:q,isElement:D,isRTL:function(t){return"rtl"===V(t).direction}};function tl(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}let ta=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:i,rects:a,platform:f,elements:s,middlewareData:u}=e,{element:c,padding:p=0}=d(t,e)||{};if(null==c)return{};let w=x(p),v={x:n,y:r},b=m(y(i)),A=g(b),R=await f.getDimensions(c),L="y"===b,T=L?"clientHeight":"clientWidth",E=a.reference[A]+a.reference[b]-v[b]-a.floating[A],S=v[b]-a.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(c)),O=C?C[T]:0;O&&await (null==f.isElement?void 0:f.isElement(C))||(O=s.floating[T]||a.floating[A]);let P=O/2-R[A]/2-1,k=o(w[L?"top":"left"],P),H=o(w[L?"bottom":"right"],P),D=O-R[A]-H,F=O/2-R[A]/2+(E/2-S/2),N=l(k,o(F,D)),j=!u.arrow&&null!=h(i)&&F!==N&&a.reference[A]/2-(F{let r=new Map,i={platform:to,...n},o={...i.platform,_c:r};return R(t,e,{...i,platform:o})};var ts=n(47650),tu="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function tc(t,e){let n,r,i;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(r=n;0!=r--;)if(!tc(t[r],e[r]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!t.$$typeof)&&!tc(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function td(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function tp(t,e){let n=td(t);return Math.round(e*n)/n}function th(t){let e=r.useRef(t);return tu(()=>{e.current=t}),e}let tm=t=>({name:"arrow",options:t,fn(e){let{element:n,padding:r}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ta({element:n.current,padding:r}).fn(e):{}:n?ta({element:n,padding:r}).fn(e):{}}}),tg=(t,e)=>({...function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=e,f=await S(e,t);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}}(t),options:[t,e]}),ty=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:f=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...u}=d(t,e),c={x:n,y:r},h=await L(e,u),g=y(p(i)),w=m(g),v=c[w],x=c[g];if(a){let t="y"===w?"top":"left",e="y"===w?"bottom":"right",n=v+h[t],r=v-h[e];v=l(n,o(v,r))}if(f){let t="y"===g?"top":"left",e="y"===g?"bottom":"right",n=x+h[t],r=x-h[e];x=l(n,o(x,r))}let b=s.fn({...e,[w]:v,[g]:x});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[w]:a,[g]:f}}}}}}(t),options:[t,e]}),tw=(t,e)=>({...function(t){return void 0===t&&(t={}),{options:t,fn(e){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:f=!0,crossAxis:s=!0}=d(t,e),u={x:n,y:r},c=y(i),h=m(c),g=u[h],w=u[c],v=d(a,e),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(f){let t="y"===h?"height":"width",e=o.reference[h]-o.floating[t]+x.mainAxis,n=o.reference[h]+o.reference[t]-x.mainAxis;gn&&(g=n)}if(s){var b,A;let t="y"===h?"width":"height",e=["top","left"].includes(p(i)),n=o.reference[c]-o.floating[t]+(e&&(null==(b=l.offset)?void 0:b[c])||0)+(e?0:x.crossAxis),r=o.reference[c]+o.reference[t]+(e?0:(null==(A=l.offset)?void 0:A[c])||0)-(e?x.crossAxis:0);wr&&(w=r)}return{[h]:g,[c]:w}}}}(t),options:[t,e]}),tv=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r,i,o,l;let{placement:a,middlewareData:f,rects:s,initialPlacement:u,platform:c,elements:x}=e,{mainAxis:b=!0,crossAxis:A=!0,fallbackPlacements:R,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=d(t,e);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let O=p(a),P=y(u),k=p(u)===u,H=await (null==c.isRTL?void 0:c.isRTL(x.floating)),D=R||(k||!S?[v(u)]:function(t){let e=v(t);return[w(t),e,w(e)]}(u)),F="none"!==E;!R&&F&&D.push(...function(t,e,n,r){let i=h(t),o=function(t,e,n){let r=["left","right"],i=["right","left"];switch(t){case"top":case"bottom":if(n)return e?i:r;return e?r:i;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(p(t),"start"===n,r);return i&&(o=o.map(t=>t+"-"+i),e&&(o=o.concat(o.map(w)))),o}(u,S,E,H));let N=[u,...D],j=await L(e,C),M=[],W=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&M.push(j[O]),A){let t=function(t,e,n){void 0===n&&(n=!1);let r=h(t),i=m(y(t)),o=g(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=v(l)),[l,v(l)]}(a,s,H);M.push(j[t[0]],j[t[1]])}if(W=[...W,{placement:a,overflows:M}],!M.every(t=>t<=0)){let t=((null==(i=f.flip)?void 0:i.index)||0)+1,e=N[t];if(e)return{data:{index:t,overflows:W},reset:{placement:e}};let n=null==(o=W.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!n)switch(T){case"bestFit":{let t=null==(l=W.filter(t=>{if(F){let e=y(t.placement);return e===P||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:l[0];t&&(n=t);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}}(t),options:[t,e]}),tx=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,r;let i,a;let{placement:f,rects:s,platform:u,elements:c}=e,{apply:m=()=>{},...g}=d(t,e),w=await L(e,g),v=p(f),x=h(f),b="y"===y(f),{width:A,height:R}=s.floating;"top"===v||"bottom"===v?(i=v,a=x===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(a=v,i="end"===x?"top":"bottom");let T=R-w.top-w.bottom,E=A-w.left-w.right,S=o(R-w[i],T),C=o(A-w[a],E),O=!e.middlewareData.shift,P=S,k=C;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(k=E),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(P=T),O&&!x){let t=l(w.left,0),e=l(w.right,0),n=l(w.top,0),r=l(w.bottom,0);b?k=A-2*(0!==t||0!==e?t+e:l(w.left,w.right)):P=R-2*(0!==n||0!==r?n+r:l(w.top,w.bottom))}await m({...e,availableWidth:k,availableHeight:P});let H=await u.getDimensions(c.floating);return A!==H.width||R!==H.height?{reset:{rects:!0}}:{}}}}(t),options:[t,e]}),tb=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:r="referenceHidden",...i}=d(t,e);switch(r){case"referenceHidden":{let t=T(await L(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:E(t)}}}case"escaped":{let t=T(await L(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:E(t)}}}default:return{}}}}}(t),options:[t,e]}),tA=(t,e)=>({...tm(t),options:[t,e]});var tR=n(23360),tL=n(95155),tT=r.forwardRef((t,e)=>{let{children:n,width:r=10,height:i=5,...o}=t;return(0,tL.jsx)(tR.sG.svg,{...o,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:(0,tL.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tT.displayName="Arrow";var tE=n(88068),tS=n(18166),tC=n(41524),tO=n(46611),tP=n(7510),tk="Popper",[tH,tD]=(0,tS.A)(tk),[tF,tN]=tH(tk),tj=t=>{let{__scopePopper:e,children:n}=t,[i,o]=r.useState(null);return(0,tL.jsx)(tF,{scope:e,anchor:i,onAnchorChange:o,children:n})};tj.displayName=tk;var tM="PopperAnchor",tW=r.forwardRef((t,e)=>{let{__scopePopper:n,virtualRef:i,...o}=t,l=tN(tM,n),a=r.useRef(null),f=(0,tE.s)(e,a);return r.useEffect(()=>{l.onAnchorChange((null==i?void 0:i.current)||a.current)}),i?null:(0,tL.jsx)(tR.sG.div,{...o,ref:f})});tW.displayName=tM;var tz="PopperContent",[tB,tV]=tH(tz),t_=r.forwardRef((t,e)=>{var n,i,a,s,u,c,d,p;let{__scopePopper:h,side:m="bottom",sideOffset:g=0,align:y="center",alignOffset:w=0,arrowPadding:v=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:A=0,sticky:R="partial",hideWhenDetached:L=!1,updatePositionStrategy:T="optimized",onPlaced:E,...S}=t,C=tN(tz,h),[O,P]=r.useState(null),H=(0,tE.s)(e,t=>P(t)),[D,F]=r.useState(null),N=(0,tP.X)(D),j=null!==(d=null==N?void 0:N.width)&&void 0!==d?d:0,M=null!==(p=null==N?void 0:N.height)&&void 0!==p?p:0,W="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},z=Array.isArray(b)?b:[b],B=z.length>0,V={padding:W,boundary:z.filter(tG),altBoundary:B},{refs:_,floatingStyles:X,placement:Y,isPositioned:G,middlewareData:q}=function(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:s,open:u}=t,[c,d]=r.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(i);tc(p,i)||h(i);let[m,g]=r.useState(null),[y,w]=r.useState(null),v=r.useCallback(t=>{t!==R.current&&(R.current=t,g(t))},[]),x=r.useCallback(t=>{t!==L.current&&(L.current=t,w(t))},[]),b=l||m,A=a||y,R=r.useRef(null),L=r.useRef(null),T=r.useRef(c),E=null!=s,S=th(s),C=th(o),O=th(u),P=r.useCallback(()=>{if(!R.current||!L.current)return;let t={placement:e,strategy:n,middleware:p};C.current&&(t.platform=C.current),tf(R.current,L.current,t).then(t=>{let e={...t,isPositioned:!1!==O.current};k.current&&!tc(T.current,e)&&(T.current=e,ts.flushSync(()=>{d(e)}))})},[p,e,n,C,O]);tu(()=>{!1===u&&T.current.isPositioned&&(T.current.isPositioned=!1,d(t=>({...t,isPositioned:!1})))},[u]);let k=r.useRef(!1);tu(()=>(k.current=!0,()=>{k.current=!1}),[]),tu(()=>{if(b&&(R.current=b),A&&(L.current=A),b&&A){if(S.current)return S.current(b,A,P);P()}},[b,A,P,S,E]);let H=r.useMemo(()=>({reference:R,floating:L,setReference:v,setFloating:x}),[v,x]),D=r.useMemo(()=>({reference:b,floating:A}),[b,A]),F=r.useMemo(()=>{let t={position:n,left:0,top:0};if(!D.floating)return t;let e=tp(D.floating,c.x),r=tp(D.floating,c.y);return f?{...t,transform:"translate("+e+"px, "+r+"px)",...td(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}},[n,f,D.floating,c.x,c.y]);return r.useMemo(()=>({...c,update:P,refs:H,elements:D,floatingStyles:F}),[c,P,H,D,F])}({strategy:"fixed",placement:m+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var t=arguments.length,e=Array(t),n=0;n{a&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)});let m=p&&c?function(t,e){let n,r=null,i=k(t);function a(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return!function s(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),a();let d=t.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(u||e(),!m||!g)return;let y=f(h),w=f(i.clientWidth-(p+m)),v={rootMargin:-y+"px "+-w+"px "+-f(i.clientHeight-(h+g))+"px "+-f(p)+"px",threshold:l(0,o(1,c))||1},x=!0;function b(e){let r=e[0].intersectionRatio;if(r!==c){if(!x)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||tl(d,t.getBoundingClientRect())||s(),x=!1}try{r=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch(t){r=new IntersectionObserver(b,v)}r.observe(t)}(!0),a}(p,n):null,g=-1,y=null;u&&(y=new ResizeObserver(t=>{let[r]=t;r&&r.target===p&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),p&&!d&&y.observe(p),y.observe(e));let w=d?K(t):null;return d&&function e(){let r=K(t);w&&!tl(w,r)&&n(),w=r,i=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{a&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=y)||t.disconnect(),y=null,d&&cancelAnimationFrame(i)}}(...e,{animationFrame:"always"===T})},elements:{reference:C.anchor},middleware:[tg({mainAxis:g+M,alignmentAxis:w}),x&&ty({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?tw():void 0,...V}),x&&tv({...V}),tx({...V,apply:t=>{let{elements:e,rects:n,availableWidth:r,availableHeight:i}=t,{width:o,height:l}=n.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&tA({element:D,padding:v}),t$({arrowWidth:j,arrowHeight:M}),L&&tb({strategy:"referenceHidden",...V})]}),[U,J]=tq(Y),Q=(0,tC.c)(E);(0,tO.N)(()=>{G&&(null==Q||Q())},[G,Q]);let Z=null===(n=q.arrow)||void 0===n?void 0:n.x,tt=null===(i=q.arrow)||void 0===i?void 0:i.y,te=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[tn,tr]=r.useState();return(0,tO.N)(()=>{O&&tr(window.getComputedStyle(O).zIndex)},[O]),(0,tL.jsx)("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:G?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tn,"--radix-popper-transform-origin":[null===(s=q.transformOrigin)||void 0===s?void 0:s.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(c=q.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,tL.jsx)(tB,{scope:h,placedSide:U,onArrowChange:F,arrowX:Z,arrowY:tt,shouldHideArrow:te,children:(0,tL.jsx)(tR.sG.div,{"data-side":U,"data-align":J,...S,ref:H,style:{...S.style,animation:G?void 0:"none"}})})})});t_.displayName=tz;var tX="PopperArrow",tI={top:"bottom",right:"left",bottom:"top",left:"right"},tY=r.forwardRef(function(t,e){let{__scopePopper:n,...r}=t,i=tV(tX,n),o=tI[i.placedSide];return(0,tL.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,tL.jsx)(tT,{...r,ref:e,style:{...r.style,display:"block"}})})});function tG(t){return null!==t}tY.displayName=tX;var t$=t=>({name:"transformOrigin",options:t,fn(e){var n,r,i,o,l;let{placement:a,rects:f,middlewareData:s}=e,u=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,c=u?0:t.arrowWidth,d=u?0:t.arrowHeight,[p,h]=tq(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(o=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+c/2,y=(null!==(l=null===(i=s.arrow)||void 0===i?void 0:i.y)&&void 0!==l?l:0)+d/2,w="",v="";return"bottom"===p?(w=u?m:"".concat(g,"px"),v="".concat(-d,"px")):"top"===p?(w=u?m:"".concat(g,"px"),v="".concat(f.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),v=u?m:"".concat(y,"px")):"left"===p&&(w="".concat(f.floating.width+d,"px"),v=u?m:"".concat(y,"px")),{data:{x:w,y:v}}}});function tq(t){let[e,n="center"]=t.split("-");return[e,n]}var tU=tj,tJ=tW,tK=t_,tQ=tY},7510:(t,e,n)=>{n.d(e,{X:()=>o});var r=n(12115),i=n(46611);function o(t){let[e,n]=r.useState(void 0);return(0,i.N)(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let r,i;if(!Array.isArray(e)||!e.length)return;let o=e[0];if("borderBoxSize"in o){let t=o.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,i=e.blockSize}else r=t.offsetWidth,i=t.offsetHeight;n({width:r,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),e}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9951-3ddc36507bfb3179.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9951-3ddc36507bfb3179.js new file mode 100644 index 0000000..9bde708 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9951-3ddc36507bfb3179.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{39997:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(20107);let a=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),d=function(){for(var t=arguments.length,e=Array(t),n=0;n!!t&&n.indexOf(t)===e).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,r.forwardRef)((t,e)=>{let{color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:l="",children:c,iconNode:s,...$}=t;return(0,r.createElement)("svg",{ref:e,...o,width:a,height:a,stroke:n,strokeWidth:u?24*Number(i)/Number(a):i,className:d("lucide",l),...$},[...s.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(c)?c:[c]])}),u=(t,e)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:u,...l}=n;return(0,r.createElement)(i,{ref:o,iconNode:e,className:d("lucide-".concat(a(t)),u),...l})});return n.displayName="".concat(t),n}},91912:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(39997).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},4917:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(39997).A)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},83148:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(39997).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},66698:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},546:(t,e,n)=>{"use strict";var r=n(57213);function a(){}function d(){}d.resetWarningCache=a,t.exports=function(){function t(t,e,n,a,d,o){if(o!==r){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:d,resetWarningCache:a};return n.PropTypes=n,n}},83318:(t,e,n)=>{t.exports=n(546)()},57213:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3343:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var t="",e=0;e{"use strict";n.d(e,{C1:()=>S,bL:()=>P});var r=n(20107),a=n(64236),d=n(45170),o=n(94521),i=n(13061),u=n(65163),l=n(63620),c=n(54245),s=n(34544),$=n(20475),f="Checkbox",[p,h]=(0,d.A)(f),[y,m]=p(f),g=r.forwardRef((t,e)=>{let{__scopeCheckbox:n,name:d,checked:u,defaultChecked:l,required:c,disabled:f,value:p="on",onCheckedChange:h,form:m,...g}=t,[v,b]=r.useState(null),P=(0,a.s)(e,t=>b(t)),S=r.useRef(!1),x=!v||m||!!v.closest("form"),[I=!1,w]=(0,i.i)({prop:u,defaultProp:l,onChange:h}),E=r.useRef(I);return r.useEffect(()=>{let t=null==v?void 0:v.form;if(t){let e=()=>w(E.current);return t.addEventListener("reset",e),()=>t.removeEventListener("reset",e)}},[v,w]),(0,$.jsxs)(y,{scope:n,state:I,disabled:f,children:[(0,$.jsx)(s.sG.button,{type:"button",role:"checkbox","aria-checked":O(I)?"mixed":I,"aria-required":c,"data-state":N(I),"data-disabled":f?"":void 0,disabled:f,value:p,...g,ref:P,onKeyDown:(0,o.m)(t.onKeyDown,t=>{"Enter"===t.key&&t.preventDefault()}),onClick:(0,o.m)(t.onClick,t=>{w(t=>!!O(t)||!t),x&&(S.current=t.isPropagationStopped(),S.current||t.stopPropagation())})}),x&&(0,$.jsx)(C,{control:v,bubbles:!S.current,name:d,value:p,checked:I,required:c,disabled:f,form:m,style:{transform:"translateX(-100%)"},defaultChecked:!O(l)&&l})]})});g.displayName=f;var v="CheckboxIndicator",b=r.forwardRef((t,e)=>{let{__scopeCheckbox:n,forceMount:r,...a}=t,d=m(v,n);return(0,$.jsx)(c.C,{present:r||O(d.state)||!0===d.state,children:(0,$.jsx)(s.sG.span,{"data-state":N(d.state),"data-disabled":d.disabled?"":void 0,...a,ref:e,style:{pointerEvents:"none",...t.style}})})});b.displayName=v;var C=t=>{let{control:e,checked:n,bubbles:a=!0,defaultChecked:d,...o}=t,i=r.useRef(null),c=(0,u.Z)(n),s=(0,l.X)(e);r.useEffect(()=>{let t=i.current,e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==n&&e){let r=new Event("click",{bubbles:a});t.indeterminate=O(n),e.call(t,!O(n)&&n),t.dispatchEvent(r)}},[c,n,a]);let f=r.useRef(!O(n)&&n);return(0,$.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=d?d:f.current,...o,tabIndex:-1,ref:i,style:{...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function O(t){return"indeterminate"===t}function N(t){return O(t)?"indeterminate":t?"checked":"unchecked"}var P=g,S=b},65163:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(20107);function a(t){let e=r.useRef({value:t,previous:t});return r.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}},80421:(t,e,n)=>{"use strict";n.d(e,{uB:()=>tm});var r=/[\\\/_+.#"@\[\(\{&]/,a=/[\\\/_+.#"@\[\(\{&]/g,d=/[\s-]/,o=/[\s-]/g;function i(t){return t.toLowerCase().replace(o," ")}var u=n(20107),l=n(75456),c=n(72706),s=n(45170),$=n(72763),f=n(13061),p=n(80560),h=n(62802),y=n(46527),m=n(86432),g=n(3328),v=n(10201),b=n(76171),C=n(58020),O=n(79571),N=n(20475),P="Dialog",[S,x]=(0,s.A)(P),[I,w]=S(P),E=t=>{let{__scopeDialog:e,children:n,open:r,defaultOpen:a,onOpenChange:d,modal:o=!0}=t,i=u.useRef(null),l=u.useRef(null),[c=!1,s]=(0,f.i)({prop:r,defaultProp:a,onChange:d});return(0,N.jsx)(I,{scope:e,triggerRef:i,contentRef:l,contentId:(0,$.B)(),titleId:(0,$.B)(),descriptionId:(0,$.B)(),open:c,onOpenChange:s,onOpenToggle:u.useCallback(()=>s(t=>!t),[s]),modal:o,children:n})};E.displayName=P;var A="DialogTrigger";u.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,a=w(A,n),d=(0,c.s)(e,a.triggerRef);return(0,N.jsx)(g.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":H(a.open),...r,ref:d,onClick:(0,l.m)(t.onClick,a.onOpenToggle)})}).displayName=A;var j="DialogPortal",[k,T]=S(j,{forceMount:void 0}),R=t=>{let{__scopeDialog:e,forceMount:n,children:r,container:a}=t,d=w(j,e);return(0,N.jsx)(k,{scope:e,forceMount:n,children:u.Children.map(r,t=>(0,N.jsx)(m.C,{present:n||d.open,children:(0,N.jsx)(y.Z,{asChild:!0,container:a,children:t})}))})};R.displayName=j;var M="DialogOverlay",D=u.forwardRef((t,e)=>{let n=T(M,t.__scopeDialog),{forceMount:r=n.forceMount,...a}=t,d=w(M,t.__scopeDialog);return d.modal?(0,N.jsx)(m.C,{present:r||d.open,children:(0,N.jsx)(F,{...a,ref:e})}):null});D.displayName=M;var F=u.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,a=w(M,n);return(0,N.jsx)(b.A,{as:O.DX,allowPinchZoom:!0,shards:[a.contentRef],children:(0,N.jsx)(g.sG.div,{"data-state":H(a.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),L="DialogContent",B=u.forwardRef((t,e)=>{let n=T(L,t.__scopeDialog),{forceMount:r=n.forceMount,...a}=t,d=w(L,t.__scopeDialog);return(0,N.jsx)(m.C,{present:r||d.open,children:d.modal?(0,N.jsx)(G,{...a,ref:e}):(0,N.jsx)(_,{...a,ref:e})})});B.displayName=L;var G=u.forwardRef((t,e)=>{let n=w(L,t.__scopeDialog),r=u.useRef(null),a=(0,c.s)(e,n.contentRef,r);return u.useEffect(()=>{let t=r.current;if(t)return(0,C.Eq)(t)},[]),(0,N.jsx)(U,{...t,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.m)(t.onCloseAutoFocus,t=>{var e;t.preventDefault(),null===(e=n.triggerRef.current)||void 0===e||e.focus()}),onPointerDownOutside:(0,l.m)(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,n=0===e.button&&!0===e.ctrlKey;(2===e.button||n)&&t.preventDefault()}),onFocusOutside:(0,l.m)(t.onFocusOutside,t=>t.preventDefault())})}),_=u.forwardRef((t,e)=>{let n=w(L,t.__scopeDialog),r=u.useRef(!1),a=u.useRef(!1);return(0,N.jsx)(U,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var d,o;null===(d=t.onCloseAutoFocus)||void 0===d||d.call(t,e),e.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),e.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:e=>{var d,o;null===(d=t.onInteractOutside)||void 0===d||d.call(t,e),e.defaultPrevented||(r.current=!0,"pointerdown"!==e.detail.originalEvent.type||(a.current=!0));let i=e.target;(null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(i))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),U=u.forwardRef((t,e)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:d,...o}=t,i=w(L,n),l=u.useRef(null),s=(0,c.s)(e,l);return(0,v.Oh)(),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(h.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:d,children:(0,N.jsx)(p.qW,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":H(i.open),...o,ref:s,onDismiss:()=>i.onOpenChange(!1)})}),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(J,{titleId:i.titleId}),(0,N.jsx)(X,{contentRef:l,descriptionId:i.descriptionId})]})]})}),K="DialogTitle";u.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,a=w(K,n);return(0,N.jsx)(g.sG.h2,{id:a.titleId,...r,ref:e})}).displayName=K;var V="DialogDescription";u.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,a=w(V,n);return(0,N.jsx)(g.sG.p,{id:a.descriptionId,...r,ref:e})}).displayName=V;var W="DialogClose";function H(t){return t?"open":"closed"}u.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,a=w(W,n);return(0,N.jsx)(g.sG.button,{type:"button",...r,ref:e,onClick:(0,l.m)(t.onClick,()=>a.onOpenChange(!1))})}).displayName=W;var Z="DialogTitleWarning",[q,Y]=(0,s.q)(Z,{contentName:L,titleName:K,docsSlug:"dialog"}),J=t=>{let{titleId:e}=t,n=Y(Z),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return u.useEffect(()=>{e&&!document.getElementById(e)&&console.error(r)},[r,e]),null},X=t=>{let{contentRef:e,descriptionId:n}=t,r=Y("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return u.useEffect(()=>{var t;let r=null===(t=e.current)||void 0===t?void 0:t.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(a)},[a,e,n]),null},z='[cmdk-group=""]',Q='[cmdk-group-items=""]',tt='[cmdk-item=""]',te="".concat(tt,':not([aria-disabled="true"])'),tn="cmdk-item-select",tr="data-value",ta=(t,e,n)=>(function(t,e,n){return function t(e,n,i,u,l,c,s){if(c===n.length)return l===e.length?1:.99;var $=`${l},${c}`;if(void 0!==s[$])return s[$];for(var f,p,h,y,m=u.charAt(c),g=i.indexOf(m,l),v=0;g>=0;)(f=t(e,n,i,u,g+1,c+1,s))>v&&(g===l?f*=1:r.test(e.charAt(g-1))?(f*=.8,(h=e.slice(l,g-1).match(a))&&l>0&&(f*=Math.pow(.999,h.length))):d.test(e.charAt(g-1))?(f*=.9,(y=e.slice(l,g-1).match(o))&&l>0&&(f*=Math.pow(.999,y.length))):(f*=.17,l>0&&(f*=Math.pow(.999,g-l))),e.charAt(g)!==n.charAt(c)&&(f*=.9999)),(f<.1&&i.charAt(g-1)===u.charAt(c+1)||u.charAt(c+1)===u.charAt(c)&&i.charAt(g-1)!==u.charAt(c))&&.1*(p=t(e,n,i,u,g+1,c+2,s))>f&&(f=.1*p),f>v&&(v=f),g=i.indexOf(m,g+1);return s[$]=v,v}(t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,e,i(t),i(e),0,0,{})})(t,e,n),td=u.createContext(void 0),to=()=>u.useContext(td),ti=u.createContext(void 0),tu=()=>u.useContext(ti),tl=u.createContext(void 0),tc=u.forwardRef((t,e)=>{let n=tb(()=>{var e,n;return{search:"",value:null!=(n=null!=(e=t.value)?e:t.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=tb(()=>new Set),a=tb(()=>new Map),d=tb(()=>new Map),o=tb(()=>new Set),i=tg(t),{label:l,children:c,value:s,onValueChange:f,filter:p,shouldFilter:h,loop:y,disablePointerSelection:m=!1,vimBindings:v=!0,...b}=t,C=(0,$.B)(),O=(0,$.B)(),N=(0,$.B)(),P=u.useRef(null),S=tN();tv(()=>{if(void 0!==s){let t=s.trim();n.current.value=t,x.emit()}},[s]),tv(()=>{S(6,k)},[]);let x=u.useMemo(()=>({subscribe:t=>(o.current.add(t),()=>o.current.delete(t)),snapshot:()=>n.current,setState:(t,e,r)=>{var a,d,o,u;if(!Object.is(n.current[t],e)){if(n.current[t]=e,"search"===t)j(),E(),S(1,A);else if("value"===t){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let t=document.getElementById(N);t?t.focus():null==(a=document.getElementById(C))||a.focus()}if(S(7,()=>{var t;n.current.selectedItemId=null==(t=T())?void 0:t.id,x.emit()}),r||S(5,k),(null==(d=i.current)?void 0:d.value)!==void 0){null==(u=(o=i.current).onValueChange)||u.call(o,null!=e?e:"");return}}x.emit()}},emit:()=>{o.current.forEach(t=>t())}}),[]),I=u.useMemo(()=>({value:(t,e,r)=>{var a;e!==(null==(a=d.current.get(t))?void 0:a.value)&&(d.current.set(t,{value:e,keywords:r}),n.current.filtered.items.set(t,w(e,r)),S(2,()=>{E(),x.emit()}))},item:(t,e)=>(r.current.add(t),e&&(a.current.has(e)?a.current.get(e).add(t):a.current.set(e,new Set([t]))),S(3,()=>{j(),E(),n.current.value||A(),x.emit()}),()=>{d.current.delete(t),r.current.delete(t),n.current.filtered.items.delete(t);let e=T();S(4,()=>{j(),(null==e?void 0:e.getAttribute("id"))===t&&A(),x.emit()})}),group:t=>(a.current.has(t)||a.current.set(t,new Set),()=>{d.current.delete(t),a.current.delete(t)}),filter:()=>i.current.shouldFilter,label:l||t["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:C,inputId:N,labelId:O,listInnerRef:P}),[]);function w(t,e){var r,a;let d=null!=(a=null==(r=i.current)?void 0:r.filter)?a:ta;return t?d(t,n.current.search,e):0}function E(){if(!n.current.search||!1===i.current.shouldFilter)return;let t=n.current.filtered.items,e=[];n.current.filtered.groups.forEach(n=>{let r=a.current.get(n),d=0;r.forEach(e=>{d=Math.max(t.get(e),d)}),e.push([n,d])});let r=P.current;R().sort((e,n)=>{var r,a;let d=e.getAttribute("id"),o=n.getAttribute("id");return(null!=(r=t.get(o))?r:0)-(null!=(a=t.get(d))?a:0)}).forEach(t=>{let e=t.closest(Q);e?e.appendChild(t.parentElement===e?t:t.closest("".concat(Q," > *"))):r.appendChild(t.parentElement===r?t:t.closest("".concat(Q," > *")))}),e.sort((t,e)=>e[1]-t[1]).forEach(t=>{var e;let n=null==(e=P.current)?void 0:e.querySelector("".concat(z,"[").concat(tr,'="').concat(encodeURIComponent(t[0]),'"]'));null==n||n.parentElement.appendChild(n)})}function A(){let t=R().find(t=>"true"!==t.getAttribute("aria-disabled")),e=null==t?void 0:t.getAttribute(tr);x.setState("value",e||void 0)}function j(){var t,e,o,u;if(!n.current.search||!1===i.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let l=0;for(let a of r.current){let r=w(null!=(e=null==(t=d.current.get(a))?void 0:t.value)?e:"",null!=(u=null==(o=d.current.get(a))?void 0:o.keywords)?u:[]);n.current.filtered.items.set(a,r),r>0&&l++}for(let[t,e]of a.current)for(let r of e)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(t);break}n.current.filtered.count=l}function k(){var t,e,n;let r=T();r&&((null==(t=r.parentElement)?void 0:t.firstChild)===r&&(null==(n=null==(e=r.closest(z))?void 0:e.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function T(){var t;return null==(t=P.current)?void 0:t.querySelector("".concat(tt,'[aria-selected="true"]'))}function R(){var t;return Array.from((null==(t=P.current)?void 0:t.querySelectorAll(te))||[])}function M(t){let e=R()[t];e&&x.setState("value",e.getAttribute(tr))}function D(t){var e;let n=T(),r=R(),a=r.findIndex(t=>t===n),d=r[a+t];null!=(e=i.current)&&e.loop&&(d=a+t<0?r[r.length-1]:a+t===r.length?r[0]:r[a+t]),d&&x.setState("value",d.getAttribute(tr))}function F(t){let e=T(),n=null==e?void 0:e.closest(z),r;for(;n&&!r;)r=null==(n=t>0?function(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}(n,z):function(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}(n,z))?void 0:n.querySelector(te);r?x.setState("value",r.getAttribute(tr)):D(t)}let L=()=>M(R().length-1),B=t=>{t.preventDefault(),t.metaKey?L():t.altKey?F(1):D(1)},G=t=>{t.preventDefault(),t.metaKey?M(0):t.altKey?F(-1):D(-1)};return u.createElement(g.sG.div,{ref:e,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:t=>{var e;null==(e=b.onKeyDown)||e.call(b,t);let n=t.nativeEvent.isComposing||229===t.keyCode;if(!(t.defaultPrevented||n))switch(t.key){case"n":case"j":v&&t.ctrlKey&&B(t);break;case"ArrowDown":B(t);break;case"p":case"k":v&&t.ctrlKey&&G(t);break;case"ArrowUp":G(t);break;case"Home":t.preventDefault(),M(0);break;case"End":t.preventDefault(),L();break;case"Enter":{t.preventDefault();let e=T();if(e){let t=new Event(tn);e.dispatchEvent(t)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:tS},l),tP(t,t=>u.createElement(ti.Provider,{value:x},u.createElement(td.Provider,{value:I},t))))}),ts=u.forwardRef((t,e)=>{var n,r;let a=(0,$.B)(),d=u.useRef(null),o=u.useContext(tl),i=to(),l=tg(t),s=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==o?void 0:o.forceMount;tv(()=>{if(!s)return i.item(a,null==o?void 0:o.id)},[s]);let f=tO(a,d,[t.value,t.children,d],t.keywords),p=tu(),h=tC(t=>t.value&&t.value===f.current),y=tC(t=>!!s||!1===i.filter()||!t.search||t.filtered.items.get(a)>0);function m(){var t,e;v(),null==(e=(t=l.current).onSelect)||e.call(t,f.current)}function v(){p.setState("value",f.current,!0)}if(u.useEffect(()=>{let e=d.current;if(!(!e||t.disabled))return e.addEventListener(tn,m),()=>e.removeEventListener(tn,m)},[y,t.onSelect,t.disabled]),!y)return null;let{disabled:b,value:C,onSelect:O,forceMount:N,keywords:P,...S}=t;return u.createElement(g.sG.div,{ref:(0,c.t)(d,e),...S,id:a,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||i.getDisablePointerSelection()?void 0:v,onClick:b?void 0:m},t.children)}),t$=u.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:a,...d}=t,o=(0,$.B)(),i=u.useRef(null),l=u.useRef(null),s=(0,$.B)(),f=to(),p=tC(t=>!!a||!1===f.filter()||!t.search||t.filtered.groups.has(o));tv(()=>f.group(o),[]),tO(o,i,[t.value,t.heading,l]);let h=u.useMemo(()=>({id:o,forceMount:a}),[a]);return u.createElement(g.sG.div,{ref:(0,c.t)(i,e),...d,"cmdk-group":"",role:"presentation",hidden:!p||void 0},n&&u.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:s},n),tP(t,t=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?s:void 0},u.createElement(tl.Provider,{value:h},t))))}),tf=u.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,a=u.useRef(null),d=tC(t=>!t.search);return n||d?u.createElement(g.sG.div,{ref:(0,c.t)(a,e),...r,"cmdk-separator":"",role:"separator"}):null}),tp=u.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,a=null!=t.value,d=tu(),o=tC(t=>t.search),i=tC(t=>t.selectedItemId),l=to();return u.useEffect(()=>{null!=t.value&&d.setState("search",t.value)},[t.value]),u.createElement(g.sG.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:a?t.value:o,onChange:t=>{a||d.setState("search",t.target.value),null==n||n(t.target.value)}})}),th=u.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...a}=t,d=u.useRef(null),o=u.useRef(null),i=tC(t=>t.selectedItemId),l=to();return u.useEffect(()=>{if(o.current&&d.current){let t=o.current,e=d.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=t.offsetHeight;e.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(t),()=>{cancelAnimationFrame(n),r.unobserve(t)}}},[]),u.createElement(g.sG.div,{ref:(0,c.t)(d,e),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},tP(t,t=>u.createElement("div",{ref:(0,c.t)(o,l.listInnerRef),"cmdk-list-sizer":""},t)))}),ty=u.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:d,container:o,...i}=t;return u.createElement(E,{open:n,onOpenChange:r},u.createElement(R,{container:o},u.createElement(D,{"cmdk-overlay":"",className:a}),u.createElement(B,{"aria-label":t.label,"cmdk-dialog":"",className:d},u.createElement(tc,{ref:e,...i}))))}),tm=Object.assign(tc,{List:th,Item:ts,Input:tp,Group:t$,Separator:tf,Dialog:ty,Empty:u.forwardRef((t,e)=>tC(t=>0===t.filtered.count)?u.createElement(g.sG.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Loading:u.forwardRef((t,e)=>{let{progress:n,children:r,label:a="Loading...",...d}=t;return u.createElement(g.sG.div,{ref:e,...d,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},tP(t,t=>u.createElement("div",{"aria-hidden":!0},t)))})});function tg(t){let e=u.useRef(t);return tv(()=>{e.current=t}),e}var tv="undefined"==typeof window?u.useEffect:u.useLayoutEffect;function tb(t){let e=u.useRef();return void 0===e.current&&(e.current=t()),e}function tC(t){let e=tu(),n=()=>t(e.snapshot());return u.useSyncExternalStore(e.subscribe,n,n)}function tO(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=u.useRef(),d=to();return tv(()=>{var o;let i=(()=>{var t;for(let e of n){if("string"==typeof e)return e.trim();if("object"==typeof e&&"current"in e)return e.current?null==(t=e.current.textContent)?void 0:t.trim():a.current}})(),u=r.map(t=>t.trim());d.value(t,i,u),null==(o=e.current)||o.setAttribute(tr,i),a.current=i}),a}var tN=()=>{let[t,e]=u.useState(),n=tb(()=>new Map);return tv(()=>{n.current.forEach(t=>t()),n.current=new Map},[t]),(t,r)=>{n.current.set(t,r),e({})}};function tP(t,e){let n,{asChild:r,children:a}=t;return r&&u.isValidElement(a)?u.cloneElement("function"==typeof(n=a.type)?n(a.props):"render"in n?n.render(a.props):a,{ref:a.ref},e(a.props.children)):e(a)}var tS={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},70964:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>nA,Ko:()=>nj});let r={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function a(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),a=0;a<3;a++){var d=Number(n[a]),o=Number(r[a]);if(d>o)return 1;if(o>d)return -1;if(!isNaN(d)&&isNaN(o))return 1;if(isNaN(d)&&!isNaN(o))return -1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(n=a()).done;)n.value===t&&r++;return r}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);no&&(d=a.length))),o++}return void 0===e&&(d=a.length),{value:a,caret:d}}(t.value,t.selectionStart,e),o=d.value,i=d.caret;if(r){var u=function(t,e,n){switch(n){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1)}return{value:t,caret:e}}(o,i,r);o=u.value,i=u.caret}var l=function(t,e,n){"string"==typeof n&&(n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!t)return function(t){return{text:t}};var r=j(e,t);return function(a){if(!a)return{text:"",template:t};for(var d,o=0,i="",u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return k(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(d=u()).done;){var l=d.value;if(l!==e){i+=l;continue}if(i+=a[o],++o===a.length&&a.length2&&void 0!==arguments[2]?arguments[2]:"x",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",a=t.length,d=j("(",t)-j(")",t);d>0&&a=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,G))).ref,a=n.parse,d=n.format,o=n.value,i=n.defaultValue,u=n.controlled,l=n.onChange,c=n.onKeyDown,s=function(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},d=Object.keys(t);for(r=0;r=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(n,F),$=(0,P.useRef)(),f=(0,P.useCallback)(function(t){$.current=t,r&&("function"==typeof r?r(t):r.current=t)},[r]),p=(0,P.useCallback)(function(t){D($.current,a,d,void 0,l)},[$,a,d,l]),h=(0,P.useCallback)(function(t){if(c&&c(t),!t.defaultPrevented)return function(t,e,n,r,a){if(!e.hasAttribute("readonly")){var d=function(t){switch(t.keyCode){case T.Backspace:return"Backspace";case T.Delete:return"Delete"}}(t);switch(d){case"Delete":case"Backspace":t.preventDefault();var o,i=function(t){if(t.selectionStart!==t.selectionEnd)return{start:t.selectionStart,end:t.selectionEnd}}(e);if(i)return o=(o=e.value).slice(0,i.start)+o.slice(i.end),e.value=o,R(e,i.start),D(e,n,r,void 0,a);return D(e,n,r,d,a)}}}(t,$.current,a,d,l)},[$,a,d,l,c]),y=B(B({},s),{},{ref:f,onChange:p,onKeyDown:h}),void 0===u||u?B(B({},y),{},{value:d(null==o?"":o).text}):B(B({},y),{},{defaultValue:d(null==i?"":i).text}));return P.createElement(void 0===m?"input":m,I)}(U=P.forwardRef(U)).propTypes={parse:x.func.isRequired,format:x.func.isRequired,inputComponent:x.elementType,type:x.string,value:x.string,defaultValue:x.string,onChange:x.func,controlled:x.bool,onKeyDown:x.func,onCut:x.func,onPaste:x.func};let K=U;function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=a()).done;){var d=n.value;0>t.indexOf(d)&&r.push(d)}return r.sort(function(t,e){return t-e})}(d,o.possibleLengths()))}else if(n&&!a)return"INVALID_LENGTH";var i=e.length,u=d[0];return u===i?"IS_POSSIBLE":u>i?"TOO_SHORT":d[d.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}(t,void 0,e)}function H(t,e){return"IS_POSSIBLE"===W(t,e)}function Z(t,e){return t=t||"",RegExp("^(?:"+e+")$").test(t)}function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Y);!(a=d()).done;){var o=a.value;if(X(r,o,n))return o}}}}function X(t,e,n){return!(!(e=n.type(e))||!e.pattern()||e.possibleLengths()&&0>e.possibleLengths().indexOf(t.length))&&Z(t,e.pattern())}var z="0-90-9٠-٩۰-۹",Q="".concat("-‐-―−ー-").concat("//").concat("..").concat(" \xa0\xad​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),tt="++",te=RegExp("(["+z+"])");function tn(t,e,n,r){if(e){var a=new f(r);a.selectNumberingPlan(e,n);var d=new RegExp(a.IDDPrefix());if(0===t.search(d)){var o=(t=t.slice(t.match(d)[0].length)).match(te);if(!o||null==o[1]||!(o[1].length>0)||"0"!==o[1])return t}}}function tr(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var a,d,o,i=r.length-1,u=i>0&&r[i];if(e.nationalPrefixTransformRule()&&u)a=t.replace(n,e.nationalPrefixTransformRule()),i>1&&(d=r[1]);else{var l=r[0];a=t.slice(l.length),u&&(d=r[1])}if(u){var c=t.indexOf(r[1]);t.slice(0,c)===e.numberingPlan.nationalPrefix()&&(o=e.numberingPlan.nationalPrefix())}else o=r[0];return{nationalNumber:a,nationalPrefix:o,carrierCode:d}}}return{nationalNumber:t}}function ta(t,e){var n=tr(t,e),r=n.carrierCode,a=n.nationalNumber;return a!==t&&(!(!Z(t,e.nationalNumberPattern())||Z(a,e.nationalNumberPattern()))||e.possibleLengths()&&!function(t,e){switch(W(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(a,e))?{nationalNumber:t}:{nationalNumber:a,carrierCode:r}}function td(t,e,n,r){var a=e?C(e,r):n;if(0===t.indexOf(a)){(r=new f(r)).selectNumberingPlan(e,n);var d=t.slice(a.length),o=ta(d,r).nationalNumber,i=ta(t,r).nationalNumber;if(!Z(i,r.nationalNumberPattern())&&Z(o,r.nationalNumberPattern())||"TOO_LONG"===W(i,r))return{countryCallingCode:a,number:d}}return{number:t}}function to(t,e,n,r){if(!t)return{};if("+"!==t[0]){var a,d=tn(t,e,n,r);if(d&&d!==t)a=!0,t="+"+d;else{if(e||n){var o=td(t,e,n,r),i=o.countryCallingCode,u=o.number;if(i)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:i,number:u}}return{number:t}}}if("0"===t[1])return{};r=new f(r);for(var l=2;l-1<=3&&l<=t.length;){var c=t.slice(1,l);if(r.hasCallingCode(c))return r.selectNumberingPlan(c),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:t.slice(l)};l++}return{}}function ti(t){return t.replace(RegExp("[".concat(Q,"]+"),"g")," ").trim()}var tu=/(\$\d)/;function tl(t,e,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var d=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():a&&e.nationalPrefixFormattingRule()?e.format().replace(tu,e.nationalPrefixFormattingRule()):e.format());return r?ti(d):d}var tc=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ts(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=r()).done;){var a=n.value;if(a.leadingDigitsPatterns().length>0){var d=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(0!==e.search(d))continue}if(Z(e,a.pattern()))return a}}(r.formats(),t);return d?tl(t,d,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!d.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a||!1!==a.nationalPrefix,carrierCode:e,metadata:r}):t}function ty(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tm(t){for(var e=1;e=0}):[])}},{key:"isPossible",value:function(){return function(t,e,n){if(void 0===e&&(e={}),n=new f(n),e.v2){if(!t.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return H(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){var t,e;return(t=t={v2:!0},(e=new f(e=this.getMetadata())).selectNumberingPlan(this.country,this.countryCallingCode),e.hasTypes())?void 0!==J(this,t,e.metadata):Z(t.v2?this.nationalNumber:this.phone,e.nationalNumberPattern())}},{key:"isNonGeographic",value:function(){return new f(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(t){return this.number===t.number&&this.ext===t.ext}},{key:"getType",value:function(){return J(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(t,e){return function(t,e,n,r){if(n=n?tf(tf({},tp),n):tp,r=new f(r),t.country&&"001"!==t.country){if(!r.hasCountry(t.country))throw Error("Unknown country: ".concat(t.country));r.country(t.country)}else{if(!t.countryCallingCode)return t.phone||"";r.selectNumberingPlan(t.countryCallingCode)}var a,d,o,i,u,l,c,s,$,p,h,y,m,g=r.countryCallingCode(),v=n.v2?t.nationalNumber:t.phone;switch(e){case"NATIONAL":if(!v)return"";return a=m=th(v,t.carrierCode,"NATIONAL",r,n),d=t.ext,o=r,i=n.formatExtension,d?i(a,d,o):a;case"INTERNATIONAL":if(!v)return"+".concat(g);return m=th(v,null,"INTERNATIONAL",r,n),u=m="+".concat(g," ").concat(m),l=t.ext,c=r,s=n.formatExtension,l?s(u,l,c):u;case"E.164":return"+".concat(g).concat(v);case"RFC3966":return function(t){var e=t.number,n=t.ext;if(!e)return"";if("+"!==e[0])throw Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}({number:"+".concat(g).concat(v),ext:t.ext});case"IDD":if(!n.fromCountry)return;return $=function(t,e,n,r,a){if(C(r,a.metadata)===n){var d,o,i=th(t,e,"NATIONAL",a);return"1"===n?n+" "+i:i}var u=(d=void 0,((o=new f(a.metadata)).selectNumberingPlan(r,d),o.defaultIDDPrefix())?o.defaultIDDPrefix():tc.test(o.IDDPrefix())?o.IDDPrefix():void 0);if(u)return"".concat(u," ").concat(n," ").concat(th(t,null,"INTERNATIONAL",a))}(v,t.carrierCode,g,n.fromCountry,r),p=t.ext,h=r,y=n.formatExtension,p?y($,p,h):$;default:throw Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}(this,t,e?tm(tm({},e),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(t){return this.format("NATIONAL",t)}},{key:"formatInternational",value:function(t){return this.format("INTERNATIONAL",t)}},{key:"getURI",value:function(t){return this.format("RFC3966",t)}}],function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}function tP(t,e){return")"===t[e]&&e++,function(t){for(var e=[],n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(e=r()).done;){var a=tx[e.value];a&&(n+=a)}return n}function tw(t,e,n){var r=n.metadata,a=n.useNationalPrefixFormattingRule,d=n.getSeparatorAfterNationalPrefix,o=tl(t.nationalSignificantNumber,e,{carrierCode:t.carrierCode,useInternationalFormat:t.international,withNationalPrefix:a,metadata:r});if(!a&&(t.nationalPrefix?o=t.nationalPrefix+d(e)+o:t.complexPrefixBeforeNationalSignificantNumber&&(o=t.complexPrefixBeforeNationalSignificantNumber+" "+o)),tI(o)===t.getNationalDigits())return o}var tE=function(){var t;function e(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e)}return t=[{key:"parse",value:function(t){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(t),1!==this.context.length)throw Error("Non-finalized contexts left when pattern parse ended");var e=this.context[0],n=e.branches,r=e.instructions;if(n)return{op:"|",args:n.concat([tk(r)])};if(0===r.length)throw Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(t){this.context.push(t)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(t){if(!t)throw Error("Pattern is required");var e=t.match(tj);if(!e){if(tA.test(t))throw Error("Illegal characters found in a pattern: ".concat(t));this.getContext().instructions=this.getContext().instructions.concat(t.split(""));return}var n=e[1],r=t.slice(0,e.index),a=t.slice(e.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw Error('No instructions found after "|" operator in an "or" group');var d=this.getContext().branches;d.push(tk(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:d});break;case"|":if(!this.getContext().or)throw Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches){if(1===this.context.length)this.getContext().branches=[];else throw Error('"branches" not found in an "or" group context')}this.getContext().branches.push(tk(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:function(t){for(var e=[],n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},n=e.allowOverflow;if(!t)throw Error("String is required");var r=function t(e,n,r){if("string"==typeof n){var a=e.join("");return 0===n.indexOf(a)?e.length===n.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===a.indexOf(n)?r&&e.length>n.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,n.length)}:void 0}if(Array.isArray(n)){for(var d=e.slice(),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tF(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0)){var n=this.getTemplateForFormat(t,e);if(n)return this.setNationalNumberTemplate(n,e),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(t){return this.isNANP||t&&t.nationalPrefixFormattingRule()&&tB.test(t.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(t,e){var n=t.IDDPrefix,r=t.missingPlus;return n?e&&!1===e.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(t){if(this.template){for(var e=-1,n=0,r=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t,{spacing:!1}):"";nu.length)){var l=RegExp("^"+i+"$"),c=r.replace(/\d/g,"9");l.test(c)&&(u=c);var s=this.getFormatFormat(t,a);if(this.shouldTryNationalPrefixFormattingRule(t,{international:a,nationalPrefix:d})){var $=s.replace(tu,t.nationalPrefixFormattingRule());if(tI(t.nationalPrefixFormattingRule())===(d||"")+tI("$1")&&(s=$,n=!0,d))for(var f=d.length;f>0;)s=s.replace(/\d/,"x"),f--}var p=u.replace(new RegExp(i),s).replace(/9/g,"x");return!n&&(o?p=tN("x",o.length)+" "+p:d&&(p=tN("x",d.length)+this.getSeparatorAfterNationalPrefix(t)+p)),a&&(p=ti(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(t){var e=function(t,e,n){for(var r,a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return tC(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tC(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.split(""));!(r=a()).done;){var d=r.value;if(0>t.slice(e+1).search(tO))return;e=t.search(tO),t=t.replace(tO,d)}return[t,e]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(!e){this.resetFormat();return}return this.populatedNationalNumberTemplate=e[0],this.populatedNationalNumberTemplatePosition=e[1],tP(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(t,e){var n=e.international,r=e.nationalPrefix;if(t.nationalPrefixFormattingRule()){var a=t.usesNationalPrefix();if(a&&r||!a&&!n)return!0}}}],function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=3;if(e.appendDigits(t),r&&this.extractIddPrefix(e),this.isWaitingForCountryCallingCode(e)){if(!this.extractCountryCallingCode(e))return}else e.appendNationalSignificantNumberDigits(t);e.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}},{key:"isWaitingForCountryCallingCode",value:function(t){var e=t.international,n=t.callingCode;return e&&!n}},{key:"extractCountryCallingCode",value:function(t){var e=to("+"+t.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=e.countryCallingCode,r=e.number;if(n)return t.setCallingCode(n),t.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(t){if(t){this.hasSelectedNumberingPlan=!0;var e=t._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=e&&tZ.test(e)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,e){if(this.hasSelectedNumberingPlan){var n=tr(t,this.metadata),r=n.nationalPrefix,a=n.nationalNumber,d=n.carrierCode;if(a!==t)return this.onExtractedNationalNumber(r,d,a,t,e),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,e,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=tr(t,this.metadata),a=r.nationalPrefix,d=r.nationalNumber,o=r.carrierCode;if(d!==e)return this.onExtractedNationalNumber(a,o,d,t,n),!0}}},{key:"onExtractedNationalNumber",value:function(t,e,n,r,a){var d,o,i=r.lastIndexOf(n);if(i>=0&&i===r.length-n.length){o=!0;var u=r.slice(0,i);u!==t&&(d=u)}a({nationalPrefix:t,carrierCode:e,nationalSignificantNumber:n,nationalSignificantNumberMatchesInput:o,complexPrefixBeforeNationalSignificantNumber:d}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(t){return!!this.extractAnotherNationalSignificantNumber(t.getNationalDigits(),t.nationalSignificantNumber,function(e){return t.update(e)})||(this.extractIddPrefix(t)||this.fixMissingPlus(t)?(this.extractCallingCodeAndNationalSignificantNumber(t),!0):void 0)}},{key:"extractIddPrefix",value:function(t){var e=t.international,n=t.IDDPrefix,r=t.digits;if(t.nationalSignificantNumber,!e&&!n){var a=tn(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(void 0!==a&&a!==r)return t.update({IDDPrefix:r.slice(0,r.length-a.length)}),this.startInternationalNumber(t,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var e=td(t.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=e.countryCallingCode;if(e.number,n)return t.update({missingPlus:!0}),this.startInternationalNumber(t,{country:t.country,callingCode:n}),!0}}},{key:"startInternationalNumber",value:function(t,e){var n=e.country,r=e.callingCode;t.startInternationalNumber(n,r),t.nationalSignificantNumber&&(t.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(t){this.extractCountryCallingCode(t)&&this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}}],function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(a=d()).done;){var o=a.value;if(r.country(o),r.leadingDigits()){if(t&&0===t.search(r.leadingDigits()))return o}else if(J({phone:t,country:o},void 0,r.metadata))return o}}function tX(t,e){var n=e.nationalNumber,r=e.defaultCountry,a=e.metadata,d=a.getCountryCodesForCallingCode(t);return d?1===d.length?d[0]:tJ(n,{countries:d,defaultCountry:r,metadata:a.metadata}):void 0}function tz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(tX(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var t=this.state,e=t.digits,n=t.callingCode,r=t.country,a=t.nationalSignificantNumber;if(e){if(this.isInternational())return n?"+"+n+a:"+"+e;if(r||n)return"+"+(r?this.metadata.countryCallingCode():n)+a}}},{key:"getNumber",value:function(){var t=this.state,e=t.nationalSignificantNumber,n=t.carrierCode,r=t.callingCode,a=this._getCountry();if(e&&(a||r)){if(a&&a===this.defaultCountry){var d=new f(this.metadata.metadata);d.selectNumberingPlan(a);var o=d.numberingPlan.callingCode(),i=this.metadata.getCountryCodesForCallingCode(o);if(i.length>1){var u=tJ(e,{countries:i,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});u&&(a=u)}}var l=new tg(a||r,e,this.metadata.metadata);return n&&(l.carrierCode=n),l}}},{key:"isPossible",value:function(){var t=this.getNumber();return!!t&&t.isPossible()}},{key:"isValid",value:function(){var t=this.getNumber();return!!t&&t.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}],function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(e=r()).done;){var a=e.value;n+=t9(a,n)||""}return n}function t9(t,e,n){if("+"===t){if(e){"function"==typeof n&&n("end");return}return"+"}return tx[t]}function t4(t,e,n){if(!n||!n.ignoreRest)return t9(t,e,function(t){n&&"end"===t&&(n.ignoreRest=!0)})}function t8(t){var e=t.onKeyDown,n=t.inputFormat;return(0,P.useCallback)(function(t){if(t.keyCode===t6&&"INTERNATIONAL"===n&&t.target instanceof HTMLInputElement&&t.target.selectionStart===t5.length){t.preventDefault();return}e&&e(t)},[e,n])}var t6=8,t5="+",t7=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function et(){return(et=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,t7)),u=(0,P.useCallback)(function(t){var e=new tQ(r,o),n=t0({inputFormat:a,country:r,metadata:o}),d=e.input(n+t),i=e.getTemplate();return n&&(d=t1(d,n),i&&(i=t1(i,n))),{text:d,template:i}},[r,o]),l=t8({onKeyDown:n,inputFormat:a});return P.createElement(K,et({},i,{ref:e,parse:t4,format:u,onKeyDown:l}))}return(e=P.forwardRef(e)).propTypes={value:x.string.isRequired,onChange:x.func.isRequired,onKeyDown:x.func,country:x.string,inputFormat:x.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:x.object},e}();var en=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function er(){return(er=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,en)),s=t0({inputFormat:o,country:d,metadata:u}),$=(0,P.useCallback)(function(t){var e=t3(t.target.value);e===n&&0===ed(s,e,d,u).indexOf(t.target.value)&&(e=e.slice(0,-1)),r(e)},[s,n,r,d,u]),f=t8({onKeyDown:a,inputFormat:o});return P.createElement(void 0===l?"input":l,er({},c,{ref:e,value:ed(s,n,d,u),onChange:$,onKeyDown:f}))}return(e=P.forwardRef(e)).propTypes={value:x.string.isRequired,onChange:x.func.isRequired,onKeyDown:x.func,country:x.string,inputFormat:x.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:x.object,inputComponent:x.elementType},e}();function ed(t,e,n,r){var a,d,o;return t1((a=t+e,d=n,(o=r)||(o=d,d=void 0),new tQ(d,o).input(a)),t)}function eo(t){return String.fromCodePoint(127397+t.toUpperCase().charCodeAt(0))}var ei=["value","onChange","options","disabled","readOnly"],eu=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function el(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function e$(t){var e=t.value,n=t.onChange,r=t.options,a=t.disabled,d=t.readOnly,o=es(t,ei),i=(0,P.useCallback)(function(t){var e=t.target.value;n("ZZ"===e?void 0:e)},[n]);return(0,P.useMemo)(function(){return ey(r,e)},[r,e]),P.createElement("select",ec({},o,{disabled:a||d,readOnly:d,value:e||"ZZ",onChange:i}),r.map(function(t){var e=t.value,n=t.label,r=t.divider;return P.createElement("option",{key:r?"|":e||"ZZ",value:r?"|":e||"ZZ",disabled:!!r,style:r?ef:void 0},n)}))}e$.propTypes={value:x.string,onChange:x.func.isRequired,options:x.arrayOf(x.shape({value:x.string,label:x.string,divider:x.bool})).isRequired,disabled:x.bool,readOnly:x.bool};var ef={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function ep(t){var e=t.value,n=t.options,r=t.className,a=t.iconComponent,d=(t.getIconAspectRatio,t.arrowComponent),o=void 0===d?eh:d,i=t.unicodeFlags,u=es(t,eu),l=(0,P.useMemo)(function(){return ey(n,e)},[n,e]);return P.createElement("div",{className:"PhoneInputCountry"},P.createElement(e$,ec({},u,{value:e,options:n,className:E("PhoneInputCountrySelect",r)})),l&&(i&&e?P.createElement("div",{className:"PhoneInputCountryIconUnicode"},eo(e[0])+eo(e[1])):P.createElement(a,{"aria-hidden":!0,country:e,label:l.label,aspectRatio:i?1:void 0})),P.createElement(o,null))}function eh(){return P.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function ey(t,e){for(var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return el(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return el(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=r()).done;){var a,d=n.value;if(!d.divider&&(null==(a=d.value)?null==e:a===e))return d}}ep.propTypes={iconComponent:x.elementType,arrowComponent:x.elementType,unicodeFlags:x.bool};var em=["country","countryName","flags","flagUrl"];function eg(){return(eg=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,em);return r&&r[e]?r[e]({title:n}):P.createElement("img",eg({},d,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}ev.propTypes={country:x.string.isRequired,countryName:x.string.isRequired,flags:x.objectOf(x.elementType),flagUrl:x.string.isRequired};var eb=["aspectRatio"],eC=["title"],eO=["title"];function eN(){return(eN=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function eS(t){var e=t.aspectRatio,n=eP(t,eb);return 1===e?P.createElement(eI,n):P.createElement(ex,n)}function ex(t){var e=t.title,n=eP(t,eC);return P.createElement("svg",eN({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),P.createElement("title",null,e),P.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},P.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),P.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),P.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),P.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),P.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),P.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),P.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}function eI(t){var e=t.title,n=eP(t,eO);return P.createElement("svg",eN({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),P.createElement("title",null,e),P.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},P.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),P.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),P.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),P.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),P.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),P.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),P.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}function ew(t){!function(t){if(t.length<2||"+"!==t[0])return!1;for(var e=1;e=48)||!(n<=57))return!1;e++}return!0}(t)&&console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function eE(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,eT),l=a===eS?i:void 0;return P.createElement("div",eR({},u,{className:E("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":1===l,"PhoneInputCountryIcon--border":d})}),d?P.createElement(r,{country:d,countryName:o,flags:e,flagUrl:n,className:"PhoneInputCountryIconImg"}):P.createElement(a,{title:o,aspectRatio:l,className:"PhoneInputCountryIconImg"}))}return d.propTypes={country:x.string,label:x.string.isRequired,aspectRatio:x.number},d}function eD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}(t);if(!(null===r||0!==r.length&&(e0.test(r)||e1.test(r))))throw new eH("NOT_A_NUMBER");if(null===r)a=n(t)||"";else{a="","+"===r.charAt(0)&&(a+=r);var a,d,o=t.indexOf(e2);d=o>=0?o+e2.length:0;var i=t.indexOf(e3);a+=t.substring(d,i)}var u=a.indexOf(";isub=");if(u>0&&(a=a.substring(0,u)),""!==a)return a}(t,{extractFormattedPhoneNumber:function(t){return function(t,e,n){if(t){if(t.length>250){if(n)throw new eH("TOO_LONG");return}if(!1===e)return t;var r=t.search(e9);if(!(r<0))return t.slice(r).replace(e4,"")}}(t,n,e)}});if(!r)return{};if(!(r.length>=2&&eX.test(r)))return eY.test(r)?{error:"TOO_SHORT"}:{};var a=function(t){var e=t.search(ez);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(ez),a=1;a17){if(e.v2)throw new eH("TOO_LONG");return{}}if(e.v2){var h=new tg(s,c,n.metadata);return l&&(h.country=l),p&&(h.carrierCode=p),o&&(h.ext=o),h.__countryCallingCodeSource=$,h}var y=(e.extended?!!n.hasSelectedNumberingPlan():!!l)&&Z(c,n.nationalNumberPattern());return e.extended?{country:l,countryCallingCode:s,carrierCode:p,valid:y,possible:!!y||!!(!0===e.extended&&n.possibleLengths()&&H(c,n)),phone:c,ext:o}:y?(r={country:l,phone:c},o&&(r.ext=o),r):{}}(t,e6(e6({},r),{},{v2:!0}),n)}catch(t){if(t instanceof eH);else throw t}}(t.text,t.options,t.metadata)}(t||"",e)}function nn(t,e,n){if(t){if("+"===t[0]){if("+"===t)return;var r=new tQ(e,n);return r.input(t),r.getNumberValue()}if(e){var a=no(t,e,n);return"+".concat(C(e,n)).concat(a||"")}}}function nr(t,e){var n,r=e.country,a=e.countries,d=e.defaultCountry,o=e.latestCountrySelectedByUser,i=e.required,u=e.metadata;if("+"===t)return r;var l=((n=new tQ(null,u)).input(t),n.getCountry());if(l)return!a||a.indexOf(l)>=0?l:void 0;if(r){if(ni(t,r,u)){if(o&&ni(t,o,u))return o;if(d&&ni(t,d,u))return d;if(!i)return}else if(!i)return}return r}function na(t,e,n){if(0!==t.indexOf(nt(e,n)))return t.replace(/\D/g,"");var r=new tQ(e,n);r.input(t);var a=r.getNumber();return a?a.formatNational().replace(/\D/g,""):""}function nd(t,e,n){return String.prototype.localeCompare?t.localeCompare(e,n):te?1:0}function no(t,e,n){var r=new tQ(e,n);r.input(t);var a=r.getNumber();return a&&a.nationalNumber}function ni(t,e,n){for(var r=nt(e,n),a=0;a=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=r()).done;){var a=n.value;a&&("function"==typeof a?a(e):a.current=e)}})([p.props.inputRef,p.inputRef],t)}),nO(p,"isCountrySupportedWithError",function(t){return eA(t,p.props.metadata)}),nO(p,"onCountryChange",function(t){var e=p.props,n=e.international,r=e.metadata,a=e.onChange,d=e.focusInputOnCountrySelection,o=p.state,i=function(t,e){var n=e.prevCountry,r=e.newCountry,a=e.metadata,d=e.useNationalFormat;if(n===r)return t;if(!t)return d?"":r?nt(r,a):"";if(r){if("+"===t[0]){if(d)return 0===t.indexOf("+"+C(r,a))?function(t,e,n){if(e){var r="+"+C(e,n);if(t.length0)return t.slice(0,t.length-d)}return t}(t,a,p)),t&&"+"!==t[0]&&(!a||c)&&(t="+"+t),!t&&r&&"+"===r[0]&&(a=c?void 0:d),"+"===t&&r&&"+"===r[0]&&r.length>1&&(a=void 0),t&&(n="+"===t[0]?"+"===t?void 0:a&&0===nt(a,p).indexOf(t)?void 0:nn(t,a,p):nn(t,a,p)),n&&(a=nr(n,{country:a,countries:l,defaultCountry:d,latestCountrySelectedByUser:o,required:!1,metadata:p}),!1===c&&a&&t&&"+"===t[0]&&(n=nn(t=na(t,a,p),a,p))),!a&&i&&(a=d||u()),{phoneDigits:t,country:a,value:n}}(t,{prevPhoneDigits:s,country:$,countryRequired:!a,defaultCountry:n,latestCountrySelectedByUser:h,getAnyCountry:function(){return p.getFirstSupportedCountry({countries:c})},countries:c,international:d,limitMaxLength:o,countryCallingCodeEditable:i,metadata:u}),m=y.phoneDigits,g=y.country,v=y.value,b={phoneDigits:m,value:v,country:g};h&&v&&!ni(v,h,u)&&(b.latestCountrySelectedByUser=void 0),!1!==i||v||m!==p.state.phoneDigits||(b.forceRerender={}),p.setState(b,function(){return r(v)})}),nO(p,"_onFocus",function(){return p.setState({isFocused:!0})}),nO(p,"_onBlur",function(){return p.setState({isFocused:!1})}),nO(p,"onFocus",function(t){p._onFocus();var e=p.props.onFocus;e&&e(t)}),nO(p,"onBlur",function(t){var e=p.props.onBlur;p._onBlur(),e&&e(t)}),nO(p,"onCountryFocus",function(t){p._onFocus();var e=p.props.countrySelectProps;if(e){var n=e.onFocus;n&&n(t)}}),nO(p,"onCountryBlur",function(t){p._onBlur();var e=p.props.countrySelectProps;if(e){var n=e.onBlur;n&&n(t)}}),p.inputRef=P.createRef();var e,n,a,d,o,i,u,l,c,s,$,p,h=p.props,y=h.value,m=(h.labels,h.international),g=h.addInternationalOption,v=h.displayInitialValueAsLocalNumber,b=h.initialValueFormat,O=h.metadata,N=p.props,S=N.defaultCountry,x=N.countries;S&&!p.isCountrySupportedWithError(S)&&(S=void 0),y&&ew(y),x=ej(x,O);var I=ne(y,O);p.CountryIcon=eM(p.props);var w=(a=(e={value:y,phoneNumber:I,defaultCountry:S,required:!g,countries:x||ek(O),getAnyCountry:function(){return p.getFirstSupportedCountry({countries:x})},metadata:O}).value,d=e.phoneNumber,o=e.defaultCountry,i=e.getAnyCountry,u=e.countries,l=e.required,c=e.metadata,d&&d.country?n=d.country:o&&(!a||ni(a,o,c))&&(n=o),u&&0>u.indexOf(n)&&(n=void 0),!n&&l&&u&&u.length>0&&(n=i()),n);return p.state={props:p.props,country:w,countries:x,phoneDigits:nu({value:y,phoneNumber:I,defaultCountry:S,international:m,useNationalFormat:v||"national"===b,metadata:O}),value:y},p}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nC(t,e)}(r,t),e=[{key:"componentDidMount",value:function(){var t=this.props.onCountryChange,e=this.props.defaultCountry,n=this.state.country;t&&(e&&!this.isCountrySupportedWithError(e)&&(e=void 0),n!==e&&t(n))}},{key:"componentDidUpdate",value:function(t,e){var n=this.props.onCountryChange,r=this.state.country;n&&r!==e.country&&n(r)}},{key:"getCountrySelectOptions",value:function(t){var e=t.countries,n=this.props,r=n.international,a=n.countryCallingCodeEditable,d=n.countryOptionsOrder,o=n.addInternationalOption,i=n.labels,u=n.locales,l=n.metadata;return this.useMemoCountrySelectOptions(function(){var t,n,c,s,$,f,p;return function(t,e){if(!e)return t;for(var n,r=[],a=[],d=r,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return eE(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eE(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=o()).done;)!function(){var e=n.value;if("|"===e)d.push({divider:!0});else if("..."===e||"…"===e)d=a;else{r="\uD83C\uDF10"===e?void 0:e;var r,o=t.indexOf(t.filter(function(t){return t.value===r})[0]),i=t[o];t.splice(o,1),d.push(i)}}();return r.concat(t).concat(a)}((n=(t={countries:e||ek(l),countryNames:i,addInternationalOption:(!r||!1!==a)&&o,compareStringsLocales:u}).countries,c=t.countryNames,s=t.addInternationalOption,$=t.compareStringsLocales,(f=t.compareStrings)||(f=nd),(p=n.map(function(t){return{value:t,label:c[t]||t}})).sort(function(t,e){return f(t.label,e.label,$)}),s&&p.unshift({label:c.ZZ}),p),function(t,e){if(t&&(t=t.filter(function(t){switch(t){case"\uD83C\uDF10":case"|":case"...":case"…":return!0;default:return eA(t,e)}})).length>0)return t}(d,l))},[e,d,o,i,l])}},{key:"useMemoCountrySelectOptions",value:function(t,e){return this.countrySelectOptionsMemoDependencies&&function(t,e){if(t.length!==e.length)return!1;for(var n=0;n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,nf)),g=this.state,v=g.country,b=g.countries,C=g.phoneDigits,O=g.isFocused,N=this.getCountrySelectOptions({countries:b});return P.createElement($,nm({style:d,className:E(o,"PhoneInput",{"PhoneInput--focus":O,"PhoneInput--disabled":n,"PhoneInput--readOnly":r})},f),P.createElement(c,nm({name:e?"".concat(e,"Country"):void 0,"aria-label":p.country},s,{value:v,options:N,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:n||s&&s.disabled,readOnly:r||s&&s.readOnly,iconComponent:this.CountryIcon})),P.createElement(l?ee:ea,nm({ref:this.setInputRef,type:"tel",autoComplete:a},u,m,{inputFormat:!0===y?"INTERNATIONAL":!1===y?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:!!y||void 0,withCountryCallingCode:!!y||void 0,name:e,metadata:h,country:v,value:C||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:n,readOnly:r,inputComponent:i,className:E("PhoneInputInput",u&&u.className,m.className)})))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return ny({props:t},function(t,e,n){var r=t.metadata,a=t.countries,d=t.defaultCountry,o=t.value,i=t.reset,u=t.international,l=t.displayInitialValueAsLocalNumber,c=t.initialValueFormat,s=e.defaultCountry,$=e.value,f=e.reset;n.country;var p=n.value,h=n.hasUserSelectedACountry,y=n.latestCountrySelectedByUser,m=function(t){return nu(ns(ns({},t),{},{international:u,useNationalFormat:l||"national"===c,metadata:r}))};if(i!==f)return{phoneDigits:m({value:void 0,defaultCountry:d}),value:void 0,country:d,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(d!==s){var g=!d||eA(d,r),v=!p||u&&p===m({value:void 0,defaultCountry:s}),b=!o&&v;if(!h&&g&&b)return{country:d,phoneDigits:m({value:void 0,defaultCountry:d}),value:void 0}}if(!n$(o,$)&&!n$(o,p)){if(o){o&&ew(o),C=ne(o,r);var C,O,N,P=ej(a,r);C&&C.country?(!P||P.indexOf(C.country)>=0)&&(O=C.country):(O=nr(o,{country:void 0,countries:P,metadata:r}))||!d||0!==o.indexOf(nt(d,r))||(O=d)}return o?y&&((O?y===O:ni(o,y,r))?O||(O=y):N={latestCountrySelectedByUser:void 0}):N={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0},ns(ns({},N),{},{phoneDigits:m({phoneNumber:C,value:o,defaultCountry:d}),value:o,country:o?O:d})}}(t,e.props,e))}}],e&&ng(r.prototype,e),n&&ng(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(P.PureComponent),nS=P.forwardRef(function(t,e){return P.createElement(nP,nm({},function(t){for(var e in t=ny({},t),nx)void 0===t[e]&&(t[e]=nx[e]);return t}(t),{inputRef:e}))});nS.propTypes={value:x.string,onChange:x.func.isRequired,onFocus:x.func,onBlur:x.func,disabled:x.bool,readOnly:x.bool,autoComplete:x.string,initialValueFormat:x.oneOf(["national"]),displayInitialValueAsLocalNumber:x.bool,defaultCountry:x.string,countries:x.arrayOf(x.string),labels:w,locales:x.oneOfType([x.string,x.arrayOf(x.string)]),flagUrl:x.string,flags:x.objectOf(x.elementType),flagComponent:x.elementType,addInternationalOption:x.bool,internationalIcon:x.elementType,countryOptionsOrder:x.arrayOf(x.string),style:x.object,className:x.string,countrySelectComponent:x.elementType,countrySelectProps:x.object,inputComponent:x.elementType,numberInputProps:x.object,containerComponent:x.elementType,containerComponentProps:x.object,smartCaret:x.bool,international:x.bool,limitMaxLength:x.bool,countryCallingCodeEditable:x.bool,metadata:I,onCountryChange:x.func,focusInputOnCountrySelection:x.bool};var nx={autoComplete:"tel",countrySelectComponent:ep,flagComponent:ev,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:eS,inputComponent:"input",containerComponent:"div",reset:x.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0},nI=["metadata","labels"];function nw(){return(nw=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(e,nI);return P.createElement(nS,nw({},i,{ref:n,metadata:a,labels:o}))});return e.propTypes={metadata:I,labels:w},e}nE();let nA=nE(r);function nj(){return function(t,e){var n=Array.prototype.slice.call(e);return n.push(r),t.apply(this,n)}(C,arguments)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9966-4a9e57c71c6b1551.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9966-4a9e57c71c6b1551.js new file mode 100644 index 0000000..bd2b396 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9966-4a9e57c71c6b1551.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9966],{39966:(e,s,a)=>{a.r(s),a.d(s,{default:()=>f});var r=a(20475),t=a(20107),l=a(72167),d=a(35601),o=a(83086),n=a(32857),i=a(42541),c=a(49153),u=a(36760),h=a(76554),m=a(114),x=a(88926),p=a(44381);let f=()=>{let{toast:e}=(0,n.dj)(),[s,a]=(0,t.useState)(!0),[f,j]=(0,t.useState)([]),[g,b]=(0,t.useState)(!1),[v,y]=(0,t.useState)(""),[N,w]=(0,t.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),[P,C]=(0,t.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),M={passthrough:{disabled:'+QMAP="MPDN_rule",0;+QMAPWAC=1;+QPOWD=1',ETH:e=>'+QMAP="MPDN_rule",0,1,0,1,1,"'.concat(e,'";+QPOWD=1'),USB:e=>'+QMAP="MPDN_rule",0,1,0,3,1,"'.concat(e,'";+QPOWD=1')},modemProtocol:{rmnet:'+QCFG="usbnet",0;+QPOWD=1',ecm:'+QCFG="usbnet",1;+QPOWD=1',mbim:'+QCFG="usbnet",2;+QPOWD=1',rndis:'+QCFG="usbnet",3;+QPOWD=1'},dnsProxy:{enabled:'+QMAP="DHCPV4DNS","enable"',disabled:'+QMAP="DHCPV4DNS","disable"'}},D=e=>{let s={passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null};return e.forEach(e=>{let{response:a}=e;if(a.includes("MPDN_rule")){let e=a.split("\n")[1];e.includes('MPDN_rule",0,1,0,1,1')?s.passthrough="ETH":e.includes('MPDN_rule",0,1,0,3,1')?s.passthrough="USB":e.includes('MPDN_rule",0,0,0,0,0')&&(s.passthrough="disabled")}if(a.includes("usbnet")){let e=a.match(/usbnet",(\d)/);e&&(s.modemProtocol=({0:"rmnet",1:"ecm",2:"mbim",3:"rndis"})[e[1]])}a.includes("DHCPV4DNS")&&(a.includes('"enable"')?s.dnsProxy="enabled":a.includes('"disable"')&&(s.dnsProxy="disabled"))}),s},S=()=>{let e=[],s=Object.entries(P).reduce((e,s)=>{let[a,r]=s;return r!==N[a]&&(e[a]=r),e},{});if("passthrough"in s){if("disabled"===s.passthrough)e.push(M.passthrough.disabled.replace(";+QPOWD=1",""));else if(s.passthrough){let e=M.passthrough[s.passthrough](P.selectedMac);return"AT".concat(e.replace(";+QPOWD=1",""))}}if("modemProtocol"in s&&s.modemProtocol){let a=M.modemProtocol[s.modemProtocol];if(1===Object.keys(s).length)return"AT".concat(a.replace(";+QPOWD=1",""));e.push(a.replace(";+QPOWD=1",""))}if("dnsProxy"in s&&s.dnsProxy){let a=M.dnsProxy[s.dnsProxy];if(1===Object.keys(s).length)return"AT".concat(a);e.push(a)}return e.length>0?"AT".concat(e.join(";")):""},R=async()=>{try{var s,a;let r=await (0,x.a)("AT+QPOWD=1",!0);if((null===(s=r.response)||void 0===s?void 0:s.status)==="success")e({title:"Success",description:"Settings saved and device is rebooting..."}),setTimeout(()=>{window.location.reload()},9e4);else throw Error((null===(a=r.response)||void 0===a?void 0:a.raw_output)||"Failed to reboot device")}catch(s){e({variant:"destructive",title:"Error",description:"Failed to reboot device",action:(0,r.jsx)(m.A,{})})}},E=async()=>{try{let e=S();y(e),b(!0)}catch(s){e({variant:"destructive",title:"Error",description:"Failed to prepare settings",action:(0,r.jsx)(m.A,{})})}},A=async()=>{try{var s,a;let e=await (0,x.a)(v,!0);if((null===(s=e.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(a=e.response)||void 0===a?void 0:a.raw_output)||"Command execution failed");w({...P}),await R()}catch(s){e({variant:"destructive",title:"Error",description:"Failed to save settings",action:(0,r.jsx)(m.A,{})})}};return(0,t.useEffect)(()=>{(async()=>{try{let[e,s]=await Promise.all([fetch("/cgi-bin/quecmanager/advance/fetch_macs.sh"),fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=4")]),[r,t]=await Promise.all([e.json(),s.json()]);j(r);let l=D(t);w(l),C(l),a(!1)}catch(s){a(!1),e({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch connectivity settings",action:(0,r.jsx)(m.A,{})})}})()},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Zp,{children:[(0,r.jsxs)(l.aR,{children:[(0,r.jsx)(l.ZB,{children:"Connectivity Settings"}),(0,r.jsx)(l.BT,{children:"Configure your device's connectivity settings."})]}),(0,r.jsx)(l.Wu,{children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"passthrough",children:"IP Passthrough Mode"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,passthrough:e})),value:P.passthrough||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select IP Passthrough Mode"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"Passthrough Mode"}),(0,r.jsx)(d.eb,{value:"disabled",children:"Disabled"}),(0,r.jsx)(d.eb,{value:"ETH",children:"ETH Passthrough Enabled"}),(0,r.jsx)(d.eb,{value:"USB",children:"USB Passthrough Enabled"})]})})]})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"mac",children:"Connected MAC"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,selectedMac:e})),value:P.selectedMac||void 0,disabled:!P.passthrough||"disabled"===P.passthrough,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select Active MAC"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"Active MAC"}),f.map(e=>(0,r.jsx)(d.eb,{value:e.mac,children:"".concat(e.hostname," - ").concat(e.mac)},e.mac))]})})]})]}),(0,r.jsx)(h.w,{className:"lg:col-span-2 col-span-1 my-2"}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"modemProtocol",children:"USB Modem Protocol"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,modemProtocol:e})),value:P.modemProtocol||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select USB Modem Protocol"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"USB Modem Protocol"}),(0,r.jsx)(d.eb,{value:"rmnet",children:"RMNET"}),(0,r.jsx)(d.eb,{value:"ecm",children:"ECM (Recommended)"}),(0,r.jsx)(d.eb,{value:"mbim",children:"MBIM"}),(0,r.jsx)(d.eb,{value:"rndis",children:"RNDIS"})]})})]})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"dnsProxy",children:"Onboard DNS Proxy Mode"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,dnsProxy:e})),value:P.dnsProxy||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select DNS Proxy Mode"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"DNS Proxy Mode"}),(0,r.jsx)(d.eb,{value:"enabled",children:"Enabled"}),(0,r.jsx)(d.eb,{value:"disabled",children:"Disabled (Recommended for Passthrough)"})]})})]})]})]})}),(0,r.jsx)(l.wL,{className:"grid border-t py-4",children:(0,r.jsx)(i.$,{onClick:E,disabled:!Object.entries(P).some(e=>{let[s,a]=e;return a!==N[s]})||!(!P.passthrough||"disabled"===P.passthrough||P.selectedMac),children:"Save"})})]}),(0,r.jsx)(o.Lt,{open:g,onOpenChange:b,children:(0,r.jsxs)(o.EO,{children:[(0,r.jsxs)(o.wd,{children:[(0,r.jsx)(o.r7,{children:"Reboot Required"}),(0,r.jsx)(o.$v,{children:"The changes you made require a device reboot to take effect. Would you like to reboot now?"})]}),(0,r.jsxs)(o.ck,{children:[(0,r.jsx)(o.Zr,{children:"Later"}),(0,r.jsxs)(o.Rx,{onClick:A,children:[(0,r.jsx)(p.A,{className:"w-4 h-4"}),"Save & Reboot Now"]})]})]})})]})}},114:(e,s,a)=>{a.d(s,{A:()=>d});var r=a(20475),t=a(42541),l=a(7197);let d=()=>(0,r.jsx)(t.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,r.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,r.jsx)(l.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},72167:(e,s,a)=>{a.d(s,{BT:()=>i,Wu:()=>c,ZB:()=>n,Zp:()=>d,aR:()=>o,wL:()=>u});var r=a(20475),t=a(20107),l=a(22250);let d=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...t})});d.displayName="Card";let o=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",a),...t})});o.displayName="CardHeader";let n=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("h3",{ref:s,className:(0,l.cn)("font-semibold leading-none tracking-tight",a),...t})});n.displayName="CardTitle";let i=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("p",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",a),...t})});i.displayName="CardDescription";let c=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",a),...t})});c.displayName="CardContent";let u=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",a),...t})});u.displayName="CardFooter"},49153:(e,s,a)=>{a.d(s,{J:()=>i});var r=a(20475),t=a(20107),l=a(21840),d=a(29395),o=a(22250);let n=(0,d.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(l.b,{ref:s,className:(0,o.cn)(n(),a),...t})});i.displayName=l.b.displayName},35601:(e,s,a)=>{a.d(s,{TR:()=>p,bq:()=>u,eb:()=>f,gC:()=>x,l6:()=>n,s3:()=>i,yv:()=>c});var r=a(20475),t=a(20107),l=a(7197),d=a(95257),o=a(22250);let n=d.bL,i=d.YJ,c=d.WT,u=t.forwardRef((e,s)=>{let{className:a,children:t,...n}=e;return(0,r.jsxs)(d.l9,{ref:s,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...n,children:[t,(0,r.jsx)(d.In,{asChild:!0,children:(0,r.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=d.l9.displayName;let h=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(d.PP,{ref:s,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...t,children:(0,r.jsx)(l.Mtm,{})})});h.displayName=d.PP.displayName;let m=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(d.wn,{ref:s,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...t,children:(0,r.jsx)(l.D3D,{})})});m.displayName=d.wn.displayName;let x=t.forwardRef((e,s)=>{let{className:a,children:t,position:l="popper",...n}=e;return(0,r.jsx)(d.ZL,{children:(0,r.jsxs)(d.UC,{ref:s,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:l,...n,children:[(0,r.jsx)(h,{}),(0,r.jsx)(d.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,r.jsx)(m,{})]})})});x.displayName=d.UC.displayName;let p=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(d.JU,{ref:s,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",a),...t})});p.displayName=d.JU.displayName;let f=t.forwardRef((e,s)=>{let{className:a,children:t,...n}=e;return(0,r.jsxs)(d.q7,{ref:s,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(d.VF,{children:(0,r.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,r.jsx)(d.p4,{children:t})]})});f.displayName=d.q7.displayName,t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(d.wv,{ref:s,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",a),...t})}).displayName=d.wv.displayName},76554:(e,s,a)=>{a.d(s,{w:()=>o});var r=a(20475),t=a(20107),l=a(88853),d=a(22250);let o=t.forwardRef((e,s)=>{let{className:a,orientation:t="horizontal",decorative:o=!0,...n}=e;return(0,r.jsx)(l.b,{ref:s,decorative:o,orientation:t,className:(0,d.cn)("shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",a),...n})});o.displayName=l.b.displayName},36760:(e,s,a)=>{a.d(s,{E:()=>l});var r=a(20475),t=a(22250);function l(e){let{className:s,...a}=e;return(0,r.jsx)("div",{className:(0,t.cn)("animate-pulse rounded-md bg-primary/10",s),...a})}},88853:(e,s,a)=>{a.d(s,{b:()=>i});var r=a(20107),t=a(34544),l=a(20475),d="horizontal",o=["horizontal","vertical"],n=r.forwardRef((e,s)=>{let{decorative:a,orientation:r=d,...n}=e,i=o.includes(r)?r:d;return(0,l.jsx)(t.sG.div,{"data-orientation":i,...a?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"},...n,ref:s})});n.displayName="Separator";var i=n}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9966-e8dd4767eabb529c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9966-e8dd4767eabb529c.js new file mode 100644 index 0000000..bd2b396 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9966-e8dd4767eabb529c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9966],{39966:(e,s,a)=>{a.r(s),a.d(s,{default:()=>f});var r=a(20475),t=a(20107),l=a(72167),d=a(35601),o=a(83086),n=a(32857),i=a(42541),c=a(49153),u=a(36760),h=a(76554),m=a(114),x=a(88926),p=a(44381);let f=()=>{let{toast:e}=(0,n.dj)(),[s,a]=(0,t.useState)(!0),[f,j]=(0,t.useState)([]),[g,b]=(0,t.useState)(!1),[v,y]=(0,t.useState)(""),[N,w]=(0,t.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),[P,C]=(0,t.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),M={passthrough:{disabled:'+QMAP="MPDN_rule",0;+QMAPWAC=1;+QPOWD=1',ETH:e=>'+QMAP="MPDN_rule",0,1,0,1,1,"'.concat(e,'";+QPOWD=1'),USB:e=>'+QMAP="MPDN_rule",0,1,0,3,1,"'.concat(e,'";+QPOWD=1')},modemProtocol:{rmnet:'+QCFG="usbnet",0;+QPOWD=1',ecm:'+QCFG="usbnet",1;+QPOWD=1',mbim:'+QCFG="usbnet",2;+QPOWD=1',rndis:'+QCFG="usbnet",3;+QPOWD=1'},dnsProxy:{enabled:'+QMAP="DHCPV4DNS","enable"',disabled:'+QMAP="DHCPV4DNS","disable"'}},D=e=>{let s={passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null};return e.forEach(e=>{let{response:a}=e;if(a.includes("MPDN_rule")){let e=a.split("\n")[1];e.includes('MPDN_rule",0,1,0,1,1')?s.passthrough="ETH":e.includes('MPDN_rule",0,1,0,3,1')?s.passthrough="USB":e.includes('MPDN_rule",0,0,0,0,0')&&(s.passthrough="disabled")}if(a.includes("usbnet")){let e=a.match(/usbnet",(\d)/);e&&(s.modemProtocol=({0:"rmnet",1:"ecm",2:"mbim",3:"rndis"})[e[1]])}a.includes("DHCPV4DNS")&&(a.includes('"enable"')?s.dnsProxy="enabled":a.includes('"disable"')&&(s.dnsProxy="disabled"))}),s},S=()=>{let e=[],s=Object.entries(P).reduce((e,s)=>{let[a,r]=s;return r!==N[a]&&(e[a]=r),e},{});if("passthrough"in s){if("disabled"===s.passthrough)e.push(M.passthrough.disabled.replace(";+QPOWD=1",""));else if(s.passthrough){let e=M.passthrough[s.passthrough](P.selectedMac);return"AT".concat(e.replace(";+QPOWD=1",""))}}if("modemProtocol"in s&&s.modemProtocol){let a=M.modemProtocol[s.modemProtocol];if(1===Object.keys(s).length)return"AT".concat(a.replace(";+QPOWD=1",""));e.push(a.replace(";+QPOWD=1",""))}if("dnsProxy"in s&&s.dnsProxy){let a=M.dnsProxy[s.dnsProxy];if(1===Object.keys(s).length)return"AT".concat(a);e.push(a)}return e.length>0?"AT".concat(e.join(";")):""},R=async()=>{try{var s,a;let r=await (0,x.a)("AT+QPOWD=1",!0);if((null===(s=r.response)||void 0===s?void 0:s.status)==="success")e({title:"Success",description:"Settings saved and device is rebooting..."}),setTimeout(()=>{window.location.reload()},9e4);else throw Error((null===(a=r.response)||void 0===a?void 0:a.raw_output)||"Failed to reboot device")}catch(s){e({variant:"destructive",title:"Error",description:"Failed to reboot device",action:(0,r.jsx)(m.A,{})})}},E=async()=>{try{let e=S();y(e),b(!0)}catch(s){e({variant:"destructive",title:"Error",description:"Failed to prepare settings",action:(0,r.jsx)(m.A,{})})}},A=async()=>{try{var s,a;let e=await (0,x.a)(v,!0);if((null===(s=e.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(a=e.response)||void 0===a?void 0:a.raw_output)||"Command execution failed");w({...P}),await R()}catch(s){e({variant:"destructive",title:"Error",description:"Failed to save settings",action:(0,r.jsx)(m.A,{})})}};return(0,t.useEffect)(()=>{(async()=>{try{let[e,s]=await Promise.all([fetch("/cgi-bin/quecmanager/advance/fetch_macs.sh"),fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=4")]),[r,t]=await Promise.all([e.json(),s.json()]);j(r);let l=D(t);w(l),C(l),a(!1)}catch(s){a(!1),e({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch connectivity settings",action:(0,r.jsx)(m.A,{})})}})()},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Zp,{children:[(0,r.jsxs)(l.aR,{children:[(0,r.jsx)(l.ZB,{children:"Connectivity Settings"}),(0,r.jsx)(l.BT,{children:"Configure your device's connectivity settings."})]}),(0,r.jsx)(l.Wu,{children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"passthrough",children:"IP Passthrough Mode"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,passthrough:e})),value:P.passthrough||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select IP Passthrough Mode"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"Passthrough Mode"}),(0,r.jsx)(d.eb,{value:"disabled",children:"Disabled"}),(0,r.jsx)(d.eb,{value:"ETH",children:"ETH Passthrough Enabled"}),(0,r.jsx)(d.eb,{value:"USB",children:"USB Passthrough Enabled"})]})})]})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"mac",children:"Connected MAC"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,selectedMac:e})),value:P.selectedMac||void 0,disabled:!P.passthrough||"disabled"===P.passthrough,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select Active MAC"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"Active MAC"}),f.map(e=>(0,r.jsx)(d.eb,{value:e.mac,children:"".concat(e.hostname," - ").concat(e.mac)},e.mac))]})})]})]}),(0,r.jsx)(h.w,{className:"lg:col-span-2 col-span-1 my-2"}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"modemProtocol",children:"USB Modem Protocol"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,modemProtocol:e})),value:P.modemProtocol||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select USB Modem Protocol"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"USB Modem Protocol"}),(0,r.jsx)(d.eb,{value:"rmnet",children:"RMNET"}),(0,r.jsx)(d.eb,{value:"ecm",children:"ECM (Recommended)"}),(0,r.jsx)(d.eb,{value:"mbim",children:"MBIM"}),(0,r.jsx)(d.eb,{value:"rndis",children:"RNDIS"})]})})]})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"dnsProxy",children:"Onboard DNS Proxy Mode"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,dnsProxy:e})),value:P.dnsProxy||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select DNS Proxy Mode"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"DNS Proxy Mode"}),(0,r.jsx)(d.eb,{value:"enabled",children:"Enabled"}),(0,r.jsx)(d.eb,{value:"disabled",children:"Disabled (Recommended for Passthrough)"})]})})]})]})]})}),(0,r.jsx)(l.wL,{className:"grid border-t py-4",children:(0,r.jsx)(i.$,{onClick:E,disabled:!Object.entries(P).some(e=>{let[s,a]=e;return a!==N[s]})||!(!P.passthrough||"disabled"===P.passthrough||P.selectedMac),children:"Save"})})]}),(0,r.jsx)(o.Lt,{open:g,onOpenChange:b,children:(0,r.jsxs)(o.EO,{children:[(0,r.jsxs)(o.wd,{children:[(0,r.jsx)(o.r7,{children:"Reboot Required"}),(0,r.jsx)(o.$v,{children:"The changes you made require a device reboot to take effect. Would you like to reboot now?"})]}),(0,r.jsxs)(o.ck,{children:[(0,r.jsx)(o.Zr,{children:"Later"}),(0,r.jsxs)(o.Rx,{onClick:A,children:[(0,r.jsx)(p.A,{className:"w-4 h-4"}),"Save & Reboot Now"]})]})]})})]})}},114:(e,s,a)=>{a.d(s,{A:()=>d});var r=a(20475),t=a(42541),l=a(7197);let d=()=>(0,r.jsx)(t.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,r.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,r.jsx)(l.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},72167:(e,s,a)=>{a.d(s,{BT:()=>i,Wu:()=>c,ZB:()=>n,Zp:()=>d,aR:()=>o,wL:()=>u});var r=a(20475),t=a(20107),l=a(22250);let d=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...t})});d.displayName="Card";let o=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",a),...t})});o.displayName="CardHeader";let n=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("h3",{ref:s,className:(0,l.cn)("font-semibold leading-none tracking-tight",a),...t})});n.displayName="CardTitle";let i=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("p",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",a),...t})});i.displayName="CardDescription";let c=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",a),...t})});c.displayName="CardContent";let u=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",a),...t})});u.displayName="CardFooter"},49153:(e,s,a)=>{a.d(s,{J:()=>i});var r=a(20475),t=a(20107),l=a(21840),d=a(29395),o=a(22250);let n=(0,d.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(l.b,{ref:s,className:(0,o.cn)(n(),a),...t})});i.displayName=l.b.displayName},35601:(e,s,a)=>{a.d(s,{TR:()=>p,bq:()=>u,eb:()=>f,gC:()=>x,l6:()=>n,s3:()=>i,yv:()=>c});var r=a(20475),t=a(20107),l=a(7197),d=a(95257),o=a(22250);let n=d.bL,i=d.YJ,c=d.WT,u=t.forwardRef((e,s)=>{let{className:a,children:t,...n}=e;return(0,r.jsxs)(d.l9,{ref:s,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...n,children:[t,(0,r.jsx)(d.In,{asChild:!0,children:(0,r.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=d.l9.displayName;let h=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(d.PP,{ref:s,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...t,children:(0,r.jsx)(l.Mtm,{})})});h.displayName=d.PP.displayName;let m=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(d.wn,{ref:s,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...t,children:(0,r.jsx)(l.D3D,{})})});m.displayName=d.wn.displayName;let x=t.forwardRef((e,s)=>{let{className:a,children:t,position:l="popper",...n}=e;return(0,r.jsx)(d.ZL,{children:(0,r.jsxs)(d.UC,{ref:s,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:l,...n,children:[(0,r.jsx)(h,{}),(0,r.jsx)(d.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,r.jsx)(m,{})]})})});x.displayName=d.UC.displayName;let p=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(d.JU,{ref:s,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",a),...t})});p.displayName=d.JU.displayName;let f=t.forwardRef((e,s)=>{let{className:a,children:t,...n}=e;return(0,r.jsxs)(d.q7,{ref:s,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(d.VF,{children:(0,r.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,r.jsx)(d.p4,{children:t})]})});f.displayName=d.q7.displayName,t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,r.jsx)(d.wv,{ref:s,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",a),...t})}).displayName=d.wv.displayName},76554:(e,s,a)=>{a.d(s,{w:()=>o});var r=a(20475),t=a(20107),l=a(88853),d=a(22250);let o=t.forwardRef((e,s)=>{let{className:a,orientation:t="horizontal",decorative:o=!0,...n}=e;return(0,r.jsx)(l.b,{ref:s,decorative:o,orientation:t,className:(0,d.cn)("shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",a),...n})});o.displayName=l.b.displayName},36760:(e,s,a)=>{a.d(s,{E:()=>l});var r=a(20475),t=a(22250);function l(e){let{className:s,...a}=e;return(0,r.jsx)("div",{className:(0,t.cn)("animate-pulse rounded-md bg-primary/10",s),...a})}},88853:(e,s,a)=>{a.d(s,{b:()=>i});var r=a(20107),t=a(34544),l=a(20475),d="horizontal",o=["horizontal","vertical"],n=r.forwardRef((e,s)=>{let{decorative:a,orientation:r=d,...n}=e,i=o.includes(r)?r:d;return(0,l.jsx)(t.sG.div,{"data-orientation":i,...a?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"},...n,ref:s})});n.displayName="Separator";var i=n}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9975-17560cd1b51ce160.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9975-17560cd1b51ce160.js deleted file mode 100644 index b239d86..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/9975-17560cd1b51ce160.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9975],{67401:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(12115);let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:u="",children:d,iconNode:c,...p}=e;return(0,n.createElement)("svg",{ref:t,...a,width:l,height:l,stroke:r,strokeWidth:s?24*Number(i)/Number(l):i,className:o("lucide",u),...p},[...c.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:s,...u}=r;return(0,n.createElement)(i,{ref:a,iconNode:t,className:o("lucide-".concat(l(e)),s),...u})});return r.displayName="".concat(e),r}},61786:(e,t,r)=>{r.d(t,{q:()=>n});function n(e,[t,r]){return Math.min(r,Math.max(t,e))}},49741:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(12115),l=r(18166),o=r(88068),a=r(12317),i=r(95155);function s(e){let t=e+"CollectionProvider",[r,s]=(0,l.A)(t),[u,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,l=n.useRef(null),o=n.useRef(new Map).current;return(0,i.jsx)(u,{scope:t,itemMap:o,collectionRef:l,children:r})};c.displayName=t;let p=e+"CollectionSlot",f=(0,a.TL)(p),v=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=d(p,r),a=(0,o.s)(t,l.collectionRef);return(0,i.jsx)(f,{ref:a,children:n})});v.displayName=p;let h=e+"CollectionItemSlot",m="data-radix-collection-item",w=(0,a.TL)(h),g=n.forwardRef((e,t)=>{let{scope:r,children:l,...a}=e,s=n.useRef(null),u=(0,o.s)(t,s),c=d(h,r);return n.useEffect(()=>(c.itemMap.set(s,{ref:s,...a}),()=>void c.itemMap.delete(s))),(0,i.jsx)(w,{[m]:"",ref:u,children:l})});return g.displayName=h,[{Provider:c,Slot:v,ItemSlot:g},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},4256:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(12115);r(95155);var l=n.createContext(void 0);function o(e){let t=n.useContext(l);return e||t||"ltr"}},46195:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(12115),l=r(23360),o=r(95155),a=n.forwardRef((e,t)=>(0,o.jsx)(l.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var i=a},63409:(e,t,r)=>{r.d(t,{In:()=>eL,JU:()=>e_,LM:()=>eH,PP:()=>eW,UC:()=>eA,VF:()=>eG,WT:()=>eI,YJ:()=>eB,ZL:()=>eD,bL:()=>eP,l9:()=>eM,p4:()=>eO,q7:()=>eV,wn:()=>eF,wv:()=>eK});var n=r(12115),l=r(47650),o=r(61786),a=r(93610),i=r(49741),s=r(88068),u=r(18166),d=r(4256),c=r(59674),p=r(62292),f=r(20196),v=r(67668),h=r(19895),m=r(17323),w=r(23360),g=r(12317),x=r(41524),y=r(1488),b=r(46611),S=r(50858),C=r(63543),j=r(15587),R=r(64065),N=r(95155),k=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],E="Select",[P,M,I]=(0,i.N)(E),[L,D]=(0,u.A)(E,[I,h.Bk]),A=(0,h.Bk)(),[H,B]=L(E),[_,V]=L(E),O=e=>{let{__scopeSelect:t,children:r,open:l,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:u,dir:c,name:p,autoComplete:f,disabled:m,required:w,form:g}=e,x=A(t),[b,S]=n.useState(null),[C,j]=n.useState(null),[R,k]=n.useState(!1),T=(0,d.jH)(c),[E=!1,M]=(0,y.i)({prop:l,defaultProp:o,onChange:a}),[I,L]=(0,y.i)({prop:i,defaultProp:s,onChange:u}),D=n.useRef(null),B=!b||g||!!b.closest("form"),[V,O]=n.useState(new Set),G=Array.from(V).map(e=>e.props.value).join(";");return(0,N.jsx)(h.bL,{...x,children:(0,N.jsxs)(H,{required:w,scope:t,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:R,onValueNodeHasChildrenChange:k,contentId:(0,v.B)(),value:I,onValueChange:L,open:E,onOpenChange:M,dir:T,triggerPointerDownPosRef:D,disabled:m,children:[(0,N.jsx)(P.Provider,{scope:t,children:(0,N.jsx)(_,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{O(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),B?(0,N.jsxs)(ek,{"aria-hidden":!0,required:w,tabIndex:-1,name:p,autoComplete:f,value:I,onChange:e=>L(e.target.value),disabled:m,form:g,children:[void 0===I?(0,N.jsx)("option",{value:""}):null,Array.from(V)]},G):null]})})};O.displayName=E;var G="SelectTrigger",W=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:l=!1,...o}=e,i=A(r),u=B(G,r),d=u.disabled||l,c=(0,s.s)(t,u.onTriggerChange),p=M(r),f=n.useRef("touch"),[v,m,g]=eT(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eE(t,e,r);void 0!==n&&u.onValueChange(n.value)}),x=e=>{d||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,N.jsx)(h.Mz,{asChild:!0,...i,children:(0,N.jsx)(w.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":eN(u.value)?"":void 0,...o,ref:c,onClick:(0,a.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&x(e)}),onPointerDown:(0,a.m)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,a.m)(o.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&k.includes(e.key)&&(x(),e.preventDefault())})})})});W.displayName=G;var F="SelectValue",K=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:l,children:o,placeholder:a="",...i}=e,u=B(F,r),{onValueNodeHasChildrenChange:d}=u,c=void 0!==o,p=(0,s.s)(t,u.onValueNodeChange);return(0,b.N)(()=>{d(c)},[d,c]),(0,N.jsx)(w.sG.span,{...i,ref:p,style:{pointerEvents:"none"},children:eN(u.value)?(0,N.jsx)(N.Fragment,{children:a}):o})});K.displayName=F;var U=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...l}=e;return(0,N.jsx)(w.sG.span,{"aria-hidden":!0,...l,ref:t,children:n||"▼"})});U.displayName="SelectIcon";var q=e=>(0,N.jsx)(m.Z,{asChild:!0,...e});q.displayName="SelectPortal";var z="SelectContent",Z=n.forwardRef((e,t)=>{let r=B(z,e.__scopeSelect),[o,a]=n.useState();return((0,b.N)(()=>{a(new DocumentFragment)},[]),r.open)?(0,N.jsx)($,{...e,ref:t}):o?l.createPortal((0,N.jsx)(Y,{scope:e.__scopeSelect,children:(0,N.jsx)(P.Slot,{scope:e.__scopeSelect,children:(0,N.jsx)("div",{children:e.children})})}),o):null});Z.displayName=z;var[Y,J]=L(z),X=(0,g.TL)("SelectContent.RemoveScroll"),$=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:u,side:d,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:g,collisionPadding:x,sticky:y,hideWhenDetached:b,avoidCollisions:S,...C}=e,k=B(z,r),[T,E]=n.useState(null),[P,I]=n.useState(null),L=(0,s.s)(t,e=>E(e)),[D,A]=n.useState(null),[H,_]=n.useState(null),V=M(r),[O,G]=n.useState(!1),W=n.useRef(!1);n.useEffect(()=>{if(T)return(0,j.Eq)(T)},[T]),(0,p.Oh)();let F=n.useCallback(e=>{let[t,...r]=V().map(e=>e.ref.current),[n]=r.slice(-1),l=document.activeElement;for(let r of e)if(r===l||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&P&&(P.scrollTop=0),r===n&&P&&(P.scrollTop=P.scrollHeight),null==r||r.focus(),document.activeElement!==l))return},[V,P]),K=n.useCallback(()=>F([D,T]),[F,D,T]);n.useEffect(()=>{O&&K()},[O,K]);let{onOpenChange:U,triggerPointerDownPosRef:q}=k;n.useEffect(()=>{if(T){let e={x:0,y:0},t=t=>{var r,n,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(l=null===(r=q.current)||void 0===r?void 0:r.x)&&void 0!==l?l:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=q.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():T.contains(r.target)||U(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[T,U,q]),n.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[Z,J]=eT(e=>{let t=V().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eE(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),$=n.useCallback((e,t,r)=>{let n=!W.current&&!r;(void 0!==k.value&&k.value===t||n)&&(A(e),n&&(W.current=!0))},[k.value]),et=n.useCallback(()=>null==T?void 0:T.focus(),[T]),er=n.useCallback((e,t,r)=>{let n=!W.current&&!r;(void 0!==k.value&&k.value===t||n)&&_(e)},[k.value]),en="popper"===l?ee:Q,el=en===ee?{side:d,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:g,collisionPadding:x,sticky:y,hideWhenDetached:b,avoidCollisions:S}:{};return(0,N.jsx)(Y,{scope:r,content:T,viewport:P,onViewportChange:I,itemRefCallback:$,selectedItem:D,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:K,selectedItemText:H,position:l,isPositioned:O,searchRef:Z,children:(0,N.jsx)(R.A,{as:X,allowPinchZoom:!0,children:(0,N.jsx)(f.n,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(o,e=>{var t;null===(t=k.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,N.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,N.jsx)(en,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...C,...el,onPlaced:()=>G(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,a.m)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});$.displayName="SelectContentImpl";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:l,...a}=e,i=B(z,r),u=J(z,r),[d,c]=n.useState(null),[p,f]=n.useState(null),v=(0,s.s)(t,e=>f(e)),h=M(r),m=n.useRef(!1),g=n.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=u,j=n.useCallback(()=>{if(i.trigger&&i.valueNode&&d&&p&&x&&y&&S){let e=i.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==i.dir){let l=n.left-t.left,a=r.left-l,i=e.left-a,s=e.width+i,u=Math.max(s,t.width),c=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.left=p+"px"}else{let l=t.right-n.right,a=window.innerWidth-r.right-l,i=window.innerWidth-e.right-a,s=e.width+i,u=Math.max(s,t.width),c=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.right=p+"px"}let a=h(),s=window.innerHeight-20,u=x.scrollHeight,c=window.getComputedStyle(p),f=parseInt(c.borderTopWidth,10),v=parseInt(c.paddingTop,10),w=parseInt(c.borderBottomWidth,10),g=f+v+u+parseInt(c.paddingBottom,10)+w,b=Math.min(5*y.offsetHeight,g),C=window.getComputedStyle(x),j=parseInt(C.paddingTop,10),R=parseInt(C.paddingBottom,10),N=e.top+e.height/2-10,k=y.offsetHeight/2,T=f+v+(y.offsetTop+k);if(T<=N){let e=a.length>0&&y===a[a.length-1].ref.current;d.style.bottom="0px";let t=Math.max(s-N,k+(e?R:0)+(p.clientHeight-x.offsetTop-x.offsetHeight)+w);d.style.height=T+t+"px"}else{let e=a.length>0&&y===a[0].ref.current;d.style.top="0px";let t=Math.max(N,f+x.offsetTop+(e?j:0)+k);d.style.height=t+(g-T)+"px",x.scrollTop=T-N+x.offsetTop}d.style.margin="".concat(10,"px 0"),d.style.minHeight=b+"px",d.style.maxHeight=s+"px",null==l||l(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,d,p,x,y,S,i.dir,l]);(0,b.N)(()=>j(),[j]);let[R,k]=n.useState();(0,b.N)(()=>{p&&k(window.getComputedStyle(p).zIndex)},[p]);let T=n.useCallback(e=>{e&&!0===g.current&&(j(),null==C||C(),g.current=!1)},[j,C]);return(0,N.jsx)(et,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:(0,N.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,N.jsx)(w.sG.div,{...a,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Q.displayName="SelectItemAlignedPosition";var ee=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:l=10,...o}=e,a=A(r);return(0,N.jsx)(h.UC,{...a,...o,ref:t,align:n,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ee.displayName="SelectPopperPosition";var[et,er]=L(z,{}),en="SelectViewport",el=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:l,...o}=e,i=J(en,r),u=er(en,r),d=(0,s.s)(t,i.onViewportChange),c=n.useRef(0);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,N.jsx)(P.Slot,{scope:r,children:(0,N.jsx)(w.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(c.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,l=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(l0?i:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});el.displayName=en;var eo="SelectGroup",[ea,ei]=L(eo),es=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=(0,v.B)();return(0,N.jsx)(ea,{scope:r,id:l,children:(0,N.jsx)(w.sG.div,{role:"group","aria-labelledby":l,...n,ref:t})})});es.displayName=eo;var eu="SelectLabel",ed=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=ei(eu,r);return(0,N.jsx)(w.sG.div,{id:l.id,...n,ref:t})});ed.displayName=eu;var ec="SelectItem",[ep,ef]=L(ec),ev=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:l,disabled:o=!1,textValue:i,...u}=e,d=B(ec,r),c=J(ec,r),p=d.value===l,[f,h]=n.useState(null!=i?i:""),[m,g]=n.useState(!1),x=(0,s.s)(t,e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,l,o)}),y=(0,v.B)(),b=n.useRef("touch"),S=()=>{o||(d.onValueChange(l),d.onOpenChange(!1))};if(""===l)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,N.jsx)(ep,{scope:r,value:l,disabled:o,textId:y,isSelected:p,onItemTextChange:n.useCallback(e=>{h(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,N.jsx)(P.ItemSlot,{scope:r,value:l,disabled:o,textValue:f,children:(0,N.jsx)(w.sG.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":p&&m,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:x,onFocus:(0,a.m)(u.onFocus,()=>g(!0)),onBlur:(0,a.m)(u.onBlur,()=>g(!1)),onClick:(0,a.m)(u.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,a.m)(u.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,a.m)(u.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,a.m)(u.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}}),onKeyDown:(0,a.m)(u.onKeyDown,e=>{var t;(null===(t=c.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(T.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});ev.displayName=ec;var eh="SelectItemText",em=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...i}=e,u=B(eh,r),d=J(eh,r),c=ef(eh,r),p=V(eh,r),[f,v]=n.useState(null),h=(0,s.s)(t,e=>v(e),c.onItemTextChange,e=>{var t;return null===(t=d.itemTextRefCallback)||void 0===t?void 0:t.call(d,e,c.value,c.disabled)}),m=null==f?void 0:f.textContent,g=n.useMemo(()=>(0,N.jsx)("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=p;return(0,b.N)(()=>(x(g),()=>y(g)),[x,y,g]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(w.sG.span,{id:c.textId,...i,ref:h}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren?l.createPortal(i.children,u.valueNode):null]})});em.displayName=eh;var ew="SelectItemIndicator",eg=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ef(ew,r).isSelected?(0,N.jsx)(w.sG.span,{"aria-hidden":!0,...n,ref:t}):null});eg.displayName=ew;var ex="SelectScrollUpButton",ey=n.forwardRef((e,t)=>{let r=J(ex,e.__scopeSelect),l=er(ex,e.__scopeSelect),[o,a]=n.useState(!1),i=(0,s.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,N.jsx)(eC,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ey.displayName=ex;var eb="SelectScrollDownButton",eS=n.forwardRef((e,t)=>{let r=J(eb,e.__scopeSelect),l=er(eb,e.__scopeSelect),[o,a]=n.useState(!1),i=(0,s.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,N.jsx)(eC,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eS.displayName=eb;var eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:l,...o}=e,i=J("SelectScrollButton",r),s=n.useRef(null),u=M(r),d=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>d(),[d]),(0,b.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,N.jsx)(w.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.m)(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(l,50))}),onPointerMove:(0,a.m)(o.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===s.current&&(s.current=window.setInterval(l,50))}),onPointerLeave:(0,a.m)(o.onPointerLeave,()=>{d()})})}),ej=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,N.jsx)(w.sG.div,{"aria-hidden":!0,...n,ref:t})});ej.displayName="SelectSeparator";var eR="SelectArrow";function eN(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=A(r),o=B(eR,r),a=J(eR,r);return o.open&&"popper"===a.position?(0,N.jsx)(h.i3,{...l,...n,ref:t}):null}).displayName=eR;var ek=n.forwardRef((e,t)=>{let{value:r,...l}=e,o=n.useRef(null),a=(0,s.s)(t,o),i=(0,S.Z)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[i,r]),(0,N.jsx)(C.s,{asChild:!0,children:(0,N.jsx)("select",{...l,ref:a,defaultValue:r})})});function eT(e){let t=(0,x.c)(e),r=n.useRef(""),l=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(l.current),""!==t&&(l.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(l.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(l.current),[]),[r,o,a]}function eE(e,t,r){var n;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===l.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return a!==r?a:void 0}ek.displayName="BubbleSelect";var eP=O,eM=W,eI=K,eL=U,eD=q,eA=Z,eH=el,eB=es,e_=ed,eV=ev,eO=em,eG=eg,eW=ey,eF=eS,eK=ej},50858:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(12115);function l(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63543:(e,t,r)=>{r.d(t,{b:()=>i,s:()=>a});var n=r(12115),l=r(23360),o=r(95155),a=n.forwardRef((e,t)=>(0,o.jsx)(l.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var i=a}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-616c95298fb67efc.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-1ecc3e30807e12eb.js similarity index 82% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-616c95298fb67efc.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-1ecc3e30807e12eb.js index bf8e800..eafb5f0 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-616c95298fb67efc.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-1ecc3e30807e12eb.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9492],{53868:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return r(55623)}])},73384:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}}),r(60306);let l=r(95155);r(12115);let n={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function o(e){let{status:t,message:r}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t+": "+r}),(0,l.jsx)("div",{style:n.error,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,l.jsx)("h1",{className:"next-error-h1",style:n.h1,children:t}),(0,l.jsx)("div",{style:n.desc,children:(0,l.jsx)("h2",{style:n.h2,children:r})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let l=r(95155),n=r(73384);function o(){return(0,l.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[8441,1517,7358],()=>t(53868)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9492],{56596:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return r(76607)}])},69328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}}),r(67342);let l=r(20475);r(20107);let n={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function o(e){let{status:t,message:r}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t+": "+r}),(0,l.jsx)("div",{style:n.error,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,l.jsx)("h1",{className:"next-error-h1",style:n.h1,children:t}),(0,l.jsx)("div",{style:n.desc,children:(0,l.jsx)("h2",{style:n.h2,children:r})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let l=r(20475),n=r(69328);function o(){return(0,l.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[191,6035,7358],()=>t(56596)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-bbc06305e37a1ebd.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-bbc06305e37a1ebd.js new file mode 100644 index 0000000..eafb5f0 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-bbc06305e37a1ebd.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9492],{56596:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return r(76607)}])},69328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}}),r(67342);let l=r(20475);r(20107);let n={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function o(e){let{status:t,message:r}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t+": "+r}),(0,l.jsx)("div",{style:n.error,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,l.jsx)("h1",{className:"next-error-h1",style:n.h1,children:t}),(0,l.jsx)("div",{style:n.desc,children:(0,l.jsx)("h2",{style:n.h2,children:r})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let l=r(20475),n=r(69328);function o(){return(0,l.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[191,6035,7358],()=>t(56596)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-2fbc5ec61a31e012.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-2fbc5ec61a31e012.js new file mode 100644 index 0000000..32a8bdc --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-2fbc5ec61a31e012.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6655],{39884:(e,n,t)=>{Promise.resolve().then(t.bind(t,51228))},51228:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var s=t(20475),r=t(20107),a=t(72167);let i=()=>{let[e,n]=(0,r.useState)(null),[t,s]=(0,r.useState)(!0),a=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/settings/device-uptime.sh"),t=await e.json();n(e=>e?{...e,deviceUptime:t.uptime.formatted||"N/A"}:e)}catch(e){console.error("Error fetching uptime:",e)}},[]),i=(0,r.useCallback)(async()=>{try{s(!0);let[e,t]=await Promise.all([fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=3"),fetch("/cgi-bin/quecmanager/settings/device-uptime.sh")]),[r,a]=await Promise.all([e.json(),t.json()]),i={manufacturer:r[0].response.split("\n")[1].trim(),model:r[1].response.split("\n")[1].trim(),firmwareVersion:r[2].response.split("\n")[1].trim(),phoneNum:r[3].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim(),imsi:r[4].response.split("\n")[1].trim(),iccid:r[5].response.split("\n")[1].split(":")[1].trim(),imei:r[6].response.split("\n")[1].trim(),currentDeviceIP:r[7].response.split("\n")[1].split(",")[1].replace(/"/g,"").trim(),lanGateway:r[7].response.split("\n")[1].split(":")[1].split(",")[3].replace(/"/g,"").trim(),wwanIPv4:r[8].response.split("\n")[1].split(":")[1].split(",")[4].replace(/"/g,"").trim(),wwanIPv6:r[8].response.split("\n")[2].split(",")[4].replace(/"/g,"").trim(),lteCategory:r[9].response.split("\n")[5].split(":")[2].trim(),deviceUptime:a.uptime.formatted||"N/A"};n(i)}catch(e){console.error("Error fetching data:",e)}s(!1)},[]);return(0,r.useEffect)(()=>{i();let e=setInterval(a,1e3);return()=>{clearInterval(e)}},[i,a]),{data:e,isLoading:t,fetchAboutData:i}};var l=t(36824),c=t(36760);let d=()=>{let{data:e,isLoading:n}=i();return(0,s.jsxs)(a.Zp,{children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"QuecManager"}),(0,s.jsx)(a.BT,{children:"What is QuecManager and how it can help you."})]}),(0,s.jsxs)(a.Wu,{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-8",children:[(0,s.jsxs)(a.Zp,{children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"Device Technical Details"}),(0,s.jsx)(a.BT,{children:"View technical details of your device."})]}),(0,s.jsx)(a.Wu,{children:(0,s.jsxs)(l.F,{className:"w-full",children:[(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Modem Manufacturer"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.manufacturer)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Modem Model"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.model)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Firmware Revision"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.firmwareVersion)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"LTE Category"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsxs)(s.Fragment,{children:["CAT-",(null==e?void 0:e.lteCategory)||"N/A"]})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Active Phone Number"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.phoneNum)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Active IMSI"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.imsi)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Active ICCID"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.iccid)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"IMEI"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.imei)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Current Device IP"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.currentDeviceIP)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"LAN Gateway"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.lanGateway)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"WWAN IPv4"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.wwanIPv4)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"WWAN IPv6"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.wwanIPv6)||"N/A"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Device Uptime"}),(0,s.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,s.jsx)(c.E,{className:"h-4 w-32"}):(0,s.jsx)(s.Fragment,{children:(null==e?void 0:e.deviceUptime)||"N/A"})})]})]}),(0,s.jsx)(l.$,{orientation:"horizontal"})]})})]}),(0,s.jsxs)(a.Zp,{children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"About Us"}),(0,s.jsx)(a.BT,{children:"Who we are and what we do."})]}),(0,s.jsxs)(a.Wu,{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsx)("h1",{className:"text-xl font-bold antialiased",children:"QuecManager"}),(0,s.jsx)("p",{className:"text-md font-medium antialiased",children:"QuecManager is a modern dashboard for managing and monitoring cellular modems, evolved from its roots as 'Simple Admin' in the RGMII toolkit. The application provides real-time insights into signal metrics, carrier aggregation, network addressing, and band-specific performance while offering intuitive controls for modem configuration. With its comprehensive feature set and clean interface, QuecManager transforms complex cellular technology into an accessible experience for both technical users and those simply looking to optimize their connectivity. Our mission remains focused on delivering powerful monitoring and management capabilities without sacrificing usability or visual clarity."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-xl font-bold antialiased",children:"Thanks to"}),(0,s.jsxs)("ul",{className:"list-disc list-inside text-md font-medium antialiased",children:[(0,s.jsxs)("li",{children:["RGMII Toolkit, Documentation, and Backend",(0,s.jsx)("a",{href:"https://github.com/iamromulan",target:"_blank",className:"text-primary font-semibold ml-2",children:"iamromulan"})]}),(0,s.jsxs)("li",{children:["Simple Admin 2.0 and QuecManager Scripts & GUI",(0,s.jsx)("a",{href:"https://github.com/dr-dolomite",target:"_blank",className:"text-primary font-semibold ml-2",children:"dr-dolomite"})]}),(0,s.jsxs)("li",{children:["Original Simple Admin",(0,s.jsx)("a",{href:"https://github.com/aesthernr",target:"_blank",className:"text-primary font-semibold ml-2",children:"aesthernr"})]}),(0,s.jsxs)("li",{children:["Original Socat Bridge",(0,s.jsx)("a",{href:"https://github.com/natecarlson",target:"_blank",className:"text-primary font-semibold ml-2",children:"natecarlson"})]}),(0,s.jsx)("li",{children:"Wutang Clan"})]})]})]})]})]}),(0,s.jsx)(a.wL,{className:"flex justify-center",children:(0,s.jsx)("p",{children:"QuecManager \xa9 2024 - For Personal Use Only. All rights reserved."})})]})}},72167:(e,n,t)=>{"use strict";t.d(n,{BT:()=>d,Wu:()=>o,ZB:()=>c,Zp:()=>i,aR:()=>l,wL:()=>m});var s=t(20475),r=t(20107),a=t(22250);let i=r.forwardRef((e,n)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:n,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...r})});i.displayName="Card";let l=r.forwardRef((e,n)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:n,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",t),...r})});l.displayName="CardHeader";let c=r.forwardRef((e,n)=>{let{className:t,...r}=e;return(0,s.jsx)("h3",{ref:n,className:(0,a.cn)("font-semibold leading-none tracking-tight",t),...r})});c.displayName="CardTitle";let d=r.forwardRef((e,n)=>{let{className:t,...r}=e;return(0,s.jsx)("p",{ref:n,className:(0,a.cn)("text-sm text-muted-foreground",t),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,n)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:n,className:(0,a.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent";let m=r.forwardRef((e,n)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:n,className:(0,a.cn)("flex items-center p-6 pt-0",t),...r})});m.displayName="CardFooter"},36824:(e,n,t)=>{"use strict";t.d(n,{$:()=>c,F:()=>l});var s=t(20475),r=t(20107),a=t(89679),i=t(22250);let l=r.forwardRef((e,n)=>{let{className:t,children:r,...l}=e;return(0,s.jsxs)(a.bL,{ref:n,className:(0,i.cn)("relative overflow-hidden",t),...l,children:[(0,s.jsx)(a.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,s.jsx)(c,{}),(0,s.jsx)(a.OK,{})]})});l.displayName=a.bL.displayName;let c=r.forwardRef((e,n)=>{let{className:t,orientation:r="vertical",...l}=e;return(0,s.jsx)(a.VM,{ref:n,orientation:r,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...l,children:(0,s.jsx)(a.lr,{className:"relative flex-1 rounded-full bg-border"})})});c.displayName=a.VM.displayName},36760:(e,n,t)=>{"use strict";t.d(n,{E:()=>a});var s=t(20475),r=t(22250);function a(e){let{className:n,...t}=e;return(0,s.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",n),...t})}},22250:(e,n,t)=>{"use strict";t.d(n,{cn:()=>a});var s=t(64901),r=t(868);function a(){for(var e=arguments.length,n=Array(e),t=0;t{"use strict";function s(e,n,{checkForDefaultPrevented:t=!0}={}){return function(s){if(e?.(s),!1===t||!s.defaultPrevented)return n?.(s)}}t.d(n,{m:()=>s})},45170:(e,n,t)=>{"use strict";t.d(n,{A:()=>i,q:()=>a});var s=t(20107),r=t(20475);function a(e,n){let t=s.createContext(n),a=e=>{let{children:n,...a}=e,i=s.useMemo(()=>a,Object.values(a));return(0,r.jsx)(t.Provider,{value:i,children:n})};return a.displayName=e+"Provider",[a,function(r){let a=s.useContext(t);if(a)return a;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function i(e,n=[]){let t=[],a=()=>{let n=t.map(e=>s.createContext(e));return function(t){let r=t?.[e]||n;return s.useMemo(()=>({[`__scope${e}`]:{...t,[e]:r}}),[t,r])}};return a.scopeName=e,[function(n,a){let i=s.createContext(a),l=t.length;t=[...t,a];let c=n=>{let{scope:t,children:a,...c}=n,d=t?.[e]?.[l]||i,o=s.useMemo(()=>c,Object.values(c));return(0,r.jsx)(d.Provider,{value:o,children:a})};return c.displayName=n+"Provider",[c,function(t,r){let c=r?.[e]?.[l]||i,d=s.useContext(c);if(d)return d;if(void 0!==a)return a;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=t.reduce((n,{useScope:t,scopeName:s})=>{let r=t(e)[`__scope${s}`];return{...n,...r}},{});return s.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])}};return t.scopeName=n.scopeName,t}(a,...n)]}},54245:(e,n,t)=>{"use strict";t.d(n,{C:()=>i});var s=t(20107),r=t(64236),a=t(54122),i=e=>{let{present:n,children:t}=e,i=function(e){var n,t;let[r,i]=s.useState(),c=s.useRef({}),d=s.useRef(e),o=s.useRef("none"),[m,u]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},s.useReducer((e,n)=>{let s=t[e][n];return null!=s?s:e},n));return s.useEffect(()=>{let e=l(c.current);o.current="mounted"===m?e:"none"},[m]),(0,a.N)(()=>{let n=c.current,t=d.current;if(t!==e){let s=o.current,r=l(n);e?u("MOUNT"):"none"===r||(null==n?void 0:n.display)==="none"?u("UNMOUNT"):t&&s!==r?u("ANIMATION_OUT"):u("UNMOUNT"),d.current=e}},[e,u]),(0,a.N)(()=>{if(r){var e;let n;let t=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,s=e=>{let s=l(c.current).includes(e.animationName);if(e.target===r&&s&&(u("ANIMATION_END"),!d.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(o.current=l(c.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",s),r.addEventListener("animationend",s),()=>{t.clearTimeout(n),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",s),r.removeEventListener("animationend",s)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:s.useCallback(e=>{e&&(c.current=getComputedStyle(e)),i(e)},[])}}(n),c="function"==typeof t?t({present:i.isPresent}):s.Children.only(t),d=(0,r.s)(i.ref,function(e){var n,t;let s=null===(n=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===n?void 0:n.get,r=s&&"isReactWarning"in s&&s.isReactWarning;return r?e.ref:(r=(s=null===(t=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in s&&s.isReactWarning)?e.props.ref:e.props.ref||e.ref}(c));return"function"==typeof t||i.isPresent?s.cloneElement(c,{ref:d}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},34544:(e,n,t)=>{"use strict";t.d(n,{hO:()=>c,sG:()=>l});var s=t(20107),r=t(25642),a=t(61837),i=t(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let t=s.forwardRef((e,t)=>{let{asChild:s,...r}=e,l=s?a.DX:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...r,ref:t})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{});function c(e,n){e&&r.flushSync(()=>e.dispatchEvent(n))}},46774:(e,n,t)=>{"use strict";t.d(n,{c:()=>r});var s=t(20107);function r(e){let n=s.useRef(e);return s.useEffect(()=>{n.current=e}),s.useMemo(()=>(...e)=>n.current?.(...e),[])}},54122:(e,n,t)=>{"use strict";t.d(n,{N:()=>r});var s=t(20107),r=globalThis?.document?s.useLayoutEffect:()=>{}}},e=>{var n=n=>e(e.s=n);e.O(0,[7780,9679,191,6035,7358],()=>n(39884)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-3389922e77238235.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-3389922e77238235.js deleted file mode 100644 index ad98c5b..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-3389922e77238235.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6655],{53444:(e,s,n)=>{Promise.resolve().then(n.bind(n,27548))},27548:(e,s,n)=>{"use strict";n.r(s),n.d(s,{default:()=>u});var t=n(95155),r=n(12115),l=n(35007);let i=()=>{let[e,s]=(0,r.useState)(null),[n,t]=(0,r.useState)(!0),l=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/settings/device-uptime.sh"),n=await e.json();s(e=>e?{...e,deviceUptime:n.uptime.formatted||"N/A"}:e)}catch(e){console.error("Error fetching uptime:",e)}},[]),i=(0,r.useCallback)(async()=>{try{t(!0);let[e,n]=await Promise.all([fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=3"),fetch("/cgi-bin/quecmanager/settings/device-uptime.sh")]),[r,l]=await Promise.all([e.json(),n.json()]);console.log("Raw data:",r);let i={manufacturer:r[0].response.split("\n")[1].trim(),model:r[1].response.split("\n")[1].trim(),firmwareVersion:r[2].response.split("\n")[1].trim(),phoneNum:r[3].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim(),imsi:r[4].response.split("\n")[1].trim(),iccid:r[5].response.split("\n")[1].split(":")[1].trim(),imei:r[6].response.split("\n")[1].trim(),currentDeviceIP:r[7].response.split("\n")[1].split(",")[1].replace(/"/g,"").trim(),lanGateway:r[7].response.split("\n")[1].split(":")[1].split(",")[3].replace(/"/g,"").trim(),wwanIPv4:r[8].response.split("\n")[1].split(":")[1].split(",")[4].replace(/"/g,"").trim(),wwanIPv6:r[8].response.split("\n")[2].split(",")[4].replace(/"/g,"").trim(),lteCategory:r[9].response.split("\n")[5].split(":")[2].trim(),deviceUptime:l.uptime.formatted||"N/A",LTE3GppRel:r[10].response.split("\n")[1].split(":")[1].split(",")[1].replace(/R/g,"").trim(),NR3GppRel:r[10].response.split("\n")[1].split(":")[1].split(",")[2].replace(/R/g,"").trim()};s(i)}catch(e){console.error("Error fetching data:",e)}t(!1)},[]);return(0,r.useEffect)(()=>{i();let e=setInterval(l,1e3);return()=>{clearInterval(e)}},[i,l]),{data:e,isLoading:n,fetchAboutData:i}};var a=n(3392),c=n(25488),d=n(14085),o=n(92598),m=n(80738);let u=()=>{var e,s,n,u;let{data:x,isLoading:f}=i(),[p,h]=r.useState(!1);return(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"QuecManager"}),(0,t.jsx)(l.BT,{children:(0,t.jsx)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:(0,t.jsx)("div",{className:"grid gap-4",children:(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,t.jsx)("div",{className:"flex flex-row items-center gap-x-2",children:"What is QuecManager and how it can help you."}),(0,t.jsx)("div",{className:"flex flex-row items-center gap-x-2",children:(0,t.jsxs)(d.$,{onClick:()=>h(e=>!e),children:[p?(0,t.jsx)(o.A,{className:"xl:size-6 size-5"}):(0,t.jsx)(m.A,{className:"xl:size-6 size-5"}),(0,t.jsxs)("span",{className:"hidden md:block",children:[p?"Show":"Hide"," Sensitive Data"]})]})})]})})})})]}),(0,t.jsxs)(l.Wu,{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-8",children:[(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"Device Technical Details"}),(0,t.jsx)(l.BT,{children:"View technical details of your device."})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)(a.F,{className:"w-full",children:[(0,t.jsxs)("div",{className:"grid md:gap-2 gap-4",children:[(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Modem Manufacturer"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.manufacturer)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Modem Model"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.model)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"LTE 3GPP Release Version"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsxs)(t.Fragment,{children:["Release ",(null==x?void 0:x.LTE3GppRel)||"N/A"]})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"NR5G 3GPP Release Version"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsxs)(t.Fragment,{children:["Release ",(null==x?void 0:x.NR3GppRel)||"N/A"]})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Firmware Revision"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.firmwareVersion)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"LTE Category"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsxs)(t.Fragment,{children:["CAT-",(null==x?void 0:x.lteCategory)||"N/A"]})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Active Phone Number"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):p?(0,t.jsxs)("i",{children:[null==x?void 0:null===(e=x.phoneNum)||void 0===e?void 0:e.replace(/[0-9]/g,"0")," (Masked)"]}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.phoneNum)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Active IMSI"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):p?(0,t.jsxs)("i",{children:[null==x?void 0:null===(s=x.imsi)||void 0===s?void 0:s.replace(/[0-9a-zA-Z]/g,"X")," (Masked)"]}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.imsi)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Active ICCID"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):p?(0,t.jsxs)("i",{children:[null==x?void 0:null===(n=x.iccid)||void 0===n?void 0:n.replace(/[0-9a-zA-Z]/g,"X")," (Masked)"]}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.iccid)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"IMEI"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):p?(0,t.jsxs)("i",{children:[null==x?void 0:null===(u=x.imei)||void 0===u?void 0:u.replace(/[0-9a-zA-Z]/g,"X")," (Masked)"]}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.imei)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Current Device IP"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.currentDeviceIP)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"LAN Gateway"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.lanGateway)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"WWAN IPv4"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):p?(0,t.jsx)("i",{children:"127.0.0.1 (Masked)"}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.wwanIPv4)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"WWAN IPv6"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):p?(0,t.jsx)("i",{children:"::1 (Masked)"}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.wwanIPv6)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Device Uptime"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:f?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==x?void 0:x.deviceUptime)||"N/A"})})]})]}),(0,t.jsx)(a.$,{orientation:"horizontal"})]})})]}),(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"About Us"}),(0,t.jsx)(l.BT,{children:"Who we are and what we do."})]}),(0,t.jsxs)(l.Wu,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h1",{className:"text-xl font-bold antialiased",children:"QuecManager"}),(0,t.jsx)("p",{className:"text-md font-medium antialiased",children:"QuecManager is a modern dashboard for managing and monitoring cellular modems, evolved from its roots as 'Simple Admin' in the RGMII toolkit. The application provides real-time insights into signal metrics, carrier aggregation, network addressing, and band-specific performance while offering intuitive controls for modem configuration. With its comprehensive feature set and clean interface, QuecManager transforms complex cellular technology into an accessible experience for both technical users and those simply looking to optimize their connectivity. Our mission remains focused on delivering powerful monitoring and management capabilities without sacrificing usability or visual clarity."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl font-bold antialiased",children:"Thanks to"}),(0,t.jsxs)("ul",{className:"list-disc list-inside text-md font-medium antialiased",children:[(0,t.jsxs)("li",{children:["RGMII Toolkit, Documentation, and Backend",(0,t.jsx)("a",{href:"https://github.com/iamromulan",target:"_blank",className:"text-primary font-semibold ml-2",children:"iamromulan"})]}),(0,t.jsxs)("li",{children:["Simple Admin 2.0 and QuecManager Scripts & GUI",(0,t.jsx)("a",{href:"https://github.com/dr-dolomite",target:"_blank",className:"text-primary font-semibold ml-2",children:"dr-dolomite"})]}),(0,t.jsxs)("li",{children:["Original Simple Admin",(0,t.jsx)("a",{href:"https://github.com/aesthernr",target:"_blank",className:"text-primary font-semibold ml-2",children:"aesthernr"})]}),(0,t.jsxs)("li",{children:["Original Socat Bridge",(0,t.jsx)("a",{href:"https://github.com/natecarlson",target:"_blank",className:"text-primary font-semibold ml-2",children:"natecarlson"})]}),(0,t.jsx)("li",{children:"Wutang Clan"})]})]})]})]})]}),(0,t.jsx)(l.wL,{className:"flex justify-center",children:(0,t.jsx)("p",{children:"QuecManager \xa9 2024 - For Personal Use Only. All rights reserved."})})]})}},14085:(e,s,n)=>{"use strict";n.d(s,{$:()=>d,r:()=>c});var t=n(95155),r=n(12115),l=n(12317),i=n(31027),a=n(29602);let c=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,s)=>{let{className:n,variant:r,size:i,asChild:d=!1,...o}=e,m=d?l.DX:"button";return(0,t.jsx)(m,{className:(0,a.cn)(c({variant:r,size:i,className:n})),ref:s,...o})});d.displayName="Button"},35007:(e,s,n)=>{"use strict";n.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>c,Zp:()=>i,aR:()=>a,wL:()=>m});var t=n(95155),r=n(12115),l=n(29602);let i=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...r})});i.displayName="Card";let a=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",n),...r})});a.displayName="CardHeader";let c=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("h3",{ref:s,className:(0,l.cn)("font-semibold leading-none tracking-tight",n),...r})});c.displayName="CardTitle";let d=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("p",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",n),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",n),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",n),...r})});m.displayName="CardFooter"},3392:(e,s,n)=>{"use strict";n.d(s,{$:()=>c,F:()=>a});var t=n(95155),r=n(12115),l=n(21868),i=n(29602);let a=r.forwardRef((e,s)=>{let{className:n,children:r,...a}=e;return(0,t.jsxs)(l.bL,{ref:s,className:(0,i.cn)("relative overflow-hidden",n),...a,children:[(0,t.jsx)(l.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(c,{}),(0,t.jsx)(l.OK,{})]})});a.displayName=l.bL.displayName;let c=r.forwardRef((e,s)=>{let{className:n,orientation:r="vertical",...a}=e;return(0,t.jsx)(l.VM,{ref:s,orientation:r,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",n),...a,children:(0,t.jsx)(l.lr,{className:"relative flex-1 rounded-full bg-border"})})});c.displayName=l.VM.displayName},25488:(e,s,n)=>{"use strict";n.d(s,{E:()=>l});var t=n(95155),r=n(29602);function l(e){let{className:s,...n}=e;return(0,t.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...n})}},29602:(e,s,n)=>{"use strict";n.d(s,{cn:()=>l});var t=n(43463),r=n(69795);function l(){for(var e=arguments.length,s=Array(e),n=0;n{"use strict";n.d(s,{A:()=>t});let t=(0,n(67401).A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},92598:(e,s,n)=>{"use strict";n.d(s,{A:()=>t});let t=(0,n(67401).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},93610:(e,s,n)=>{"use strict";function t(e,s,{checkForDefaultPrevented:n=!0}={}){return function(t){if(e?.(t),!1===n||!t.defaultPrevented)return s?.(t)}}n.d(s,{m:()=>t})},18166:(e,s,n)=>{"use strict";n.d(s,{A:()=>i,q:()=>l});var t=n(12115),r=n(95155);function l(e,s){let n=t.createContext(s),l=e=>{let{children:s,...l}=e,i=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(n.Provider,{value:i,children:s})};return l.displayName=e+"Provider",[l,function(r){let l=t.useContext(n);if(l)return l;if(void 0!==s)return s;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function i(e,s=[]){let n=[],l=()=>{let s=n.map(e=>t.createContext(e));return function(n){let r=n?.[e]||s;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return l.scopeName=e,[function(s,l){let i=t.createContext(l),a=n.length;n=[...n,l];let c=s=>{let{scope:n,children:l,...c}=s,d=n?.[e]?.[a]||i,o=t.useMemo(()=>c,Object.values(c));return(0,r.jsx)(d.Provider,{value:o,children:l})};return c.displayName=s+"Provider",[c,function(n,r){let c=r?.[e]?.[a]||i,d=t.useContext(c);if(d)return d;if(void 0!==l)return l;throw Error(`\`${n}\` must be used within \`${s}\``)}]},function(...e){let s=e[0];if(1===e.length)return s;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((s,{useScope:n,scopeName:t})=>{let r=n(e)[`__scope${t}`];return{...s,...r}},{});return t.useMemo(()=>({[`__scope${s.scopeName}`]:r}),[r])}};return n.scopeName=s.scopeName,n}(l,...s)]}},17028:(e,s,n)=>{"use strict";n.d(s,{C:()=>i});var t=n(12115),r=n(88068),l=n(46611),i=e=>{let{present:s,children:n}=e,i=function(e){var s,n;let[r,i]=t.useState(),c=t.useRef({}),d=t.useRef(e),o=t.useRef("none"),[m,u]=(s=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,s)=>{let t=n[e][s];return null!=t?t:e},s));return t.useEffect(()=>{let e=a(c.current);o.current="mounted"===m?e:"none"},[m]),(0,l.N)(()=>{let s=c.current,n=d.current;if(n!==e){let t=o.current,r=a(s);e?u("MOUNT"):"none"===r||(null==s?void 0:s.display)==="none"?u("UNMOUNT"):n&&t!==r?u("ANIMATION_OUT"):u("UNMOUNT"),d.current=e}},[e,u]),(0,l.N)(()=>{if(r){var e;let s;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,t=e=>{let t=a(c.current).includes(e.animationName);if(e.target===r&&t&&(u("ANIMATION_END"),!d.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",s=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},l=e=>{e.target===r&&(o.current=a(c.current))};return r.addEventListener("animationstart",l),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{n.clearTimeout(s),r.removeEventListener("animationstart",l),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:t.useCallback(e=>{e&&(c.current=getComputedStyle(e)),i(e)},[])}}(s),c="function"==typeof n?n({present:i.isPresent}):t.Children.only(n),d=(0,r.s)(i.ref,function(e){var s,n;let t=null===(s=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===s?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(c));return"function"==typeof n||i.isPresent?t.cloneElement(c,{ref:d}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},23360:(e,s,n)=>{"use strict";n.d(s,{hO:()=>c,sG:()=>a});var t=n(12115),r=n(47650),l=n(12317),i=n(95155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,s)=>{let n=(0,l.TL)(`Primitive.${s}`),r=t.forwardRef((e,t)=>{let{asChild:r,...l}=e,a=r?n:s;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a,{...l,ref:t})});return r.displayName=`Primitive.${s}`,{...e,[s]:r}},{});function c(e,s){e&&r.flushSync(()=>e.dispatchEvent(s))}},41524:(e,s,n)=>{"use strict";n.d(s,{c:()=>r});var t=n(12115);function r(e){let s=t.useRef(e);return t.useEffect(()=>{s.current=e}),t.useMemo(()=>(...e)=>s.current?.(...e),[])}},46611:(e,s,n)=>{"use strict";n.d(s,{N:()=>r});var t=n(12115),r=globalThis?.document?t.useLayoutEffect:()=>{}}},e=>{var s=s=>e(e.s=s);e.O(0,[1365,3188,8441,1517,7358],()=>s(53444)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-5431674c006b4771.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-5431674c006b4771.js new file mode 100644 index 0000000..e474de7 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-5431674c006b4771.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6655],{39884:(e,t,s)=>{Promise.resolve().then(s.bind(s,51228))},51228:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>d});var n=s(20475),r=s(20107),a=s(72167);let l=()=>{let[e,t]=(0,r.useState)(null),[s,n]=(0,r.useState)(!0),a=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/settings/device-uptime.sh"),s=await e.json();t(e=>e?{...e,deviceUptime:s.uptime.formatted||"N/A"}:e)}catch(e){console.error("Error fetching uptime:",e)}},[]),l=(0,r.useCallback)(async()=>{try{n(!0);let[e,s]=await Promise.all([fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=3"),fetch("/cgi-bin/quecmanager/settings/device-uptime.sh")]),[r,a]=await Promise.all([e.json(),s.json()]);console.log("Fetched about data:",r),console.log("Fetched uptime data:",a);let l={manufacturer:r[0].response.split("\n")[1].trim(),model:r[1].response.split("\n")[1].trim(),firmwareVersion:r[2].response.split("\n")[1].trim(),phoneNum:r[3].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim(),imsi:r[4].response.split("\n")[1].trim(),iccid:r[5].response.split("\n")[1].split(":")[1].trim(),imei:r[6].response.split("\n")[1].trim(),currentDeviceIP:r[7].response.split("\n")[1].split(",")[1].replace(/"/g,"").trim(),lanGateway:r[7].response.split("\n")[1].split(":")[1].split(",")[3].replace(/"/g,"").trim(),wwanIPv4:r[8].response.split("\n")[1].split(":")[1].split(",")[4].replace(/"/g,"").trim(),wwanIPv6:r[8].response.split("\n")[2].split(",")[4].replace(/"/g,"").trim(),lteCategory:r[9].response.split("\n")[5].split(":")[2].trim(),deviceUptime:a.uptime.formatted||"N/A"};t(l),console.log("Processed data:",l)}catch(e){console.error("Error fetching data:",e)}n(!1)},[]);return(0,r.useEffect)(()=>{l();let e=setInterval(a,1e3);return()=>{clearInterval(e)}},[l,a]),{data:e,isLoading:s,fetchAboutData:l}};var i=s(36824),c=s(36760);let d=()=>{let{data:e,isLoading:t}=l();return(0,n.jsxs)(a.Zp,{children:[(0,n.jsxs)(a.aR,{children:[(0,n.jsx)(a.ZB,{children:"QuecManager"}),(0,n.jsx)(a.BT,{children:"What is QuecManager and how it can help you."})]}),(0,n.jsxs)(a.Wu,{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-8",children:[(0,n.jsxs)(a.Zp,{children:[(0,n.jsxs)(a.aR,{children:[(0,n.jsx)(a.ZB,{children:"Device Technical Details"}),(0,n.jsx)(a.BT,{children:"View technical details of your device."})]}),(0,n.jsx)(a.Wu,{children:(0,n.jsxs)(i.F,{className:"w-full",children:[(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Modem Manufacturer"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.manufacturer)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Modem Model"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.model)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Firmware Revision"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.firmwareVersion)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"LTE Category"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsxs)(n.Fragment,{children:["CAT-",(null==e?void 0:e.lteCategory)||"N/A"]})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Active Phone Number"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.phoneNum)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Active IMSI"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.imsi)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Active ICCID"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.iccid)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"IMEI"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.imei)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Current Device IP"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.currentDeviceIP)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"LAN Gateway"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.lanGateway)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"WWAN IPv4"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.wwanIPv4)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"WWAN IPv6"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.wwanIPv6)||"N/A"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Device Uptime"}),(0,n.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:t?(0,n.jsx)(c.E,{className:"h-4 w-32"}):(0,n.jsx)(n.Fragment,{children:(null==e?void 0:e.deviceUptime)||"N/A"})})]})]}),(0,n.jsx)(i.$,{orientation:"horizontal"})]})})]}),(0,n.jsxs)(a.Zp,{children:[(0,n.jsxs)(a.aR,{children:[(0,n.jsx)(a.ZB,{children:"About Us"}),(0,n.jsx)(a.BT,{children:"Who we are and what we do."})]}),(0,n.jsxs)(a.Wu,{className:"space-y-6",children:[(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsx)("h1",{className:"text-xl font-bold antialiased",children:"QuecManager"}),(0,n.jsx)("p",{className:"text-md font-medium antialiased",children:"QuecManager began as 'Simple Admin,' a straightforward GUI in the RGMII toolkit. Over time, it evolved into a comprehensive dashboard with powerful features for managing cellular modems. While we’ve moved beyond the 'Simple' name, our goal remains the same: providing a clean, easy-to-use interface that makes advanced modem management feel straightforward and accessible."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-xl font-bold antialiased",children:"Thanks to"}),(0,n.jsxs)("ul",{className:"list-disc list-inside text-md font-medium antialiased",children:[(0,n.jsxs)("li",{children:["RGMII Toolkit, Documentation, and Backend",(0,n.jsx)("a",{href:"https://github.com/iamromulan",target:"_blank",className:"text-primary font-semibold ml-2",children:"iamromulan"})]}),(0,n.jsxs)("li",{children:["Simple Admin 2.0 and QuecManager GUI",(0,n.jsx)("a",{href:"https://github.com/dr-dolomite",target:"_blank",className:"text-primary font-semibold ml-2",children:"dr-dolomite"})]}),(0,n.jsxs)("li",{children:["Original Simple Admin",(0,n.jsx)("a",{href:"https://github.com/aesthernr",target:"_blank",className:"text-primary font-semibold ml-2",children:"aesthernr"})]}),(0,n.jsxs)("li",{children:["Original Socat Bridge",(0,n.jsx)("a",{href:"https://github.com/natecarlson",target:"_blank",className:"text-primary font-semibold ml-2",children:"natecarlson"})]}),(0,n.jsx)("li",{children:"Wutang Clan"})]})]})]})]})]}),(0,n.jsx)(a.wL,{className:"flex justify-center",children:(0,n.jsx)("p",{children:"QuecManager \xa9 2024 - For Personal Use Only. All rights reserved."})})]})}},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>o,ZB:()=>c,Zp:()=>l,aR:()=>i,wL:()=>m});var n=s(20475),r=s(20107),a=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});l.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",s),...r})});i.displayName="CardHeader";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",s),...r})});c.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",s),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",s),...r})});o.displayName="CardContent";let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",s),...r})});m.displayName="CardFooter"},36824:(e,t,s)=>{"use strict";s.d(t,{$:()=>c,F:()=>i});var n=s(20475),r=s(20107),a=s(89679),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,children:r,...i}=e;return(0,n.jsxs)(a.bL,{ref:t,className:(0,l.cn)("relative overflow-hidden",s),...i,children:[(0,n.jsx)(a.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,n.jsx)(c,{}),(0,n.jsx)(a.OK,{})]})});i.displayName=a.bL.displayName;let c=r.forwardRef((e,t)=>{let{className:s,orientation:r="vertical",...i}=e;return(0,n.jsx)(a.VM,{ref:t,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...i,children:(0,n.jsx)(a.lr,{className:"relative flex-1 rounded-full bg-border"})})});c.displayName=a.VM.displayName},36760:(e,t,s)=>{"use strict";s.d(t,{E:()=>a});var n=s(20475),r=s(22250);function a(e){let{className:t,...s}=e;return(0,n.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",t),...s})}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>a});var n=s(64901),r=s(868);function a(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";function n(e,t,{checkForDefaultPrevented:s=!0}={}){return function(n){if(e?.(n),!1===s||!n.defaultPrevented)return t?.(n)}}s.d(t,{m:()=>n})},45170:(e,t,s)=>{"use strict";s.d(t,{A:()=>l,q:()=>a});var n=s(20107),r=s(20475);function a(e,t){let s=n.createContext(t),a=e=>{let{children:t,...a}=e,l=n.useMemo(()=>a,Object.values(a));return(0,r.jsx)(s.Provider,{value:l,children:t})};return a.displayName=e+"Provider",[a,function(r){let a=n.useContext(s);if(a)return a;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function l(e,t=[]){let s=[],a=()=>{let t=s.map(e=>n.createContext(e));return function(s){let r=s?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...s,[e]:r}}),[s,r])}};return a.scopeName=e,[function(t,a){let l=n.createContext(a),i=s.length;s=[...s,a];let c=t=>{let{scope:s,children:a,...c}=t,d=s?.[e]?.[i]||l,o=n.useMemo(()=>c,Object.values(c));return(0,r.jsx)(d.Provider,{value:o,children:a})};return c.displayName=t+"Provider",[c,function(s,r){let c=r?.[e]?.[i]||l,d=n.useContext(c);if(d)return d;if(void 0!==a)return a;throw Error(`\`${s}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let s=()=>{let s=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=s.reduce((t,{useScope:s,scopeName:n})=>{let r=s(e)[`__scope${n}`];return{...t,...r}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return s.scopeName=t.scopeName,s}(a,...t)]}},54245:(e,t,s)=>{"use strict";s.d(t,{C:()=>l});var n=s(20107),r=s(64236),a=s(54122),l=e=>{let{present:t,children:s}=e,l=function(e){var t,s;let[r,l]=n.useState(),c=n.useRef({}),d=n.useRef(e),o=n.useRef("none"),[m,u]=(t=e?"mounted":"unmounted",s={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=s[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=i(c.current);o.current="mounted"===m?e:"none"},[m]),(0,a.N)(()=>{let t=c.current,s=d.current;if(s!==e){let n=o.current,r=i(t);e?u("MOUNT"):"none"===r||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):s&&n!==r?u("ANIMATION_OUT"):u("UNMOUNT"),d.current=e}},[e,u]),(0,a.N)(()=>{if(r){var e;let t;let s=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=i(c.current).includes(e.animationName);if(e.target===r&&n&&(u("ANIMATION_END"),!d.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=s.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(o.current=i(c.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{s.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:n.useCallback(e=>{e&&(c.current=getComputedStyle(e)),l(e)},[])}}(t),c="function"==typeof s?s({present:l.isPresent}):n.Children.only(s),d=(0,r.s)(l.ref,function(e){var t,s;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(r=(n=null===(s=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===s?void 0:s.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(c));return"function"==typeof s||l.isPresent?n.cloneElement(c,{ref:d}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},34544:(e,t,s)=>{"use strict";s.d(t,{hO:()=>c,sG:()=>i});var n=s(20107),r=s(25642),a=s(61837),l=s(20475),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let s=n.forwardRef((e,s)=>{let{asChild:n,...r}=e,i=n?a.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i,{...r,ref:s})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function c(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,s)=>{"use strict";s.d(t,{c:()=>r});var n=s(20107);function r(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},54122:(e,t,s)=>{"use strict";s.d(t,{N:()=>r});var n=s(20107),r=globalThis?.document?n.useLayoutEffect:()=>{}}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,9679,191,6035,7358],()=>t(39884)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-9a36e9af0364bb3a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-9a36e9af0364bb3a.js new file mode 100644 index 0000000..0239590 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-9a36e9af0364bb3a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6655],{39884:(e,s,n)=>{Promise.resolve().then(n.bind(n,51228))},51228:(e,s,n)=>{"use strict";n.r(s),n.d(s,{default:()=>d});var t=n(20475),r=n(20107),l=n(72167);let a=()=>{let[e,s]=(0,r.useState)(null),[n,t]=(0,r.useState)(!0),l=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/settings/device-uptime.sh"),n=await e.json();s(e=>e?{...e,deviceUptime:n.uptime.formatted||"N/A"}:e)}catch(e){console.error("Error fetching uptime:",e)}},[]),a=(0,r.useCallback)(async()=>{try{t(!0);let[e,n]=await Promise.all([fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=3"),fetch("/cgi-bin/quecmanager/settings/device-uptime.sh")]),[r,l]=await Promise.all([e.json(),n.json()]);console.log("Raw data:",r);let a={manufacturer:r[0].response.split("\n")[1].trim(),model:r[1].response.split("\n")[1].trim(),firmwareVersion:r[2].response.split("\n")[1].trim(),phoneNum:r[3].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim(),imsi:r[4].response.split("\n")[1].trim(),iccid:r[5].response.split("\n")[1].split(":")[1].trim(),imei:r[6].response.split("\n")[1].trim(),currentDeviceIP:r[7].response.split("\n")[1].split(",")[1].replace(/"/g,"").trim(),lanGateway:r[7].response.split("\n")[1].split(":")[1].split(",")[3].replace(/"/g,"").trim(),wwanIPv4:r[8].response.split("\n")[1].split(":")[1].split(",")[4].replace(/"/g,"").trim(),wwanIPv6:r[8].response.split("\n")[2].split(",")[4].replace(/"/g,"").trim(),lteCategory:r[9].response.split("\n")[5].split(":")[2].trim(),deviceUptime:l.uptime.formatted||"N/A",LTE3GppRel:r[10].response.split("\n")[1].split(":")[1].split(",")[1].replace(/R/g,"").trim(),NR3GppRel:r[10].response.split("\n")[1].split(":")[1].split(",")[2].replace(/R/g,"").trim()};s(a)}catch(e){console.error("Error fetching data:",e)}t(!1)},[]);return(0,r.useEffect)(()=>{a();let e=setInterval(l,1e3);return()=>{clearInterval(e)}},[a,l]),{data:e,isLoading:n,fetchAboutData:a}};var i=n(36824),c=n(36760);let d=()=>{let{data:e,isLoading:s}=a();return(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"QuecManager"}),(0,t.jsx)(l.BT,{children:"What is QuecManager and how it can help you."})]}),(0,t.jsxs)(l.Wu,{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-8",children:[(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"Device Technical Details"}),(0,t.jsx)(l.BT,{children:"View technical details of your device."})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)(i.F,{className:"w-full",children:[(0,t.jsxs)("div",{className:"grid md:gap-2 gap-4",children:[(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Modem Manufacturer"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.manufacturer)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Modem Model"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.model)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"LTE 3GPP Release Version"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsxs)(t.Fragment,{children:["Release ",(null==e?void 0:e.LTE3GppRel)||"N/A"]})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"NR5G 3GPP Release Version"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsxs)(t.Fragment,{children:["Release ",(null==e?void 0:e.NR3GppRel)||"N/A"]})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Firmware Revision"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.firmwareVersion)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"LTE Category"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsxs)(t.Fragment,{children:["CAT-",(null==e?void 0:e.lteCategory)||"N/A"]})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Active Phone Number"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.phoneNum)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Active IMSI"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.imsi)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Active ICCID"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.iccid)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"IMEI"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.imei)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Current Device IP"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.currentDeviceIP)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"LAN Gateway"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.lanGateway)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"WWAN IPv4"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.wwanIPv4)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"WWAN IPv6"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.wwanIPv6)||"N/A"})})]}),(0,t.jsxs)("div",{className:"flex md:flex-row flex-col md:items-center justify-between",children:[(0,t.jsx)("span",{children:"Device Uptime"}),(0,t.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:s?(0,t.jsx)(c.E,{className:"h-4 w-32"}):(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.deviceUptime)||"N/A"})})]})]}),(0,t.jsx)(i.$,{orientation:"horizontal"})]})})]}),(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"About Us"}),(0,t.jsx)(l.BT,{children:"Who we are and what we do."})]}),(0,t.jsxs)(l.Wu,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h1",{className:"text-xl font-bold antialiased",children:"QuecManager"}),(0,t.jsx)("p",{className:"text-md font-medium antialiased",children:"QuecManager is a modern dashboard for managing and monitoring cellular modems, evolved from its roots as 'Simple Admin' in the RGMII toolkit. The application provides real-time insights into signal metrics, carrier aggregation, network addressing, and band-specific performance while offering intuitive controls for modem configuration. With its comprehensive feature set and clean interface, QuecManager transforms complex cellular technology into an accessible experience for both technical users and those simply looking to optimize their connectivity. Our mission remains focused on delivering powerful monitoring and management capabilities without sacrificing usability or visual clarity."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl font-bold antialiased",children:"Thanks to"}),(0,t.jsxs)("ul",{className:"list-disc list-inside text-md font-medium antialiased",children:[(0,t.jsxs)("li",{children:["RGMII Toolkit, Documentation, and Backend",(0,t.jsx)("a",{href:"https://github.com/iamromulan",target:"_blank",className:"text-primary font-semibold ml-2",children:"iamromulan"})]}),(0,t.jsxs)("li",{children:["Simple Admin 2.0 and QuecManager Scripts & GUI",(0,t.jsx)("a",{href:"https://github.com/dr-dolomite",target:"_blank",className:"text-primary font-semibold ml-2",children:"dr-dolomite"})]}),(0,t.jsxs)("li",{children:["Original Simple Admin",(0,t.jsx)("a",{href:"https://github.com/aesthernr",target:"_blank",className:"text-primary font-semibold ml-2",children:"aesthernr"})]}),(0,t.jsxs)("li",{children:["Original Socat Bridge",(0,t.jsx)("a",{href:"https://github.com/natecarlson",target:"_blank",className:"text-primary font-semibold ml-2",children:"natecarlson"})]}),(0,t.jsx)("li",{children:"Wutang Clan"})]})]})]})]})]}),(0,t.jsx)(l.wL,{className:"flex justify-center",children:(0,t.jsx)("p",{children:"QuecManager \xa9 2024 - For Personal Use Only. All rights reserved."})})]})}},72167:(e,s,n)=>{"use strict";n.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>c,Zp:()=>a,aR:()=>i,wL:()=>m});var t=n(20475),r=n(20107),l=n(22250);let a=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...r})});a.displayName="Card";let i=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",n),...r})});i.displayName="CardHeader";let c=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("h3",{ref:s,className:(0,l.cn)("font-semibold leading-none tracking-tight",n),...r})});c.displayName="CardTitle";let d=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("p",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",n),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",n),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",n),...r})});m.displayName="CardFooter"},36824:(e,s,n)=>{"use strict";n.d(s,{$:()=>c,F:()=>i});var t=n(20475),r=n(20107),l=n(89679),a=n(22250);let i=r.forwardRef((e,s)=>{let{className:n,children:r,...i}=e;return(0,t.jsxs)(l.bL,{ref:s,className:(0,a.cn)("relative overflow-hidden",n),...i,children:[(0,t.jsx)(l.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(c,{}),(0,t.jsx)(l.OK,{})]})});i.displayName=l.bL.displayName;let c=r.forwardRef((e,s)=>{let{className:n,orientation:r="vertical",...i}=e;return(0,t.jsx)(l.VM,{ref:s,orientation:r,className:(0,a.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",n),...i,children:(0,t.jsx)(l.lr,{className:"relative flex-1 rounded-full bg-border"})})});c.displayName=l.VM.displayName},36760:(e,s,n)=>{"use strict";n.d(s,{E:()=>l});var t=n(20475),r=n(22250);function l(e){let{className:s,...n}=e;return(0,t.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...n})}},22250:(e,s,n)=>{"use strict";n.d(s,{cn:()=>l});var t=n(64901),r=n(868);function l(){for(var e=arguments.length,s=Array(e),n=0;n{"use strict";function t(e,s,{checkForDefaultPrevented:n=!0}={}){return function(t){if(e?.(t),!1===n||!t.defaultPrevented)return s?.(t)}}n.d(s,{m:()=>t})},45170:(e,s,n)=>{"use strict";n.d(s,{A:()=>a,q:()=>l});var t=n(20107),r=n(20475);function l(e,s){let n=t.createContext(s),l=e=>{let{children:s,...l}=e,a=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(n.Provider,{value:a,children:s})};return l.displayName=e+"Provider",[l,function(r){let l=t.useContext(n);if(l)return l;if(void 0!==s)return s;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function a(e,s=[]){let n=[],l=()=>{let s=n.map(e=>t.createContext(e));return function(n){let r=n?.[e]||s;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return l.scopeName=e,[function(s,l){let a=t.createContext(l),i=n.length;n=[...n,l];let c=s=>{let{scope:n,children:l,...c}=s,d=n?.[e]?.[i]||a,o=t.useMemo(()=>c,Object.values(c));return(0,r.jsx)(d.Provider,{value:o,children:l})};return c.displayName=s+"Provider",[c,function(n,r){let c=r?.[e]?.[i]||a,d=t.useContext(c);if(d)return d;if(void 0!==l)return l;throw Error(`\`${n}\` must be used within \`${s}\``)}]},function(...e){let s=e[0];if(1===e.length)return s;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((s,{useScope:n,scopeName:t})=>{let r=n(e)[`__scope${t}`];return{...s,...r}},{});return t.useMemo(()=>({[`__scope${s.scopeName}`]:r}),[r])}};return n.scopeName=s.scopeName,n}(l,...s)]}},54245:(e,s,n)=>{"use strict";n.d(s,{C:()=>a});var t=n(20107),r=n(64236),l=n(54122),a=e=>{let{present:s,children:n}=e,a=function(e){var s,n;let[r,a]=t.useState(),c=t.useRef({}),d=t.useRef(e),o=t.useRef("none"),[m,u]=(s=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,s)=>{let t=n[e][s];return null!=t?t:e},s));return t.useEffect(()=>{let e=i(c.current);o.current="mounted"===m?e:"none"},[m]),(0,l.N)(()=>{let s=c.current,n=d.current;if(n!==e){let t=o.current,r=i(s);e?u("MOUNT"):"none"===r||(null==s?void 0:s.display)==="none"?u("UNMOUNT"):n&&t!==r?u("ANIMATION_OUT"):u("UNMOUNT"),d.current=e}},[e,u]),(0,l.N)(()=>{if(r){var e;let s;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,t=e=>{let t=i(c.current).includes(e.animationName);if(e.target===r&&t&&(u("ANIMATION_END"),!d.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",s=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},l=e=>{e.target===r&&(o.current=i(c.current))};return r.addEventListener("animationstart",l),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{n.clearTimeout(s),r.removeEventListener("animationstart",l),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:t.useCallback(e=>{e&&(c.current=getComputedStyle(e)),a(e)},[])}}(s),c="function"==typeof n?n({present:a.isPresent}):t.Children.only(n),d=(0,r.s)(a.ref,function(e){var s,n;let t=null===(s=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===s?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(c));return"function"==typeof n||a.isPresent?t.cloneElement(c,{ref:d}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},34544:(e,s,n)=>{"use strict";n.d(s,{hO:()=>c,sG:()=>i});var t=n(20107),r=n(25642),l=n(61837),a=n(20475),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,s)=>{let n=t.forwardRef((e,n)=>{let{asChild:t,...r}=e,i=t?l.DX:s;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i,{...r,ref:n})});return n.displayName=`Primitive.${s}`,{...e,[s]:n}},{});function c(e,s){e&&r.flushSync(()=>e.dispatchEvent(s))}},46774:(e,s,n)=>{"use strict";n.d(s,{c:()=>r});var t=n(20107);function r(e){let s=t.useRef(e);return t.useEffect(()=>{s.current=e}),t.useMemo(()=>(...e)=>s.current?.(...e),[])}},54122:(e,s,n)=>{"use strict";n.d(s,{N:()=>r});var t=n(20107),r=globalThis?.document?t.useLayoutEffect:()=>{}}},e=>{var s=s=>e(e.s=s);e.O(0,[7780,9679,191,6035,7358],()=>s(39884)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-0961218bcd404d9f.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-0961218bcd404d9f.js deleted file mode 100644 index e3c44a8..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-0961218bcd404d9f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8757],{82527:(e,t,r)=>{Promise.resolve().then(r.bind(r,5319))},5319:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(95155),s=r(12115),o=r(35007),n=r(3392),i=r(14085),l=r(15785),d=r(10371),c=r(9955),m=r(45686),u=r(40767),p=r(28283);let f=(0,r(67401).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var x=r(89282),h=r(20241),g=r(25858),v=r(22079),y=r(39286);let w=()=>{let{toast:e}=(0,h.dj)(),[t,r]=(0,s.useState)(""),[w,b]=(0,s.useState)(""),[j,N]=(0,s.useState)([]),[C,T]=(0,s.useState)([]),[A,E]=(0,s.useState)([]),[S,k]=(0,s.useState)(!1),[R,_]=(0,s.useState)([]),[I,O]=(0,s.useState)(!0),[F,D]=(0,s.useState)(-1),z=(0,s.useRef)(null),L=(0,s.useRef)(null),M=localStorage.getItem("authToken");(0,s.useEffect)(()=>{let e=e=>{L.current&&!L.current.contains(e.target)&&(T([]),D(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);_(r)}catch(t){console.error("Failed to fetch AT commands:",t),e({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{O(!1)}})()},[]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{N(JSON.parse(e))}catch(e){console.error("Failed to parse command history:",e),N([])}if(t)try{E(JSON.parse(t))}catch(e){console.error("Failed to parse previous commands:",e),E([])}},[]),(0,s.useEffect)(()=>{j.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(j))},[j]),(0,s.useEffect)(()=>{A.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(A))},[A]);let H=async()=>{let t=w.trim();if("tetris"===t.toLowerCase()){window.open("/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris","_blank"),b("");return}if("prev"===t.toLowerCase()){if(j.length>0){let t=j[0].command;b(""),e({title:"Executing Previous Command",description:"Executing ".concat(t)}),k(!0),r("> ".concat(t,"\nExecuting command, please wait...")),(async()=>{try{var a;let s=encodeURIComponent(t),o=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(s,"&wait=1"),{method:"GET",headers:{Authorization:"".concat(M)}}),n=await o.json(),i="> ".concat(t,"\n");(null===(a=n.response)||void 0===a?void 0:a.raw_output)&&(i+=n.response.raw_output),r(i);let l={command:t,response:n.response.raw_output||"No output",timestamp:n.command.timestamp,status:n.response.status,duration:n.response.duration_ms,commandId:n.command.id};N(e=>[l,...e]),("error"===n.response.status||"timeout"===n.response.status)&&e({title:"Command ".concat("timeout"===n.response.status?"Timeout":"Error"),description:n.response.raw_output||"Command execution ".concat(n.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{k(!1)}})();return}e({title:"No Previous Command",description:"Command history is empty",variant:"destructive"});return}if(!t.toUpperCase().startsWith("AT")){e({title:"Invalid Command",description:"Command must start with 'AT'",variant:"destructive"});return}k(!0),b(""),r("> ".concat(t,"\nExecuting command, please wait..."));try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1"),{method:"GET",headers:{Authorization:"".concat(M)}}),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let i={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[i,...e]),"success"!==o.response.status||A.includes(t)||E(e=>[...e,t]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{k(!1)}},Z=e=>{N(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},J=e=>{E(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),T(t=>t.filter(t=>t!==e))},V=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"AT Terminal"}),(0,a.jsx)(o.BT,{children:"Send AT commands to your device using the queue system"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(l.J,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.T,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-64 font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(x.w,{className:"mb-2"}),0===j.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(l.J,{children:"Command History"}),(0,a.jsxs)(g.Lt,{children:[(0,a.jsx)(g.tv,{asChild:!0,children:(0,a.jsxs)(i.$,{variant:"outline",size:"sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g.EO,{children:[(0,a.jsxs)(g.wd,{children:[(0,a.jsx)(g.r7,{children:"Clear Command History"}),(0,a.jsx)(g.$v,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.ck,{children:[(0,a.jsx)(g.Zr,{children:"Cancel"}),(0,a.jsx)(g.Rx,{onClick:()=>{N([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(n.F,{className:"h-44 p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:j.map((e,t)=>(0,a.jsx)(o.Zp,{className:"hover:bg-accent/50 transition-colors cursor-pointer",onClick:()=>V(e.command),children:(0,a.jsx)(o.Wu,{className:"p-3 relative",children:(0,a.jsxs)(n.F,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(i.$,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:e=>{e.stopPropagation(),Z(t)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsxs)(y.E,{className:"".concat("success"===e.status?"bg-primary text-foreground":"timeout"===e.status?"bg-yellow-500 text-foreground":"bg-red-500 text-red-foreground"),children:[e.status," -"," ",void 0!==e.duration&&"".concat(e.duration,"ms")]})]}),e.response&&"No output"!==e.response&&(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono text-sm",children:e.response})]}),(0,a.jsx)(n.$,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(x.w,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(l.J,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.p,{ref:z,value:w,onChange:e=>{let t=e.target.value;b(t),D(-1),requestAnimationFrame(()=>{t.trim()?T(A.filter(e=>e.toLowerCase().includes(t.toLowerCase())).slice(0,5)):T([])})},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),H())},placeholder:"ATI",id:"ATInput",disabled:S,autoComplete:"off"}),C.length>0&&(0,a.jsx)("div",{ref:L,className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10 w-full",children:(0,a.jsx)(n.F,{className:"max-h-[200px]",children:C.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 cursor-pointer flex items-center justify-between group transition-colors ".concat(t===F?"bg-accent":"hover:bg-accent/50"),onClick:()=>{var t;b(e),T([]),D(-1),null===(t=z.current)||void 0===t||t.focus()},children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",children:e}),(0,a.jsx)(i.$,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),J(e)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsxs)(i.$,{onClick:H,disabled:S,children:[(0,a.jsx)(p.A,{className:"mr-2"}),S?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"Common AT Commands List"}),(0,a.jsx)(o.BT,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(v.XI,{children:[(0,a.jsx)(v.r6,{children:"AT Command List"}),(0,a.jsx)(v.A0,{children:(0,a.jsxs)(v.Hj,{children:[(0,a.jsx)(v.nd,{children:"AT Command"}),(0,a.jsx)(v.nd,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(v.BF,{children:I?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===R.length?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"No commands available"})}):R.map((e,t)=>(0,a.jsxs)(v.Hj,{children:[(0,a.jsxs)(v.nA,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(f,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>V(e.command)})]}),(0,a.jsx)(v.nA,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},25858:(e,t,r)=>{"use strict";r.d(t,{$v:()=>h,EO:()=>u,Lt:()=>l,Rx:()=>g,Zr:()=>v,ck:()=>f,r7:()=>x,tv:()=>d,wd:()=>p});var a=r(95155),s=r(12115),o=r(83572),n=r(29602),i=r(14085);let l=o.bL,d=o.l9,c=o.ZL,m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.hJ,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});m.displayName=o.hJ.displayName;let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(m,{}),(0,a.jsx)(o.UC,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});u.displayName=o.UC.displayName;let p=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};p.displayName="AlertDialogHeader";let f=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};f.displayName="AlertDialogFooter";let x=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.hE,{ref:t,className:(0,n.cn)("text-lg font-semibold",r),...s})});x.displayName=o.hE.displayName;let h=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...s})});h.displayName=o.VY.displayName;let g=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.rc,{ref:t,className:(0,n.cn)((0,i.r)(),r),...s})});g.displayName=o.rc.displayName;let v=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.ZD,{ref:t,className:(0,n.cn)((0,i.r)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});v.displayName=o.ZD.displayName},39286:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var a=r(95155);r(12115);var s=r(31027),o=r(29602);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},14085:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>l});var a=r(95155),s=r(12115),o=r(12317),n=r(31027),i=r(29602);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,m=d?o.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(l({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},35007:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>m});var a=r(95155),s=r(12115),o=r(29602);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});i.displayName="CardHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});l.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});m.displayName="CardFooter"},9955:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(95155),s=r(12115),o=r(29602);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},15785:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(95155),s=r(12115),o=r(46195),n=r(31027),i=r(29602);let l=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,i.cn)(l(),r),...s})});d.displayName=o.b.displayName},3392:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,F:()=>i});var a=r(95155),s=r(12115),o=r(21868),n=r(29602);let i=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...i,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(l,{}),(0,a.jsx)(o.OK,{})]})});i.displayName=o.bL.displayName;let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...i}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...i,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});l.displayName=o.VM.displayName},89282:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var a=r(95155),s=r(12115),o=r(90434),n=r(29602);let i=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:i=!0,...l}=e;return(0,a.jsx)(o.b,{ref:t,decorative:i,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...l})});i.displayName=o.b.displayName},22079:(e,t,r)=>{"use strict";r.d(t,{A0:()=>i,BF:()=>l,Hj:()=>d,XI:()=>n,nA:()=>m,nd:()=>c,r6:()=>u});var a=r(95155),s=r(12115),o=r(29602);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",r),...s})})});n.displayName="Table";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",r),...s})});i.displayName="TableHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",r),...s})});l.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});d.displayName="TableRow";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});c.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});m.displayName="TableCell";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),...s})});u.displayName="TableCaption"},10371:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var a=r(95155),s=r(12115),o=r(29602);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});n.displayName="Textarea"},20241:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u,oR:()=>m});var a=r(12115);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function m(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(43463),s=r(69795);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>a});let a=(0,r(67401).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},45686:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(67401).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},40767:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(67401).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},46195:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var a=r(12115),s=r(23360),o=r(95155),n=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var i=n},90434:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(12115),s=r(23360),o=r(95155),n="horizontal",i=["horizontal","vertical"],l=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=n,...l}=e,d=i.includes(a)?a:n;return(0,o.jsx)(s.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var d=l}},e=>{var t=t=>e(e.s=t);e.O(0,[1365,7401,2019,3188,3572,8441,1517,7358],()=>t(82527)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-0e4bfed198cb0889.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-0e4bfed198cb0889.js new file mode 100644 index 0000000..e4603f4 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-0e4bfed198cb0889.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8757],{80631:(e,t,r)=>{Promise.resolve().then(r.bind(r,30233))},30233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(20475),s=r(20107),o=r(72167),n=r(36824),i=r(42541),l=r(49153),d=r(31739),c=r(64219),m=r(51873),u=r(58212),p=r(66698);let f=(0,r(39997).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var x=r(76554),h=r(32857),g=r(83086),v=r(51303),y=r(45934);let w=()=>{let{toast:e}=(0,h.dj)(),[t,r]=(0,s.useState)(""),[w,b]=(0,s.useState)(""),[j,N]=(0,s.useState)([]),[A,C]=(0,s.useState)([]),[T,E]=(0,s.useState)([]),[R,S]=(0,s.useState)(!1),[k,_]=(0,s.useState)([]),[O,D]=(0,s.useState)(!0),[I,F]=(0,s.useState)(-1),L=(0,s.useRef)(null),z=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&(C([]),F(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);_(r)}catch(t){console.error("Failed to fetch AT commands:",t),e({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{D(!1)}})()},[]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{N(JSON.parse(e))}catch(e){console.error("Failed to parse command history:",e),N([])}if(t)try{E(JSON.parse(t))}catch(e){console.error("Failed to parse previous commands:",e),E([])}},[]),(0,s.useEffect)(()=>{j.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(j))},[j]),(0,s.useEffect)(()=>{T.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(T))},[T]);let H=async()=>{let t=w.trim();if("tetris"===t.toLowerCase()){window.open("/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris","_blank"),b("");return}if("prev"===t.toLowerCase()){if(j.length>0){let t=j[0].command;b(""),e({title:"Executing Previous Command",description:"Executing: ".concat(t)}),S(!0),r("> ".concat(t,"\nExecuting command, please wait...")),(async()=>{try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let i={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[i,...e]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{S(!1)}})();return}e({title:"No Previous Command",description:"Command history is empty",variant:"destructive"});return}if(!t.toUpperCase().startsWith("AT")){e({title:"Invalid Command",description:"Command must start with 'AT'",variant:"destructive"});return}S(!0),b(""),r("> ".concat(t,"\nExecuting command, please wait..."));try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let i={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[i,...e]),"success"!==o.response.status||T.includes(t)||E(e=>[...e,t]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{S(!1)}},M=e=>{N(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},$=e=>{E(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),C(t=>t.filter(t=>t!==e))},B=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"AT Terminal"}),(0,a.jsx)(o.BT,{children:"Send AT commands to your device using the queue system"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(l.J,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.T,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-64 font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(x.w,{className:"mb-2"}),0===j.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(l.J,{children:"Command History"}),(0,a.jsxs)(g.Lt,{children:[(0,a.jsx)(g.tv,{asChild:!0,children:(0,a.jsxs)(i.$,{variant:"outline",size:"sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g.EO,{children:[(0,a.jsxs)(g.wd,{children:[(0,a.jsx)(g.r7,{children:"Clear Command History"}),(0,a.jsx)(g.$v,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.ck,{children:[(0,a.jsx)(g.Zr,{children:"Cancel"}),(0,a.jsx)(g.Rx,{onClick:()=>{N([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(n.F,{className:"h-44 p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:j.map((e,t)=>(0,a.jsx)(o.Zp,{className:"hover:bg-accent/50 transition-colors cursor-pointer",onClick:()=>B(e.command),children:(0,a.jsx)(o.Wu,{className:"p-3 relative",children:(0,a.jsxs)(n.F,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(i.$,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:e=>{e.stopPropagation(),M(t)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsxs)(y.E,{className:"".concat("success"===e.status?"bg-primary text-foreground":"timeout"===e.status?"bg-yellow-500 text-foreground":"bg-red-500 text-red-foreground"),children:[e.status," -"," ",void 0!==e.duration&&"".concat(e.duration,"ms")]})]}),e.response&&"No output"!==e.response&&(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono text-sm",children:e.response})]}),(0,a.jsx)(n.$,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(x.w,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(l.J,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.p,{ref:L,value:w,onChange:e=>{let t=e.target.value;b(t),F(-1),requestAnimationFrame(()=>{t.trim()?C(T.filter(e=>e.toLowerCase().includes(t.toLowerCase())).slice(0,5)):C([])})},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),H())},placeholder:"ATI",id:"ATInput",disabled:R,autoComplete:"off"}),A.length>0&&(0,a.jsx)("div",{ref:z,className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10 w-full",children:(0,a.jsx)(n.F,{className:"max-h-[200px]",children:A.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 cursor-pointer flex items-center justify-between group transition-colors ".concat(t===I?"bg-accent":"hover:bg-accent/50"),onClick:()=>{var t;b(e),C([]),F(-1),null===(t=L.current)||void 0===t||t.focus()},children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",children:e}),(0,a.jsx)(i.$,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),$(e)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsxs)(i.$,{onClick:H,disabled:R,children:[(0,a.jsx)(p.A,{className:"mr-2"}),R?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"Common AT Commands List"}),(0,a.jsx)(o.BT,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(v.XI,{children:[(0,a.jsx)(v.r6,{children:"AT Command List"}),(0,a.jsx)(v.A0,{children:(0,a.jsxs)(v.Hj,{children:[(0,a.jsx)(v.nd,{children:"AT Command"}),(0,a.jsx)(v.nd,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(v.BF,{children:O?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===k.length?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"No commands available"})}):k.map((e,t)=>(0,a.jsxs)(v.Hj,{children:[(0,a.jsxs)(v.nA,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(f,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>B(e.command)})]}),(0,a.jsx)(v.nA,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},83086:(e,t,r)=>{"use strict";r.d(t,{Lt:()=>O,Rx:()=>$,Zr:()=>B,EO:()=>F,$v:()=>M,ck:()=>z,wd:()=>L,r7:()=>H,tv:()=>D});var a=r(20475),s=r(20107),o=r(45170),n=r(64236),i=r(60241),l=r(94521),d=r(61837),c="AlertDialog",[m,u]=(0,o.A)(c,[i.Hs]),p=(0,i.Hs)(),f=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(i.bL,{...s,...r,modal:!0})};f.displayName=c;var x=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.l9,{...o,...s,ref:t})});x.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(i.ZL,{...s,...r})};h.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.hJ,{...o,...s,ref:t})});g.displayName="AlertDialogOverlay";var v="AlertDialogContent",[y,w]=m(v),b=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...c}=e,m=p(r),u=s.useRef(null),f=(0,n.s)(t,u),x=s.useRef(null);return(0,a.jsx)(i.G$,{contentName:v,titleName:j,docsSlug:"alert-dialog",children:(0,a.jsx)(y,{scope:r,cancelRef:x,children:(0,a.jsxs)(i.UC,{role:"alertdialog",...m,...c,ref:f,onOpenAutoFocus:(0,l.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.xV,{children:o}),(0,a.jsx)(S,{contentRef:u})]})})})});b.displayName=v;var j="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.hE,{...o,...s,ref:t})});N.displayName=j;var A="AlertDialogDescription",C=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.VY,{...o,...s,ref:t})});C.displayName=A;var T=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.bm,{...o,...s,ref:t})});T.displayName="AlertDialogAction";var E="AlertDialogCancel",R=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,{cancelRef:o}=w(E,r),l=p(r),d=(0,n.s)(t,o);return(0,a.jsx)(i.bm,{...l,...s,ref:d})});R.displayName=E;var S=e=>{let{contentRef:t}=e,r="`".concat(v,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(v,"` by passing a `").concat(A,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(v,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},k=r(22250),_=r(42541);let O=f,D=x,I=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(g,{className:(0,k.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});I.displayName=g.displayName;let F=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(h,{children:[(0,a.jsx)(I,{}),(0,a.jsx)(b,{ref:t,className:(0,k.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});F.displayName=b.displayName;let L=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};L.displayName="AlertDialogHeader";let z=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};z.displayName="AlertDialogFooter";let H=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(N,{ref:t,className:(0,k.cn)("text-lg font-semibold",r),...s})});H.displayName=N.displayName;let M=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(C,{ref:t,className:(0,k.cn)("text-sm text-muted-foreground",r),...s})});M.displayName=C.displayName;let $=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(T,{ref:t,className:(0,k.cn)((0,_.r)(),r),...s})});$.displayName=T.displayName;let B=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(R,{ref:t,className:(0,k.cn)((0,_.r)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});B.displayName=R.displayName},45934:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var a=r(20475);r(20107);var s=r(29395),o=r(22250);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>l});var a=r(20475),s=r(20107),o=r(61837),n=r(29395),i=r(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,m=d?o.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(l({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>m});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});i.displayName="CardHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});l.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});m.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),o=r(21840),n=r(29395),i=r(22250);let l=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,i.cn)(l(),r),...s})});d.displayName=o.b.displayName},36824:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,F:()=>i});var a=r(20475),s=r(20107),o=r(89679),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...i,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(l,{}),(0,a.jsx)(o.OK,{})]})});i.displayName=o.bL.displayName;let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...i}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...i,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});l.displayName=o.VM.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var a=r(20475),s=r(20107),o=r(88853),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:i=!0,...l}=e;return(0,a.jsx)(o.b,{ref:t,decorative:i,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...l})});i.displayName=o.b.displayName},51303:(e,t,r)=>{"use strict";r.d(t,{A0:()=>i,BF:()=>l,Hj:()=>d,XI:()=>n,nA:()=>m,nd:()=>c,r6:()=>u});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",r),...s})})});n.displayName="Table";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",r),...s})});i.displayName="TableHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",r),...s})});l.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});d.displayName="TableRow";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});c.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});m.displayName="TableCell";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),...s})});u.displayName="TableCaption"},31739:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});n.displayName="Textarea"},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u,oR:()=>m});var a=r(20107);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function m(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(64901),s=r(868);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>l});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:d="",children:c,iconNode:m,...u}=e;return(0,a.createElement)("svg",{ref:t,...n,width:s,height:s,stroke:r,strokeWidth:l?24*Number(i)/Number(s):i,className:o("lucide",d),...u},[...m.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:l,...d}=r;return(0,a.createElement)(i,{ref:n,iconNode:t,className:o("lucide-".concat(s(e)),l),...d})});return r.displayName="".concat(e),r}},66698:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},58212:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var a=r(20107),s=r(34544),o=r(20475),n=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var i=n},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(20107),s=r(34544),o=r(20475),n="horizontal",i=["horizontal","vertical"],l=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=n,...l}=e,d=i.includes(a)?a:n;return(0,o.jsx)(s.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var d=l}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,9464,241,9679,191,6035,7358],()=>t(80631)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-651f550d2009e155.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-651f550d2009e155.js new file mode 100644 index 0000000..3fb12e1 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-651f550d2009e155.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8757],{80631:(e,t,r)=>{Promise.resolve().then(r.bind(r,30233))},30233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var a=r(20475),s=r(20107),o=r(72167),n=r(36824),l=r(42541),i=r(49153),d=r(31739),c=r(64219),m=r(51873),u=r(58212),p=r(66698);let f=(0,r(39997).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var x=r(76554),h=r(32857),g=r(83086),v=r(51303),y=r(45934);let b=()=>{let{toast:e}=(0,h.dj)(),[t,r]=(0,s.useState)(""),[b,w]=(0,s.useState)(""),[j,N]=(0,s.useState)([]),[A,T]=(0,s.useState)([]),[C,S]=(0,s.useState)([]),[R,E]=(0,s.useState)(!1),[k,O]=(0,s.useState)([]),[D,_]=(0,s.useState)(!0),[I,F]=(0,s.useState)(-1),H=(0,s.useRef)(null),z=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&(T([]),F(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);O(r)}catch(t){console.error("Failed to fetch AT commands:",t),e({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{_(!1)}})()},[]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{N(JSON.parse(e))}catch(e){console.error("Failed to parse command history:",e),N([])}if(t)try{S(JSON.parse(t))}catch(e){console.error("Failed to parse previous commands:",e),S([])}},[]),(0,s.useEffect)(()=>{j.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(j))},[j]),(0,s.useEffect)(()=>{C.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(C))},[C]);let L=async()=>{let t=b.trim();if("tetris"===t.toLowerCase()){window.open("/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris","_blank"),w("");return}if(!t.toUpperCase().startsWith("AT")){e({title:"Invalid Command",description:"Command must start with 'AT'",variant:"destructive"});return}E(!0),w(""),r("> ".concat(t,"\nExecuting command, please wait..."));try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let l={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[l,...e]),"success"!==o.response.status||C.includes(t)||S(e=>[...e,t]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{E(!1)}},M=e=>{N(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},B=e=>{S(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),T(t=>t.filter(t=>t!==e))},V=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"AT Terminal"}),(0,a.jsx)(o.BT,{children:"Send AT commands to your device using the queue system"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(i.J,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.T,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-64 font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(x.w,{className:"mb-2"}),0===j.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(i.J,{children:"Command History"}),(0,a.jsxs)(g.Lt,{children:[(0,a.jsx)(g.tv,{asChild:!0,children:(0,a.jsxs)(l.$,{variant:"outline",size:"sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g.EO,{children:[(0,a.jsxs)(g.wd,{children:[(0,a.jsx)(g.r7,{children:"Clear Command History"}),(0,a.jsx)(g.$v,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.ck,{children:[(0,a.jsx)(g.Zr,{children:"Cancel"}),(0,a.jsx)(g.Rx,{onClick:()=>{N([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(n.F,{className:"h-44 p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:j.map((e,t)=>(0,a.jsx)(o.Zp,{children:(0,a.jsx)(o.Wu,{className:"p-3 relative",children:(0,a.jsxs)(n.F,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:()=>M(t),children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsxs)(y.E,{className:"".concat("success"===e.status?"bg-primary text-foreground":"timeout"===e.status?"bg-yellow-500 text-foreground":"bg-red-500 text-red-foreground"),children:[e.status," -"," ",void 0!==e.duration&&"".concat(e.duration,"ms")]})]}),e.response&&"No output"!==e.response&&(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono text-sm",children:e.response})]}),(0,a.jsx)(n.$,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(x.w,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(i.J,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.p,{ref:H,value:b,onChange:e=>{let t=e.target.value;w(t),F(-1),requestAnimationFrame(()=>{t.trim()?T(C.filter(e=>e.toLowerCase().includes(t.toLowerCase())).slice(0,5)):T([])})},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),L())},placeholder:"ATI",id:"ATInput",disabled:R,autoComplete:"off"}),A.length>0&&(0,a.jsx)("div",{ref:z,className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10 w-full",children:(0,a.jsx)(n.F,{className:"max-h-[200px]",children:A.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 cursor-pointer flex items-center justify-between group transition-colors ".concat(t===I?"bg-accent":"hover:bg-accent/50"),onClick:()=>{var t;w(e),T([]),F(-1),null===(t=H.current)||void 0===t||t.focus()},children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",children:e}),(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),B(e)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsxs)(l.$,{onClick:L,disabled:R,children:[(0,a.jsx)(p.A,{className:"mr-2"}),R?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"Common AT Commands List"}),(0,a.jsx)(o.BT,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(v.XI,{children:[(0,a.jsx)(v.r6,{children:"AT Command List"}),(0,a.jsx)(v.A0,{children:(0,a.jsxs)(v.Hj,{children:[(0,a.jsx)(v.nd,{children:"AT Command"}),(0,a.jsx)(v.nd,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(v.BF,{children:D?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===k.length?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"No commands available"})}):k.map((e,t)=>(0,a.jsxs)(v.Hj,{children:[(0,a.jsxs)(v.nA,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(f,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>V(e.command)})]}),(0,a.jsx)(v.nA,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},83086:(e,t,r)=>{"use strict";r.d(t,{Lt:()=>D,Rx:()=>B,Zr:()=>V,EO:()=>F,$v:()=>M,ck:()=>z,wd:()=>H,r7:()=>L,tv:()=>_});var a=r(20475),s=r(20107),o=r(45170),n=r(64236),l=r(60241),i=r(94521),d=r(61837),c="AlertDialog",[m,u]=(0,o.A)(c,[l.Hs]),p=(0,l.Hs)(),f=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(l.bL,{...s,...r,modal:!0})};f.displayName=c;var x=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.l9,{...o,...s,ref:t})});x.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(l.ZL,{...s,...r})};h.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.hJ,{...o,...s,ref:t})});g.displayName="AlertDialogOverlay";var v="AlertDialogContent",[y,b]=m(v),w=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...c}=e,m=p(r),u=s.useRef(null),f=(0,n.s)(t,u),x=s.useRef(null);return(0,a.jsx)(l.G$,{contentName:v,titleName:j,docsSlug:"alert-dialog",children:(0,a.jsx)(y,{scope:r,cancelRef:x,children:(0,a.jsxs)(l.UC,{role:"alertdialog",...m,...c,ref:f,onOpenAutoFocus:(0,i.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.xV,{children:o}),(0,a.jsx)(E,{contentRef:u})]})})})});w.displayName=v;var j="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.hE,{...o,...s,ref:t})});N.displayName=j;var A="AlertDialogDescription",T=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.VY,{...o,...s,ref:t})});T.displayName=A;var C=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.bm,{...o,...s,ref:t})});C.displayName="AlertDialogAction";var S="AlertDialogCancel",R=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,{cancelRef:o}=b(S,r),i=p(r),d=(0,n.s)(t,o);return(0,a.jsx)(l.bm,{...i,...s,ref:d})});R.displayName=S;var E=e=>{let{contentRef:t}=e,r="`".concat(v,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(v,"` by passing a `").concat(A,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(v,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},k=r(22250),O=r(42541);let D=f,_=x,I=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(g,{className:(0,k.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});I.displayName=g.displayName;let F=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(h,{children:[(0,a.jsx)(I,{}),(0,a.jsx)(w,{ref:t,className:(0,k.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});F.displayName=w.displayName;let H=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};H.displayName="AlertDialogHeader";let z=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};z.displayName="AlertDialogFooter";let L=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(N,{ref:t,className:(0,k.cn)("text-lg font-semibold",r),...s})});L.displayName=N.displayName;let M=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(T,{ref:t,className:(0,k.cn)("text-sm text-muted-foreground",r),...s})});M.displayName=T.displayName;let B=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(C,{ref:t,className:(0,k.cn)((0,O.r)(),r),...s})});B.displayName=C.displayName;let V=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(R,{ref:t,className:(0,k.cn)((0,O.r)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});V.displayName=R.displayName},45934:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var a=r(20475);r(20107);var s=r(29395),o=r(22250);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var a=r(20475),s=r(20107),o=r(61837),n=r(29395),l=r(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,m=d?o.DX:"button";return(0,a.jsx)(m,{className:(0,l.cn)(i({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>l,wL:()=>m});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});m.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),o=r(21840),n=r(29395),l=r(22250);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,l.cn)(i(),r),...s})});d.displayName=o.b.displayName},36824:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,F:()=>l});var a=r(20475),s=r(20107),o=r(89679),n=r(22250);let l=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...l,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(i,{}),(0,a.jsx)(o.OK,{})]})});l.displayName=o.bL.displayName;let i=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...l}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=o.VM.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>l});var a=r(20475),s=r(20107),o=r(88853),n=r(22250);let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(o.b,{ref:t,decorative:l,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...i})});l.displayName=o.b.displayName},51303:(e,t,r)=>{"use strict";r.d(t,{A0:()=>l,BF:()=>i,Hj:()=>d,XI:()=>n,nA:()=>m,nd:()=>c,r6:()=>u});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",r),...s})})});n.displayName="Table";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",r),...s})});l.displayName="TableHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",r),...s})});i.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});d.displayName="TableRow";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});c.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});m.displayName="TableCell";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),...s})});u.displayName="TableCaption"},31739:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});n.displayName="Textarea"},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u,oR:()=>m});var a=r(20107);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function m(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(64901),s=r(868);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},58212:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var a=r(20107),s=r(34544),o=r(20475),n=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var l=n},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(20107),s=r(34544),o=r(20475),n="horizontal",l=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=n,...i}=e,d=l.includes(a)?a:n;return(0,o.jsx)(s.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,9464,6357,9679,191,6035,7358],()=>t(80631)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-89240f3e7f4062a3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-89240f3e7f4062a3.js new file mode 100644 index 0000000..180afb0 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-89240f3e7f4062a3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8757],{80631:(e,t,r)=>{Promise.resolve().then(r.bind(r,30233))},30233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(20475),s=r(20107),o=r(72167),n=r(36824),l=r(42541),i=r(49153),d=r(31739),c=r(64219),m=r(51873),u=r(58212),f=r(66698);let p=(0,r(39997).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var x=r(76554),h=r(32857),g=r(83086),v=r(51303),y=r(45934);let w=()=>{let{toast:e}=(0,h.dj)(),[t,r]=(0,s.useState)(""),[w,b]=(0,s.useState)(""),[j,N]=(0,s.useState)([]),[A,C]=(0,s.useState)([]),[T,R]=(0,s.useState)([]),[S,k]=(0,s.useState)(!1),[E,O]=(0,s.useState)([]),[D,_]=(0,s.useState)(!0),[I,F]=(0,s.useState)(-1),L=(0,s.useRef)(null),z=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&(C([]),F(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);O(r)}catch(t){console.error("Failed to fetch AT commands:",t),e({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{_(!1)}})()},[]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{N(JSON.parse(e))}catch(e){console.error("Failed to parse command history:",e),N([])}if(t)try{R(JSON.parse(t))}catch(e){console.error("Failed to parse previous commands:",e),R([])}},[]),(0,s.useEffect)(()=>{j.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(j))},[j]),(0,s.useEffect)(()=>{T.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(T))},[T]);let H=async()=>{let t=w.trim();if("tetris"===t.toLowerCase()){window.open("/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris","_blank"),b("");return}if(!t.toUpperCase().startsWith("AT")){e({title:"Invalid Command",description:"Command must start with 'AT'",variant:"destructive"});return}k(!0),b(""),r("> ".concat(t,"\nExecuting command, please wait..."));try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let l={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[l,...e]),"success"!==o.response.status||T.includes(t)||R(e=>[...e,t]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{k(!1)}},M=e=>{N(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},$=e=>{R(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),C(t=>t.filter(t=>t!==e))},B=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"AT Terminal"}),(0,a.jsx)(o.BT,{children:"Send AT commands to your device using the queue system"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(i.J,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.T,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-64 font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(x.w,{className:"mb-2"}),0===j.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(i.J,{children:"Command History"}),(0,a.jsxs)(g.Lt,{children:[(0,a.jsx)(g.tv,{asChild:!0,children:(0,a.jsxs)(l.$,{variant:"outline",size:"sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g.EO,{children:[(0,a.jsxs)(g.wd,{children:[(0,a.jsx)(g.r7,{children:"Clear Command History"}),(0,a.jsx)(g.$v,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.ck,{children:[(0,a.jsx)(g.Zr,{children:"Cancel"}),(0,a.jsx)(g.Rx,{onClick:()=>{N([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(n.F,{className:"h-44 p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:j.map((e,t)=>(0,a.jsx)(o.Zp,{children:(0,a.jsx)(o.Wu,{className:"p-3 relative",children:(0,a.jsxs)(n.F,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:()=>M(t),children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsxs)(y.E,{className:"".concat("success"===e.status?"bg-primary text-foreground":"timeout"===e.status?"bg-yellow-500 text-foreground":"bg-red-500 text-red-foreground"),children:[e.status," -"," ",void 0!==e.duration&&"".concat(e.duration,"ms")]})]}),e.response&&"No output"!==e.response&&(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono text-sm",children:e.response})]}),(0,a.jsx)(n.$,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(x.w,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(i.J,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.p,{ref:L,value:w,onChange:e=>{let t=e.target.value;b(t),F(-1),requestAnimationFrame(()=>{t.trim()?C(T.filter(e=>e.toLowerCase().includes(t.toLowerCase())).slice(0,5)):C([])})},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),H())},placeholder:"ATI",id:"ATInput",disabled:S,autoComplete:"off"}),A.length>0&&(0,a.jsx)("div",{ref:z,className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10 w-full",children:(0,a.jsx)(n.F,{className:"max-h-[200px]",children:A.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 cursor-pointer flex items-center justify-between group transition-colors ".concat(t===I?"bg-accent":"hover:bg-accent/50"),onClick:()=>{var t;b(e),C([]),F(-1),null===(t=L.current)||void 0===t||t.focus()},children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",children:e}),(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),$(e)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsxs)(l.$,{onClick:H,disabled:S,children:[(0,a.jsx)(f.A,{className:"mr-2"}),S?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"Common AT Commands List"}),(0,a.jsx)(o.BT,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(v.XI,{children:[(0,a.jsx)(v.r6,{children:"AT Command List"}),(0,a.jsx)(v.A0,{children:(0,a.jsxs)(v.Hj,{children:[(0,a.jsx)(v.nd,{children:"AT Command"}),(0,a.jsx)(v.nd,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(v.BF,{children:D?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===E.length?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"No commands available"})}):E.map((e,t)=>(0,a.jsxs)(v.Hj,{children:[(0,a.jsxs)(v.nA,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(p,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>B(e.command)})]}),(0,a.jsx)(v.nA,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},83086:(e,t,r)=>{"use strict";r.d(t,{Lt:()=>D,Rx:()=>$,Zr:()=>B,EO:()=>F,$v:()=>M,ck:()=>z,wd:()=>L,r7:()=>H,tv:()=>_});var a=r(20475),s=r(20107),o=r(45170),n=r(64236),l=r(60241),i=r(94521),d=r(61837),c="AlertDialog",[m,u]=(0,o.A)(c,[l.Hs]),f=(0,l.Hs)(),p=e=>{let{__scopeAlertDialog:t,...r}=e,s=f(t);return(0,a.jsx)(l.bL,{...s,...r,modal:!0})};p.displayName=c;var x=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=f(r);return(0,a.jsx)(l.l9,{...o,...s,ref:t})});x.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,s=f(t);return(0,a.jsx)(l.ZL,{...s,...r})};h.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=f(r);return(0,a.jsx)(l.hJ,{...o,...s,ref:t})});g.displayName="AlertDialogOverlay";var v="AlertDialogContent",[y,w]=m(v),b=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...c}=e,m=f(r),u=s.useRef(null),p=(0,n.s)(t,u),x=s.useRef(null);return(0,a.jsx)(l.G$,{contentName:v,titleName:j,docsSlug:"alert-dialog",children:(0,a.jsx)(y,{scope:r,cancelRef:x,children:(0,a.jsxs)(l.UC,{role:"alertdialog",...m,...c,ref:p,onOpenAutoFocus:(0,i.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.xV,{children:o}),(0,a.jsx)(k,{contentRef:u})]})})})});b.displayName=v;var j="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=f(r);return(0,a.jsx)(l.hE,{...o,...s,ref:t})});N.displayName=j;var A="AlertDialogDescription",C=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=f(r);return(0,a.jsx)(l.VY,{...o,...s,ref:t})});C.displayName=A;var T=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=f(r);return(0,a.jsx)(l.bm,{...o,...s,ref:t})});T.displayName="AlertDialogAction";var R="AlertDialogCancel",S=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,{cancelRef:o}=w(R,r),i=f(r),d=(0,n.s)(t,o);return(0,a.jsx)(l.bm,{...i,...s,ref:d})});S.displayName=R;var k=e=>{let{contentRef:t}=e,r="`".concat(v,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(v,"` by passing a `").concat(A,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(v,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},E=r(22250),O=r(42541);let D=p,_=x,I=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(g,{className:(0,E.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});I.displayName=g.displayName;let F=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(h,{children:[(0,a.jsx)(I,{}),(0,a.jsx)(b,{ref:t,className:(0,E.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});F.displayName=b.displayName;let L=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,E.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};L.displayName="AlertDialogHeader";let z=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,E.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};z.displayName="AlertDialogFooter";let H=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(N,{ref:t,className:(0,E.cn)("text-lg font-semibold",r),...s})});H.displayName=N.displayName;let M=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(C,{ref:t,className:(0,E.cn)("text-sm text-muted-foreground",r),...s})});M.displayName=C.displayName;let $=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(T,{ref:t,className:(0,E.cn)((0,O.r)(),r),...s})});$.displayName=T.displayName;let B=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(S,{ref:t,className:(0,E.cn)((0,O.r)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});B.displayName=S.displayName},45934:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var a=r(20475);r(20107);var s=r(29395),o=r(22250);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var a=r(20475),s=r(20107),o=r(61837),n=r(29395),l=r(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,m=d?o.DX:"button";return(0,a.jsx)(m,{className:(0,l.cn)(i({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>l,wL:()=>m});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});m.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),o=r(21840),n=r(29395),l=r(22250);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,l.cn)(i(),r),...s})});d.displayName=o.b.displayName},36824:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,F:()=>l});var a=r(20475),s=r(20107),o=r(89679),n=r(22250);let l=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...l,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(i,{}),(0,a.jsx)(o.OK,{})]})});l.displayName=o.bL.displayName;let i=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...l}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=o.VM.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>l});var a=r(20475),s=r(20107),o=r(88853),n=r(22250);let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(o.b,{ref:t,decorative:l,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...i})});l.displayName=o.b.displayName},51303:(e,t,r)=>{"use strict";r.d(t,{A0:()=>l,BF:()=>i,Hj:()=>d,XI:()=>n,nA:()=>m,nd:()=>c,r6:()=>u});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",r),...s})})});n.displayName="Table";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",r),...s})});l.displayName="TableHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",r),...s})});i.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});d.displayName="TableRow";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});c.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});m.displayName="TableCell";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),...s})});u.displayName="TableCaption"},31739:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});n.displayName="Textarea"},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u,oR:()=>m});var a=r(20107);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function m(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(64901),s=r(868);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>i});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:d="",children:c,iconNode:m,...u}=e;return(0,a.createElement)("svg",{ref:t,...n,width:s,height:s,stroke:r,strokeWidth:i?24*Number(l)/Number(s):l,className:o("lucide",d),...u},[...m.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),i=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:i,...d}=r;return(0,a.createElement)(l,{ref:n,iconNode:t,className:o("lucide-".concat(s(e)),i),...d})});return r.displayName="".concat(e),r}},66698:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},58212:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var a=r(20107),s=r(34544),o=r(20475),n=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var l=n},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(20107),s=r(34544),o=r(20475),n="horizontal",l=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=n,...i}=e,d=l.includes(a)?a:n;return(0,o.jsx)(s.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,9464,241,9679,191,6035,7358],()=>t(80631)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-983e4f09917b607b.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-983e4f09917b607b.js new file mode 100644 index 0000000..415d04c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-983e4f09917b607b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8757],{80631:(e,t,r)=>{Promise.resolve().then(r.bind(r,30233))},30233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(20475),s=r(20107),o=r(72167),n=r(36824),l=r(42541),i=r(49153),d=r(31739),c=r(64219),m=r(51873),u=r(58212),p=r(66698);let f=(0,r(39997).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var x=r(76554),h=r(32857),g=r(97818),v=r(51303),y=r(45934);let w=()=>{let{toast:e}=(0,h.dj)(),[t,r]=(0,s.useState)(""),[w,b]=(0,s.useState)(""),[j,N]=(0,s.useState)([]),[C,A]=(0,s.useState)([]),[T,E]=(0,s.useState)([]),[S,k]=(0,s.useState)(!1),[R,_]=(0,s.useState)([]),[O,I]=(0,s.useState)(!0),[F,L]=(0,s.useState)(-1),D=(0,s.useRef)(null),z=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&(A([]),L(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);_(r)}catch(t){console.error("Failed to fetch AT commands:",t),e({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{I(!1)}})()},[]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{N(JSON.parse(e))}catch(e){console.error("Failed to parse command history:",e),N([])}if(t)try{E(JSON.parse(t))}catch(e){console.error("Failed to parse previous commands:",e),E([])}},[]),(0,s.useEffect)(()=>{j.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(j))},[j]),(0,s.useEffect)(()=>{T.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(T))},[T]);let M=async()=>{let t=w.trim();if("tetris"===t.toLowerCase()){window.open("/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris","_blank"),b("");return}if("prev"===t.toLowerCase()){if(j.length>0){let t=j[0].command;b(""),e({title:"Executing Previous Command",description:"Executing ".concat(t)}),k(!0),r("> ".concat(t,"\nExecuting command, please wait...")),(async()=>{try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let l={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[l,...e]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{k(!1)}})();return}e({title:"No Previous Command",description:"Command history is empty",variant:"destructive"});return}if(!t.toUpperCase().startsWith("AT")){e({title:"Invalid Command",description:"Command must start with 'AT'",variant:"destructive"});return}k(!0),b(""),r("> ".concat(t,"\nExecuting command, please wait..."));try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let l={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[l,...e]),"success"!==o.response.status||T.includes(t)||E(e=>[...e,t]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{k(!1)}},H=e=>{N(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},Z=e=>{E(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),A(t=>t.filter(t=>t!==e))},$=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"AT Terminal"}),(0,a.jsx)(o.BT,{children:"Send AT commands to your device using the queue system"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(i.J,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.T,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-64 font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(x.w,{className:"mb-2"}),0===j.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(i.J,{children:"Command History"}),(0,a.jsxs)(g.Lt,{children:[(0,a.jsx)(g.tv,{asChild:!0,children:(0,a.jsxs)(l.$,{variant:"outline",size:"sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g.EO,{children:[(0,a.jsxs)(g.wd,{children:[(0,a.jsx)(g.r7,{children:"Clear Command History"}),(0,a.jsx)(g.$v,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.ck,{children:[(0,a.jsx)(g.Zr,{children:"Cancel"}),(0,a.jsx)(g.Rx,{onClick:()=>{N([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(n.F,{className:"h-44 p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:j.map((e,t)=>(0,a.jsx)(o.Zp,{className:"hover:bg-accent/50 transition-colors cursor-pointer",onClick:()=>$(e.command),children:(0,a.jsx)(o.Wu,{className:"p-3 relative",children:(0,a.jsxs)(n.F,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:e=>{e.stopPropagation(),H(t)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsxs)(y.E,{className:"".concat("success"===e.status?"bg-primary text-foreground":"timeout"===e.status?"bg-yellow-500 text-foreground":"bg-red-500 text-red-foreground"),children:[e.status," -"," ",void 0!==e.duration&&"".concat(e.duration,"ms")]})]}),e.response&&"No output"!==e.response&&(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono text-sm",children:e.response})]}),(0,a.jsx)(n.$,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(x.w,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(i.J,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.p,{ref:D,value:w,onChange:e=>{let t=e.target.value;b(t),L(-1),requestAnimationFrame(()=>{t.trim()?A(T.filter(e=>e.toLowerCase().includes(t.toLowerCase())).slice(0,5)):A([])})},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),M())},placeholder:"ATI",id:"ATInput",disabled:S,autoComplete:"off"}),C.length>0&&(0,a.jsx)("div",{ref:z,className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10 w-full",children:(0,a.jsx)(n.F,{className:"max-h-[200px]",children:C.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 cursor-pointer flex items-center justify-between group transition-colors ".concat(t===F?"bg-accent":"hover:bg-accent/50"),onClick:()=>{var t;b(e),A([]),L(-1),null===(t=D.current)||void 0===t||t.focus()},children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",children:e}),(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),Z(e)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsxs)(l.$,{onClick:M,disabled:S,children:[(0,a.jsx)(p.A,{className:"mr-2"}),S?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"Common AT Commands List"}),(0,a.jsx)(o.BT,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(v.XI,{children:[(0,a.jsx)(v.r6,{children:"AT Command List"}),(0,a.jsx)(v.A0,{children:(0,a.jsxs)(v.Hj,{children:[(0,a.jsx)(v.nd,{children:"AT Command"}),(0,a.jsx)(v.nd,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(v.BF,{children:O?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===R.length?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"No commands available"})}):R.map((e,t)=>(0,a.jsxs)(v.Hj,{children:[(0,a.jsxs)(v.nA,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(f,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>$(e.command)})]}),(0,a.jsx)(v.nA,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},97818:(e,t,r)=>{"use strict";r.d(t,{$v:()=>h,EO:()=>u,Lt:()=>i,Rx:()=>g,Zr:()=>v,ck:()=>f,r7:()=>x,tv:()=>d,wd:()=>p});var a=r(20475),s=r(20107),o=r(50564),n=r(22250),l=r(42541);let i=o.bL,d=o.l9,c=o.ZL,m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.hJ,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});m.displayName=o.hJ.displayName;let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(m,{}),(0,a.jsx)(o.UC,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});u.displayName=o.UC.displayName;let p=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};p.displayName="AlertDialogHeader";let f=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};f.displayName="AlertDialogFooter";let x=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.hE,{ref:t,className:(0,n.cn)("text-lg font-semibold",r),...s})});x.displayName=o.hE.displayName;let h=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...s})});h.displayName=o.VY.displayName;let g=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.rc,{ref:t,className:(0,n.cn)((0,l.r)(),r),...s})});g.displayName=o.rc.displayName;let v=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.ZD,{ref:t,className:(0,n.cn)((0,l.r)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});v.displayName=o.ZD.displayName},45934:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var a=r(20475);r(20107);var s=r(29395),o=r(22250);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var a=r(20475),s=r(20107),o=r(61837),n=r(29395),l=r(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,m=d?o.DX:"button";return(0,a.jsx)(m,{className:(0,l.cn)(i({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>l,wL:()=>m});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});m.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),o=r(21840),n=r(29395),l=r(22250);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,l.cn)(i(),r),...s})});d.displayName=o.b.displayName},36824:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,F:()=>l});var a=r(20475),s=r(20107),o=r(89679),n=r(22250);let l=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...l,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(i,{}),(0,a.jsx)(o.OK,{})]})});l.displayName=o.bL.displayName;let i=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...l}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=o.VM.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>l});var a=r(20475),s=r(20107),o=r(88853),n=r(22250);let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(o.b,{ref:t,decorative:l,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...i})});l.displayName=o.b.displayName},51303:(e,t,r)=>{"use strict";r.d(t,{A0:()=>l,BF:()=>i,Hj:()=>d,XI:()=>n,nA:()=>m,nd:()=>c,r6:()=>u});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",r),...s})})});n.displayName="Table";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",r),...s})});l.displayName="TableHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",r),...s})});i.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});d.displayName="TableRow";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});c.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});m.displayName="TableCell";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),...s})});u.displayName="TableCaption"},31739:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});n.displayName="Textarea"},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u,oR:()=>m});var a=r(20107);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function m(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(64901),s=r(868);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>i});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:d="",children:c,iconNode:m,...u}=e;return(0,a.createElement)("svg",{ref:t,...n,width:s,height:s,stroke:r,strokeWidth:i?24*Number(l)/Number(s):l,className:o("lucide",d),...u},[...m.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),i=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:i,...d}=r;return(0,a.createElement)(l,{ref:n,iconNode:t,className:o("lucide-".concat(s(e)),i),...d})});return r.displayName="".concat(e),r}},66698:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},58212:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var a=r(20107),s=r(34544),o=r(20475),n=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var l=n},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(20107),s=r(34544),o=r(20475),n="horizontal",l=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=n,...i}=e,d=l.includes(a)?a:n;return(0,o.jsx)(s.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,9464,9679,564,191,6035,7358],()=>t(80631)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-d24d85a1e5795f99.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-d24d85a1e5795f99.js new file mode 100644 index 0000000..74e0e1f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-d24d85a1e5795f99.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8757],{80631:(e,t,r)=>{Promise.resolve().then(r.bind(r,30233))},30233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var a=r(20475),s=r(20107),o=r(72167),n=r(36824),l=r(42541),i=r(49153),d=r(31739),c=r(64219),m=r(51873),u=r(58212),p=r(66698);let f=(0,r(39997).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var x=r(50049),h=r(32857),g=r(83086),y=r(51303),v=r(45934);let b=()=>{let{toast:e}=(0,h.dj)(),[t,r]=(0,s.useState)(""),[b,w]=(0,s.useState)(""),[j,N]=(0,s.useState)([]),[A,T]=(0,s.useState)([]),[C,S]=(0,s.useState)([]),[R,E]=(0,s.useState)(!1),[k,O]=(0,s.useState)([]),[D,_]=(0,s.useState)(!0),[I,F]=(0,s.useState)(-1),H=(0,s.useRef)(null),z=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&(T([]),F(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);O(r)}catch(t){console.error("Failed to fetch AT commands:",t),e({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{_(!1)}})()},[]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{N(JSON.parse(e))}catch(e){console.error("Failed to parse command history:",e),N([])}if(t)try{S(JSON.parse(t))}catch(e){console.error("Failed to parse previous commands:",e),S([])}},[]),(0,s.useEffect)(()=>{j.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(j))},[j]),(0,s.useEffect)(()=>{C.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(C))},[C]);let L=async()=>{let t=b.trim();if("tetris"===t.toLowerCase()){window.open("/settings/games/tetris","_blank"),w("");return}if(!t.toUpperCase().startsWith("AT")){e({title:"Invalid Command",description:"Command must start with 'AT'",variant:"destructive"});return}E(!0),w(""),r("> ".concat(t,"\nExecuting command, please wait..."));try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let l={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[l,...e]),"success"!==o.response.status||C.includes(t)||S(e=>[...e,t]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{E(!1)}},M=e=>{N(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},B=e=>{S(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),T(t=>t.filter(t=>t!==e))},V=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"AT Terminal"}),(0,a.jsx)(o.BT,{children:"Send AT commands to your device using the queue system"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(i.J,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.T,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-64 font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(x.w,{className:"mb-2"}),0===j.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(i.J,{children:"Command History"}),(0,a.jsxs)(g.Lt,{children:[(0,a.jsx)(g.tv,{asChild:!0,children:(0,a.jsxs)(l.$,{variant:"outline",size:"sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g.EO,{children:[(0,a.jsxs)(g.wd,{children:[(0,a.jsx)(g.r7,{children:"Clear Command History"}),(0,a.jsx)(g.$v,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.ck,{children:[(0,a.jsx)(g.Zr,{children:"Cancel"}),(0,a.jsx)(g.Rx,{onClick:()=>{N([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(n.F,{className:"h-44 p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:j.map((e,t)=>(0,a.jsx)(o.Zp,{children:(0,a.jsx)(o.Wu,{className:"p-3 relative",children:(0,a.jsxs)(n.F,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:()=>M(t),children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsxs)(v.E,{className:"".concat("success"===e.status?"bg-primary text-foreground":"timeout"===e.status?"bg-yellow-500 text-foreground":"bg-red-500 text-red-foreground"),children:[e.status," -"," ",void 0!==e.duration&&"".concat(e.duration,"ms")]})]}),e.response&&"No output"!==e.response&&(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono text-sm",children:e.response})]}),(0,a.jsx)(n.$,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(x.w,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(i.J,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.p,{ref:H,value:b,onChange:e=>{let t=e.target.value;w(t),F(-1),requestAnimationFrame(()=>{t.trim()?T(C.filter(e=>e.toLowerCase().includes(t.toLowerCase())).slice(0,5)):T([])})},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),L())},placeholder:"ATI",id:"ATInput",disabled:R,autoComplete:"off"}),A.length>0&&(0,a.jsx)("div",{ref:z,className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10 w-full",children:(0,a.jsx)(n.F,{className:"max-h-[200px]",children:A.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 cursor-pointer flex items-center justify-between group transition-colors ".concat(t===I?"bg-accent":"hover:bg-accent/50"),onClick:()=>{var t;w(e),T([]),F(-1),null===(t=H.current)||void 0===t||t.focus()},children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",children:e}),(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),B(e)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsxs)(l.$,{onClick:L,disabled:R,children:[(0,a.jsx)(p.A,{className:"mr-2"}),R?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"Common AT Commands List"}),(0,a.jsx)(o.BT,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(y.XI,{children:[(0,a.jsx)(y.r6,{children:"AT Command List"}),(0,a.jsx)(y.A0,{children:(0,a.jsxs)(y.Hj,{children:[(0,a.jsx)(y.nd,{children:"AT Command"}),(0,a.jsx)(y.nd,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(y.BF,{children:D?(0,a.jsx)(y.Hj,{children:(0,a.jsx)(y.nA,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===k.length?(0,a.jsx)(y.Hj,{children:(0,a.jsx)(y.nA,{colSpan:3,className:"text-center",children:"No commands available"})}):k.map((e,t)=>(0,a.jsxs)(y.Hj,{children:[(0,a.jsxs)(y.nA,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(f,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>V(e.command)})]}),(0,a.jsx)(y.nA,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},83086:(e,t,r)=>{"use strict";r.d(t,{Lt:()=>D,Rx:()=>B,Zr:()=>V,EO:()=>F,$v:()=>M,ck:()=>z,wd:()=>H,r7:()=>L,tv:()=>_});var a=r(20475),s=r(20107),o=r(45170),n=r(64236),l=r(60241),i=r(94521),d=r(61837),c="AlertDialog",[m,u]=(0,o.A)(c,[l.Hs]),p=(0,l.Hs)(),f=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(l.bL,{...s,...r,modal:!0})};f.displayName=c;var x=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.l9,{...o,...s,ref:t})});x.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(l.ZL,{...s,...r})};h.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.hJ,{...o,...s,ref:t})});g.displayName="AlertDialogOverlay";var y="AlertDialogContent",[v,b]=m(y),w=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...c}=e,m=p(r),u=s.useRef(null),f=(0,n.s)(t,u),x=s.useRef(null);return(0,a.jsx)(l.G$,{contentName:y,titleName:j,docsSlug:"alert-dialog",children:(0,a.jsx)(v,{scope:r,cancelRef:x,children:(0,a.jsxs)(l.UC,{role:"alertdialog",...m,...c,ref:f,onOpenAutoFocus:(0,i.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.xV,{children:o}),(0,a.jsx)(E,{contentRef:u})]})})})});w.displayName=y;var j="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.hE,{...o,...s,ref:t})});N.displayName=j;var A="AlertDialogDescription",T=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.VY,{...o,...s,ref:t})});T.displayName=A;var C=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(l.bm,{...o,...s,ref:t})});C.displayName="AlertDialogAction";var S="AlertDialogCancel",R=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,{cancelRef:o}=b(S,r),i=p(r),d=(0,n.s)(t,o);return(0,a.jsx)(l.bm,{...i,...s,ref:d})});R.displayName=S;var E=e=>{let{contentRef:t}=e,r="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(A,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},k=r(22250),O=r(42541);let D=f,_=x,I=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(g,{className:(0,k.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});I.displayName=g.displayName;let F=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(h,{children:[(0,a.jsx)(I,{}),(0,a.jsx)(w,{ref:t,className:(0,k.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});F.displayName=w.displayName;let H=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};H.displayName="AlertDialogHeader";let z=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};z.displayName="AlertDialogFooter";let L=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(N,{ref:t,className:(0,k.cn)("text-lg font-semibold",r),...s})});L.displayName=N.displayName;let M=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(T,{ref:t,className:(0,k.cn)("text-sm text-muted-foreground",r),...s})});M.displayName=T.displayName;let B=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(C,{ref:t,className:(0,k.cn)((0,O.r)(),r),...s})});B.displayName=C.displayName;let V=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(R,{ref:t,className:(0,k.cn)((0,O.r)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});V.displayName=R.displayName},45934:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var a=r(20475);r(20107);var s=r(29395),o=r(22250);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var a=r(20475),s=r(20107),o=r(61837),n=r(29395),l=r(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,m=d?o.DX:"button";return(0,a.jsx)(m,{className:(0,l.cn)(i({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>l,wL:()=>m});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});m.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),o=r(21840),n=r(29395),l=r(22250);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,l.cn)(i(),r),...s})});d.displayName=o.b.displayName},36824:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,F:()=>l});var a=r(20475),s=r(20107),o=r(89679),n=r(22250);let l=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...l,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(i,{}),(0,a.jsx)(o.OK,{})]})});l.displayName=o.bL.displayName;let i=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...l}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=o.VM.displayName},50049:(e,t,r)=>{"use strict";r.d(t,{w:()=>c});var a=r(20475),s=r(20107),o=r(34544),n="horizontal",l=["horizontal","vertical"],i=s.forwardRef((e,t)=>{let{decorative:r,orientation:s=n,...i}=e,d=l.includes(s)?s:n;return(0,a.jsx)(o.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=r(22250);let c=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:o=!0,...n}=e;return(0,a.jsx)(i,{ref:t,decorative:o,orientation:s,className:(0,d.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...n})});c.displayName=i.displayName},51303:(e,t,r)=>{"use strict";r.d(t,{A0:()=>l,BF:()=>i,Hj:()=>d,XI:()=>n,nA:()=>m,nd:()=>c,r6:()=>u});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",r),...s})})});n.displayName="Table";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",r),...s})});l.displayName="TableHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",r),...s})});i.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});d.displayName="TableRow";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});c.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});m.displayName="TableCell";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),...s})});u.displayName="TableCaption"},31739:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});n.displayName="Textarea"},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u,oR:()=>m});var a=r(20107);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function m(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(64901),s=r(868);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},58212:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var a=r(20107),s=r(34544),o=r(20475),n=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var l=n}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,9464,6357,9679,191,6035,7358],()=>t(80631)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-ded11e84e70593c1.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-ded11e84e70593c1.js new file mode 100644 index 0000000..caad5b8 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-ded11e84e70593c1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8757],{80631:(e,t,r)=>{Promise.resolve().then(r.bind(r,30233))},30233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(20475),s=r(20107),o=r(72167),n=r(36824),i=r(42541),l=r(49153),d=r(31739),c=r(64219),m=r(51873),u=r(58212),p=r(66698);let f=(0,r(39997).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var x=r(76554),h=r(32857),g=r(83086),v=r(51303),y=r(45934);let w=()=>{let{toast:e}=(0,h.dj)(),[t,r]=(0,s.useState)(""),[w,b]=(0,s.useState)(""),[j,N]=(0,s.useState)([]),[A,C]=(0,s.useState)([]),[T,E]=(0,s.useState)([]),[R,S]=(0,s.useState)(!1),[k,_]=(0,s.useState)([]),[O,D]=(0,s.useState)(!0),[I,F]=(0,s.useState)(-1),L=(0,s.useRef)(null),z=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&(C([]),F(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);_(r)}catch(t){console.error("Failed to fetch AT commands:",t),e({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{D(!1)}})()},[]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{N(JSON.parse(e))}catch(e){console.error("Failed to parse command history:",e),N([])}if(t)try{E(JSON.parse(t))}catch(e){console.error("Failed to parse previous commands:",e),E([])}},[]),(0,s.useEffect)(()=>{j.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(j))},[j]),(0,s.useEffect)(()=>{T.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(T))},[T]);let H=async()=>{let t=w.trim();if("tetris"===t.toLowerCase()){window.open("/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris","_blank"),b("");return}if("prev"===t.toLowerCase()){if(j.length>0){let t=j[0].command;b(""),e({title:"Executing Previous Command",description:"Executing ".concat(t)}),S(!0),r("> ".concat(t,"\nExecuting command, please wait...")),(async()=>{try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let i={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[i,...e]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{S(!1)}})();return}e({title:"No Previous Command",description:"Command history is empty",variant:"destructive"});return}if(!t.toUpperCase().startsWith("AT")){e({title:"Invalid Command",description:"Command must start with 'AT'",variant:"destructive"});return}S(!0),b(""),r("> ".concat(t,"\nExecuting command, please wait..."));try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let i={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[i,...e]),"success"!==o.response.status||T.includes(t)||E(e=>[...e,t]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{S(!1)}},M=e=>{N(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},$=e=>{E(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),C(t=>t.filter(t=>t!==e))},B=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"AT Terminal"}),(0,a.jsx)(o.BT,{children:"Send AT commands to your device using the queue system"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(l.J,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.T,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-64 font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(x.w,{className:"mb-2"}),0===j.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(l.J,{children:"Command History"}),(0,a.jsxs)(g.Lt,{children:[(0,a.jsx)(g.tv,{asChild:!0,children:(0,a.jsxs)(i.$,{variant:"outline",size:"sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g.EO,{children:[(0,a.jsxs)(g.wd,{children:[(0,a.jsx)(g.r7,{children:"Clear Command History"}),(0,a.jsx)(g.$v,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.ck,{children:[(0,a.jsx)(g.Zr,{children:"Cancel"}),(0,a.jsx)(g.Rx,{onClick:()=>{N([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(n.F,{className:"h-44 p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:j.map((e,t)=>(0,a.jsx)(o.Zp,{className:"hover:bg-accent/50 transition-colors cursor-pointer",onClick:()=>B(e.command),children:(0,a.jsx)(o.Wu,{className:"p-3 relative",children:(0,a.jsxs)(n.F,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(i.$,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:e=>{e.stopPropagation(),M(t)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsxs)(y.E,{className:"".concat("success"===e.status?"bg-primary text-foreground":"timeout"===e.status?"bg-yellow-500 text-foreground":"bg-red-500 text-red-foreground"),children:[e.status," -"," ",void 0!==e.duration&&"".concat(e.duration,"ms")]})]}),e.response&&"No output"!==e.response&&(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono text-sm",children:e.response})]}),(0,a.jsx)(n.$,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(x.w,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(l.J,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.p,{ref:L,value:w,onChange:e=>{let t=e.target.value;b(t),F(-1),requestAnimationFrame(()=>{t.trim()?C(T.filter(e=>e.toLowerCase().includes(t.toLowerCase())).slice(0,5)):C([])})},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),H())},placeholder:"ATI",id:"ATInput",disabled:R,autoComplete:"off"}),A.length>0&&(0,a.jsx)("div",{ref:z,className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10 w-full",children:(0,a.jsx)(n.F,{className:"max-h-[200px]",children:A.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 cursor-pointer flex items-center justify-between group transition-colors ".concat(t===I?"bg-accent":"hover:bg-accent/50"),onClick:()=>{var t;b(e),C([]),F(-1),null===(t=L.current)||void 0===t||t.focus()},children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",children:e}),(0,a.jsx)(i.$,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),$(e)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsxs)(i.$,{onClick:H,disabled:R,children:[(0,a.jsx)(p.A,{className:"mr-2"}),R?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"Common AT Commands List"}),(0,a.jsx)(o.BT,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(v.XI,{children:[(0,a.jsx)(v.r6,{children:"AT Command List"}),(0,a.jsx)(v.A0,{children:(0,a.jsxs)(v.Hj,{children:[(0,a.jsx)(v.nd,{children:"AT Command"}),(0,a.jsx)(v.nd,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(v.BF,{children:O?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===k.length?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"No commands available"})}):k.map((e,t)=>(0,a.jsxs)(v.Hj,{children:[(0,a.jsxs)(v.nA,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(f,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>B(e.command)})]}),(0,a.jsx)(v.nA,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},83086:(e,t,r)=>{"use strict";r.d(t,{Lt:()=>O,Rx:()=>$,Zr:()=>B,EO:()=>F,$v:()=>M,ck:()=>z,wd:()=>L,r7:()=>H,tv:()=>D});var a=r(20475),s=r(20107),o=r(45170),n=r(64236),i=r(60241),l=r(94521),d=r(61837),c="AlertDialog",[m,u]=(0,o.A)(c,[i.Hs]),p=(0,i.Hs)(),f=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(i.bL,{...s,...r,modal:!0})};f.displayName=c;var x=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.l9,{...o,...s,ref:t})});x.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(i.ZL,{...s,...r})};h.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.hJ,{...o,...s,ref:t})});g.displayName="AlertDialogOverlay";var v="AlertDialogContent",[y,w]=m(v),b=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...c}=e,m=p(r),u=s.useRef(null),f=(0,n.s)(t,u),x=s.useRef(null);return(0,a.jsx)(i.G$,{contentName:v,titleName:j,docsSlug:"alert-dialog",children:(0,a.jsx)(y,{scope:r,cancelRef:x,children:(0,a.jsxs)(i.UC,{role:"alertdialog",...m,...c,ref:f,onOpenAutoFocus:(0,l.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.xV,{children:o}),(0,a.jsx)(S,{contentRef:u})]})})})});b.displayName=v;var j="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.hE,{...o,...s,ref:t})});N.displayName=j;var A="AlertDialogDescription",C=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.VY,{...o,...s,ref:t})});C.displayName=A;var T=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.bm,{...o,...s,ref:t})});T.displayName="AlertDialogAction";var E="AlertDialogCancel",R=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,{cancelRef:o}=w(E,r),l=p(r),d=(0,n.s)(t,o);return(0,a.jsx)(i.bm,{...l,...s,ref:d})});R.displayName=E;var S=e=>{let{contentRef:t}=e,r="`".concat(v,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(v,"` by passing a `").concat(A,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(v,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},k=r(22250),_=r(42541);let O=f,D=x,I=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(g,{className:(0,k.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});I.displayName=g.displayName;let F=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(h,{children:[(0,a.jsx)(I,{}),(0,a.jsx)(b,{ref:t,className:(0,k.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});F.displayName=b.displayName;let L=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};L.displayName="AlertDialogHeader";let z=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};z.displayName="AlertDialogFooter";let H=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(N,{ref:t,className:(0,k.cn)("text-lg font-semibold",r),...s})});H.displayName=N.displayName;let M=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(C,{ref:t,className:(0,k.cn)("text-sm text-muted-foreground",r),...s})});M.displayName=C.displayName;let $=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(T,{ref:t,className:(0,k.cn)((0,_.r)(),r),...s})});$.displayName=T.displayName;let B=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(R,{ref:t,className:(0,k.cn)((0,_.r)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});B.displayName=R.displayName},45934:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var a=r(20475);r(20107);var s=r(29395),o=r(22250);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>l});var a=r(20475),s=r(20107),o=r(61837),n=r(29395),i=r(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,m=d?o.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(l({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>m});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});i.displayName="CardHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});l.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});m.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),o=r(21840),n=r(29395),i=r(22250);let l=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,i.cn)(l(),r),...s})});d.displayName=o.b.displayName},36824:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,F:()=>i});var a=r(20475),s=r(20107),o=r(89679),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...i,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(l,{}),(0,a.jsx)(o.OK,{})]})});i.displayName=o.bL.displayName;let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...i}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...i,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});l.displayName=o.VM.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var a=r(20475),s=r(20107),o=r(88853),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:i=!0,...l}=e;return(0,a.jsx)(o.b,{ref:t,decorative:i,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...l})});i.displayName=o.b.displayName},51303:(e,t,r)=>{"use strict";r.d(t,{A0:()=>i,BF:()=>l,Hj:()=>d,XI:()=>n,nA:()=>m,nd:()=>c,r6:()=>u});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",r),...s})})});n.displayName="Table";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",r),...s})});i.displayName="TableHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",r),...s})});l.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});d.displayName="TableRow";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});c.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});m.displayName="TableCell";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),...s})});u.displayName="TableCaption"},31739:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});n.displayName="Textarea"},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u,oR:()=>m});var a=r(20107);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function m(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(64901),s=r(868);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>l});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:d="",children:c,iconNode:m,...u}=e;return(0,a.createElement)("svg",{ref:t,...n,width:s,height:s,stroke:r,strokeWidth:l?24*Number(i)/Number(s):i,className:o("lucide",d),...u},[...m.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:l,...d}=r;return(0,a.createElement)(i,{ref:n,iconNode:t,className:o("lucide-".concat(s(e)),l),...d})});return r.displayName="".concat(e),r}},66698:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},58212:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var a=r(20107),s=r(34544),o=r(20475),n=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var i=n},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(20107),s=r(34544),o=r(20475),n="horizontal",i=["horizontal","vertical"],l=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=n,...l}=e,d=i.includes(a)?a:n;return(0,o.jsx)(s.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var d=l}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,9464,241,9679,191,6035,7358],()=>t(80631)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-fff95c1e4f54ea79.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-fff95c1e4f54ea79.js new file mode 100644 index 0000000..caad5b8 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-fff95c1e4f54ea79.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8757],{80631:(e,t,r)=>{Promise.resolve().then(r.bind(r,30233))},30233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(20475),s=r(20107),o=r(72167),n=r(36824),i=r(42541),l=r(49153),d=r(31739),c=r(64219),m=r(51873),u=r(58212),p=r(66698);let f=(0,r(39997).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var x=r(76554),h=r(32857),g=r(83086),v=r(51303),y=r(45934);let w=()=>{let{toast:e}=(0,h.dj)(),[t,r]=(0,s.useState)(""),[w,b]=(0,s.useState)(""),[j,N]=(0,s.useState)([]),[A,C]=(0,s.useState)([]),[T,E]=(0,s.useState)([]),[R,S]=(0,s.useState)(!1),[k,_]=(0,s.useState)([]),[O,D]=(0,s.useState)(!0),[I,F]=(0,s.useState)(-1),L=(0,s.useRef)(null),z=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&(C([]),F(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);_(r)}catch(t){console.error("Failed to fetch AT commands:",t),e({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{D(!1)}})()},[]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{N(JSON.parse(e))}catch(e){console.error("Failed to parse command history:",e),N([])}if(t)try{E(JSON.parse(t))}catch(e){console.error("Failed to parse previous commands:",e),E([])}},[]),(0,s.useEffect)(()=>{j.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(j))},[j]),(0,s.useEffect)(()=>{T.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(T))},[T]);let H=async()=>{let t=w.trim();if("tetris"===t.toLowerCase()){window.open("/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris","_blank"),b("");return}if("prev"===t.toLowerCase()){if(j.length>0){let t=j[0].command;b(""),e({title:"Executing Previous Command",description:"Executing ".concat(t)}),S(!0),r("> ".concat(t,"\nExecuting command, please wait...")),(async()=>{try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let i={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[i,...e]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{S(!1)}})();return}e({title:"No Previous Command",description:"Command history is empty",variant:"destructive"});return}if(!t.toUpperCase().startsWith("AT")){e({title:"Invalid Command",description:"Command must start with 'AT'",variant:"destructive"});return}S(!0),b(""),r("> ".concat(t,"\nExecuting command, please wait..."));try{let a=encodeURIComponent(t),s=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a,"&wait=1")),o=await s.json(),n="> ".concat(t,"\n");o.response.raw_output&&(n+=o.response.raw_output),r(n);let i={command:t,response:o.response.raw_output||"No output",timestamp:o.command.timestamp,status:o.response.status,duration:o.response.duration_ms,commandId:o.command.id};N(e=>[i,...e]),"success"!==o.response.status||T.includes(t)||E(e=>[...e,t]),("error"===o.response.status||"timeout"===o.response.status)&&e({title:"Command ".concat("timeout"===o.response.status?"Timeout":"Error"),description:o.response.raw_output||"Command execution ".concat(o.response.status),variant:"destructive"})}catch(s){let a=s instanceof Error?s.message:"An unknown error occurred";r("> ".concat(t,"\nError: ").concat(a)),e({title:"Error",description:a,variant:"destructive"})}finally{S(!1)}},M=e=>{N(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},$=e=>{E(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),C(t=>t.filter(t=>t!==e))},B=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"AT Terminal"}),(0,a.jsx)(o.BT,{children:"Send AT commands to your device using the queue system"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(l.J,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.T,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-64 font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(x.w,{className:"mb-2"}),0===j.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(l.J,{children:"Command History"}),(0,a.jsxs)(g.Lt,{children:[(0,a.jsx)(g.tv,{asChild:!0,children:(0,a.jsxs)(i.$,{variant:"outline",size:"sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g.EO,{children:[(0,a.jsxs)(g.wd,{children:[(0,a.jsx)(g.r7,{children:"Clear Command History"}),(0,a.jsx)(g.$v,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.ck,{children:[(0,a.jsx)(g.Zr,{children:"Cancel"}),(0,a.jsx)(g.Rx,{onClick:()=>{N([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(n.F,{className:"h-44 p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:j.map((e,t)=>(0,a.jsx)(o.Zp,{className:"hover:bg-accent/50 transition-colors cursor-pointer",onClick:()=>B(e.command),children:(0,a.jsx)(o.Wu,{className:"p-3 relative",children:(0,a.jsxs)(n.F,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(i.$,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:e=>{e.stopPropagation(),M(t)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsxs)(y.E,{className:"".concat("success"===e.status?"bg-primary text-foreground":"timeout"===e.status?"bg-yellow-500 text-foreground":"bg-red-500 text-red-foreground"),children:[e.status," -"," ",void 0!==e.duration&&"".concat(e.duration,"ms")]})]}),e.response&&"No output"!==e.response&&(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono text-sm",children:e.response})]}),(0,a.jsx)(n.$,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(x.w,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(l.J,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.p,{ref:L,value:w,onChange:e=>{let t=e.target.value;b(t),F(-1),requestAnimationFrame(()=>{t.trim()?C(T.filter(e=>e.toLowerCase().includes(t.toLowerCase())).slice(0,5)):C([])})},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),H())},placeholder:"ATI",id:"ATInput",disabled:R,autoComplete:"off"}),A.length>0&&(0,a.jsx)("div",{ref:z,className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10 w-full",children:(0,a.jsx)(n.F,{className:"max-h-[200px]",children:A.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 cursor-pointer flex items-center justify-between group transition-colors ".concat(t===I?"bg-accent":"hover:bg-accent/50"),onClick:()=>{var t;b(e),C([]),F(-1),null===(t=L.current)||void 0===t||t.focus()},children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",children:e}),(0,a.jsx)(i.$,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),$(e)},children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsxs)(i.$,{onClick:H,disabled:R,children:[(0,a.jsx)(p.A,{className:"mr-2"}),R?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"Common AT Commands List"}),(0,a.jsx)(o.BT,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(v.XI,{children:[(0,a.jsx)(v.r6,{children:"AT Command List"}),(0,a.jsx)(v.A0,{children:(0,a.jsxs)(v.Hj,{children:[(0,a.jsx)(v.nd,{children:"AT Command"}),(0,a.jsx)(v.nd,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(v.BF,{children:O?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===k.length?(0,a.jsx)(v.Hj,{children:(0,a.jsx)(v.nA,{colSpan:3,className:"text-center",children:"No commands available"})}):k.map((e,t)=>(0,a.jsxs)(v.Hj,{children:[(0,a.jsxs)(v.nA,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(f,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>B(e.command)})]}),(0,a.jsx)(v.nA,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},83086:(e,t,r)=>{"use strict";r.d(t,{Lt:()=>O,Rx:()=>$,Zr:()=>B,EO:()=>F,$v:()=>M,ck:()=>z,wd:()=>L,r7:()=>H,tv:()=>D});var a=r(20475),s=r(20107),o=r(45170),n=r(64236),i=r(60241),l=r(94521),d=r(61837),c="AlertDialog",[m,u]=(0,o.A)(c,[i.Hs]),p=(0,i.Hs)(),f=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(i.bL,{...s,...r,modal:!0})};f.displayName=c;var x=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.l9,{...o,...s,ref:t})});x.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,s=p(t);return(0,a.jsx)(i.ZL,{...s,...r})};h.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.hJ,{...o,...s,ref:t})});g.displayName="AlertDialogOverlay";var v="AlertDialogContent",[y,w]=m(v),b=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...c}=e,m=p(r),u=s.useRef(null),f=(0,n.s)(t,u),x=s.useRef(null);return(0,a.jsx)(i.G$,{contentName:v,titleName:j,docsSlug:"alert-dialog",children:(0,a.jsx)(y,{scope:r,cancelRef:x,children:(0,a.jsxs)(i.UC,{role:"alertdialog",...m,...c,ref:f,onOpenAutoFocus:(0,l.m)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.xV,{children:o}),(0,a.jsx)(S,{contentRef:u})]})})})});b.displayName=v;var j="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.hE,{...o,...s,ref:t})});N.displayName=j;var A="AlertDialogDescription",C=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.VY,{...o,...s,ref:t})});C.displayName=A;var T=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,o=p(r);return(0,a.jsx)(i.bm,{...o,...s,ref:t})});T.displayName="AlertDialogAction";var E="AlertDialogCancel",R=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,{cancelRef:o}=w(E,r),l=p(r),d=(0,n.s)(t,o);return(0,a.jsx)(i.bm,{...l,...s,ref:d})});R.displayName=E;var S=e=>{let{contentRef:t}=e,r="`".concat(v,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(v,"` by passing a `").concat(A,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(v,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},k=r(22250),_=r(42541);let O=f,D=x,I=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(g,{className:(0,k.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});I.displayName=g.displayName;let F=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(h,{children:[(0,a.jsx)(I,{}),(0,a.jsx)(b,{ref:t,className:(0,k.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});F.displayName=b.displayName;let L=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};L.displayName="AlertDialogHeader";let z=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,k.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};z.displayName="AlertDialogFooter";let H=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(N,{ref:t,className:(0,k.cn)("text-lg font-semibold",r),...s})});H.displayName=N.displayName;let M=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(C,{ref:t,className:(0,k.cn)("text-sm text-muted-foreground",r),...s})});M.displayName=C.displayName;let $=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(T,{ref:t,className:(0,k.cn)((0,_.r)(),r),...s})});$.displayName=T.displayName;let B=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(R,{ref:t,className:(0,k.cn)((0,_.r)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});B.displayName=R.displayName},45934:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var a=r(20475);r(20107);var s=r(29395),o=r(22250);let n=(0,s.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>l});var a=r(20475),s=r(20107),o=r(61837),n=r(29395),i=r(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,m=d?o.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(l({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>m});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});i.displayName="CardHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});l.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});m.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),o=r(21840),n=r(29395),i=r(22250);let l=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,i.cn)(l(),r),...s})});d.displayName=o.b.displayName},36824:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,F:()=>i});var a=r(20475),s=r(20107),o=r(89679),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...i,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(l,{}),(0,a.jsx)(o.OK,{})]})});i.displayName=o.bL.displayName;let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...i}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...i,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});l.displayName=o.VM.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var a=r(20475),s=r(20107),o=r(88853),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:i=!0,...l}=e;return(0,a.jsx)(o.b,{ref:t,decorative:i,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...l})});i.displayName=o.b.displayName},51303:(e,t,r)=>{"use strict";r.d(t,{A0:()=>i,BF:()=>l,Hj:()=>d,XI:()=>n,nA:()=>m,nd:()=>c,r6:()=>u});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",r),...s})})});n.displayName="Table";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",r),...s})});i.displayName="TableHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",r),...s})});l.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});d.displayName="TableRow";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("th",{ref:t,className:(0,o.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});c.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("td",{ref:t,className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...s})});m.displayName="TableCell";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),...s})});u.displayName="TableCaption"},31739:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var a=r(20475),s=r(20107),o=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});n.displayName="Textarea"},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u,oR:()=>m});var a=r(20107);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function m(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(64901),s=r(868);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>l});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:d="",children:c,iconNode:m,...u}=e;return(0,a.createElement)("svg",{ref:t,...n,width:s,height:s,stroke:r,strokeWidth:l?24*Number(i)/Number(s):i,className:o("lucide",d),...u},[...m.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:l,...d}=r;return(0,a.createElement)(i,{ref:n,iconNode:t,className:o("lucide-".concat(s(e)),l),...d})});return r.displayName="".concat(e),r}},66698:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},58212:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var a=r(20107),s=r(34544),o=r(20475),n=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var i=n},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(20107),s=r(34544),o=r(20475),n="horizontal",i=["horizontal","vertical"],l=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=n,...l}=e,d=i.includes(a)?a:n;return(0,o.jsx)(s.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var d=l}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,9464,241,9679,191,6035,7358],()=>t(80631)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-3255ce6e1a5e59f1.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-3255ce6e1a5e59f1.js new file mode 100644 index 0000000..ae9dfec --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-3255ce6e1a5e59f1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9548],{15348:(e,s,_)=>{Promise.resolve().then(_.bind(_,39966))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,241,4767,9966,191,6035,7358],()=>s(15348)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-3e4d65d2e857a322.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-3e4d65d2e857a322.js new file mode 100644 index 0000000..271df74 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-3e4d65d2e857a322.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9548],{15348:(e,s,_)=>{Promise.resolve().then(_.bind(_,76592))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,564,6592,191,6035,7358],()=>s(15348)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-5c3c7375e5a7c972.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-5c3c7375e5a7c972.js deleted file mode 100644 index cb90e89..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-5c3c7375e5a7c972.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9548],{70364:(e,s,_)=>{Promise.resolve().then(_.bind(_,93914))}},e=>{var s=s=>e(e.s=s);e.O(0,[5105,1365,7401,9895,2019,9975,3572,3914,8441,1517,7358],()=>s(70364)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-9a83ab81cc3a1235.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-9a83ab81cc3a1235.js new file mode 100644 index 0000000..30daa94 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-9a83ab81cc3a1235.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9548],{15348:(e,s,_)=>{Promise.resolve().then(_.bind(_,39966))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,241,4767,9966,191,6035,7358],()=>s(15348)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-cc4cc206684861f6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-cc4cc206684861f6.js new file mode 100644 index 0000000..5f70437 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-cc4cc206684861f6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9548],{15348:(e,s,t)=>{Promise.resolve().then(t.bind(t,39966))},39966:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>f});var r=t(20475),a=t(20107),l=t(72167),d=t(35601),o=t(83086),n=t(32857),i=t(42541),c=t(49153),u=t(36760),h=t(76554),m=t(114),x=t(88926),p=t(44381);let f=()=>{let{toast:e}=(0,n.dj)(),[s,t]=(0,a.useState)(!0),[f,j]=(0,a.useState)([]),[g,b]=(0,a.useState)(!1),[v,y]=(0,a.useState)(""),[N,w]=(0,a.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),[P,C]=(0,a.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),M={passthrough:{disabled:'+QMAP="MPDN_rule",0;+QMAPWAC=1;+QPOWD=1',ETH:e=>'+QMAP="MPDN_rule",0,1,0,1,1,"'.concat(e,'";+QPOWD=1'),USB:e=>'+QMAP="MPDN_rule",0,1,0,3,1,"'.concat(e,'";+QPOWD=1')},modemProtocol:{rmnet:'+QCFG="usbnet",0;+QPOWD=1',ecm:'+QCFG="usbnet",1;+QPOWD=1',mbim:'+QCFG="usbnet",2;+QPOWD=1',rndis:'+QCFG="usbnet",3;+QPOWD=1'},dnsProxy:{enabled:'+QMAP="DHCPV4DNS","enable"',disabled:'+QMAP="DHCPV4DNS","disable"'}},D=e=>{let s={passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null};return e.forEach(e=>{let{response:t}=e;if(t.includes("MPDN_rule")){let e=t.split("\n")[1];e.includes('MPDN_rule",0,1,0,1,1')?s.passthrough="ETH":e.includes('MPDN_rule",0,1,0,3,1')?s.passthrough="USB":e.includes('MPDN_rule",0,0,0,0,0')&&(s.passthrough="disabled")}if(t.includes("usbnet")){let e=t.match(/usbnet",(\d)/);e&&(s.modemProtocol=({0:"rmnet",1:"ecm",2:"mbim",3:"rndis"})[e[1]])}t.includes("DHCPV4DNS")&&(t.includes('"enable"')?s.dnsProxy="enabled":t.includes('"disable"')&&(s.dnsProxy="disabled"))}),s},S=()=>{let e=[],s=Object.entries(P).reduce((e,s)=>{let[t,r]=s;return r!==N[t]&&(e[t]=r),e},{});if("passthrough"in s){if("disabled"===s.passthrough)e.push(M.passthrough.disabled.replace(";+QPOWD=1",""));else if(s.passthrough){let e=M.passthrough[s.passthrough](P.selectedMac);return"AT".concat(e.replace(";+QPOWD=1",""))}}if("modemProtocol"in s&&s.modemProtocol){let t=M.modemProtocol[s.modemProtocol];if(1===Object.keys(s).length)return"AT".concat(t.replace(";+QPOWD=1",""));e.push(t.replace(";+QPOWD=1",""))}if("dnsProxy"in s&&s.dnsProxy){let t=M.dnsProxy[s.dnsProxy];if(1===Object.keys(s).length)return"AT".concat(t);e.push(t)}return e.length>0?"AT".concat(e.join(";")):""},R=async()=>{try{var s,t;let r=await (0,x.a)("AT+QPOWD=1",!0);if((null===(s=r.response)||void 0===s?void 0:s.status)==="success")e({title:"Success",description:"Settings saved and device is rebooting..."}),setTimeout(()=>{window.location.reload()},9e4);else throw Error((null===(t=r.response)||void 0===t?void 0:t.raw_output)||"Failed to reboot device")}catch(s){e({variant:"destructive",title:"Error",description:"Failed to reboot device",action:(0,r.jsx)(m.A,{})})}},E=async()=>{try{let e=S();y(e),b(!0)}catch(s){e({variant:"destructive",title:"Error",description:"Failed to prepare settings",action:(0,r.jsx)(m.A,{})})}},A=async()=>{try{var s,t;let e=await (0,x.a)(v,!0);if((null===(s=e.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(t=e.response)||void 0===t?void 0:t.raw_output)||"Command execution failed");w({...P}),await R()}catch(s){e({variant:"destructive",title:"Error",description:"Failed to save settings",action:(0,r.jsx)(m.A,{})})}};return(0,a.useEffect)(()=>{(async()=>{try{let[e,s]=await Promise.all([fetch("/cgi-bin/quecmanager/advance/fetch_macs.sh"),fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=4")]),[r,a]=await Promise.all([e.json(),s.json()]);j(r);let l=D(a);w(l),C(l),t(!1)}catch(s){t(!1),e({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch connectivity settings",action:(0,r.jsx)(m.A,{})})}})()},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Zp,{children:[(0,r.jsxs)(l.aR,{children:[(0,r.jsx)(l.ZB,{children:"Connectivity Settings"}),(0,r.jsx)(l.BT,{children:"Configure your device's connectivity settings."})]}),(0,r.jsx)(l.Wu,{children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"passthrough",children:"IP Passthrough Mode"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,passthrough:e})),value:P.passthrough||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select IP Passthrough Mode"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"Passthrough Mode"}),(0,r.jsx)(d.eb,{value:"disabled",children:"Disabled"}),(0,r.jsx)(d.eb,{value:"ETH",children:"ETH Passthrough Enabled"}),(0,r.jsx)(d.eb,{value:"USB",children:"USB Passthrough Enabled"})]})})]})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"mac",children:"Connected MAC"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,selectedMac:e})),value:P.selectedMac||void 0,disabled:!P.passthrough||"disabled"===P.passthrough,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select Active MAC"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"Active MAC"}),f.map(e=>(0,r.jsx)(d.eb,{value:e.mac,children:"".concat(e.hostname," - ").concat(e.mac)},e.mac))]})})]})]}),(0,r.jsx)(h.w,{className:"lg:col-span-2 col-span-1 my-2"}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"modemProtocol",children:"USB Modem Protocol"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,modemProtocol:e})),value:P.modemProtocol||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select USB Modem Protocol"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"USB Modem Protocol"}),(0,r.jsx)(d.eb,{value:"rmnet",children:"RMNET"}),(0,r.jsx)(d.eb,{value:"ecm",children:"ECM (Recommended)"}),(0,r.jsx)(d.eb,{value:"mbim",children:"MBIM"}),(0,r.jsx)(d.eb,{value:"rndis",children:"RNDIS"})]})})]})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"dnsProxy",children:"Onboard DNS Proxy Mode"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,dnsProxy:e})),value:P.dnsProxy||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select DNS Proxy Mode"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"DNS Proxy Mode"}),(0,r.jsx)(d.eb,{value:"enabled",children:"Enabled"}),(0,r.jsx)(d.eb,{value:"disabled",children:"Disabled (Recommended for Passthrough)"})]})})]})]})]})}),(0,r.jsx)(l.wL,{className:"grid border-t py-4",children:(0,r.jsx)(i.$,{onClick:E,disabled:!Object.entries(P).some(e=>{let[s,t]=e;return t!==N[s]})||!(!P.passthrough||"disabled"===P.passthrough||P.selectedMac),children:"Save"})})]}),(0,r.jsx)(o.Lt,{open:g,onOpenChange:b,children:(0,r.jsxs)(o.EO,{children:[(0,r.jsxs)(o.wd,{children:[(0,r.jsx)(o.r7,{children:"Reboot Required"}),(0,r.jsx)(o.$v,{children:"The changes you made require a device reboot to take effect. Would you like to reboot now?"})]}),(0,r.jsxs)(o.ck,{children:[(0,r.jsx)(o.Zr,{children:"Later"}),(0,r.jsxs)(o.Rx,{onClick:A,children:[(0,r.jsx)(p.A,{className:"w-4 h-4"}),"Save & Reboot Now"]})]})]})})]})}},114:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var r=t(20475),a=t(42541),l=t(7197);let d=()=>(0,r.jsx)(a.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,r.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,r.jsx)(l.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>i,Wu:()=>c,ZB:()=>n,Zp:()=>d,aR:()=>o,wL:()=>u});var r=t(20475),a=t(20107),l=t(22250);let d=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...a})});d.displayName="Card";let o=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",t),...a})});o.displayName="CardHeader";let n=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("h3",{ref:s,className:(0,l.cn)("font-semibold leading-none tracking-tight",t),...a})});n.displayName="CardTitle";let i=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("p",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",t),...a})});i.displayName="CardDescription";let c=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let u=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",t),...a})});u.displayName="CardFooter"},49153:(e,s,t)=>{"use strict";t.d(s,{J:()=>i});var r=t(20475),a=t(20107),l=t(21840),d=t(29395),o=t(22250);let n=(0,d.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(l.b,{ref:s,className:(0,o.cn)(n(),t),...a})});i.displayName=l.b.displayName},35601:(e,s,t)=>{"use strict";t.d(s,{TR:()=>p,bq:()=>u,eb:()=>f,gC:()=>x,l6:()=>n,s3:()=>i,yv:()=>c});var r=t(20475),a=t(20107),l=t(7197),d=t(95257),o=t(22250);let n=d.bL,i=d.YJ,c=d.WT,u=a.forwardRef((e,s)=>{let{className:t,children:a,...n}=e;return(0,r.jsxs)(d.l9,{ref:s,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...n,children:[a,(0,r.jsx)(d.In,{asChild:!0,children:(0,r.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=d.l9.displayName;let h=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(d.PP,{ref:s,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,r.jsx)(l.Mtm,{})})});h.displayName=d.PP.displayName;let m=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(d.wn,{ref:s,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,r.jsx)(l.D3D,{})})});m.displayName=d.wn.displayName;let x=a.forwardRef((e,s)=>{let{className:t,children:a,position:l="popper",...n}=e;return(0,r.jsx)(d.ZL,{children:(0,r.jsxs)(d.UC,{ref:s,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...n,children:[(0,r.jsx)(h,{}),(0,r.jsx)(d.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,r.jsx)(m,{})]})})});x.displayName=d.UC.displayName;let p=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(d.JU,{ref:s,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",t),...a})});p.displayName=d.JU.displayName;let f=a.forwardRef((e,s)=>{let{className:t,children:a,...n}=e;return(0,r.jsxs)(d.q7,{ref:s,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(d.VF,{children:(0,r.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,r.jsx)(d.p4,{children:a})]})});f.displayName=d.q7.displayName,a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(d.wv,{ref:s,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",t),...a})}).displayName=d.wv.displayName},76554:(e,s,t)=>{"use strict";t.d(s,{w:()=>o});var r=t(20475),a=t(20107),l=t(88853),d=t(22250);let o=a.forwardRef((e,s)=>{let{className:t,orientation:a="horizontal",decorative:o=!0,...n}=e;return(0,r.jsx)(l.b,{ref:s,decorative:o,orientation:a,className:(0,d.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",t),...n})});o.displayName=l.b.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>l});var r=t(20475),a=t(22250);function l(e){let{className:s,...t}=e;return(0,r.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},88853:(e,s,t)=>{"use strict";t.d(s,{b:()=>i});var r=t(20107),a=t(34544),l=t(20475),d="horizontal",o=["horizontal","vertical"],n=r.forwardRef((e,s)=>{let{decorative:t,orientation:r=d,...n}=e,i=o.includes(r)?r:d;return(0,l.jsx)(a.sG.div,{"data-orientation":i,...t?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"},...n,ref:s})});n.displayName="Separator";var i=n}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,6357,6810,4767,191,6035,7358],()=>s(15348)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-f494320c9da1be00.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-f494320c9da1be00.js new file mode 100644 index 0000000..458f51d --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-f494320c9da1be00.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9548],{15348:(e,s,t)=>{Promise.resolve().then(t.bind(t,39966))},39966:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>f});var r=t(20475),a=t(20107),l=t(72167),d=t(35601),o=t(83086),n=t(32857),i=t(42541),c=t(49153),u=t(36760),h=t(50049),m=t(114),x=t(88926),p=t(44381);let f=()=>{let{toast:e}=(0,n.dj)(),[s,t]=(0,a.useState)(!0),[f,j]=(0,a.useState)([]),[g,b]=(0,a.useState)(!1),[v,y]=(0,a.useState)(""),[N,w]=(0,a.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),[P,C]=(0,a.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),M={passthrough:{disabled:'+QMAP="MPDN_rule",0;+QMAPWAC=1;+QPOWD=1',ETH:e=>'+QMAP="MPDN_rule",0,1,0,1,1,"'.concat(e,'";+QPOWD=1'),USB:e=>'+QMAP="MPDN_rule",0,1,0,3,1,"'.concat(e,'";+QPOWD=1')},modemProtocol:{rmnet:'+QCFG="usbnet",0;+QPOWD=1',ecm:'+QCFG="usbnet",1;+QPOWD=1',mbim:'+QCFG="usbnet",2;+QPOWD=1',rndis:'+QCFG="usbnet",3;+QPOWD=1'},dnsProxy:{enabled:'+QMAP="DHCPV4DNS","enable"',disabled:'+QMAP="DHCPV4DNS","disable"'}},D=e=>{let s={passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null};return e.forEach(e=>{let{response:t}=e;if(t.includes("MPDN_rule")){let e=t.split("\n")[1];e.includes('MPDN_rule",0,1,0,1,1')?s.passthrough="ETH":e.includes('MPDN_rule",0,1,0,3,1')?s.passthrough="USB":e.includes('MPDN_rule",0,0,0,0,0')&&(s.passthrough="disabled")}if(t.includes("usbnet")){let e=t.match(/usbnet",(\d)/);e&&(s.modemProtocol=({0:"rmnet",1:"ecm",2:"mbim",3:"rndis"})[e[1]])}t.includes("DHCPV4DNS")&&(t.includes('"enable"')?s.dnsProxy="enabled":t.includes('"disable"')&&(s.dnsProxy="disabled"))}),s},S=()=>{let e=[],s=Object.entries(P).reduce((e,s)=>{let[t,r]=s;return r!==N[t]&&(e[t]=r),e},{});if("passthrough"in s){if("disabled"===s.passthrough)e.push(M.passthrough.disabled.replace(";+QPOWD=1",""));else if(s.passthrough){let e=M.passthrough[s.passthrough](P.selectedMac);return"AT".concat(e.replace(";+QPOWD=1",""))}}if("modemProtocol"in s&&s.modemProtocol){let t=M.modemProtocol[s.modemProtocol];if(1===Object.keys(s).length)return"AT".concat(t.replace(";+QPOWD=1",""));e.push(t.replace(";+QPOWD=1",""))}if("dnsProxy"in s&&s.dnsProxy){let t=M.dnsProxy[s.dnsProxy];if(1===Object.keys(s).length)return"AT".concat(t);e.push(t)}return e.length>0?"AT".concat(e.join(";")):""},R=async()=>{try{var s,t;let r=await (0,x.a)("AT+QPOWD=1",!0);if((null===(s=r.response)||void 0===s?void 0:s.status)==="success")e({title:"Success",description:"Settings saved and device is rebooting..."}),setTimeout(()=>{window.location.reload()},9e4);else throw Error((null===(t=r.response)||void 0===t?void 0:t.raw_output)||"Failed to reboot device")}catch(s){e({variant:"destructive",title:"Error",description:"Failed to reboot device",action:(0,r.jsx)(m.A,{})})}},E=async()=>{try{let e=S();y(e),b(!0)}catch(s){e({variant:"destructive",title:"Error",description:"Failed to prepare settings",action:(0,r.jsx)(m.A,{})})}},A=async()=>{try{var s,t;let e=await (0,x.a)(v,!0);if((null===(s=e.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(t=e.response)||void 0===t?void 0:t.raw_output)||"Command execution failed");w({...P}),await R()}catch(s){e({variant:"destructive",title:"Error",description:"Failed to save settings",action:(0,r.jsx)(m.A,{})})}};return(0,a.useEffect)(()=>{(async()=>{try{let[e,s]=await Promise.all([fetch("/cgi-bin/quecmanager/advance/fetch_macs.sh"),fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=4")]),[r,a]=await Promise.all([e.json(),s.json()]);j(r);let l=D(a);w(l),C(l),t(!1)}catch(s){t(!1),e({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch connectivity settings",action:(0,r.jsx)(m.A,{})})}})()},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Zp,{children:[(0,r.jsxs)(l.aR,{children:[(0,r.jsx)(l.ZB,{children:"Connectivity Settings"}),(0,r.jsx)(l.BT,{children:"Configure your device's connectivity settings."})]}),(0,r.jsx)(l.Wu,{children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"passthrough",children:"IP Passthrough Mode"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,passthrough:e})),value:P.passthrough||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select IP Passthrough Mode"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"Passthrough Mode"}),(0,r.jsx)(d.eb,{value:"disabled",children:"Disabled"}),(0,r.jsx)(d.eb,{value:"ETH",children:"ETH Passthrough Enabled"}),(0,r.jsx)(d.eb,{value:"USB",children:"USB Passthrough Enabled"})]})})]})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"mac",children:"Connected MAC"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,selectedMac:e})),value:P.selectedMac||void 0,disabled:!P.passthrough||"disabled"===P.passthrough,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select Active MAC"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"Active MAC"}),f.map(e=>(0,r.jsx)(d.eb,{value:e.mac,children:"".concat(e.hostname," - ").concat(e.mac)},e.mac))]})})]})]}),(0,r.jsx)(h.w,{className:"lg:col-span-2 col-span-1 my-2"}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"modemProtocol",children:"USB Modem Protocol"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,modemProtocol:e})),value:P.modemProtocol||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select USB Modem Protocol"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"USB Modem Protocol"}),(0,r.jsx)(d.eb,{value:"rmnet",children:"RMNET"}),(0,r.jsx)(d.eb,{value:"ecm",children:"ECM (Recommended)"}),(0,r.jsx)(d.eb,{value:"mbim",children:"MBIM"}),(0,r.jsx)(d.eb,{value:"rndis",children:"RNDIS"})]})})]})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(c.J,{htmlFor:"dnsProxy",children:"Onboard DNS Proxy Mode"}),s?(0,r.jsx)(u.E,{className:"w-full h-8"}):(0,r.jsxs)(d.l6,{onValueChange:e=>C(s=>({...s,dnsProxy:e})),value:P.dnsProxy||void 0,children:[(0,r.jsx)(d.bq,{children:(0,r.jsx)(d.yv,{placeholder:"Select DNS Proxy Mode"})}),(0,r.jsx)(d.gC,{children:(0,r.jsxs)(d.s3,{children:[(0,r.jsx)(d.TR,{children:"DNS Proxy Mode"}),(0,r.jsx)(d.eb,{value:"enabled",children:"Enabled"}),(0,r.jsx)(d.eb,{value:"disabled",children:"Disabled (Recommended for Passthrough)"})]})})]})]})]})}),(0,r.jsx)(l.wL,{className:"grid border-t py-4",children:(0,r.jsx)(i.$,{onClick:E,disabled:!Object.entries(P).some(e=>{let[s,t]=e;return t!==N[s]})||!(!P.passthrough||"disabled"===P.passthrough||P.selectedMac),children:"Save"})})]}),(0,r.jsx)(o.Lt,{open:g,onOpenChange:b,children:(0,r.jsxs)(o.EO,{children:[(0,r.jsxs)(o.wd,{children:[(0,r.jsx)(o.r7,{children:"Reboot Required"}),(0,r.jsx)(o.$v,{children:"The changes you made require a device reboot to take effect. Would you like to reboot now?"})]}),(0,r.jsxs)(o.ck,{children:[(0,r.jsx)(o.Zr,{children:"Later"}),(0,r.jsxs)(o.Rx,{onClick:A,children:[(0,r.jsx)(p.A,{className:"w-4 h-4"}),"Save & Reboot Now"]})]})]})})]})}},114:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var r=t(20475),a=t(42541),l=t(7197);let d=()=>(0,r.jsx)(a.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,r.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,r.jsx)(l.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>i,Wu:()=>c,ZB:()=>n,Zp:()=>d,aR:()=>o,wL:()=>u});var r=t(20475),a=t(20107),l=t(22250);let d=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...a})});d.displayName="Card";let o=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",t),...a})});o.displayName="CardHeader";let n=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("h3",{ref:s,className:(0,l.cn)("font-semibold leading-none tracking-tight",t),...a})});n.displayName="CardTitle";let i=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("p",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",t),...a})});i.displayName="CardDescription";let c=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let u=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",t),...a})});u.displayName="CardFooter"},49153:(e,s,t)=>{"use strict";t.d(s,{J:()=>i});var r=t(20475),a=t(20107),l=t(21840),d=t(29395),o=t(22250);let n=(0,d.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(l.b,{ref:s,className:(0,o.cn)(n(),t),...a})});i.displayName=l.b.displayName},35601:(e,s,t)=>{"use strict";t.d(s,{TR:()=>p,bq:()=>u,eb:()=>f,gC:()=>x,l6:()=>n,s3:()=>i,yv:()=>c});var r=t(20475),a=t(20107),l=t(7197),d=t(95257),o=t(22250);let n=d.bL,i=d.YJ,c=d.WT,u=a.forwardRef((e,s)=>{let{className:t,children:a,...n}=e;return(0,r.jsxs)(d.l9,{ref:s,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...n,children:[a,(0,r.jsx)(d.In,{asChild:!0,children:(0,r.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=d.l9.displayName;let h=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(d.PP,{ref:s,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,r.jsx)(l.Mtm,{})})});h.displayName=d.PP.displayName;let m=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(d.wn,{ref:s,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,r.jsx)(l.D3D,{})})});m.displayName=d.wn.displayName;let x=a.forwardRef((e,s)=>{let{className:t,children:a,position:l="popper",...n}=e;return(0,r.jsx)(d.ZL,{children:(0,r.jsxs)(d.UC,{ref:s,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...n,children:[(0,r.jsx)(h,{}),(0,r.jsx)(d.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,r.jsx)(m,{})]})})});x.displayName=d.UC.displayName;let p=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(d.JU,{ref:s,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",t),...a})});p.displayName=d.JU.displayName;let f=a.forwardRef((e,s)=>{let{className:t,children:a,...n}=e;return(0,r.jsxs)(d.q7,{ref:s,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(d.VF,{children:(0,r.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,r.jsx)(d.p4,{children:a})]})});f.displayName=d.q7.displayName,a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(d.wv,{ref:s,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",t),...a})}).displayName=d.wv.displayName},50049:(e,s,t)=>{"use strict";t.d(s,{w:()=>c});var r=t(20475),a=t(20107),l=t(34544),d="horizontal",o=["horizontal","vertical"],n=a.forwardRef((e,s)=>{let{decorative:t,orientation:a=d,...n}=e,i=o.includes(a)?a:d;return(0,r.jsx)(l.sG.div,{"data-orientation":i,...t?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"},...n,ref:s})});n.displayName="Separator";var i=t(22250);let c=a.forwardRef((e,s)=>{let{className:t,orientation:a="horizontal",decorative:l=!0,...d}=e;return(0,r.jsx)(n,{ref:s,decorative:l,orientation:a,className:(0,i.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",t),...d})});c.displayName=n.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>l});var r=t(20475),a=t(22250);function l(e){let{className:s,...t}=e;return(0,r.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,6357,6810,4767,191,6035,7358],()=>s(15348)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js deleted file mode 100644 index 798b949..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4277],{21060:(t,e,s)=>{Promise.resolve().then(s.bind(s,22235))},22235:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(95155);s(12115);var d=s(76046),n=s(48173),r=s.n(n);let i=t=>{let{children:e}=t,s=(0,d.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Advanced Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat("/dashboard/advanced-settings/connectivity/"===s?"font-semibold text-primary":"text-sm"),children:"Connectivity"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/ttl-settings",className:"".concat("/dashboard/advanced-settings/ttl-settings/"===s?"font-semibold text-primary":"text-sm"),children:"TTL Settings"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/mtu",className:"".concat("/dashboard/advanced-settings/mtu/"===s?"font-semibold text-primary":"text-sm"),children:"MTU Settings"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/at-terminal",className:"".concat("/dashboard/advanced-settings/at-terminal/"===s?"font-semibold text-primary":"text-sm"),children:"AT Terminal"})]}),e]})]})}}},t=>{var e=e=>t(t.s=e);t.O(0,[1028,8441,1517,7358],()=>e(21060)),_N_E=t.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js new file mode 100644 index 0000000..419cb3c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4277],{65260:(t,e,s)=>{Promise.resolve().then(s.bind(s,74627))},74627:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(20475);s(20107);var n=s(16118),d=s(9477),r=s.n(d);let i=t=>{let{children:e}=t,s=(0,n.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Advanced Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat("/dashboard/advanced-settings/connectivity/"===s?"font-semibold text-primary":"text-sm"),children:"Connectivity"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/ttl-settings",className:"".concat("/dashboard/advanced-settings/ttl-settings/"===s?"font-semibold text-primary":"text-sm"),children:"TTL Settings"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/mtu",className:"".concat("/dashboard/advanced-settings/mtu/"===s?"font-semibold text-primary":"text-sm"),children:"MTU Settings"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/at-terminal",className:"".concat("/dashboard/advanced-settings/at-terminal/"===s?"font-semibold text-primary":"text-sm"),children:"AT Terminal"})]}),e]})]})}},16118:(t,e,s)=>{"use strict";var a=s(65834);s.o(a,"usePathname")&&s.d(e,{usePathname:function(){return a.usePathname}}),s.o(a,"useRouter")&&s.d(e,{useRouter:function(){return a.useRouter}})}},t=>{var e=e=>t(t.s=e);t.O(0,[9477,191,6035,7358],()=>e(65260)),_N_E=t.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-e0d745ff6aef0894.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-e0d745ff6aef0894.js new file mode 100644 index 0000000..419cb3c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-e0d745ff6aef0894.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4277],{65260:(t,e,s)=>{Promise.resolve().then(s.bind(s,74627))},74627:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(20475);s(20107);var n=s(16118),d=s(9477),r=s.n(d);let i=t=>{let{children:e}=t,s=(0,n.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Advanced Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat("/dashboard/advanced-settings/connectivity/"===s?"font-semibold text-primary":"text-sm"),children:"Connectivity"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/ttl-settings",className:"".concat("/dashboard/advanced-settings/ttl-settings/"===s?"font-semibold text-primary":"text-sm"),children:"TTL Settings"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/mtu",className:"".concat("/dashboard/advanced-settings/mtu/"===s?"font-semibold text-primary":"text-sm"),children:"MTU Settings"}),(0,a.jsx)(r(),{href:"/dashboard/advanced-settings/at-terminal",className:"".concat("/dashboard/advanced-settings/at-terminal/"===s?"font-semibold text-primary":"text-sm"),children:"AT Terminal"})]}),e]})]})}},16118:(t,e,s)=>{"use strict";var a=s(65834);s.o(a,"usePathname")&&s.d(e,{usePathname:function(){return a.usePathname}}),s.o(a,"useRouter")&&s.d(e,{useRouter:function(){return a.useRouter}})}},t=>{var e=e=>t(t.s=e);t.O(0,[9477,191,6035,7358],()=>e(65260)),_N_E=t.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-5e0e4fc07a70c0c6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-5e0e4fc07a70c0c6.js new file mode 100644 index 0000000..509a2e5 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-5e0e4fc07a70c0c6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3669],{27651:(e,t,r)=>{Promise.resolve().then(r.bind(r,34819))},34819:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var s=r(20475),n=r(20107),a=r(72167),i=r(64219),o=r(18861),l=r(42541),u=r(32857),c=r(114);let d=()=>{let[e,t]=(0,n.useState)("1500"),[r,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)(!0),[m,h]=(0,n.useState)(""),v=(0,u.dj)();(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/mtu.sh"),r=await e.json();d(r.isEnabled),t(r.currentValue.toString()),p(!1)}catch(e){h("Failed to fetch MTU settings"),p(!1),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch MTU settings",action:(0,s.jsx)(c.A,{})})}})()},[]);let b=async t=>{t.preventDefault(),h("");let n=r?e:"disable";try{let e=await fetch("/cgi-bin/quecmanager/advance/mtu.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"mtu=".concat(n)}),t=await e.json();!0===t.success?v.toast({title:"Success",description:t.message||"MTU settings saved successfully"}):v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:t.error||"Failed to save MTU settings",action:(0,s.jsx)(c.A,{})})}catch(e){h("Failed to save MTU settings"),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Network error while saving MTU settings",action:(0,s.jsx)(c.A,{})})}};return(0,s.jsxs)(a.Zp,{children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"MTU Settings"}),(0,s.jsx)(a.BT,{children:"Configure MTU for rmnet_data0 interface."})]}),(0,s.jsx)(a.Wu,{children:(0,s.jsxs)("form",{onSubmit:b,className:"space-y-8",children:[(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-sm font-medium",children:"MTU Value"}),(0,s.jsx)(i.p,{type:"number",value:e,onChange:e=>t(e.target.value),disabled:!r,className:"mt-1",min:"68",max:"9000"}),(0,s.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the MTU value for your connection (default: 1500)."})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-base font-medium",children:"MTU State"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable custom MTU value."})]}),(0,s.jsx)(o.d,{checked:r,onCheckedChange:e=>{d(e),e||t("1500")}})]})]}),(0,s.jsx)(l.$,{type:"submit",className:"w-full",disabled:f,children:"Save Configuration"})]})})]})}},114:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(20475),n=r(42541),a=r(7197);let i=()=>(0,s.jsx)(n.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,s.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,s.jsx)(a.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>u,r:()=>l});var s=r(20475),n=r(20107),a=r(61837),i=r(29395),o=r(22250);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),u=n.forwardRef((e,t)=>{let{className:r,variant:n,size:i,asChild:u=!1,...c}=e,d=u?a.DX:"button";return(0,s.jsx)(d,{className:(0,o.cn)(l({variant:n,size:i,className:r})),ref:t,...c})});u.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>u,Wu:()=>c,ZB:()=>l,Zp:()=>i,aR:()=>o,wL:()=>d});var s=r(20475),n=r(20107),a=r(22250);let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});i.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...n})});l.displayName="CardTitle";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...n})});u.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...n})});d.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var s=r(20475),n=r(20107),a=r(22250);let i=n.forwardRef((e,t)=>{let{className:r,type:n,...i}=e;return(0,s.jsx)("input",{type:n,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},18861:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var s=r(20475),n=r(20107),a=r(80982),i=r(22250);let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.bL,{className:(0,i.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...n,ref:t,children:(0,s.jsx)(a.zi,{className:(0,i.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});o.displayName=a.bL.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>d});var s=r(20107);let n=0,a=new Map,i=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],u={toasts:[]};function c(e){u=o(u,e),l.forEach(e=>{e(u)})}function d(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(u);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(64901),n=r(868);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function s(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),!1===r||!s.defaultPrevented)return t?.(s)}}r.d(t,{m:()=>s})},45170:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,q:()=>a});var s=r(20107),n=r(20475);function a(e,t){let r=s.createContext(t),a=e=>{let{children:t,...a}=e,i=s.useMemo(()=>a,Object.values(a));return(0,n.jsx)(r.Provider,{value:i,children:t})};return a.displayName=e+"Provider",[a,function(n){let a=s.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],a=()=>{let t=r.map(e=>s.createContext(e));return function(r){let n=r?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return a.scopeName=e,[function(t,a){let i=s.createContext(a),o=r.length;r=[...r,a];let l=t=>{let{scope:r,children:a,...l}=t,u=r?.[e]?.[o]||i,c=s.useMemo(()=>l,Object.values(l));return(0,n.jsx)(u.Provider,{value:c,children:a})};return l.displayName=t+"Provider",[l,function(r,n){let l=n?.[e]?.[o]||i,u=s.useContext(l);if(u)return u;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:s})=>{let n=r(e)[`__scope${s}`];return{...t,...n}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(a,...t)]}},34544:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>o});var s=r(20107),n=r(25642),a=r(61837),i=r(20475),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=s.forwardRef((e,r)=>{let{asChild:s,...n}=e,o=s?a.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o,{...n,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},80982:(e,t,r)=>{"use strict";r.d(t,{bL:()=>N,zi:()=>j});var s=r(20107),n=r(94521),a=r(64236),i=r(45170),o=r(13061),l=r(65163),u=r(63620),c=r(34544),d=r(20475),f="Switch",[p,m]=(0,i.A)(f),[h,v]=p(f),b=s.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:l,defaultChecked:u,required:f,disabled:p,value:m="on",onCheckedChange:v,form:b,...g}=e,[x,N]=s.useState(null),j=(0,a.s)(t,e=>N(e)),S=s.useRef(!1),T=!x||b||!!x.closest("form"),[k=!1,A]=(0,o.i)({prop:l,defaultProp:u,onChange:v});return(0,d.jsxs)(h,{scope:r,checked:k,disabled:p,children:[(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":k,"aria-required":f,"data-state":w(k),"data-disabled":p?"":void 0,disabled:p,value:m,...g,ref:j,onClick:(0,n.m)(e.onClick,e=>{A(e=>!e),T&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),T&&(0,d.jsx)(y,{control:x,bubbles:!S.current,name:i,value:m,checked:k,required:f,disabled:p,form:b,style:{transform:"translateX(-100%)"}})]})});b.displayName=f;var g="SwitchThumb",x=s.forwardRef((e,t)=>{let{__scopeSwitch:r,...s}=e,n=v(g,r);return(0,d.jsx)(c.sG.span,{"data-state":w(n.checked),"data-disabled":n.disabled?"":void 0,...s,ref:t})});x.displayName=g;var y=e=>{let{control:t,checked:r,bubbles:n=!0,...a}=e,i=s.useRef(null),o=(0,l.Z)(r),c=(0,u.X)(t);return s.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==r&&t){let s=new Event("click",{bubbles:n});t.call(e,r),e.dispatchEvent(s)}},[o,r,n]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var N=b,j=x},46774:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});var s=r(20107);function n(e){let t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var s=r(20107),n=r(46774);function a({prop:e,defaultProp:t,onChange:r=()=>{}}){let[a,i]=function({defaultProp:e,onChange:t}){let r=s.useState(e),[a]=r,i=s.useRef(a),o=(0,n.c)(t);return s.useEffect(()=>{i.current!==a&&(o(a),i.current=a)},[a,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,l=o?e:a,u=(0,n.c)(r);return[l,s.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else i(t)},[o,e,i,u])]}},54122:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var s=r(20107),n=globalThis?.document?s.useLayoutEffect:()=>{}},65163:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var s=r(20107);function n(e){let t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var s=r(20107),n=r(54122);function a(e){let[t,r]=s.useState(void 0);return(0,n.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let s,n;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;s=t.inlineSize,n=t.blockSize}else s=e.offsetWidth,n=e.offsetHeight;r({width:s,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},29395:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});let s=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,n=function(){for(var e,t,r=0,s="";rr=>{var a;if((null==t?void 0:t.variants)==null)return n(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let a=s(t)||s(n);return i[e][a]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,s]=t;return void 0===s||(e[r]=s),e},{});return n(e,l,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:r,className:s,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...u}[t]):({...o,...u})[t]===r})?[...e,r,s]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,191,6035,7358],()=>t(27651)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-68c4182f81b42ce6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-68c4182f81b42ce6.js deleted file mode 100644 index 60d2721..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-68c4182f81b42ce6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3669],{47979:(e,t,r)=>{Promise.resolve().then(r.bind(r,99019))},99019:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(95155),n=r(12115),a=r(35007),i=r(9955),o=r(74430),d=r(14085),l=r(20241),c=r(34330);let u=()=>{let[e,t]=(0,n.useState)("1500"),[r,u]=(0,n.useState)(!1),[f,m]=(0,n.useState)(!0),[p,h]=(0,n.useState)(""),v=(0,l.dj)();(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/mtu.sh"),r=await e.json();u(r.isEnabled),t(r.currentValue.toString()),m(!1)}catch(e){h("Failed to fetch MTU settings"),m(!1),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch MTU settings",action:(0,s.jsx)(c.A,{})})}})()},[]);let b=async t=>{t.preventDefault(),h("");let n=r?e:"disable";try{let e=await fetch("/cgi-bin/quecmanager/advance/mtu.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"mtu=".concat(n)}),t=await e.json();!0===t.success?v.toast({title:"Success",description:t.message||"MTU settings saved successfully"}):v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:t.error||"Failed to save MTU settings",action:(0,s.jsx)(c.A,{})})}catch(e){h("Failed to save MTU settings"),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Network error while saving MTU settings",action:(0,s.jsx)(c.A,{})})}};return(0,s.jsxs)(a.Zp,{children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"MTU Settings"}),(0,s.jsx)(a.BT,{children:"Configure MTU for rmnet_data0 interface."})]}),(0,s.jsx)(a.Wu,{children:(0,s.jsxs)("form",{onSubmit:b,className:"space-y-8",children:[(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-sm font-medium",children:"MTU Value"}),(0,s.jsx)(i.p,{type:"number",value:e,onChange:e=>t(e.target.value),disabled:!r,className:"mt-1",min:"68",max:"9000"}),(0,s.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the MTU value for your connection (default: 1500)."})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-base font-medium",children:"MTU State"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable custom MTU value."})]}),(0,s.jsx)(o.d,{checked:r,onCheckedChange:e=>{u(e),e||t("1500")}})]})]}),(0,s.jsx)(d.$,{type:"submit",className:"w-full",disabled:f,children:"Save Configuration"})]})})]})}},34330:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(95155),n=r(14085),a=r(87365);let i=()=>(0,s.jsx)(n.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,s.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,s.jsx)(a.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},14085:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,r:()=>d});var s=r(95155),n=r(12115),a=r(12317),i=r(31027),o=r(29602);let d=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=n.forwardRef((e,t)=>{let{className:r,variant:n,size:i,asChild:l=!1,...c}=e,u=l?a.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(d({variant:n,size:i,className:r})),ref:t,...c})});l.displayName="Button"},35007:(e,t,r)=>{"use strict";r.d(t,{BT:()=>l,Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>o,wL:()=>u});var s=r(95155),n=r(12115),a=r(29602);let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});i.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...n})});d.displayName="CardTitle";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...n})});l.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},9955:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var s=r(95155),n=r(12115),a=r(29602);let i=n.forwardRef((e,t)=>{let{className:r,type:n,...i}=e;return(0,s.jsx)("input",{type:n,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},74430:(e,t,r)=>{"use strict";r.d(t,{d:()=>j});var s=r(95155),n=r(12115),a=r(93610),i=r(88068),o=r(18166),d=r(1488),l=r(50858),c=r(7510),u=r(23360),f="Switch",[m,p]=(0,o.A)(f),[h,v]=m(f),b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:o,checked:l,defaultChecked:c,required:f,disabled:m,value:p="on",onCheckedChange:v,form:b,...g}=e,[x,N]=n.useState(null),j=(0,i.s)(t,e=>N(e)),S=n.useRef(!1),T=!x||b||!!x.closest("form"),[k=!1,E]=(0,d.i)({prop:l,defaultProp:c,onChange:v});return(0,s.jsxs)(h,{scope:r,checked:k,disabled:m,children:[(0,s.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":k,"aria-required":f,"data-state":w(k),"data-disabled":m?"":void 0,disabled:m,value:p,...g,ref:j,onClick:(0,a.m)(e.onClick,e=>{E(e=>!e),T&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),T&&(0,s.jsx)(y,{control:x,bubbles:!S.current,name:o,value:p,checked:k,required:f,disabled:m,form:b,style:{transform:"translateX(-100%)"}})]})});b.displayName=f;var g="SwitchThumb",x=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,a=v(g,r);return(0,s.jsx)(u.sG.span,{"data-state":w(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})});x.displayName=g;var y=e=>{let{control:t,checked:r,bubbles:a=!0,...i}=e,o=n.useRef(null),d=(0,l.Z)(r),u=(0,c.X)(t);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(d!==r&&t){let s=new Event("click",{bubbles:a});t.call(e,r),e.dispatchEvent(s)}},[d,r,a]),(0,s.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:o,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var N=r(29602);let j=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(b,{className:(0,N.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...n,ref:t,children:(0,s.jsx)(x,{className:(0,N.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});j.displayName=b.displayName},20241:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>u});var s=r(12115);let n=0,a=new Map,i=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function c(e){l=o(l,e),d.forEach(e=>{e(l)})}function u(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(l);return s.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(43463),n=r(69795);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function s(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),!1===r||!s.defaultPrevented)return t?.(s)}}r.d(t,{m:()=>s})},18166:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,q:()=>a});var s=r(12115),n=r(95155);function a(e,t){let r=s.createContext(t),a=e=>{let{children:t,...a}=e,i=s.useMemo(()=>a,Object.values(a));return(0,n.jsx)(r.Provider,{value:i,children:t})};return a.displayName=e+"Provider",[a,function(n){let a=s.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],a=()=>{let t=r.map(e=>s.createContext(e));return function(r){let n=r?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return a.scopeName=e,[function(t,a){let i=s.createContext(a),o=r.length;r=[...r,a];let d=t=>{let{scope:r,children:a,...d}=t,l=r?.[e]?.[o]||i,c=s.useMemo(()=>d,Object.values(d));return(0,n.jsx)(l.Provider,{value:c,children:a})};return d.displayName=t+"Provider",[d,function(r,n){let d=n?.[e]?.[o]||i,l=s.useContext(d);if(l)return l;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:s})=>{let n=r(e)[`__scope${s}`];return{...t,...n}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(a,...t)]}},23360:(e,t,r)=>{"use strict";r.d(t,{hO:()=>d,sG:()=>o});var s=r(12115),n=r(47650),a=r(12317),i=r(95155),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,a.TL)(`Primitive.${t}`),n=s.forwardRef((e,s)=>{let{asChild:n,...a}=e,o=n?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function d(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},41524:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});var s=r(12115);function n(e){let t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var s=r(12115),n=r(41524);function a({prop:e,defaultProp:t,onChange:r=()=>{}}){let[a,i]=function({defaultProp:e,onChange:t}){let r=s.useState(e),[a]=r,i=s.useRef(a),o=(0,n.c)(t);return s.useEffect(()=>{i.current!==a&&(o(a),i.current=a)},[a,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,d=o?e:a,l=(0,n.c)(r);return[d,s.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else i(t)},[o,e,i,l])]}},46611:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var s=r(12115),n=globalThis?.document?s.useLayoutEffect:()=>{}},50858:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var s=r(12115);function n(e){let t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},7510:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var s=r(12115),n=r(46611);function a(e){let[t,r]=s.useState(void 0);return(0,n.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let s,n;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;s=t.inlineSize,n=t.blockSize}else s=e.offsetWidth,n=e.offsetHeight;r({width:s,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}},e=>{var t=t=>e(e.s=t);e.O(0,[5105,1365,8441,1517,7358],()=>t(47979)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-d29a62373689eade.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-d29a62373689eade.js new file mode 100644 index 0000000..509a2e5 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-d29a62373689eade.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3669],{27651:(e,t,r)=>{Promise.resolve().then(r.bind(r,34819))},34819:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var s=r(20475),n=r(20107),a=r(72167),i=r(64219),o=r(18861),l=r(42541),u=r(32857),c=r(114);let d=()=>{let[e,t]=(0,n.useState)("1500"),[r,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)(!0),[m,h]=(0,n.useState)(""),v=(0,u.dj)();(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/advance/mtu.sh"),r=await e.json();d(r.isEnabled),t(r.currentValue.toString()),p(!1)}catch(e){h("Failed to fetch MTU settings"),p(!1),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch MTU settings",action:(0,s.jsx)(c.A,{})})}})()},[]);let b=async t=>{t.preventDefault(),h("");let n=r?e:"disable";try{let e=await fetch("/cgi-bin/quecmanager/advance/mtu.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"mtu=".concat(n)}),t=await e.json();!0===t.success?v.toast({title:"Success",description:t.message||"MTU settings saved successfully"}):v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:t.error||"Failed to save MTU settings",action:(0,s.jsx)(c.A,{})})}catch(e){h("Failed to save MTU settings"),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Network error while saving MTU settings",action:(0,s.jsx)(c.A,{})})}};return(0,s.jsxs)(a.Zp,{children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"MTU Settings"}),(0,s.jsx)(a.BT,{children:"Configure MTU for rmnet_data0 interface."})]}),(0,s.jsx)(a.Wu,{children:(0,s.jsxs)("form",{onSubmit:b,className:"space-y-8",children:[(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-sm font-medium",children:"MTU Value"}),(0,s.jsx)(i.p,{type:"number",value:e,onChange:e=>t(e.target.value),disabled:!r,className:"mt-1",min:"68",max:"9000"}),(0,s.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the MTU value for your connection (default: 1500)."})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-base font-medium",children:"MTU State"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable custom MTU value."})]}),(0,s.jsx)(o.d,{checked:r,onCheckedChange:e=>{d(e),e||t("1500")}})]})]}),(0,s.jsx)(l.$,{type:"submit",className:"w-full",disabled:f,children:"Save Configuration"})]})})]})}},114:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(20475),n=r(42541),a=r(7197);let i=()=>(0,s.jsx)(n.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,s.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,s.jsx)(a.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>u,r:()=>l});var s=r(20475),n=r(20107),a=r(61837),i=r(29395),o=r(22250);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),u=n.forwardRef((e,t)=>{let{className:r,variant:n,size:i,asChild:u=!1,...c}=e,d=u?a.DX:"button";return(0,s.jsx)(d,{className:(0,o.cn)(l({variant:n,size:i,className:r})),ref:t,...c})});u.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>u,Wu:()=>c,ZB:()=>l,Zp:()=>i,aR:()=>o,wL:()=>d});var s=r(20475),n=r(20107),a=r(22250);let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});i.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...n})});l.displayName="CardTitle";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...n})});u.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...n})});d.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var s=r(20475),n=r(20107),a=r(22250);let i=n.forwardRef((e,t)=>{let{className:r,type:n,...i}=e;return(0,s.jsx)("input",{type:n,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},18861:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var s=r(20475),n=r(20107),a=r(80982),i=r(22250);let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.bL,{className:(0,i.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...n,ref:t,children:(0,s.jsx)(a.zi,{className:(0,i.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});o.displayName=a.bL.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>d});var s=r(20107);let n=0,a=new Map,i=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],u={toasts:[]};function c(e){u=o(u,e),l.forEach(e=>{e(u)})}function d(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(u);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(64901),n=r(868);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function s(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),!1===r||!s.defaultPrevented)return t?.(s)}}r.d(t,{m:()=>s})},45170:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,q:()=>a});var s=r(20107),n=r(20475);function a(e,t){let r=s.createContext(t),a=e=>{let{children:t,...a}=e,i=s.useMemo(()=>a,Object.values(a));return(0,n.jsx)(r.Provider,{value:i,children:t})};return a.displayName=e+"Provider",[a,function(n){let a=s.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],a=()=>{let t=r.map(e=>s.createContext(e));return function(r){let n=r?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return a.scopeName=e,[function(t,a){let i=s.createContext(a),o=r.length;r=[...r,a];let l=t=>{let{scope:r,children:a,...l}=t,u=r?.[e]?.[o]||i,c=s.useMemo(()=>l,Object.values(l));return(0,n.jsx)(u.Provider,{value:c,children:a})};return l.displayName=t+"Provider",[l,function(r,n){let l=n?.[e]?.[o]||i,u=s.useContext(l);if(u)return u;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:s})=>{let n=r(e)[`__scope${s}`];return{...t,...n}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(a,...t)]}},34544:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>o});var s=r(20107),n=r(25642),a=r(61837),i=r(20475),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=s.forwardRef((e,r)=>{let{asChild:s,...n}=e,o=s?a.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o,{...n,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},80982:(e,t,r)=>{"use strict";r.d(t,{bL:()=>N,zi:()=>j});var s=r(20107),n=r(94521),a=r(64236),i=r(45170),o=r(13061),l=r(65163),u=r(63620),c=r(34544),d=r(20475),f="Switch",[p,m]=(0,i.A)(f),[h,v]=p(f),b=s.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:l,defaultChecked:u,required:f,disabled:p,value:m="on",onCheckedChange:v,form:b,...g}=e,[x,N]=s.useState(null),j=(0,a.s)(t,e=>N(e)),S=s.useRef(!1),T=!x||b||!!x.closest("form"),[k=!1,A]=(0,o.i)({prop:l,defaultProp:u,onChange:v});return(0,d.jsxs)(h,{scope:r,checked:k,disabled:p,children:[(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":k,"aria-required":f,"data-state":w(k),"data-disabled":p?"":void 0,disabled:p,value:m,...g,ref:j,onClick:(0,n.m)(e.onClick,e=>{A(e=>!e),T&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),T&&(0,d.jsx)(y,{control:x,bubbles:!S.current,name:i,value:m,checked:k,required:f,disabled:p,form:b,style:{transform:"translateX(-100%)"}})]})});b.displayName=f;var g="SwitchThumb",x=s.forwardRef((e,t)=>{let{__scopeSwitch:r,...s}=e,n=v(g,r);return(0,d.jsx)(c.sG.span,{"data-state":w(n.checked),"data-disabled":n.disabled?"":void 0,...s,ref:t})});x.displayName=g;var y=e=>{let{control:t,checked:r,bubbles:n=!0,...a}=e,i=s.useRef(null),o=(0,l.Z)(r),c=(0,u.X)(t);return s.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==r&&t){let s=new Event("click",{bubbles:n});t.call(e,r),e.dispatchEvent(s)}},[o,r,n]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var N=b,j=x},46774:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});var s=r(20107);function n(e){let t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var s=r(20107),n=r(46774);function a({prop:e,defaultProp:t,onChange:r=()=>{}}){let[a,i]=function({defaultProp:e,onChange:t}){let r=s.useState(e),[a]=r,i=s.useRef(a),o=(0,n.c)(t);return s.useEffect(()=>{i.current!==a&&(o(a),i.current=a)},[a,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,l=o?e:a,u=(0,n.c)(r);return[l,s.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else i(t)},[o,e,i,u])]}},54122:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var s=r(20107),n=globalThis?.document?s.useLayoutEffect:()=>{}},65163:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var s=r(20107);function n(e){let t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var s=r(20107),n=r(54122);function a(e){let[t,r]=s.useState(void 0);return(0,n.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let s,n;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;s=t.inlineSize,n=t.blockSize}else s=e.offsetWidth,n=e.offsetHeight;r({width:s,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},29395:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});let s=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,n=function(){for(var e,t,r=0,s="";rr=>{var a;if((null==t?void 0:t.variants)==null)return n(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let a=s(t)||s(n);return i[e][a]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,s]=t;return void 0===s||(e[r]=s),e},{});return n(e,l,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:r,className:s,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...u}[t]):({...o,...u})[t]===r})?[...e,r,s]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,191,6035,7358],()=>t(27651)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-3937d6f0d6a988f7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-3937d6f0d6a988f7.js new file mode 100644 index 0000000..93d20e8 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-3937d6f0d6a988f7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5226],{35387:(e,s,_)=>{Promise.resolve().then(_.bind(_,39966))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,241,4767,9966,191,6035,7358],()=>s(35387)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-984d67ec298132a9.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-984d67ec298132a9.js new file mode 100644 index 0000000..93bc6c1 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-984d67ec298132a9.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5226],{35387:(e,s,_)=>{Promise.resolve().then(_.bind(_,39966))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,241,4767,9966,191,6035,7358],()=>s(35387)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-b8b0ebf6236e4c8d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-b8b0ebf6236e4c8d.js deleted file mode 100644 index 846391a..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-b8b0ebf6236e4c8d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5226],{48291:(e,s,_)=>{Promise.resolve().then(_.bind(_,93914))}},e=>{var s=s=>e(e.s=s);e.O(0,[5105,1365,7401,9895,2019,9975,3572,3914,8441,1517,7358],()=>s(48291)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-c2009dd8dd08fa16.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-c2009dd8dd08fa16.js new file mode 100644 index 0000000..c256e37 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/page-c2009dd8dd08fa16.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5226],{35387:(e,s,_)=>{Promise.resolve().then(_.bind(_,76592))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,564,6592,191,6035,7358],()=>s(35387)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-2fa21ee6005dc743.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-2fa21ee6005dc743.js new file mode 100644 index 0000000..bd21eb5 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-2fa21ee6005dc743.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4481],{70465:(e,t,s)=>{Promise.resolve().then(s.bind(s,83143))},83143:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var r=s(20475),a=s(20107),n=s(72167),i=s(64219),o=s(18861),l=s(42541),d=s(32857),c=s(49573),u=s(29475);let f=()=>{let[e,t]=(0,a.useState)("0"),[s,f]=(0,a.useState)(!1),[g,m]=(0,a.useState)(!0),[p,h]=(0,a.useState)(""),[v,x]=(0,a.useState)(""),[b,T]=(0,a.useState)(null),[y,w]=(0,a.useState)(!1),{toast:j}=(0,d.dj)();(0,a.useEffect)(()=>{(async()=>{m(!0);try{let e=await fetch("/cgi-bin/quecmanager/advance/ttl.sh");if(!e.ok)throw Error("Failed to fetch TTL settings: ".concat(e.statusText));let s=await e.json(),r=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!r.ok)throw Error("Failed to fetch profile status: ".concat(r.statusText));let a=await r.json();console.log("TTL Data:",s),console.log("Profile Status:",a);let n=!1,i=s.currentValue.toString(),o=s.isEnabled;if("success"===a.status&&a.profile&&"unknown"!==a.profile&&"none"!==a.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let t=await e.json();if("success"===t.status&&Array.isArray(t.profiles)){let e=t.profiles.find(e=>e.name===a.profile);e&&e.ttl&&parseInt(e.ttl)>0&&(T(e),n=!0,i=e.ttl,o=!0)}}}t(i),f(o),w(n)}catch(e){console.error("Error fetching data:",e),h(e instanceof Error?e.message:"Failed to fetch TTL settings"),j({variant:"destructive",title:"Error fetching settings",description:e instanceof Error?e.message:"Failed to fetch TTL settings"})}finally{m(!1)}})()},[]);let N=async t=>{t.preventDefault(),h(""),x("");let r=s?e:"0";try{let e=await fetch("/cgi-bin/quecmanager/advance/ttl.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"ttl=".concat(r)});if(!e.ok)throw Error("HTTP error! Status: ".concat(e.status));let t=await e.json();if(!0===t.success)x("Settings saved successfully"),j({title:"Success",description:"TTL settings saved successfully"});else throw Error(t.error||"Failed to save settings")}catch(e){h(e instanceof Error?e.message:"Failed to save settings"),j({variant:"destructive",title:"Error saving settings",description:e instanceof Error?e.message:"Failed to save TTL settings"})}};return(0,r.jsxs)(n.Zp,{children:[(0,r.jsxs)(n.aR,{children:[(0,r.jsx)(n.ZB,{children:"TTL Settings"}),(0,r.jsx)(n.BT,{children:"Configure TTL mangling for your connection."})]}),(0,r.jsxs)(n.Wu,{children:[y&&b&&(0,r.jsxs)(c.Fc,{className:"mb-6",children:[(0,r.jsx)(u.A,{className:"h-4 w-4",color:"orange"}),(0,r.jsx)(c.XL,{children:"Profile Controlled"}),(0,r.jsxs)(c.TN,{children:['TTL is currently being managed by profile "',b.name,'".']})]}),p&&(0,r.jsxs)(c.Fc,{variant:"destructive",className:"mb-6",children:[(0,r.jsx)(c.XL,{children:"Error"}),(0,r.jsx)(c.TN,{children:p})]}),v&&(0,r.jsxs)(c.Fc,{className:"mb-6",children:[(0,r.jsx)(c.XL,{children:"Success"}),(0,r.jsx)(c.TN,{children:v})]}),(0,r.jsxs)("form",{onSubmit:N,className:"space-y-8",children:[(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-sm font-medium",children:"TTL Value"}),(0,r.jsx)(i.p,{type:"number",min:"0",max:"255",value:e,onChange:e=>t(e.target.value),disabled:!s||y||g,className:"mt-1"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the TTL value for your connection (0-255)."})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-base font-medium",children:"TTL State"}),(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable TTL mangling"})]}),(0,r.jsx)(o.d,{checked:s,onCheckedChange:f,disabled:y||g})]})]}),(0,r.jsx)(l.$,{type:"submit",className:"w-full",disabled:g||y,children:"Save Configuration"})]})]})]})}},49573:(e,t,s)=>{"use strict";s.d(t,{Fc:()=>l,TN:()=>c,XL:()=>d});var r=s(20475),a=s(20107),n=s(29395),i=s(22250);let o=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=a.forwardRef((e,t)=>{let{className:s,variant:a,...n}=e;return(0,r.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:a}),s),...n})});l.displayName="Alert";let d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",s),...a})});d.displayName="AlertTitle";let c=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",s),...a})});c.displayName="AlertDescription"},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>l});var r=s(20475),a=s(20107),n=s(61837),i=s(29395),o=s(22250);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:s,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,r.jsx)(u,{className:(0,o.cn)(l({variant:a,size:i,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>i,aR:()=>o,wL:()=>u});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...a})});i.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...a})});o.displayName="CardHeader";let l=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...a})});l.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...a})});u.displayName="CardFooter"},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,type:a,...i}=e;return(0,r.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},18861:(e,t,s)=>{"use strict";s.d(t,{d:()=>o});var r=s(20475),a=s(20107),n=s(80982),i=s(22250);let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.bL,{className:(0,i.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",s),...a,ref:t,children:(0,r.jsx)(n.zi,{className:(0,i.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});o.displayName=n.bL.displayName},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var r=s(20107);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?i(s):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=o(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=r.useState(d);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var r=s(64901),a=s(868);function n(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[7780,1630,191,6035,7358],()=>t(70465)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-69b6ab273a4e5892.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-69b6ab273a4e5892.js deleted file mode 100644 index 265b446..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-69b6ab273a4e5892.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4481],{28297:(e,t,r)=>{Promise.resolve().then(r.bind(r,48655))},48655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var s=r(95155),a=r(12115),n=r(35007),i=r(9955),o=r(74430),l=r(14085),c=r(20241),d=r(39677),u=r(48686);let f=()=>{let[e,t]=(0,a.useState)("0"),[r,f]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!0),[h,v]=(0,a.useState)(""),[g,x]=(0,a.useState)(""),[b,y]=(0,a.useState)(null),[w,T]=(0,a.useState)(!1),{toast:N}=(0,c.dj)();(0,a.useEffect)(()=>{(async()=>{m(!0);try{let e=await fetch("/cgi-bin/quecmanager/advance/ttl.sh");if(!e.ok)throw Error("Failed to fetch TTL settings: ".concat(e.statusText));let r=await e.json(),s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!s.ok)throw Error("Failed to fetch profile status: ".concat(s.statusText));let a=await s.json();console.log("TTL Data:",r),console.log("Profile Status:",a);let n=!1,i=r.currentValue.toString(),o=r.isEnabled;if("success"===a.status&&a.profile&&"unknown"!==a.profile&&"none"!==a.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let t=await e.json();if("success"===t.status&&Array.isArray(t.profiles)){let e=t.profiles.find(e=>e.name===a.profile);e&&e.ttl&&parseInt(e.ttl)>0&&(y(e),n=!0,i=e.ttl,o=!0)}}}t(i),f(o),T(n)}catch(e){console.error("Error fetching data:",e),v(e instanceof Error?e.message:"Failed to fetch TTL settings"),N({variant:"destructive",title:"Error fetching settings",description:e instanceof Error?e.message:"Failed to fetch TTL settings"})}finally{m(!1)}})()},[]);let j=async t=>{t.preventDefault(),v(""),x("");let s=r?e:"0";try{let e=await fetch("/cgi-bin/quecmanager/advance/ttl.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"ttl=".concat(s)});if(!e.ok)throw Error("HTTP error! Status: ".concat(e.status));let t=await e.json();if(!0===t.success)x("Settings saved successfully"),N({title:"Success",description:"TTL settings saved successfully"});else throw Error(t.error||"Failed to save settings")}catch(e){v(e instanceof Error?e.message:"Failed to save settings"),N({variant:"destructive",title:"Error saving settings",description:e instanceof Error?e.message:"Failed to save TTL settings"})}};return(0,s.jsxs)(n.Zp,{children:[(0,s.jsxs)(n.aR,{children:[(0,s.jsx)(n.ZB,{children:"TTL Settings"}),(0,s.jsx)(n.BT,{children:"Configure TTL mangling for your connection."})]}),(0,s.jsxs)(n.Wu,{children:[w&&b&&(0,s.jsxs)(d.Fc,{className:"mb-6",children:[(0,s.jsx)(u.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(d.XL,{children:"Profile Controlled"}),(0,s.jsxs)(d.TN,{children:['TTL is currently being managed by profile "',b.name,'".']})]}),h&&(0,s.jsxs)(d.Fc,{variant:"destructive",className:"mb-6",children:[(0,s.jsx)(d.XL,{children:"Error"}),(0,s.jsx)(d.TN,{children:h})]}),g&&(0,s.jsxs)(d.Fc,{className:"mb-6",children:[(0,s.jsx)(d.XL,{children:"Success"}),(0,s.jsx)(d.TN,{children:g})]}),(0,s.jsxs)("form",{onSubmit:j,className:"space-y-8",children:[(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-sm font-medium",children:"TTL Value"}),(0,s.jsx)(i.p,{type:"number",min:"0",max:"255",value:e,onChange:e=>t(e.target.value),disabled:!r||w||p,className:"mt-1"}),(0,s.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the TTL value for your connection (0-255)."})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-base font-medium",children:"TTL State"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable TTL mangling"})]}),(0,s.jsx)(o.d,{checked:r,onCheckedChange:f,disabled:w||p})]})]}),(0,s.jsx)(l.$,{type:"submit",className:"w-full",disabled:p||w,children:"Save Configuration"})]})]})]})}},39677:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>l,TN:()=>d,XL:()=>c});var s=r(95155),a=r(12115),n=r(31027),i=r(29602);let o=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=a.forwardRef((e,t)=>{let{className:r,variant:a,...n}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:a}),r),...n})});l.displayName="Alert";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})});c.displayName="AlertTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",r),...a})});d.displayName="AlertDescription"},14085:(e,t,r)=>{"use strict";r.d(t,{$:()=>c,r:()=>l});var s=r(95155),a=r(12115),n=r(12317),i=r(31027),o=r(29602);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:c=!1,...d}=e,u=c?n.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(l({variant:a,size:i,className:r})),ref:t,...d})});c.displayName="Button"},35007:(e,t,r)=>{"use strict";r.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>l,Zp:()=>i,aR:()=>o,wL:()=>u});var s=r(95155),a=r(12115),n=r(29602);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});i.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...a})});o.displayName="CardHeader";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...a})});l.displayName="CardTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...a})});c.displayName="CardDescription";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...a})});d.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},9955:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var s=r(95155),a=r(12115),n=r(29602);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,s.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},74430:(e,t,r)=>{"use strict";r.d(t,{d:()=>N});var s=r(95155),a=r(12115),n=r(93610),i=r(88068),o=r(18166),l=r(1488),c=r(50858),d=r(7510),u=r(23360),f="Switch",[p,m]=(0,o.A)(f),[h,v]=p(f),g=a.forwardRef((e,t)=>{let{__scopeSwitch:r,name:o,checked:c,defaultChecked:d,required:f,disabled:p,value:m="on",onCheckedChange:v,form:g,...x}=e,[b,T]=a.useState(null),N=(0,i.s)(t,e=>T(e)),j=a.useRef(!1),S=!b||g||!!b.closest("form"),[k=!1,E]=(0,l.i)({prop:c,defaultProp:d,onChange:v});return(0,s.jsxs)(h,{scope:r,checked:k,disabled:p,children:[(0,s.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":k,"aria-required":f,"data-state":w(k),"data-disabled":p?"":void 0,disabled:p,value:m,...x,ref:N,onClick:(0,n.m)(e.onClick,e=>{E(e=>!e),S&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())})}),S&&(0,s.jsx)(y,{control:b,bubbles:!j.current,name:o,value:m,checked:k,required:f,disabled:p,form:g,style:{transform:"translateX(-100%)"}})]})});g.displayName=f;var x="SwitchThumb",b=a.forwardRef((e,t)=>{let{__scopeSwitch:r,...a}=e,n=v(x,r);return(0,s.jsx)(u.sG.span,{"data-state":w(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:t})});b.displayName=x;var y=e=>{let{control:t,checked:r,bubbles:n=!0,...i}=e,o=a.useRef(null),l=(0,c.Z)(r),u=(0,d.X)(t);return a.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let s=new Event("click",{bubbles:n});t.call(e,r),e.dispatchEvent(s)}},[l,r,n]),(0,s.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:o,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var T=r(29602);let N=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(g,{className:(0,T.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...a,ref:t,children:(0,s.jsx)(b,{className:(0,T.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});N.displayName=g.displayName},20241:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>u});var s=r(12115);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=o(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>d({type:"DISMISS_TOAST",toastId:r});return d({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(c);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(43463),a=r(69795);function n(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>l});var s=r(12115);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,s.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:u,...f}=e;return(0,s.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:r,strokeWidth:l?24*Number(o)/Number(a):o,className:n("lucide",c),...f},[...u.map(e=>{let[t,r]=e;return(0,s.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),l=(e,t)=>{let r=(0,s.forwardRef)((r,i)=>{let{className:l,...c}=r;return(0,s.createElement)(o,{ref:i,iconNode:t,className:n("lucide-".concat(a(e)),l),...c})});return r.displayName="".concat(e),r}},48686:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(67401).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},93610:(e,t,r)=>{"use strict";function s(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),!1===r||!s.defaultPrevented)return t?.(s)}}r.d(t,{m:()=>s})},18166:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,q:()=>n});var s=r(12115),a=r(95155);function n(e,t){let r=s.createContext(t),n=e=>{let{children:t,...n}=e,i=s.useMemo(()=>n,Object.values(n));return(0,a.jsx)(r.Provider,{value:i,children:t})};return n.displayName=e+"Provider",[n,function(a){let n=s.useContext(r);if(n)return n;if(void 0!==t)return t;throw Error(`\`${a}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],n=()=>{let t=r.map(e=>s.createContext(e));return function(r){let a=r?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...r,[e]:a}}),[r,a])}};return n.scopeName=e,[function(t,n){let i=s.createContext(n),o=r.length;r=[...r,n];let l=t=>{let{scope:r,children:n,...l}=t,c=r?.[e]?.[o]||i,d=s.useMemo(()=>l,Object.values(l));return(0,a.jsx)(c.Provider,{value:d,children:n})};return l.displayName=t+"Provider",[l,function(r,a){let l=a?.[e]?.[o]||i,c=s.useContext(l);if(c)return c;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=r.reduce((t,{useScope:r,scopeName:s})=>{let a=r(e)[`__scope${s}`];return{...t,...a}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}(n,...t)]}},23360:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>o});var s=r(12115),a=r(47650),n=r(12317),i=r(95155),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,n.TL)(`Primitive.${t}`),a=s.forwardRef((e,s)=>{let{asChild:a,...n}=e,o=a?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o,{...n,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function l(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}},41524:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var s=r(12115);function a(e){let t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});var s=r(12115),a=r(41524);function n({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=s.useState(e),[n]=r,i=s.useRef(n),o=(0,a.c)(t);return s.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,l=o?e:n,c=(0,a.c)(r);return[l,s.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&c(r)}else i(t)},[o,e,i,c])]}},46611:(e,t,r)=>{"use strict";r.d(t,{N:()=>a});var s=r(12115),a=globalThis?.document?s.useLayoutEffect:()=>{}},50858:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var s=r(12115);function a(e){let t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},7510:(e,t,r)=>{"use strict";r.d(t,{X:()=>n});var s=r(12115),a=r(46611);function n(e){let[t,r]=s.useState(void 0);return(0,a.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let s,a;if(!Array.isArray(t)||!t.length)return;let n=t[0];if("borderBoxSize"in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;s=t.inlineSize,a=t.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}},e=>{var t=t=>e(e.s=t);e.O(0,[1365,8441,1517,7358],()=>t(28297)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-ab307137ee0a2790.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-ab307137ee0a2790.js new file mode 100644 index 0000000..bd21eb5 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-ab307137ee0a2790.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4481],{70465:(e,t,s)=>{Promise.resolve().then(s.bind(s,83143))},83143:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var r=s(20475),a=s(20107),n=s(72167),i=s(64219),o=s(18861),l=s(42541),d=s(32857),c=s(49573),u=s(29475);let f=()=>{let[e,t]=(0,a.useState)("0"),[s,f]=(0,a.useState)(!1),[g,m]=(0,a.useState)(!0),[p,h]=(0,a.useState)(""),[v,x]=(0,a.useState)(""),[b,T]=(0,a.useState)(null),[y,w]=(0,a.useState)(!1),{toast:j}=(0,d.dj)();(0,a.useEffect)(()=>{(async()=>{m(!0);try{let e=await fetch("/cgi-bin/quecmanager/advance/ttl.sh");if(!e.ok)throw Error("Failed to fetch TTL settings: ".concat(e.statusText));let s=await e.json(),r=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!r.ok)throw Error("Failed to fetch profile status: ".concat(r.statusText));let a=await r.json();console.log("TTL Data:",s),console.log("Profile Status:",a);let n=!1,i=s.currentValue.toString(),o=s.isEnabled;if("success"===a.status&&a.profile&&"unknown"!==a.profile&&"none"!==a.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let t=await e.json();if("success"===t.status&&Array.isArray(t.profiles)){let e=t.profiles.find(e=>e.name===a.profile);e&&e.ttl&&parseInt(e.ttl)>0&&(T(e),n=!0,i=e.ttl,o=!0)}}}t(i),f(o),w(n)}catch(e){console.error("Error fetching data:",e),h(e instanceof Error?e.message:"Failed to fetch TTL settings"),j({variant:"destructive",title:"Error fetching settings",description:e instanceof Error?e.message:"Failed to fetch TTL settings"})}finally{m(!1)}})()},[]);let N=async t=>{t.preventDefault(),h(""),x("");let r=s?e:"0";try{let e=await fetch("/cgi-bin/quecmanager/advance/ttl.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"ttl=".concat(r)});if(!e.ok)throw Error("HTTP error! Status: ".concat(e.status));let t=await e.json();if(!0===t.success)x("Settings saved successfully"),j({title:"Success",description:"TTL settings saved successfully"});else throw Error(t.error||"Failed to save settings")}catch(e){h(e instanceof Error?e.message:"Failed to save settings"),j({variant:"destructive",title:"Error saving settings",description:e instanceof Error?e.message:"Failed to save TTL settings"})}};return(0,r.jsxs)(n.Zp,{children:[(0,r.jsxs)(n.aR,{children:[(0,r.jsx)(n.ZB,{children:"TTL Settings"}),(0,r.jsx)(n.BT,{children:"Configure TTL mangling for your connection."})]}),(0,r.jsxs)(n.Wu,{children:[y&&b&&(0,r.jsxs)(c.Fc,{className:"mb-6",children:[(0,r.jsx)(u.A,{className:"h-4 w-4",color:"orange"}),(0,r.jsx)(c.XL,{children:"Profile Controlled"}),(0,r.jsxs)(c.TN,{children:['TTL is currently being managed by profile "',b.name,'".']})]}),p&&(0,r.jsxs)(c.Fc,{variant:"destructive",className:"mb-6",children:[(0,r.jsx)(c.XL,{children:"Error"}),(0,r.jsx)(c.TN,{children:p})]}),v&&(0,r.jsxs)(c.Fc,{className:"mb-6",children:[(0,r.jsx)(c.XL,{children:"Success"}),(0,r.jsx)(c.TN,{children:v})]}),(0,r.jsxs)("form",{onSubmit:N,className:"space-y-8",children:[(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-sm font-medium",children:"TTL Value"}),(0,r.jsx)(i.p,{type:"number",min:"0",max:"255",value:e,onChange:e=>t(e.target.value),disabled:!s||y||g,className:"mt-1"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the TTL value for your connection (0-255)."})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-base font-medium",children:"TTL State"}),(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable TTL mangling"})]}),(0,r.jsx)(o.d,{checked:s,onCheckedChange:f,disabled:y||g})]})]}),(0,r.jsx)(l.$,{type:"submit",className:"w-full",disabled:g||y,children:"Save Configuration"})]})]})]})}},49573:(e,t,s)=>{"use strict";s.d(t,{Fc:()=>l,TN:()=>c,XL:()=>d});var r=s(20475),a=s(20107),n=s(29395),i=s(22250);let o=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=a.forwardRef((e,t)=>{let{className:s,variant:a,...n}=e;return(0,r.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:a}),s),...n})});l.displayName="Alert";let d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",s),...a})});d.displayName="AlertTitle";let c=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",s),...a})});c.displayName="AlertDescription"},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>l});var r=s(20475),a=s(20107),n=s(61837),i=s(29395),o=s(22250);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:s,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,r.jsx)(u,{className:(0,o.cn)(l({variant:a,size:i,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>i,aR:()=>o,wL:()=>u});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...a})});i.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...a})});o.displayName="CardHeader";let l=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...a})});l.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...a})});u.displayName="CardFooter"},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,type:a,...i}=e;return(0,r.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},18861:(e,t,s)=>{"use strict";s.d(t,{d:()=>o});var r=s(20475),a=s(20107),n=s(80982),i=s(22250);let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.bL,{className:(0,i.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",s),...a,ref:t,children:(0,r.jsx)(n.zi,{className:(0,i.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});o.displayName=n.bL.displayName},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var r=s(20107);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?i(s):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=o(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=r.useState(d);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var r=s(64901),a=s(868);function n(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[7780,1630,191,6035,7358],()=>t(70465)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-27ca2f403da698ba.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-27ca2f403da698ba.js new file mode 100644 index 0000000..fbe98c2 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-27ca2f403da698ba.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1942],{42554:(e,t,s)=>{Promise.resolve().then(s.bind(s,75808))},75808:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var a=s(20475),r=s(20107),o=s(72167),n=s(574),i=s(42541),l=s(32857),c=s(29475),d=s(91994),u=s(88926);let f={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nrdc_nr5g_band"},p={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nr5g_band"},m=()=>{let{toast:e}=(0,l.dj)(),[t,s]=(0,r.useState)({lte:[],nsa:[],sa:[]}),[m,h]=(0,r.useState)({lte:[],nsa:[],sa:[]}),[v,g]=(0,r.useState)(!0),[b,w]=(0,r.useState)(!1),[x,N]=(0,r.useState)(null),[y,_]=(0,r.useState)({lte:!1,nsa:!1,sa:!1}),j=(e,t,s)=>{let a=e.split("\n"),r=s?f[t]:p[t];for(let e of a){let t='"'.concat(r,'"');if(e.includes(t)){let t=e.match(/\"[^\"]+\",(.+)/);if(t&&t[1])return t[1].trim().split(":").map(Number).filter(e=>!isNaN(e))}}return[]};(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();if("success"===s.status&&Array.isArray(s.profiles)){let e=s.profiles.find(e=>e.name===t.profile);if(e){N(e);let t={lte:!!e.lte_bands,nsa:!!e.nsa_nr5g_bands,sa:!!e.sa_nr5g_bands};_(t),console.log("Active Profile:",e),console.log("Controlled Bands:",t)}}}}else N(null),_({lte:!1,nsa:!1,sa:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]);let E=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=7");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json(),a=t[0].response,r={lte:j(a,"lte",!0),nsa:j(a,"nsa",!0),sa:j(a,"sa",!0)};s(r);let o=t[1].response,n={lte:j(o,"lte",!1),nsa:j(o,"nsa",!1),sa:j(o,"sa",!1)};h(n),g(!1)}catch(t){console.error("Error fetching bands:",t),e({title:"Error",description:"Failed to fetch bands data.",variant:"destructive"}),g(!1)}};(0,r.useEffect)(()=>{E()},[]),(0,r.useEffect)(()=>{if(x){let e={...m},t=!1;if(y.lte&&x.lte_bands){let s=x.lte_bands.split(",").map(Number).filter(e=>!isNaN(e));e.lte=s,t=!0}if(y.nsa&&x.nsa_nr5g_bands){let s=x.nsa_nr5g_bands.split(",").map(Number).filter(e=>!isNaN(e));e.nsa=s,t=!0}if(y.sa&&x.sa_nr5g_bands){let s=x.sa_nr5g_bands.split(",").map(Number).filter(e=>!isNaN(e));e.sa=s,t=!0}t&&h(e)}},[x,y]);let T=(e,t)=>{y[e]||h(s=>({...s,[e]:s[e].includes(t)?s[e].filter(e=>e!==t):[...s[e],t].sort((e,t)=>e-t)}))},A=async s=>{if(y[s]){e({title:"Profile Controlled",description:"".concat(s.toUpperCase(),' bands are currently managed by profile "').concat(null==x?void 0:x.name,'"'),variant:"destructive"});return}try{var a,r,o,n,i,l,c,d;w(!0);let f=m[s].join(":");if("nsa"===s){let e=m.sa.join(":"),s=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.nsa,'",').concat(f),!0);if((null===(a=s.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=s.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NSA bands");if(e){let t=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(e),!0);if((null===(o=t.response)||void 0===o?void 0:o.status)!=="success")throw Error((null===(n=t.response)||void 0===n?void 0:n.raw_output)||"Failed to restore SA bands")}else{let e=t.sa.join(":"),s=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(e),!0);if((null===(i=s.response)||void 0===i?void 0:i.status)!=="success")throw Error((null===(l=s.response)||void 0===l?void 0:l.raw_output)||"Failed to set default SA bands")}h(s=>({...s,nsa:m.nsa,sa:e?m.sa:t.sa}))}else{let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p[s],'",').concat(f),!0);if((null===(c=e.response)||void 0===c?void 0:c.status)!=="success")throw Error((null===(d=e.response)||void 0===d?void 0:d.raw_output)||"Failed to lock ".concat(s.toUpperCase()," bands"));h(e=>({...e,[s]:m[s]}))}e({title:"Band Locking",description:"Bands locked successfully."}),setTimeout(E,1e3),w(!1)}catch(a){let t=a instanceof Error?a.message:"Unknown error";console.error("Error locking ".concat(s," bands:"),a),e({title:"Error",description:"Failed to lock ".concat(s.toUpperCase()," bands: ").concat(t),variant:"destructive"}),w(!1)}},S=e=>{y[e]||h(t=>({...t,[e]:[]}))},C=async s=>{if(y[s]){e({title:"Profile Controlled",description:"".concat(s.toUpperCase(),' bands are currently managed by profile "').concat(null==x?void 0:x.name,'"'),variant:"destructive"});return}try{var a,r,o,n,i,l;let c=t[s].join(":");if("nsa"===s){let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.nsa,'",').concat(c),!0);if((null===(a=e.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=e.response)||void 0===r?void 0:r.raw_output)||"Failed to reset NSA bands");let t=m.sa.join(":");if(t){let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(t),!0);if((null===(o=e.response)||void 0===o?void 0:o.status)!=="success")throw Error((null===(n=e.response)||void 0===n?void 0:n.raw_output)||"Failed to preserve SA bands")}}else{let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p[s],'",').concat(c),!0);if((null===(i=e.response)||void 0===i?void 0:i.status)!=="success")throw Error((null===(l=e.response)||void 0===l?void 0:l.raw_output)||"Failed to reset ".concat(s.toUpperCase()," bands"))}e({title:"Reset Successful",description:"".concat(s.toUpperCase()," bands reset to default.")}),await E()}catch(a){let t=a instanceof Error?a.message:"Unknown error";console.error("Error resetting ".concat(s," bands:"),a),e({title:"Error",description:"Failed to reset ".concat(s.toUpperCase()," bands: ").concat(t),variant:"destructive"})}},k=e=>{let{title:s,description:r,bandType:l,prefix:u,isProfileControlled:f,profileName:p}=e;return(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.aR,{children:(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.ZB,{children:s}),(0,a.jsx)(o.BT,{children:r})]}),f&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs font-medium px-2 py-1 rounded-md bg-slate-100 dark:bg-slate-800",children:[(0,a.jsx)(c.A,{className:"h-3 w-3",color:"orange"}),(0,a.jsxs)("span",{children:["Profile Controlled by ",p]})]})]})}),(0,a.jsx)(o.Wu,{className:"grid lg:grid-cols-8 md:grid-cols-6 sm:grid-cols-4 grid-cols-3 grid-flow-row gap-4",children:v?(0,a.jsx)("div",{className:"col-span-8",children:"Fetching bands..."}):t[l].map(e=>(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(n.S,{id:"".concat(l,"-").concat(e),checked:m[l].includes(e),onCheckedChange:()=>T(l,e),disabled:f,className:f?"cursor-not-allowed opacity-60":""}),(0,a.jsxs)("label",{htmlFor:"".concat(l,"-").concat(e),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ".concat(f?"cursor-not-allowed opacity-60":""),children:[u,e]})]},e))}),(0,a.jsxs)(o.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-3",children:[(0,a.jsxs)(i.$,{onClick:()=>A(l),disabled:f||v||b,children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),"Lock Selected Bands"]}),(0,a.jsx)(i.$,{variant:"secondary",onClick:()=>S(l),disabled:f||v||b,children:"Uncheck All"}),(0,a.jsxs)(i.$,{variant:"secondary",onClick:()=>C(l),disabled:f||v||b,children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]})};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsx)(k,{title:"4G LTE Band Locking",description:"Lock the device to specific LTE bands.",bandType:"lte",prefix:"B",isProfileControlled:y.lte,profileName:(null==x?void 0:x.name)||""}),(0,a.jsx)(k,{title:"NR5G-NSA Band Locking",description:"Lock the device to specific NR5G-NSA bands.",bandType:"nsa",prefix:"N",isProfileControlled:y.nsa,profileName:(null==x?void 0:x.name)||""}),(0,a.jsx)(k,{title:"NR5G-SA Band Locking",description:"Lock the device to specific NR5G-SA bands.",bandType:"sa",prefix:"N",isProfileControlled:y.sa,profileName:(null==x?void 0:x.name)||""})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>c,r:()=>l});var a=s(20475),r=s(20107),o=s(61837),n=s(29395),i=s(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,size:n,asChild:c=!1,...d}=e,u=c?o.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(l({variant:r,size:n,className:s})),ref:t,...d})});c.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>u});var a=s(20475),r=s(20107),o=s(22250);let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});n.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",s),...r})});i.displayName="CardHeader";let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",s),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",s),...r})});c.displayName="CardDescription";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",s),...r})});d.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>l});var a=s(20475),r=s(20107),o=s(32713),n=s(7197),i=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(o.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...r,children:(0,a.jsx)(o.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(n.Srz,{className:"h-4 w-4"})})})});l.displayName=o.bL.displayName},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var a=s(20107);let r=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>d({type:"DISMISS_TOAST",toastId:s});return d({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=a.useState(c);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>o});var a=s(64901),r=s(868);function o(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),o=encodeURIComponent(r),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(o);t&&(n+="&wait=1&timeout=".concat(s));let i=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let l=await i.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(a=l.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,2494,191,6035,7358],()=>t(42554)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-2c5cd6ec32a5aed7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-2c5cd6ec32a5aed7.js deleted file mode 100644 index 32171cf..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-2c5cd6ec32a5aed7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1942],{70626:(e,t,s)=>{Promise.resolve().then(s.bind(s,70792))},70792:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var a=s(95155),r=s(12115),o=s(35007),n=s(43670),i=s(14085),l=s(20241),c=s(48686),d=s(21773),u=s(89622);let f={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nrdc_nr5g_band"},p={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nr5g_band"},m=()=>{let{toast:e}=(0,l.dj)(),[t,s]=(0,r.useState)({lte:[],nsa:[],sa:[]}),[m,h]=(0,r.useState)({lte:[],nsa:[],sa:[]}),[v,g]=(0,r.useState)(!0),[b,w]=(0,r.useState)(!1),[x,N]=(0,r.useState)(null),[y,_]=(0,r.useState)({lte:!1,nsa:!1,sa:!1}),j=(e,t,s)=>{let a=e.split("\n"),r=s?f[t]:p[t];for(let e of a){let t='"'.concat(r,'"');if(e.includes(t)){let t=e.match(/\"[^\"]+\",(.+)/);if(t&&t[1])return t[1].trim().split(":").map(Number).filter(e=>!isNaN(e))}}return[]};(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();if("success"===s.status&&Array.isArray(s.profiles)){let e=s.profiles.find(e=>e.name===t.profile);if(e){N(e);let t={lte:!!e.lte_bands,nsa:!!e.nsa_nr5g_bands,sa:!!e.sa_nr5g_bands};_(t),console.log("Active Profile:",e),console.log("Controlled Bands:",t)}}}}else N(null),_({lte:!1,nsa:!1,sa:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]);let E=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=7");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json(),a=t[0].response,r={lte:j(a,"lte",!0),nsa:j(a,"nsa",!0),sa:j(a,"sa",!0)};s(r);let o=t[1].response,n={lte:j(o,"lte",!1),nsa:j(o,"nsa",!1),sa:j(o,"sa",!1)};h(n),g(!1)}catch(t){console.error("Error fetching bands:",t),e({title:"Error",description:"Failed to fetch bands data.",variant:"destructive"}),g(!1)}};(0,r.useEffect)(()=>{E()},[]),(0,r.useEffect)(()=>{if(x){let e={...m},t=!1;if(y.lte&&x.lte_bands){let s=x.lte_bands.split(",").map(Number).filter(e=>!isNaN(e));e.lte=s,t=!0}if(y.nsa&&x.nsa_nr5g_bands){let s=x.nsa_nr5g_bands.split(",").map(Number).filter(e=>!isNaN(e));e.nsa=s,t=!0}if(y.sa&&x.sa_nr5g_bands){let s=x.sa_nr5g_bands.split(",").map(Number).filter(e=>!isNaN(e));e.sa=s,t=!0}t&&h(e)}},[x,y]);let T=(e,t)=>{y[e]||h(s=>({...s,[e]:s[e].includes(t)?s[e].filter(e=>e!==t):[...s[e],t].sort((e,t)=>e-t)}))},A=async s=>{if(y[s]){e({title:"Profile Controlled",description:"".concat(s.toUpperCase(),' bands are currently managed by profile "').concat(null==x?void 0:x.name,'"'),variant:"destructive"});return}try{var a,r,o,n,i,l,c,d;w(!0);let f=m[s].join(":");if("nsa"===s){let e=m.sa.join(":"),s=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.nsa,'",').concat(f),!0);if((null===(a=s.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=s.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NSA bands");if(e){let t=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(e),!0);if((null===(o=t.response)||void 0===o?void 0:o.status)!=="success")throw Error((null===(n=t.response)||void 0===n?void 0:n.raw_output)||"Failed to restore SA bands")}else{let e=t.sa.join(":"),s=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(e),!0);if((null===(i=s.response)||void 0===i?void 0:i.status)!=="success")throw Error((null===(l=s.response)||void 0===l?void 0:l.raw_output)||"Failed to set default SA bands")}h(s=>({...s,nsa:m.nsa,sa:e?m.sa:t.sa}))}else{let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p[s],'",').concat(f),!0);if((null===(c=e.response)||void 0===c?void 0:c.status)!=="success")throw Error((null===(d=e.response)||void 0===d?void 0:d.raw_output)||"Failed to lock ".concat(s.toUpperCase()," bands"));h(e=>({...e,[s]:m[s]}))}e({title:"Band Locking",description:"Bands locked successfully."}),setTimeout(E,1e3),w(!1)}catch(a){let t=a instanceof Error?a.message:"Unknown error";console.error("Error locking ".concat(s," bands:"),a),e({title:"Error",description:"Failed to lock ".concat(s.toUpperCase()," bands: ").concat(t),variant:"destructive"}),w(!1)}},S=e=>{y[e]||h(t=>({...t,[e]:[]}))},C=async s=>{if(y[s]){e({title:"Profile Controlled",description:"".concat(s.toUpperCase(),' bands are currently managed by profile "').concat(null==x?void 0:x.name,'"'),variant:"destructive"});return}try{var a,r,o,n,i,l;let c=t[s].join(":");if("nsa"===s){let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.nsa,'",').concat(c),!0);if((null===(a=e.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=e.response)||void 0===r?void 0:r.raw_output)||"Failed to reset NSA bands");let t=m.sa.join(":");if(t){let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(t),!0);if((null===(o=e.response)||void 0===o?void 0:o.status)!=="success")throw Error((null===(n=e.response)||void 0===n?void 0:n.raw_output)||"Failed to preserve SA bands")}}else{let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p[s],'",').concat(c),!0);if((null===(i=e.response)||void 0===i?void 0:i.status)!=="success")throw Error((null===(l=e.response)||void 0===l?void 0:l.raw_output)||"Failed to reset ".concat(s.toUpperCase()," bands"))}e({title:"Reset Successful",description:"".concat(s.toUpperCase()," bands reset to default.")}),await E()}catch(a){let t=a instanceof Error?a.message:"Unknown error";console.error("Error resetting ".concat(s," bands:"),a),e({title:"Error",description:"Failed to reset ".concat(s.toUpperCase()," bands: ").concat(t),variant:"destructive"})}},k=e=>{let{title:s,description:r,bandType:l,prefix:u,isProfileControlled:f,profileName:p}=e;return(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.aR,{children:(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.ZB,{children:s}),(0,a.jsx)(o.BT,{children:r})]}),f&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs font-medium px-2 py-1 rounded-md bg-slate-100 dark:bg-slate-800",children:[(0,a.jsx)(c.A,{className:"h-3 w-3",color:"orange"}),(0,a.jsxs)("span",{children:["Profile Controlled by ",p]})]})]})}),(0,a.jsx)(o.Wu,{className:"grid lg:grid-cols-8 md:grid-cols-6 sm:grid-cols-4 grid-cols-3 grid-flow-row gap-4",children:v?(0,a.jsx)("div",{className:"col-span-8",children:"Fetching bands..."}):t[l].map(e=>(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(n.S,{id:"".concat(l,"-").concat(e),checked:m[l].includes(e),onCheckedChange:()=>T(l,e),disabled:f,className:f?"cursor-not-allowed opacity-60":""}),(0,a.jsxs)("label",{htmlFor:"".concat(l,"-").concat(e),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ".concat(f?"cursor-not-allowed opacity-60":""),children:[u,e]})]},e))}),(0,a.jsxs)(o.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-3",children:[(0,a.jsxs)(i.$,{onClick:()=>A(l),disabled:f||v||b,children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),"Lock Selected Bands"]}),(0,a.jsx)(i.$,{variant:"secondary",onClick:()=>S(l),disabled:f||v||b,children:"Uncheck All"}),(0,a.jsxs)(i.$,{variant:"secondary",onClick:()=>C(l),disabled:f||v||b,children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]})};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsx)(k,{title:"4G LTE Band Locking",description:"Lock the device to specific LTE bands.",bandType:"lte",prefix:"B",isProfileControlled:y.lte,profileName:(null==x?void 0:x.name)||""}),(0,a.jsx)(k,{title:"NR5G-NSA Band Locking",description:"Lock the device to specific NR5G-NSA bands.",bandType:"nsa",prefix:"N",isProfileControlled:y.nsa,profileName:(null==x?void 0:x.name)||""}),(0,a.jsx)(k,{title:"NR5G-SA Band Locking",description:"Lock the device to specific NR5G-SA bands.",bandType:"sa",prefix:"N",isProfileControlled:y.sa,profileName:(null==x?void 0:x.name)||""})]})}},14085:(e,t,s)=>{"use strict";s.d(t,{$:()=>c,r:()=>l});var a=s(95155),r=s(12115),o=s(12317),n=s(31027),i=s(29602);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,size:n,asChild:c=!1,...d}=e,u=c?o.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(l({variant:r,size:n,className:s})),ref:t,...d})});c.displayName="Button"},35007:(e,t,s)=>{"use strict";s.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>u});var a=s(95155),r=s(12115),o=s(29602);let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});n.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",s),...r})});i.displayName="CardHeader";let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",s),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",s),...r})});c.displayName="CardDescription";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",s),...r})});d.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},43670:(e,t,s)=>{"use strict";s.d(t,{S:()=>l});var a=s(95155),r=s(12115),o=s(86352),n=s(87365),i=s(29602);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(o.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...r,children:(0,a.jsx)(o.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(n.Srz,{className:"h-4 w-4"})})})});l.displayName=o.bL.displayName},20241:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var a=s(12115);let r=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>d({type:"DISMISS_TOAST",toastId:s});return d({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=a.useState(c);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,s)=>{"use strict";s.d(t,{cn:()=>o});var a=s(43463),r=s(69795);function o(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),o=encodeURIComponent(r),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(o);t&&(n+="&wait=1&timeout=".concat(s));let i=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let l=await i.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(a=l.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[5105,1365,6281,8441,1517,7358],()=>t(70626)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-4ac8549e8d2ef493.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-4ac8549e8d2ef493.js new file mode 100644 index 0000000..224ab30 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-4ac8549e8d2ef493.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1942],{42554:(e,t,s)=>{Promise.resolve().then(s.bind(s,75808))},75808:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var a=s(20475),r=s(20107),o=s(72167),n=s(574),i=s(42541),l=s(32857),c=s(29475),d=s(91994),u=s(88926);let f={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nrdc_nr5g_band"},p={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nr5g_band"},m=()=>{let{toast:e}=(0,l.dj)(),[t,s]=(0,r.useState)({lte:[],nsa:[],sa:[]}),[m,h]=(0,r.useState)({lte:[],nsa:[],sa:[]}),[v,g]=(0,r.useState)(!0),[b,w]=(0,r.useState)(null),[x,N]=(0,r.useState)({lte:!1,nsa:!1,sa:!1}),y=(e,t,s)=>{let a=e.split("\n"),r=s?f[t]:p[t];for(let e of a){let t='"'.concat(r,'"');if(e.includes(t)){let t=e.match(/\"[^\"]+\",(.+)/);if(t&&t[1])return t[1].trim().split(":").map(Number).filter(e=>!isNaN(e))}}return[]};(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();if("success"===s.status&&Array.isArray(s.profiles)){let e=s.profiles.find(e=>e.name===t.profile);if(e){w(e);let t={lte:!!e.lte_bands,nsa:!!e.nsa_nr5g_bands,sa:!!e.sa_nr5g_bands};N(t),console.log("Active Profile:",e),console.log("Controlled Bands:",t)}}}}else w(null),N({lte:!1,nsa:!1,sa:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]);let _=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=7");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json(),a=t[0].response,r={lte:y(a,"lte",!0),nsa:y(a,"nsa",!0),sa:y(a,"sa",!0)};s(r);let o=t[1].response,n={lte:y(o,"lte",!1),nsa:y(o,"nsa",!1),sa:y(o,"sa",!1)};h(n),g(!1)}catch(t){console.error("Error fetching bands:",t),e({title:"Error",description:"Failed to fetch bands data.",variant:"destructive"}),g(!1)}};(0,r.useEffect)(()=>{_()},[]),(0,r.useEffect)(()=>{if(b){let e={...m},t=!1;if(x.lte&&b.lte_bands){let s=b.lte_bands.split(",").map(Number).filter(e=>!isNaN(e));e.lte=s,t=!0}if(x.nsa&&b.nsa_nr5g_bands){let s=b.nsa_nr5g_bands.split(",").map(Number).filter(e=>!isNaN(e));e.nsa=s,t=!0}if(x.sa&&b.sa_nr5g_bands){let s=b.sa_nr5g_bands.split(",").map(Number).filter(e=>!isNaN(e));e.sa=s,t=!0}t&&h(e)}},[b,x]);let j=(e,t)=>{x[e]||h(s=>({...s,[e]:s[e].includes(t)?s[e].filter(e=>e!==t):[...s[e],t].sort((e,t)=>e-t)}))},E=async s=>{if(x[s]){e({title:"Profile Controlled",description:"".concat(s.toUpperCase(),' bands are currently managed by profile "').concat(null==b?void 0:b.name,'"'),variant:"destructive"});return}try{var a,r,o,n,i,l,c,d;let f=m[s].join(":");if("nsa"===s){let e=m.sa.join(":"),s=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.nsa,'",').concat(f),!0);if((null===(a=s.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=s.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NSA bands");if(e){let t=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(e),!0);if((null===(o=t.response)||void 0===o?void 0:o.status)!=="success")throw Error((null===(n=t.response)||void 0===n?void 0:n.raw_output)||"Failed to restore SA bands")}else{let e=t.sa.join(":"),s=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(e),!0);if((null===(i=s.response)||void 0===i?void 0:i.status)!=="success")throw Error((null===(l=s.response)||void 0===l?void 0:l.raw_output)||"Failed to set default SA bands")}h(s=>({...s,nsa:m.nsa,sa:e?m.sa:t.sa}))}else{let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p[s],'",').concat(f),!0);if((null===(c=e.response)||void 0===c?void 0:c.status)!=="success")throw Error((null===(d=e.response)||void 0===d?void 0:d.raw_output)||"Failed to lock ".concat(s.toUpperCase()," bands"));h(e=>({...e,[s]:m[s]}))}e({title:"Band Locking",description:"Bands locked successfully."}),setTimeout(_,1e3)}catch(a){let t=a instanceof Error?a.message:"Unknown error";console.error("Error locking ".concat(s," bands:"),a),e({title:"Error",description:"Failed to lock ".concat(s.toUpperCase()," bands: ").concat(t),variant:"destructive"})}},T=e=>{x[e]||h(t=>({...t,[e]:[]}))},A=async s=>{if(x[s]){e({title:"Profile Controlled",description:"".concat(s.toUpperCase(),' bands are currently managed by profile "').concat(null==b?void 0:b.name,'"'),variant:"destructive"});return}try{var a,r,o,n,i,l;let c=t[s].join(":");if("nsa"===s){let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.nsa,'",').concat(c),!0);if((null===(a=e.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=e.response)||void 0===r?void 0:r.raw_output)||"Failed to reset NSA bands");let t=m.sa.join(":");if(t){let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(t),!0);if((null===(o=e.response)||void 0===o?void 0:o.status)!=="success")throw Error((null===(n=e.response)||void 0===n?void 0:n.raw_output)||"Failed to preserve SA bands")}}else{let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p[s],'",').concat(c),!0);if((null===(i=e.response)||void 0===i?void 0:i.status)!=="success")throw Error((null===(l=e.response)||void 0===l?void 0:l.raw_output)||"Failed to reset ".concat(s.toUpperCase()," bands"))}e({title:"Reset Successful",description:"".concat(s.toUpperCase()," bands reset to default.")}),await _()}catch(a){let t=a instanceof Error?a.message:"Unknown error";console.error("Error resetting ".concat(s," bands:"),a),e({title:"Error",description:"Failed to reset ".concat(s.toUpperCase()," bands: ").concat(t),variant:"destructive"})}},S=e=>{let{title:s,description:r,bandType:l,prefix:u,isProfileControlled:f,profileName:p}=e;return(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.aR,{children:(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.ZB,{children:s}),(0,a.jsx)(o.BT,{children:r})]}),f&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs font-medium px-2 py-1 rounded-md bg-slate-100 dark:bg-slate-800",children:[(0,a.jsx)(c.A,{className:"h-3 w-3",color:"orange"}),(0,a.jsxs)("span",{children:["Profile Controlled by ",p]})]})]})}),(0,a.jsx)(o.Wu,{className:"grid lg:grid-cols-8 md:grid-cols-6 sm:grid-cols-4 grid-cols-3 grid-flow-row gap-4",children:v?(0,a.jsx)("div",{className:"col-span-8",children:"Fetching bands..."}):t[l].map(e=>(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(n.S,{id:"".concat(l,"-").concat(e),checked:m[l].includes(e),onCheckedChange:()=>j(l,e),disabled:f,className:f?"cursor-not-allowed opacity-60":""}),(0,a.jsxs)("label",{htmlFor:"".concat(l,"-").concat(e),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ".concat(f?"cursor-not-allowed opacity-60":""),children:[u,e]})]},e))}),(0,a.jsxs)(o.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-3",children:[(0,a.jsxs)(i.$,{onClick:()=>E(l),disabled:f,children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),"Lock Selected Bands"]}),(0,a.jsx)(i.$,{variant:"secondary",onClick:()=>T(l),disabled:f,children:"Uncheck All"}),(0,a.jsxs)(i.$,{variant:"secondary",onClick:()=>A(l),disabled:f,children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]})};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsx)(S,{title:"4G LTE Band Locking",description:"Lock the device to specific LTE bands.",bandType:"lte",prefix:"B",isProfileControlled:x.lte,profileName:(null==b?void 0:b.name)||""}),(0,a.jsx)(S,{title:"NR5G-NSA Band Locking",description:"Lock the device to specific NR5G-NSA bands.",bandType:"nsa",prefix:"N",isProfileControlled:x.nsa,profileName:(null==b?void 0:b.name)||""}),(0,a.jsx)(S,{title:"NR5G-SA Band Locking",description:"Lock the device to specific NR5G-SA bands.",bandType:"sa",prefix:"N",isProfileControlled:x.sa,profileName:(null==b?void 0:b.name)||""})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>c,r:()=>l});var a=s(20475),r=s(20107),o=s(61837),n=s(29395),i=s(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,size:n,asChild:c=!1,...d}=e,u=c?o.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(l({variant:r,size:n,className:s})),ref:t,...d})});c.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>u});var a=s(20475),r=s(20107),o=s(22250);let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});n.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",s),...r})});i.displayName="CardHeader";let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",s),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",s),...r})});c.displayName="CardDescription";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",s),...r})});d.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>l});var a=s(20475),r=s(20107),o=s(32713),n=s(7197),i=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(o.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...r,children:(0,a.jsx)(o.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(n.Srz,{className:"h-4 w-4"})})})});l.displayName=o.bL.displayName},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var a=s(20107);let r=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>d({type:"DISMISS_TOAST",toastId:s});return d({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=a.useState(c);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>o});var a=s(64901),r=s(868);function o(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),o=encodeURIComponent(r),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(o);t&&(n+="&wait=1&timeout=".concat(s));let i=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let l=await i.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(a=l.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,2494,191,6035,7358],()=>t(42554)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-756ab588a4b45ef7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-756ab588a4b45ef7.js new file mode 100644 index 0000000..fbe98c2 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-756ab588a4b45ef7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1942],{42554:(e,t,s)=>{Promise.resolve().then(s.bind(s,75808))},75808:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var a=s(20475),r=s(20107),o=s(72167),n=s(574),i=s(42541),l=s(32857),c=s(29475),d=s(91994),u=s(88926);let f={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nrdc_nr5g_band"},p={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nr5g_band"},m=()=>{let{toast:e}=(0,l.dj)(),[t,s]=(0,r.useState)({lte:[],nsa:[],sa:[]}),[m,h]=(0,r.useState)({lte:[],nsa:[],sa:[]}),[v,g]=(0,r.useState)(!0),[b,w]=(0,r.useState)(!1),[x,N]=(0,r.useState)(null),[y,_]=(0,r.useState)({lte:!1,nsa:!1,sa:!1}),j=(e,t,s)=>{let a=e.split("\n"),r=s?f[t]:p[t];for(let e of a){let t='"'.concat(r,'"');if(e.includes(t)){let t=e.match(/\"[^\"]+\",(.+)/);if(t&&t[1])return t[1].trim().split(":").map(Number).filter(e=>!isNaN(e))}}return[]};(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();if("success"===s.status&&Array.isArray(s.profiles)){let e=s.profiles.find(e=>e.name===t.profile);if(e){N(e);let t={lte:!!e.lte_bands,nsa:!!e.nsa_nr5g_bands,sa:!!e.sa_nr5g_bands};_(t),console.log("Active Profile:",e),console.log("Controlled Bands:",t)}}}}else N(null),_({lte:!1,nsa:!1,sa:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]);let E=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=7");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json(),a=t[0].response,r={lte:j(a,"lte",!0),nsa:j(a,"nsa",!0),sa:j(a,"sa",!0)};s(r);let o=t[1].response,n={lte:j(o,"lte",!1),nsa:j(o,"nsa",!1),sa:j(o,"sa",!1)};h(n),g(!1)}catch(t){console.error("Error fetching bands:",t),e({title:"Error",description:"Failed to fetch bands data.",variant:"destructive"}),g(!1)}};(0,r.useEffect)(()=>{E()},[]),(0,r.useEffect)(()=>{if(x){let e={...m},t=!1;if(y.lte&&x.lte_bands){let s=x.lte_bands.split(",").map(Number).filter(e=>!isNaN(e));e.lte=s,t=!0}if(y.nsa&&x.nsa_nr5g_bands){let s=x.nsa_nr5g_bands.split(",").map(Number).filter(e=>!isNaN(e));e.nsa=s,t=!0}if(y.sa&&x.sa_nr5g_bands){let s=x.sa_nr5g_bands.split(",").map(Number).filter(e=>!isNaN(e));e.sa=s,t=!0}t&&h(e)}},[x,y]);let T=(e,t)=>{y[e]||h(s=>({...s,[e]:s[e].includes(t)?s[e].filter(e=>e!==t):[...s[e],t].sort((e,t)=>e-t)}))},A=async s=>{if(y[s]){e({title:"Profile Controlled",description:"".concat(s.toUpperCase(),' bands are currently managed by profile "').concat(null==x?void 0:x.name,'"'),variant:"destructive"});return}try{var a,r,o,n,i,l,c,d;w(!0);let f=m[s].join(":");if("nsa"===s){let e=m.sa.join(":"),s=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.nsa,'",').concat(f),!0);if((null===(a=s.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=s.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NSA bands");if(e){let t=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(e),!0);if((null===(o=t.response)||void 0===o?void 0:o.status)!=="success")throw Error((null===(n=t.response)||void 0===n?void 0:n.raw_output)||"Failed to restore SA bands")}else{let e=t.sa.join(":"),s=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(e),!0);if((null===(i=s.response)||void 0===i?void 0:i.status)!=="success")throw Error((null===(l=s.response)||void 0===l?void 0:l.raw_output)||"Failed to set default SA bands")}h(s=>({...s,nsa:m.nsa,sa:e?m.sa:t.sa}))}else{let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p[s],'",').concat(f),!0);if((null===(c=e.response)||void 0===c?void 0:c.status)!=="success")throw Error((null===(d=e.response)||void 0===d?void 0:d.raw_output)||"Failed to lock ".concat(s.toUpperCase()," bands"));h(e=>({...e,[s]:m[s]}))}e({title:"Band Locking",description:"Bands locked successfully."}),setTimeout(E,1e3),w(!1)}catch(a){let t=a instanceof Error?a.message:"Unknown error";console.error("Error locking ".concat(s," bands:"),a),e({title:"Error",description:"Failed to lock ".concat(s.toUpperCase()," bands: ").concat(t),variant:"destructive"}),w(!1)}},S=e=>{y[e]||h(t=>({...t,[e]:[]}))},C=async s=>{if(y[s]){e({title:"Profile Controlled",description:"".concat(s.toUpperCase(),' bands are currently managed by profile "').concat(null==x?void 0:x.name,'"'),variant:"destructive"});return}try{var a,r,o,n,i,l;let c=t[s].join(":");if("nsa"===s){let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.nsa,'",').concat(c),!0);if((null===(a=e.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=e.response)||void 0===r?void 0:r.raw_output)||"Failed to reset NSA bands");let t=m.sa.join(":");if(t){let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p.sa,'",').concat(t),!0);if((null===(o=e.response)||void 0===o?void 0:o.status)!=="success")throw Error((null===(n=e.response)||void 0===n?void 0:n.raw_output)||"Failed to preserve SA bands")}}else{let e=await (0,u.a)('AT+QNWPREFCFG="'.concat(p[s],'",').concat(c),!0);if((null===(i=e.response)||void 0===i?void 0:i.status)!=="success")throw Error((null===(l=e.response)||void 0===l?void 0:l.raw_output)||"Failed to reset ".concat(s.toUpperCase()," bands"))}e({title:"Reset Successful",description:"".concat(s.toUpperCase()," bands reset to default.")}),await E()}catch(a){let t=a instanceof Error?a.message:"Unknown error";console.error("Error resetting ".concat(s," bands:"),a),e({title:"Error",description:"Failed to reset ".concat(s.toUpperCase()," bands: ").concat(t),variant:"destructive"})}},k=e=>{let{title:s,description:r,bandType:l,prefix:u,isProfileControlled:f,profileName:p}=e;return(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.aR,{children:(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.ZB,{children:s}),(0,a.jsx)(o.BT,{children:r})]}),f&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs font-medium px-2 py-1 rounded-md bg-slate-100 dark:bg-slate-800",children:[(0,a.jsx)(c.A,{className:"h-3 w-3",color:"orange"}),(0,a.jsxs)("span",{children:["Profile Controlled by ",p]})]})]})}),(0,a.jsx)(o.Wu,{className:"grid lg:grid-cols-8 md:grid-cols-6 sm:grid-cols-4 grid-cols-3 grid-flow-row gap-4",children:v?(0,a.jsx)("div",{className:"col-span-8",children:"Fetching bands..."}):t[l].map(e=>(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(n.S,{id:"".concat(l,"-").concat(e),checked:m[l].includes(e),onCheckedChange:()=>T(l,e),disabled:f,className:f?"cursor-not-allowed opacity-60":""}),(0,a.jsxs)("label",{htmlFor:"".concat(l,"-").concat(e),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ".concat(f?"cursor-not-allowed opacity-60":""),children:[u,e]})]},e))}),(0,a.jsxs)(o.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-3",children:[(0,a.jsxs)(i.$,{onClick:()=>A(l),disabled:f||v||b,children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),"Lock Selected Bands"]}),(0,a.jsx)(i.$,{variant:"secondary",onClick:()=>S(l),disabled:f||v||b,children:"Uncheck All"}),(0,a.jsxs)(i.$,{variant:"secondary",onClick:()=>C(l),disabled:f||v||b,children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]})};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsx)(k,{title:"4G LTE Band Locking",description:"Lock the device to specific LTE bands.",bandType:"lte",prefix:"B",isProfileControlled:y.lte,profileName:(null==x?void 0:x.name)||""}),(0,a.jsx)(k,{title:"NR5G-NSA Band Locking",description:"Lock the device to specific NR5G-NSA bands.",bandType:"nsa",prefix:"N",isProfileControlled:y.nsa,profileName:(null==x?void 0:x.name)||""}),(0,a.jsx)(k,{title:"NR5G-SA Band Locking",description:"Lock the device to specific NR5G-SA bands.",bandType:"sa",prefix:"N",isProfileControlled:y.sa,profileName:(null==x?void 0:x.name)||""})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>c,r:()=>l});var a=s(20475),r=s(20107),o=s(61837),n=s(29395),i=s(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,size:n,asChild:c=!1,...d}=e,u=c?o.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(l({variant:r,size:n,className:s})),ref:t,...d})});c.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>u});var a=s(20475),r=s(20107),o=s(22250);let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});n.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",s),...r})});i.displayName="CardHeader";let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",s),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",s),...r})});c.displayName="CardDescription";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",s),...r})});d.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>l});var a=s(20475),r=s(20107),o=s(32713),n=s(7197),i=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(o.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...r,children:(0,a.jsx)(o.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(n.Srz,{className:"h-4 w-4"})})})});l.displayName=o.bL.displayName},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var a=s(20107);let r=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>d({type:"DISMISS_TOAST",toastId:s});return d({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=a.useState(c);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>o});var a=s(64901),r=s(868);function o(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),o=encodeURIComponent(r),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(o);t&&(n+="&wait=1&timeout=".concat(s));let i=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let l=await i.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(a=l.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,2494,191,6035,7358],()=>t(42554)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-1ccd86184fde8732.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-1ccd86184fde8732.js new file mode 100644 index 0000000..e072b9a --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-1ccd86184fde8732.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{58669:(e,t,r)=>{Promise.resolve().then(r.bind(r,15469))},15469:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var s=r(20475),l=r(20107),a=r(72167),n=r(35601),o=r(85014),i=r(42541),d=r(64219),c=r(49153),u=r(36760),p=r(32857),f=r(49573),m=r(29475);let h=()=>{let[e,t]=(0,l.useState)(null),[r,s]=(0,l.useState)(!0),a=(0,l.useCallback)(async()=>{try{s(!0),t(null);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=2"),r=await e.json();console.log("Fetched cell settings data:",r);let l={APNProfiles:v(r[0].response,r[8].response,r[1].response),apnPDPType:g(r[0].response),preferredNetworkType:x(r[2].response),nr5gMode:N(r[3].response),simSlot:P(r[4].response),cfunState:r[5].response.match(/\d+/)[0].trim(),autoSelState:r[6].response.match(/\d+/)[0].trim(),mbnProfilesList:r[7].response.split("\n").filter(e=>e.includes('+QMBNCFG: "List"')).map(e=>{let t=e.match(/\+QMBNCFG: "List",\d+,\d+,\d+,"([^"]+)"/);return t?t[1]:null}).filter(Boolean),selectedMbnProfile:"",dataProfileIndex:(()=>{try{var e;if(!(null===(e=r[8])||void 0===e?void 0:e.response))return"-";let t=r[8].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"'));if(!t.length)return"-";let s=t[0].match(/\+QMAP: "WWAN",\d+,(\d+),/);return s?s[1]:"-"}catch(e){return console.error("Error extracting data profile index:",e),"-"}})(),lteAMBR:y(r[9].response),nr5gAMBR:b(r[10].response)};console.log("Processed cell settings data:",l),t(l),console.log("Processed cell settings data:",l)}catch(e){console.error("Error fetching cell settings data:",e)}s(!1)},[]);return(0,l.useEffect)(()=>{a()},[a]),{data:e,isLoading:r,fetchCellSettingsData:a}},g=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching PDP Type":r},x=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching network type":r},N=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching NR5G mode":r},P=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===t?void 0:t.split(":")[1].trim();return void 0===r||""===r?"Error fetching SIM slot":r},v=(e,t,r)=>{try{var s;let l=t.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),a=null===(s=l[0])||void 0===s?void 0:s.match(/\+QMAP: "WWAN",\d+,(\d+),/),n=a?a[1]:null;console.log("Active Profile ID:",n);let o=e.split("\n").filter(e=>e.includes("+CGDCONT:")).map(e=>{let t=e.split(",");if(t.length<3)return null;let s=t[0].replace("+CGDCONT:","").trim(),l=t[1].replace(/"/g,""),a=t[2].replace(/"/g,""),o=s===n;if(o&&(!a||""===a)){console.log("Empty APN for active profile, checking CGCONTRDP");let e=r.split("\n").find(e=>{let t=e.match(/\+CGCONTRDP: (\d+),/);return t&&t[1]===s});if(e){let t=e.split(",");t.length>=3&&(a=t[2].replace(/"/g,""),console.log("Found dynamic APN from CGCONTRDP:",a))}}return{cid:s,pdpType:l,apn:a,isActive:o}}).filter(e=>null!==e);return o.sort((e,t)=>e.isActive?-1:t.isActive?1:parseInt(e.cid)-parseInt(t.cid)),console.log("APN Profiles:",o),o.map(e=>e.apn)}catch(e){return console.error("Error processing APN profiles:",e),["Error fetching APN profiles"]}},y=e=>{try{if(!e)return console.log("No data provided for LTE AMBR parsing"),[];if(!e.includes('+QNWCFG: "lte_ambr"'))return console.log("No LTE AMBR values in response"),[];let t=e.split("\n").filter(e=>e.includes('+QNWCFG: "lte_ambr"'));if(!t.length)return console.log("No LTE AMBR values found after filtering"),[];let r=[];return t.forEach(e=>{let t=e.match(/\+QNWCFG: "lte_ambr","([^"]+)",(\d+),(\d+)/);if(t&&t.length>=4){let e=t[1],s=t[2],l=t[3];r.push(e),r.push(s),r.push(l)}}),r}catch(e){return console.error("Error processing LTE AMBR values:",e),[]}},b=e=>{try{if(!e)return console.log("No data provided for NR5G AMBR parsing"),[];if(!e.includes('+QNWCFG: "nr5g_ambr"'))return console.log("No NR5G AMBR values in response"),[];let t=e.split("\n").filter(e=>e.includes('+QNWCFG: "nr5g_ambr"'));if(!t.length)return console.log("No NR5G AMBR values found after filtering"),[];let r=[];return t.forEach(e=>{let t=e.match(/\+QNWCFG: "nr5g_ambr","([^"]+)",(\d+),(\d+)/);if(t&&t.length>=4){let e=t[1],s=t[2],l=t[3];r.push(e),r.push(s),r.push(l)}}),r}catch(e){return console.error("Error processing NR5G AMBR values:",e),[]}};var j=r(88926),w=r(76554);let A=e=>{let t=parseInt(e);return isNaN(t)?"Unknown":t>=1e6?"".concat((t/1e6).toFixed(2)," Gbps"):t>=1e3?"".concat(Math.round(t/1e3)," Mbps"):"".concat(t," Kbps")},S=e=>{let{lteAMBR:t,nr5gAMBR:r}=e,l=[];for(let e=0;e0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-bold mb-2",children:"LTE AMBR"}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:l.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between border-b pb-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:e.apn}),(0,s.jsxs)("span",{className:"text-sm text-gray-500 font-semibold",children:[e.download," DL / ",e.upload," UL"]})]},"lte-".concat(t)))})]}),n.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-bold mb-2",children:"NR5G AMBR"}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:n.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between border-b pb-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:e.apn}),(0,s.jsxs)("span",{className:"text-sm text-gray-500 font-semibold",children:[e.download," DL / ",e.upload," UL"]})]},"nr5g-".concat(t)))})]}),0===l.length&&0===n.length&&(0,s.jsx)("div",{className:"text-center text-gray-500 py-4",children:"No AMBR information available"})]})}),(0,s.jsx)(a.wL,{children:(0,s.jsx)(a.BT,{children:"AMBR (Aggregate Maximum Bit Rate) is a network-enforced limit that caps the total bandwidth for non-priority data traffic (e.g., internet browsing) on LTE/5G connections. While devices can request specific AMBR values, operators may ignore these and enforce their own speed limits based on subscription plans, network policies, or congestion conditions."})})]})},T=()=>{var e;let{toast:t}=(0,p.dj)(),{data:r,isLoading:g,fetchCellSettingsData:x}=h(),[N,P]=(0,l.useState)(!1),[v,y]=(0,l.useState)(!1),[b,A]=(0,l.useState)(null),[T,M]=(0,l.useState)(null),[R,C]=(0,l.useState)({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1}),[E,k]=(0,l.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:"",cfunState:"",autoSelState:"",selectedMbnProfile:"",mbnProfilesList:[],apnProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:"1",lteAMBR:[],nr5gAMBR:[]});(0,l.useEffect)(()=>{r&&!v&&(k({currentAPN:Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"",apnPDPType:String(r.apnPDPType||""),preferredNetworkType:String(r.preferredNetworkType||""),nr5gMode:String(r.nr5gMode||""),simSlot:String(r.simSlot||""),cfunState:String(r.cfunState||""),autoSelState:String(r.autoSelState||""),selectedMbnProfile:r.selectedMbnProfile||"",mbnProfilesList:r.mbnProfilesList||[],apnProfiles:Array.isArray(r.APNProfiles)?r.APNProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:r.dataProfileIndex||"1",lteAMBR:r.lteAMBR||[],nr5gAMBR:r.nr5gAMBR||[]}),y(!0))},[r,v]),(0,l.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(M(t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);if(e){A(e);let t={currentAPN:!!e.apn,apnPDPType:!!e.pdp_type,preferredNetworkType:!!e.network_type,nr5gMode:!!(e.sa_nr5g_bands||e.nsa_nr5g_bands)};C(t)}}}}else A(null),C({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]),(0,l.useEffect)(()=>{r||y(!1)},[r]);let I=async e=>{let r=[];if((e.currentAPN||e.apnPDPType)&&!R.currentAPN&&!R.apnPDPType){let t=e.apnPDPType||E.apnPDPType,s=e.currentAPN||E.currentAPN,l=parseInt(E.dataProfileIndex,10);console.log("Setting APN on profile ".concat(l,' to "').concat(s,'" with type "').concat(t,'"')),r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(void 0!==e.selectedAPNProfileIndex&&e.selectedAPNProfileIndex!==E.selectedAPNProfileIndex&&E.apnProfiles.length>e.selectedAPNProfileIndex&&!R.currentAPN){let t=E.apnPDPType,s=E.apnProfiles[e.selectedAPNProfileIndex],l=parseInt(E.dataProfileIndex,10);r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(e.preferredNetworkType&&!R.preferredNetworkType){let t='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);r.push(0===r.length?"AT".concat(t):t)}if(e.nr5gMode&&!R.nr5gMode){let t='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);r.push(0===r.length?"AT".concat(t):t)}if(e.simSlot){let t="+QUIMSLOT=".concat(e.simSlot);r.push(0===r.length?"AT".concat(t):t)}if(e.cfunState){let t="+CFUN=".concat(e.cfunState);r.push(0===r.length?"AT".concat(t):t)}if(e.autoSelState){let t='+QMBNCFG="AutoSel",'.concat(e.autoSelState);r.push(0===r.length?"AT".concat(t):t)}if(e.selectedMbnProfile&&("0"===e.autoSelState||"0"===E.autoSelState)){var s;let l=parseInt(e.selectedMbnProfile),a=null===(s=E.mbnProfilesList)||void 0===s?void 0:s[l];if(a){let e='+QMBNCFG="deactivate";+QMBNCFG="select","'.concat(a,'"');r.push(0===r.length?"AT".concat(e):e),t({title:"MBN Profile Changed",description:"A full device reboot is required for this change to take effect.",duration:5e3})}}return r.join(";")},D=(e,t)=>{"string"!=typeof e||R[e]||k(r=>({...r,[e]:t}))},_=async e=>{try{var t,r,s;console.log("Executing AT command:",e);let l=await (0,j.a)(e);if("error"===l.status)throw Error(l.status||"Command execution failed");if((null===(t=l.response)||void 0===t?void 0:t.status)==="error"||(null===(r=l.response)||void 0===r?void 0:r.status)==="timeout")throw Error(l.response.raw_output||"Command execution ".concat(l.response.status));return(null===(s=l.response)||void 0===s?void 0:s.status)==="success"}catch(e){throw console.error("AT command execution error:",e),e}},B=async e=>{e.preventDefault(),P(!0);try{let e={};if(Object.keys(E).forEach(t=>{if(!R[t]&&"mbnProfilesList"!==t&&"apnProfiles"!==t){if("selectedAPNProfileIndex"===t&&0!==E.selectedAPNProfileIndex){e.selectedAPNProfileIndex=E.selectedAPNProfileIndex;return}if("selectedMbnProfile"===t&&E.selectedMbnProfile!==(null==r?void 0:r.selectedMbnProfile)&&"0"===E.autoSelState){e.selectedMbnProfile=E.selectedMbnProfile;return}if("string"==typeof E[t]){let s=E[t];if("currentAPN"===t&&(null==r?void 0:r.APNProfiles)){let t=Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"";s!==t&&(e.currentAPN=s)}else{let l=null==r?void 0:r[t];s!==l&&(e[t]=s)}}}}),0===Object.keys(e).length){t({title:"No changes detected",description:"Try changing some settings before saving"}),P(!1);return}console.log("Detected changes:",e);let s=await I(e);s&&(await _(s),(e.currentAPN||e.apnPDPType)&&(await new Promise(e=>setTimeout(e,1e3)),await _("AT+COPS=2"),await new Promise(e=>setTimeout(e,1e3)),await _("AT+COPS=0"))),await new Promise(e=>setTimeout(e,4e3)),await x(),y(!1),t({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3})}catch(e){console.error("Error saving settings:",e),t({variant:"destructive",title:"Failed to save settings!",description:e instanceof Error?e.message:"An error occurred while saving the settings"})}finally{P(!1)}};return(0,s.jsxs)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:[(0,s.jsx)(a.Zp,{children:(0,s.jsxs)("form",{onSubmit:B,children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"Network Settings"}),(0,s.jsx)(a.BT,{children:"Change the network settings of the device."})]}),(0,s.jsxs)(a.Wu,{children:[b&&Object.values(R).some(e=>e)&&(0,s.jsxs)(f.Fc,{className:"mb-6",children:[(0,s.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(f.XL,{children:"Profile Controlled Settings"}),(0,s.jsxs)(f.TN,{children:['Some settings are currently being managed by profile "',b.name,'".']})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["Current APN",R.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(d.p,{type:"text",id:"APN",placeholder:"Current APN",value:R.currentAPN&&b?b.apn:E.currentAPN,onChange:e=>D("currentAPN",e.target.value),disabled:R.currentAPN||g,className:R.currentAPN?"bg-muted cursor-not-allowed":""})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APNProfile",children:["APN Profiles",R.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{disabled:R.currentAPN||g||E.apnProfiles.length<=1,value:String(E.selectedAPNProfileIndex),onValueChange:e=>{let t=parseInt(e,10);t>=0&&t({...e,selectedAPNProfileIndex:t,currentAPN:e.apnProfiles[t]||""}))},children:[(0,s.jsx)(n.bq,{className:R.currentAPN||E.apnProfiles.length<=1?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select APN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available APNs"}),E.apnProfiles.map((e,t)=>(0,s.jsxs)(n.eb,{value:String(t),children:[e||"(blank APN)",0===t&&" (Active)"]},"apn-".concat(t)))]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["APN PDP Type",R.apnPDPType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:R.apnPDPType&&b?b.pdp_type:E.apnPDPType,onValueChange:e=>D("apnPDPType",e),disabled:R.apnPDPType||g,children:[(0,s.jsx)(n.bq,{className:R.apnPDPType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(R.apnPDPType&&b?b.pdp_type:E.apnPDPType)?(e=>({IP:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e]||e)(R.apnPDPType&&b?b.pdp_type:E.apnPDPType):"Select PDP Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"PDP Type"}),(0,s.jsx)(n.eb,{value:"IP",children:"IPv4 Only"}),(0,s.jsx)(n.eb,{value:"IPV6",children:"IPv6 Only"}),(0,s.jsx)(n.eb,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,s.jsx)(n.eb,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(R.apnPDPType&&b?b.pdp_type:E.apnPDPType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNAutoSel",children:"MBN Profile Auto Selection"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:E.autoSelState,onValueChange:e=>D("autoSelState",e),disabled:g,children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:E.autoSelState?(e=>({0:"Disabled",1:"Enabled"})[e]||e)(E.autoSelState):"Select Auto Selection State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Auto Selection State"}),(0,s.jsx)(n.eb,{value:"1",children:"Enabled"}),(0,s.jsx)(n.eb,{value:"0",children:"Disabled"})]})})]},"auto-sel-".concat(E.autoSelState))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNProfile",children:"MBN Profile Selection"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(o.TooltipProvider,{children:(0,s.jsxs)(o.m_,{children:[(0,s.jsx)(o.k$,{children:(0,s.jsxs)(n.l6,{value:E.selectedMbnProfile||"",onValueChange:e=>D("selectedMbnProfile",e),disabled:g||"1"===E.autoSelState,children:[(0,s.jsx)(n.bq,{className:"1"===E.autoSelState?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select MBN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available MBN Profiles"}),null===(e=E.mbnProfilesList)||void 0===e?void 0:e.map((e,t)=>(0,s.jsx)(n.eb,{value:String(t),children:e},"profile-".concat(t)))]})})]})}),(0,s.jsx)(o.ZI,{children:(0,s.jsx)("p",{children:"1"===E.autoSelState&&"Disable Auto Selection to manually select a profile"})})]})})]}),(0,s.jsx)(w.w,{className:"col-span-2 my-2"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["Preferred Network Type",R.preferredNetworkType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:R.preferredNetworkType&&b?b.network_type:E.preferredNetworkType,onValueChange:e=>D("preferredNetworkType",e),disabled:R.preferredNetworkType||g,children:[(0,s.jsx)(n.bq,{className:R.preferredNetworkType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(R.preferredNetworkType&&b?b.network_type:E.preferredNetworkType)?(e=>({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[e]||e)(R.preferredNetworkType&&b?b.network_type:E.preferredNetworkType):"Select Network Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Preferred Network Type"}),(0,s.jsx)(n.eb,{value:"AUTO",children:"Automatic"}),(0,s.jsx)(n.eb,{value:"LTE",children:"LTE Only"}),(0,s.jsx)(n.eb,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,s.jsx)(n.eb,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(R.preferredNetworkType&&b?b.network_type:E.preferredNetworkType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["NR5G Mode Control",R.nr5gMode&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:E.nr5gMode,onValueChange:e=>D("nr5gMode",e),disabled:R.nr5gMode||g,children:[(0,s.jsx)(n.bq,{className:R.nr5gMode?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:E.nr5gMode?(e=>({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[e]||e)(E.nr5gMode):"Select NR5G Mode"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"NR5G Mode"}),(0,s.jsx)(n.eb,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,s.jsx)(n.eb,{value:"1",children:"NR5G-NSA Only"}),(0,s.jsx)(n.eb,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(E.nr5gMode))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"U-SIM Slot Configuration"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:E.simSlot,onValueChange:e=>D("simSlot",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:E.simSlot?"U-SIM Slot ".concat(E.simSlot):"Select U-SIM Slot"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"1",children:"U-SIM Slot 1"}),(0,s.jsx)(n.eb,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(E.simSlot))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"Cellular Functionality"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:E.cfunState,onValueChange:e=>D("cfunState",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:E.cfunState?(e=>({0:"Minimum Functionality",1:"Full Functionality",4:"Disabled RX/TX"})[e]||e)(E.cfunState):"Select CFUN State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"0",children:"Minimum Functionality"}),(0,s.jsx)(n.eb,{value:"1",children:"Full Functionality"}),(0,s.jsx)(n.eb,{value:"4",children:"Disabled RX/TX"})]})})]},"sim-slot-".concat(E.cfunState))]})]})]}),(0,s.jsx)(a.wL,{className:"grid border-t py-4",children:(0,s.jsx)(i.$,{type:"submit",disabled:N,children:N?"Saving...":"Save"})})]})}),(0,s.jsx)(S,{lteAMBR:E.lteAMBR,nr5gAMBR:E.nr5gAMBR})]})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>i,TN:()=>c,XL:()=>d});var s=r(20475),l=r(20107),a=r(29395),n=r(22250);let o=(0,a.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),i=l.forwardRef((e,t)=>{let{className:r,variant:l,...a}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(o({variant:l}),r),...a})});i.displayName="Alert";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...l})});d.displayName="AlertTitle";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...l})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var s=r(20475),l=r(20107),a=r(61837),n=r(29395),o=r(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=l.forwardRef((e,t)=>{let{className:r,variant:l,size:n,asChild:d=!1,...c}=e,u=d?a.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(i({variant:l,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>o,wL:()=>u});var s=r(20475),l=r(20107),a=r(22250);let n=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...l})});n.displayName="Card";let o=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...l})});o.displayName="CardHeader";let i=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...l})});i.displayName="CardTitle";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...l})});d.displayName="CardDescription";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...l})});c.displayName="CardContent";let u=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...l})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var s=r(20475),l=r(20107),a=r(22250);let n=l.forwardRef((e,t)=>{let{className:r,type:l,...n}=e;return(0,s.jsx)("input",{type:l,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(20475),l=r(20107),a=r(21840),n=r(29395),o=r(22250);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.b,{ref:t,className:(0,o.cn)(i(),r),...l})});d.displayName=a.b.displayName},35601:(e,t,r)=>{"use strict";r.d(t,{TR:()=>h,bq:()=>u,eb:()=>g,gC:()=>m,l6:()=>i,s3:()=>d,yv:()=>c});var s=r(20475),l=r(20107),a=r(7197),n=r(95257),o=r(22250);let i=n.bL,d=n.YJ,c=n.WT,u=l.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return(0,s.jsxs)(n.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[l,(0,s.jsx)(n.In,{asChild:!0,children:(0,s.jsx)(a.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let p=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(a.Mtm,{})})});p.displayName=n.PP.displayName;let f=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(a.D3D,{})})});f.displayName=n.wn.displayName;let m=l.forwardRef((e,t)=>{let{className:r,children:l,position:a="popper",...i}=e;return(0,s.jsx)(n.ZL,{children:(0,s.jsxs)(n.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a,...i,children:[(0,s.jsx)(p,{}),(0,s.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,s.jsx)(f,{})]})})});m.displayName=n.UC.displayName;let h=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...l})});h.displayName=n.JU.displayName;let g=l.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return(0,s.jsxs)(n.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(n.VF,{children:(0,s.jsx)(a.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(n.p4,{children:l})]})});g.displayName=n.q7.displayName,l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...l})}).displayName=n.wv.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var s=r(20475),l=r(20107),a=r(88853),n=r(22250);let o=l.forwardRef((e,t)=>{let{className:r,orientation:l="horizontal",decorative:o=!0,...i}=e;return(0,s.jsx)(a.b,{ref:t,decorative:o,orientation:l,className:(0,n.cn)("shrink-0 bg-border","horizontal"===l?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=a.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var s=r(20475),l=r(22250);function a(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>o,ZI:()=>c,k$:()=>d,m_:()=>i});var s=r(20475),l=r(20107),a=r(43048),n=r(22250);let o=a.Kq,i=a.bL,d=a.l9,c=l.forwardRef((e,t)=>{let{className:r,sideOffset:l=4,...o}=e;return(0,s.jsx)(a.UC,{ref:t,sideOffset:l,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...o})});c.displayName=a.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var s=r(20107);let l=0,a=new Map,n=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=o(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(64901),l=r(868);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>s});let s=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},88926:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let l=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),a=encodeURIComponent(l),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a);t&&(n+="&wait=1&timeout=".concat(r));let o=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let i=await o.json();if(i.error)throw Error("AT queue error: ".concat(i.error));if(t&&(null===(s=i.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return i}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var s=r(20107),l=r(34544),a=r(20475),n="horizontal",o=["horizontal","vertical"],i=s.forwardRef((e,t)=>{let{decorative:r,orientation:s=n,...i}=e,d=o.includes(s)?s:n;return(0,a.jsx)(l.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,3746,9464,3494,3048,191,6035,7358],()=>t(58669)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-319c2ca06be1536a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-319c2ca06be1536a.js new file mode 100644 index 0000000..79ab348 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-319c2ca06be1536a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{58669:(e,t,r)=>{Promise.resolve().then(r.bind(r,46142))},46142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var s=r(20475),a=r(20107),n=r(72167),l=r(35601),o=r(42541),i=r(64219),d=r(49153),c=r(36760),u=r(32857),p=r(49573),f=r(29475);let m=()=>{let[e,t]=(0,a.useState)(null),[r,s]=(0,a.useState)(!0),n=(0,a.useCallback)(async()=>{try{s(!0),t(null);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=2"),r=await e.json();console.log("Fetched cell settings data:",r);let a={currentAPN:h(r[0].response,r[1].response),apnPDPType:g(r[0].response),preferredNetworkType:x(r[2].response),nr5gMode:y(r[3].response),simSlot:v(r[4].response),cfunState:r[5].response.match(/\d+/)[0].trim()};t(a),console.log("Processed cell settings data:",a)}catch(e){console.error("Error fetching cell settings data:",e)}s(!1)},[]);return(0,a.useEffect)(()=>{n()},[n]),{data:e,isLoading:r,fetchCellSettingsData:n}},h=(e,t)=>{var r,s;let a=null===(r=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===r?void 0:r.split(",")[2].replace(/"/g,"");if(void 0===a||""===a){let e=null===(s=t.split("\n").find(e=>e.includes("+CGCONTRDP:")))||void 0===s?void 0:s.split(",")[2].replace(/"/g,"");return void 0===e||""===e?"No APN found":e}return a},g=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching PDP Type":r},x=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching network type":r},y=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching NR5G mode":r},v=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===t?void 0:t.split(":")[1].trim();return void 0===r||""===r?"Error fetching SIM slot":r};var N=r(88926);let w=()=>{let{toast:e}=(0,u.dj)(),{data:t,isLoading:r,fetchCellSettingsData:h}=m(),[g,x]=(0,a.useState)(!1),[y,v]=(0,a.useState)(!1),[w,j]=(0,a.useState)(null),[P,b]=(0,a.useState)(null),[T,S]=(0,a.useState)({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1}),[A,C]=(0,a.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:"",cfunState:""});(0,a.useEffect)(()=>{t&&!y&&(C({currentAPN:String(t.currentAPN||""),apnPDPType:String(t.apnPDPType||""),preferredNetworkType:String(t.preferredNetworkType||""),nr5gMode:String(t.nr5gMode||""),simSlot:String(t.simSlot||""),cfunState:String(t.cfunState||"")}),v(!0))},[t,y]),(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(b(t),console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);if(e){j(e);let t={currentAPN:!!e.apn,apnPDPType:!!e.pdp_type,preferredNetworkType:!!e.network_type,nr5gMode:!!(e.sa_nr5g_bands||e.nsa_nr5g_bands)};S(t),console.log("Active Profile:",e),console.log("Controlled Fields:",t)}}}}else j(null),S({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]),(0,a.useEffect)(()=>{t||v(!1)},[t]);let k=e=>{let t=[];if((e.currentAPN||e.apnPDPType)&&!T.currentAPN&&!T.apnPDPType){let r=e.apnPDPType||A.apnPDPType,s=e.currentAPN||A.currentAPN;t.push('AT+CGDCONT=1,"'.concat(r,'","').concat(s,'"'))}if(e.preferredNetworkType&&!T.preferredNetworkType){let r='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);t.push(0===t.length?"AT".concat(r):r)}if(e.nr5gMode&&!T.nr5gMode){let r='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);t.push(0===t.length?"AT".concat(r):r)}if(e.simSlot){let r="+QUIMSLOT=".concat(e.simSlot,";+COPS=2;+COPS=0");t.push(0===t.length?"AT".concat(r):r)}if(e.cfunState){let r="+CFUN=".concat(e.cfunState);t.push(0===t.length?"AT".concat(r):r)}return t.join(";")},R=(e,t)=>{T[e]||C(r=>({...r,[e]:t}))},E=async e=>{try{var t,r,s;console.log("Executing AT command:",e);let a=await (0,N.a)(e);if("error"===a.status)throw Error(a.status||"Command execution failed");if((null===(t=a.response)||void 0===t?void 0:t.status)==="error"||(null===(r=a.response)||void 0===r?void 0:r.status)==="timeout")throw Error(a.response.raw_output||"Command execution ".concat(a.response.status));return(null===(s=a.response)||void 0===s?void 0:s.status)==="success"}catch(e){throw console.error("AT command execution error:",e),e}},_=async r=>{r.preventDefault(),x(!0);try{let r={};if(Object.keys(A).forEach(e=>{A[e]===(null==t?void 0:t[e])||T[e]||(r[e]=A[e])}),0===Object.keys(r).length){e({title:"No changes detected",description:"Try changing some settings before saving"}),x(!1);return}let s=k(r);s&&await E(s),await new Promise(e=>setTimeout(e,1500)),await h(),v(!1),e({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3})}catch(t){console.error("Error saving settings:",t),e({variant:"destructive",title:"Failed to save settings!",description:t instanceof Error?t.message:"An error occurred while saving the settings"})}finally{x(!1)}};return(0,s.jsx)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:(0,s.jsx)(n.Zp,{children:(0,s.jsxs)("form",{onSubmit:_,children:[(0,s.jsxs)(n.aR,{children:[(0,s.jsx)(n.ZB,{children:"Network Settings"}),(0,s.jsx)(n.BT,{children:"Change the network settings of the device."})]}),(0,s.jsxs)(n.Wu,{children:[w&&Object.values(T).some(e=>e)&&(0,s.jsxs)(p.Fc,{className:"mb-6",children:[(0,s.jsx)(f.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(p.XL,{children:"Profile Controlled Settings"}),(0,s.jsxs)(p.TN,{children:['Some settings are currently being managed by profile "',w.name,'".']})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(d.J,{htmlFor:"APN",children:["Current APN",T.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsx)(i.p,{type:"text",id:"APN",placeholder:"Current APN",value:T.currentAPN&&w?w.apn:A.currentAPN,onChange:e=>R("currentAPN",e.target.value),disabled:T.currentAPN||r,className:T.currentAPN?"bg-muted cursor-not-allowed":""})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(d.J,{htmlFor:"APN",children:["APN PDP Type",T.apnPDPType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:T.apnPDPType&&w?w.pdp_type:A.apnPDPType,onValueChange:e=>R("apnPDPType",e),disabled:T.apnPDPType||r,children:[(0,s.jsx)(l.bq,{className:T.apnPDPType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(l.yv,{children:(T.apnPDPType&&w?w.pdp_type:A.apnPDPType)?(e=>({IP:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e]||e)(T.apnPDPType&&w?w.pdp_type:A.apnPDPType):"Select PDP Type"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"PDP Type"}),(0,s.jsx)(l.eb,{value:"IP",children:"IPv4 Only"}),(0,s.jsx)(l.eb,{value:"IPV6",children:"IPv6 Only"}),(0,s.jsx)(l.eb,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,s.jsx)(l.eb,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(T.apnPDPType&&w?w.pdp_type:A.apnPDPType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(d.J,{children:["Preferred Network Type",T.preferredNetworkType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:T.preferredNetworkType&&w?w.network_type:A.preferredNetworkType,onValueChange:e=>R("preferredNetworkType",e),disabled:T.preferredNetworkType||r,children:[(0,s.jsx)(l.bq,{className:T.preferredNetworkType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(l.yv,{children:(T.preferredNetworkType&&w?w.network_type:A.preferredNetworkType)?(e=>({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[e]||e)(T.preferredNetworkType&&w?w.network_type:A.preferredNetworkType):"Select Network Type"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"Preferred Network Type"}),(0,s.jsx)(l.eb,{value:"AUTO",children:"Automatic"}),(0,s.jsx)(l.eb,{value:"LTE",children:"LTE Only"}),(0,s.jsx)(l.eb,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,s.jsx)(l.eb,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(T.preferredNetworkType&&w?w.network_type:A.preferredNetworkType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(d.J,{children:["NR5G Mode Control",T.nr5gMode&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:A.nr5gMode,onValueChange:e=>R("nr5gMode",e),disabled:T.nr5gMode||r,children:[(0,s.jsx)(l.bq,{className:T.nr5gMode?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(l.yv,{children:A.nr5gMode?(e=>({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[e]||e)(A.nr5gMode):"Select NR5G Mode"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"NR5G Mode"}),(0,s.jsx)(l.eb,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,s.jsx)(l.eb,{value:"1",children:"NR5G-NSA Only"}),(0,s.jsx)(l.eb,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(A.nr5gMode))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d.J,{children:"U-SIM Slot Configuration"}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:A.simSlot,onValueChange:e=>R("simSlot",e),children:[(0,s.jsx)(l.bq,{children:(0,s.jsx)(l.yv,{children:A.simSlot?"U-SIM Slot ".concat(A.simSlot):"Select U-SIM Slot"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"U-SIM Slot"}),(0,s.jsx)(l.eb,{value:"1",children:"U-SIM Slot 1"}),(0,s.jsx)(l.eb,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(A.simSlot))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d.J,{children:"Cellular Functionality"}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:A.cfunState,onValueChange:e=>R("cfunState",e),children:[(0,s.jsx)(l.bq,{children:(0,s.jsx)(l.yv,{children:A.cfunState?(e=>({0:"Minimum Functionality",1:"Full Functionality",4:"Disabled RX/TX"})[e]||e)(A.cfunState):"Select CFUN State"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"U-SIM Slot"}),(0,s.jsx)(l.eb,{value:"0",children:"Minimum Functionality"}),(0,s.jsx)(l.eb,{value:"1",children:"Full Functionality"}),(0,s.jsx)(l.eb,{value:"4",children:"Disabled RX/TX"})]})})]},"sim-slot-".concat(A.cfunState))]})]})]}),(0,s.jsx)(n.wL,{className:"grid border-t py-4",children:(0,s.jsx)(o.$,{type:"submit",disabled:g,children:g?"Saving...":"Save"})})]})})})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>i,TN:()=>c,XL:()=>d});var s=r(20475),a=r(20107),n=r(29395),l=r(22250);let o=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),i=a.forwardRef((e,t)=>{let{className:r,variant:a,...n}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,l.cn)(o({variant:a}),r),...n})});i.displayName="Alert";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h5",{ref:t,className:(0,l.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})});d.displayName="AlertTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("text-sm [&_p]:leading-relaxed",r),...a})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var s=r(20475),a=r(20107),n=r(61837),l=r(29395),o=r(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:l,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(i({variant:a,size:l,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>l,aR:()=>o,wL:()=>u});var s=r(20475),a=r(20107),n=r(22250);let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});l.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...a})});o.displayName="CardHeader";let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...a})});i.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var s=r(20475),a=r(20107),n=r(22250);let l=a.forwardRef((e,t)=>{let{className:r,type:a,...l}=e;return(0,s.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...l})});l.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(20475),a=r(20107),n=r(21840),l=r(29395),o=r(22250);let i=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.b,{ref:t,className:(0,o.cn)(i(),r),...a})});d.displayName=n.b.displayName},35601:(e,t,r)=>{"use strict";r.d(t,{TR:()=>h,bq:()=>u,eb:()=>g,gC:()=>m,l6:()=>i,s3:()=>d,yv:()=>c});var s=r(20475),a=r(20107),n=r(7197),l=r(95257),o=r(22250);let i=l.bL,d=l.YJ,c=l.WT,u=a.forwardRef((e,t)=>{let{className:r,children:a,...i}=e;return(0,s.jsxs)(l.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[a,(0,s.jsx)(l.In,{asChild:!0,children:(0,s.jsx)(n.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=l.l9.displayName;let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(n.Mtm,{})})});p.displayName=l.PP.displayName;let f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(n.D3D,{})})});f.displayName=l.wn.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,position:n="popper",...i}=e;return(0,s.jsx)(l.ZL,{children:(0,s.jsxs)(l.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...i,children:[(0,s.jsx)(p,{}),(0,s.jsx)(l.LM,{className:(0,o.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,s.jsx)(f,{})]})})});m.displayName=l.UC.displayName;let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...a})});h.displayName=l.JU.displayName;let g=a.forwardRef((e,t)=>{let{className:r,children:a,...i}=e;return(0,s.jsxs)(l.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(l.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(l.p4,{children:a})]})});g.displayName=l.q7.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...a})}).displayName=l.wv.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var s=r(20475),a=r(22250);function n(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var s=r(20107);let a=0,n=new Map,l=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?l(r):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=o(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(64901),a=r(868);function n(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>s});let s=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},88926:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let a=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),n=encodeURIComponent(a),l="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(n);t&&(l+="&wait=1&timeout=".concat(r));let o=await fetch(l,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let i=await o.json();if(i.error)throw Error("AT queue error: ".concat(i.error));if(t&&(null===(s=i.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return i}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,3494,191,6035,7358],()=>t(58669)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-8d2e397d59545406.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-8d2e397d59545406.js deleted file mode 100644 index 4895373..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-8d2e397d59545406.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{37093:(e,t,r)=>{Promise.resolve().then(r.bind(r,49575))},49575:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var s=r(95155),l=r(12115),n=r(35007),a=r(50745),i=r(9246),o=r(14085),d=r(9955),c=r(15785),u=r(25488),p=r(20241),f=r(39677),m=r(48686);let h=()=>{let[e,t]=(0,l.useState)(null),[r,s]=(0,l.useState)(!0),n=(0,l.useCallback)(async()=>{try{var e,r;s(!0),t(null);let l=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=2"),n=await l.json();console.log("Fetched cell settings data:",n);let a={APNProfiles:v(n[0].response,n[8].response,n[1].response),apnPDPType:g(n[0].response),preferredNetworkType:x(n[2].response),nr5gMode:N(n[3].response),simSlot:P(n[4].response),cfunState:n[5].response.match(/\d+/)[0].trim(),autoSelState:n[6].response.match(/\d+/)[0].trim(),mbnProfilesList:n[7].response.split("\n").filter(e=>e.includes('+QMBNCFG: "List"')).map(e=>{let t=e.match(/\+QMBNCFG: "List",\d+,\d+,\d+,"([^"]+)"/);return t?t[1]:null}).filter(Boolean),selectedMbnProfile:n[7].response.split("\n").filter(e=>e.includes('QMBNCFG: "List"')).findIndex(e=>1==e.split(",")[3]).toString(),dataProfileIndex:(()=>{try{var e;if(!(null===(e=n[8])||void 0===e?void 0:e.response))return"-";let t=n[8].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"'));if(!t.length)return"-";let r=t[0].match(/\+QMAP: "WWAN",\d+,(\d+),/);return r?r[1]:"-"}catch(e){return console.error("Error extracting data profile index:",e),"-"}})(),lteAMBR:y(null===(e=n[9])||void 0===e?void 0:e.response),nr5gAMBR:b(null===(r=n[10])||void 0===r?void 0:r.response)};console.log("Processed cell settings data:",a),t(a),console.log("Processed cell settings data:",a)}catch(e){console.error("Error fetching cell settings data:",e)}s(!1)},[]);return(0,l.useEffect)(()=>{n()},[n]),{data:e,isLoading:r,fetchCellSettingsData:n}},g=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching PDP Type":r},x=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching network type":r},N=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching NR5G mode":r},P=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===t?void 0:t.split(":")[1].trim();return void 0===r||""===r?"Error fetching SIM slot":r},v=(e,t,r)=>{try{var s;let l=t.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(s=l[0])||void 0===s?void 0:s.match(/\+QMAP: "WWAN",\d+,(\d+),/),a=n?n[1]:null;console.log("Active Profile ID:",a);let i=e.split("\n").filter(e=>e.includes("+CGDCONT:")).map(e=>{let t=e.split(",");if(t.length<3)return null;let s=t[0].replace("+CGDCONT:","").trim(),l=t[1].replace(/"/g,""),n=t[2].replace(/"/g,""),i=s===a;if(i&&(!n||""===n)){console.log("Empty APN for active profile, checking CGCONTRDP");let e=r.split("\n").find(e=>{let t=e.match(/\+CGCONTRDP: (\d+),/);return t&&t[1]===s});if(e){let t=e.split(",");t.length>=3&&(n=t[2].replace(/"/g,""),console.log("Found dynamic APN from CGCONTRDP:",n))}}return{cid:s,pdpType:l,apn:n,isActive:i}}).filter(e=>null!==e);return i.sort((e,t)=>e.isActive?-1:t.isActive?1:parseInt(e.cid)-parseInt(t.cid)),console.log("APN Profiles:",i),i.map(e=>e.apn)}catch(e){return console.error("Error processing APN profiles:",e),["Error fetching APN profiles"]}},y=e=>{try{if(!e)return console.log("No data provided for LTE AMBR parsing"),[];if(!e.includes('+QNWCFG: "lte_ambr"'))return console.log("No LTE AMBR values in response"),[];let t=e.split("\n").filter(e=>e.includes('+QNWCFG: "lte_ambr"'));if(!t.length)return console.log("No LTE AMBR values found after filtering"),[];let r=[];return t.forEach(e=>{let t=e.match(/\+QNWCFG: "lte_ambr","([^"]+)",(\d+),(\d+)/);if(t&&t.length>=4){let e=t[1],s=t[2],l=t[3];r.push(e),r.push(s),r.push(l)}}),r}catch(e){return console.error("Error processing LTE AMBR values:",e),[]}},b=e=>{try{if(!e)return console.log("No data provided for NR5G AMBR parsing"),[];if(!e.includes('+QNWCFG: "nr5g_ambr"'))return console.log("No NR5G AMBR values in response"),[];let t=e.split("\n").filter(e=>e.includes('+QNWCFG: "nr5g_ambr"'));if(!t.length)return console.log("No NR5G AMBR values found after filtering"),[];let r=[];return t.forEach(e=>{let t=e.match(/\+QNWCFG: "nr5g_ambr","([^"]+)",(\d+),(\d+)/);if(t&&t.length>=4){let e=t[1],s=t[2],l=t[3];r.push(e),r.push(s),r.push(l)}}),r}catch(e){return console.error("Error processing NR5G AMBR values:",e),[]}};var j=r(89622),w=r(89282);let A=e=>{let t=parseInt(e);return isNaN(t)?"Unknown":t>=1e6?"".concat((t/1e6).toFixed(2)," Gbps"):t>=1e3?"".concat(Math.round(t/1e3)," Mbps"):"".concat(t," Kbps")},S=e=>{let{lteAMBR:t,nr5gAMBR:r}=e,l=[];for(let e=0;e0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-bold mb-2",children:"LTE AMBR"}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:l.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between border-b pb-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:e.apn}),(0,s.jsxs)("span",{className:"text-sm text-gray-500 font-semibold",children:[e.download," DL / ",e.upload," UL"]})]},"lte-".concat(t)))})]}),a.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-bold mb-2",children:"NR5G AMBR"}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:a.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between border-b pb-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:e.apn}),(0,s.jsxs)("span",{className:"text-sm text-gray-500 font-semibold",children:[e.download," DL / ",e.upload," UL"]})]},"nr5g-".concat(t)))})]}),0===l.length&&0===a.length&&(0,s.jsx)("div",{className:"text-center text-gray-500 py-4",children:"No AMBR information available"})]})}),(0,s.jsx)(n.wL,{children:(0,s.jsx)(n.BT,{children:"AMBR (Aggregate Maximum Bit Rate) is a network-enforced limit that caps the total bandwidth for non-priority data traffic (e.g., internet browsing) on LTE/5G connections. While devices can request specific AMBR values, operators may ignore these and enforce their own speed limits based on subscription plans, network policies, or congestion conditions."})})]})},T=()=>{var e;let{toast:t}=(0,p.dj)(),{data:r,isLoading:g,fetchCellSettingsData:x}=h(),[N,P]=(0,l.useState)(!1),[v,y]=(0,l.useState)(!1),[b,A]=(0,l.useState)(null),[T,M]=(0,l.useState)(null),[R,C]=(0,l.useState)({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1}),[E,I]=(0,l.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:"",cfunState:"",autoSelState:"",selectedMbnProfile:"0",mbnProfilesList:[],apnProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:"1",lteAMBR:[],nr5gAMBR:[]});(0,l.useEffect)(()=>{r&&!v&&(I({currentAPN:Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"",apnPDPType:String(r.apnPDPType||""),preferredNetworkType:String(r.preferredNetworkType||""),nr5gMode:String(r.nr5gMode||""),simSlot:String(r.simSlot||""),cfunState:String(r.cfunState||""),autoSelState:String(r.autoSelState||""),selectedMbnProfile:r.selectedMbnProfile||"0",mbnProfilesList:r.mbnProfilesList||[],apnProfiles:Array.isArray(r.APNProfiles)?r.APNProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:r.dataProfileIndex||"1",lteAMBR:r.lteAMBR||[],nr5gAMBR:r.nr5gAMBR||[]}),y(!0))},[r,v]),(0,l.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(M(t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);if(e){A(e);let t={currentAPN:!!e.apn,apnPDPType:!!e.pdp_type,preferredNetworkType:!!e.network_type,nr5gMode:!!(e.sa_nr5g_bands||e.nsa_nr5g_bands)};C(t)}}}}else A(null),C({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]),(0,l.useEffect)(()=>{r||y(!1)},[r]);let k=async e=>{let r=[];if((e.currentAPN||e.apnPDPType)&&!R.currentAPN&&!R.apnPDPType){let t=e.apnPDPType||E.apnPDPType,s=e.currentAPN||E.currentAPN,l=parseInt(E.dataProfileIndex,10);console.log("Setting APN on profile ".concat(l,' to "').concat(s,'" with type "').concat(t,'"')),r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(void 0!==e.selectedAPNProfileIndex&&e.selectedAPNProfileIndex!==E.selectedAPNProfileIndex&&E.apnProfiles.length>e.selectedAPNProfileIndex&&!R.currentAPN){let t=E.apnPDPType,s=E.apnProfiles[e.selectedAPNProfileIndex],l=parseInt(E.dataProfileIndex,10);r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(e.preferredNetworkType&&!R.preferredNetworkType){let t='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);r.push(0===r.length?"AT".concat(t):t)}if(e.nr5gMode&&!R.nr5gMode){let t='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);r.push(0===r.length?"AT".concat(t):t)}if(e.simSlot){let t="+QUIMSLOT=".concat(e.simSlot);r.push(0===r.length?"AT".concat(t):t)}if(e.cfunState){let t="+CFUN=".concat(e.cfunState);r.push(0===r.length?"AT".concat(t):t)}if(e.autoSelState){let t='+QMBNCFG="AutoSel",'.concat(e.autoSelState);r.push(0===r.length?"AT".concat(t):t)}if(e.selectedMbnProfile&&("0"===e.autoSelState||"0"===E.autoSelState)){var s;let l=parseInt(e.selectedMbnProfile),n=null===(s=E.mbnProfilesList)||void 0===s?void 0:s[l];if(n){let e='+QMBNCFG="deactivate";+QMBNCFG="select","'.concat(n,'"');r.push(0===r.length?"AT".concat(e):e),t({title:"MBN Profile Changed",description:"A full device reboot is required for this change to take effect.",duration:5e3})}}return r.join(";")},D=(e,t)=>{"string"!=typeof e||R[e]||I(r=>({...r,[e]:t}))},_=async e=>{try{var t,r,s;console.log("Executing AT command:",e);let l=await (0,j.a)(e);if("error"===l.status)throw Error(l.status||"Command execution failed");if((null===(t=l.response)||void 0===t?void 0:t.status)==="error"||(null===(r=l.response)||void 0===r?void 0:r.status)==="timeout")throw Error(l.response.raw_output||"Command execution ".concat(l.response.status));return(null===(s=l.response)||void 0===s?void 0:s.status)==="success"}catch(e){throw console.error("AT command execution error:",e),e}},B=async e=>{e.preventDefault(),P(!0);try{let e={};if(Object.keys(E).forEach(t=>{if(!R[t]&&"mbnProfilesList"!==t&&"apnProfiles"!==t){if("selectedAPNProfileIndex"===t&&0!==E.selectedAPNProfileIndex){e.selectedAPNProfileIndex=E.selectedAPNProfileIndex;return}if("selectedMbnProfile"===t&&E.selectedMbnProfile!==(null==r?void 0:r.selectedMbnProfile)&&"0"===E.autoSelState){e.selectedMbnProfile=E.selectedMbnProfile;return}if("string"==typeof E[t]){let s=E[t];if("currentAPN"===t&&(null==r?void 0:r.APNProfiles)){let t=Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"";s!==t&&(e.currentAPN=s)}else{let l=null==r?void 0:r[t];s!==l&&(e[t]=s)}}}}),0===Object.keys(e).length){t({title:"No changes detected",description:"Try changing some settings before saving"}),P(!1);return}console.log("Detected changes:",e);let s=await k(e);s&&(await _(s),(e.currentAPN||e.apnPDPType)&&(await new Promise(e=>setTimeout(e,1e3)),await _("AT+COPS=2"),await new Promise(e=>setTimeout(e,1e3)),await _("AT+COPS=0"))),await new Promise(e=>setTimeout(e,4e3)),await x(),y(!1),t({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3})}catch(e){console.error("Error saving settings:",e),t({variant:"destructive",title:"Failed to save settings!",description:e instanceof Error?e.message:"An error occurred while saving the settings"})}finally{P(!1)}};return(0,s.jsxs)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:[(0,s.jsx)(n.Zp,{children:(0,s.jsxs)("form",{onSubmit:B,children:[(0,s.jsxs)(n.aR,{children:[(0,s.jsx)(n.ZB,{children:"Network Settings"}),(0,s.jsx)(n.BT,{children:"Change the network settings of the device."})]}),(0,s.jsxs)(n.Wu,{children:[b&&Object.values(R).some(e=>e)&&(0,s.jsxs)(f.Fc,{className:"mb-6",children:[(0,s.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(f.XL,{children:"Profile Controlled Settings"}),(0,s.jsxs)(f.TN,{children:['Some settings are currently being managed by profile "',b.name,'".']})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["Current APN",R.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(d.p,{type:"text",id:"APN",placeholder:"Current APN",value:R.currentAPN&&b?b.apn:E.currentAPN,onChange:e=>D("currentAPN",e.target.value),disabled:R.currentAPN||g,className:R.currentAPN?"bg-muted cursor-not-allowed":""})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APNProfile",children:["APN Profiles",R.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(a.l6,{disabled:R.currentAPN||g||E.apnProfiles.length<=1,value:String(E.selectedAPNProfileIndex),onValueChange:e=>{let t=parseInt(e,10);t>=0&&t({...e,selectedAPNProfileIndex:t,currentAPN:e.apnProfiles[t]||""}))},children:[(0,s.jsx)(a.bq,{className:R.currentAPN||E.apnProfiles.length<=1?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(a.yv,{placeholder:"Select APN Profile"})}),(0,s.jsx)(a.gC,{children:(0,s.jsxs)(a.s3,{children:[(0,s.jsx)(a.TR,{children:"Available APNs"}),E.apnProfiles.map((e,t)=>(0,s.jsxs)(a.eb,{value:String(t),children:[e||"(blank APN)",0===t&&" (Active)"]},"apn-".concat(t)))]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["APN PDP Type",R.apnPDPType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(a.l6,{value:R.apnPDPType&&b?b.pdp_type:E.apnPDPType,onValueChange:e=>D("apnPDPType",e),disabled:R.apnPDPType||g,children:[(0,s.jsx)(a.bq,{className:R.apnPDPType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(a.yv,{children:(R.apnPDPType&&b?b.pdp_type:E.apnPDPType)?(e=>({IP:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e]||e)(R.apnPDPType&&b?b.pdp_type:E.apnPDPType):"Select PDP Type"})}),(0,s.jsx)(a.gC,{children:(0,s.jsxs)(a.s3,{children:[(0,s.jsx)(a.TR,{children:"PDP Type"}),(0,s.jsx)(a.eb,{value:"IP",children:"IPv4 Only"}),(0,s.jsx)(a.eb,{value:"IPV6",children:"IPv6 Only"}),(0,s.jsx)(a.eb,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,s.jsx)(a.eb,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(R.apnPDPType&&b?b.pdp_type:E.apnPDPType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNAutoSel",children:"MBN Profile Auto Selection"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(a.l6,{value:E.autoSelState,onValueChange:e=>D("autoSelState",e),disabled:g,children:[(0,s.jsx)(a.bq,{children:(0,s.jsx)(a.yv,{children:E.autoSelState?(e=>({0:"Disabled",1:"Enabled"})[e]||e)(E.autoSelState):"Select Auto Selection State"})}),(0,s.jsx)(a.gC,{children:(0,s.jsxs)(a.s3,{children:[(0,s.jsx)(a.TR,{children:"Auto Selection State"}),(0,s.jsx)(a.eb,{value:"1",children:"Enabled"}),(0,s.jsx)(a.eb,{value:"0",children:"Disabled"})]})})]},"auto-sel-".concat(E.autoSelState))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNProfile",children:"MBN Profile Selection"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(i.TooltipProvider,{children:(0,s.jsxs)(i.m_,{children:[(0,s.jsx)(i.k$,{children:(0,s.jsxs)(a.l6,{value:E.selectedMbnProfile||"0",onValueChange:e=>D("selectedMbnProfile",e),disabled:g||"1"===E.autoSelState,children:[(0,s.jsx)(a.bq,{className:"1"===E.autoSelState?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(a.yv,{placeholder:"Select MBN Profile"})}),(0,s.jsx)(a.gC,{children:(0,s.jsxs)(a.s3,{children:[(0,s.jsx)(a.TR,{children:"Available MBN Profiles"}),null===(e=E.mbnProfilesList)||void 0===e?void 0:e.map((e,t)=>(0,s.jsx)(a.eb,{value:String(t),children:e},"profile-".concat(t)))]})})]})}),(0,s.jsx)(i.ZI,{children:(0,s.jsx)("p",{children:"1"===E.autoSelState&&"Disable Auto Selection to manually select a profile"})})]})})]}),(0,s.jsx)(w.w,{className:"col-span-2 my-2"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["Preferred Network Type",R.preferredNetworkType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(a.l6,{value:R.preferredNetworkType&&b?b.network_type:E.preferredNetworkType,onValueChange:e=>D("preferredNetworkType",e),disabled:R.preferredNetworkType||g,children:[(0,s.jsx)(a.bq,{className:R.preferredNetworkType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(a.yv,{children:(R.preferredNetworkType&&b?b.network_type:E.preferredNetworkType)?(e=>({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[e]||e)(R.preferredNetworkType&&b?b.network_type:E.preferredNetworkType):"Select Network Type"})}),(0,s.jsx)(a.gC,{children:(0,s.jsxs)(a.s3,{children:[(0,s.jsx)(a.TR,{children:"Preferred Network Type"}),(0,s.jsx)(a.eb,{value:"AUTO",children:"Automatic"}),(0,s.jsx)(a.eb,{value:"LTE",children:"LTE Only"}),(0,s.jsx)(a.eb,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,s.jsx)(a.eb,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(R.preferredNetworkType&&b?b.network_type:E.preferredNetworkType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["NR5G Mode Control",R.nr5gMode&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(a.l6,{value:E.nr5gMode,onValueChange:e=>D("nr5gMode",e),disabled:R.nr5gMode||g,children:[(0,s.jsx)(a.bq,{className:R.nr5gMode?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(a.yv,{children:E.nr5gMode?(e=>({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[e]||e)(E.nr5gMode):"Select NR5G Mode"})}),(0,s.jsx)(a.gC,{children:(0,s.jsxs)(a.s3,{children:[(0,s.jsx)(a.TR,{children:"NR5G Mode"}),(0,s.jsx)(a.eb,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,s.jsx)(a.eb,{value:"1",children:"NR5G-NSA Only"}),(0,s.jsx)(a.eb,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(E.nr5gMode))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"U-SIM Slot Configuration"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(a.l6,{value:E.simSlot,onValueChange:e=>D("simSlot",e),children:[(0,s.jsx)(a.bq,{children:(0,s.jsx)(a.yv,{children:E.simSlot?"U-SIM Slot ".concat(E.simSlot):"Select U-SIM Slot"})}),(0,s.jsx)(a.gC,{children:(0,s.jsxs)(a.s3,{children:[(0,s.jsx)(a.TR,{children:"U-SIM Slot"}),(0,s.jsx)(a.eb,{value:"1",children:"U-SIM Slot 1"}),(0,s.jsx)(a.eb,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(E.simSlot))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"Cellular Functionality"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(a.l6,{value:E.cfunState,onValueChange:e=>D("cfunState",e),children:[(0,s.jsx)(a.bq,{children:(0,s.jsx)(a.yv,{children:E.cfunState?(e=>({0:"Minimum Functionality",1:"Full Functionality",4:"Disabled RX/TX"})[e]||e)(E.cfunState):"Select CFUN State"})}),(0,s.jsx)(a.gC,{children:(0,s.jsxs)(a.s3,{children:[(0,s.jsx)(a.TR,{children:"U-SIM Slot"}),(0,s.jsx)(a.eb,{value:"0",children:"Minimum Functionality"}),(0,s.jsx)(a.eb,{value:"1",children:"Full Functionality"}),(0,s.jsx)(a.eb,{value:"4",children:"Disabled RX/TX"})]})})]},"sim-slot-".concat(E.cfunState))]})]})]}),(0,s.jsx)(n.wL,{className:"grid border-t py-4",children:(0,s.jsx)(o.$,{type:"submit",disabled:N,children:N?"Saving...":"Save"})})]})}),(0,s.jsx)(S,{lteAMBR:E.lteAMBR,nr5gAMBR:E.nr5gAMBR})]})}},39677:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>o,TN:()=>c,XL:()=>d});var s=r(95155),l=r(12115),n=r(31027),a=r(29602);let i=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=l.forwardRef((e,t)=>{let{className:r,variant:l,...n}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,a.cn)(i({variant:l}),r),...n})});o.displayName="Alert";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h5",{ref:t,className:(0,a.cn)("mb-1 font-medium leading-none tracking-tight",r),...l})});d.displayName="AlertTitle";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("text-sm [&_p]:leading-relaxed",r),...l})});c.displayName="AlertDescription"},14085:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>o});var s=r(95155),l=r(12115),n=r(12317),a=r(31027),i=r(29602);let o=(0,a.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=l.forwardRef((e,t)=>{let{className:r,variant:l,size:a,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,s.jsx)(u,{className:(0,i.cn)(o({variant:l,size:a,className:r})),ref:t,...c})});d.displayName="Button"},35007:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>a,aR:()=>i,wL:()=>u});var s=r(95155),l=r(12115),n=r(29602);let a=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...l})});a.displayName="Card";let i=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...l})});i.displayName="CardHeader";let o=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...l})});o.displayName="CardTitle";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...l})});d.displayName="CardDescription";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...l})});c.displayName="CardContent";let u=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...l})});u.displayName="CardFooter"},9955:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var s=r(95155),l=r(12115),n=r(29602);let a=l.forwardRef((e,t)=>{let{className:r,type:l,...a}=e;return(0,s.jsx)("input",{type:l,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...a})});a.displayName="Input"},15785:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(95155),l=r(12115),n=r(46195),a=r(31027),i=r(29602);let o=(0,a.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.b,{ref:t,className:(0,i.cn)(o(),r),...l})});d.displayName=n.b.displayName},50745:(e,t,r)=>{"use strict";r.d(t,{TR:()=>h,bq:()=>u,eb:()=>g,gC:()=>m,l6:()=>o,s3:()=>d,yv:()=>c});var s=r(95155),l=r(12115),n=r(87365),a=r(63409),i=r(29602);let o=a.bL,d=a.YJ,c=a.WT,u=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,s.jsxs)(a.l9,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...o,children:[l,(0,s.jsx)(a.In,{asChild:!0,children:(0,s.jsx)(n.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=a.l9.displayName;let p=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.PP,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(n.Mtm,{})})});p.displayName=a.PP.displayName;let f=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.wn,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(n.D3D,{})})});f.displayName=a.wn.displayName;let m=l.forwardRef((e,t)=>{let{className:r,children:l,position:n="popper",...o}=e;return(0,s.jsx)(a.ZL,{children:(0,s.jsxs)(a.UC,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...o,children:[(0,s.jsx)(p,{}),(0,s.jsx)(a.LM,{className:(0,i.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,s.jsx)(f,{})]})})});m.displayName=a.UC.displayName;let h=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r),...l})});h.displayName=a.JU.displayName;let g=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,s.jsxs)(a.q7,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(a.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(a.p4,{children:l})]})});g.displayName=a.q7.displayName,l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",r),...l})}).displayName=a.wv.displayName},89282:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var s=r(95155),l=r(12115),n=r(90434),a=r(29602);let i=l.forwardRef((e,t)=>{let{className:r,orientation:l="horizontal",decorative:i=!0,...o}=e;return(0,s.jsx)(n.b,{ref:t,decorative:i,orientation:l,className:(0,a.cn)("shrink-0 bg-border","horizontal"===l?"h-[1px] w-full":"h-full w-[1px]",r),...o})});i.displayName=n.b.displayName},25488:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var s=r(95155),l=r(29602);function n(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},9246:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>i,ZI:()=>c,k$:()=>d,m_:()=>o});var s=r(95155),l=r(12115),n=r(19710),a=r(29602);let i=n.Kq,o=n.bL,d=n.l9,c=l.forwardRef((e,t)=>{let{className:r,sideOffset:l=4,...i}=e;return(0,s.jsx)(n.UC,{ref:t,sideOffset:l,className:(0,a.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i})});c.displayName=n.UC.displayName},20241:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var s=r(12115);let l=0,n=new Map,a=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?a(r):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=i(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(43463),l=r(69795);function n(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>s});let s=(0,r(67401).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},89622:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let l=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),n=encodeURIComponent(l),a="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(n);t&&(a+="&wait=1&timeout=".concat(r));let i=await fetch(a,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let o=await i.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(t&&(null===(s=o.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}},90434:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var s=r(12115),l=r(23360),n=r(95155),a="horizontal",i=["horizontal","vertical"],o=s.forwardRef((e,t)=>{let{decorative:r,orientation:s=a,...o}=e,d=i.includes(s)?s:a;return(0,n.jsx)(l.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o}},e=>{var t=t=>e(e.s=t);e.O(0,[5105,1365,7401,9895,2019,9975,9710,8441,1517,7358],()=>t(37093)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-d418fac46daf507e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-d418fac46daf507e.js new file mode 100644 index 0000000..97fdf7c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-d418fac46daf507e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{58669:(e,t,r)=>{Promise.resolve().then(r.bind(r,46142))},46142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var s=r(20475),a=r(20107),n=r(72167),l=r(35601),i=r(42541),o=r(64219),d=r(49153),c=r(36760),u=r(32857),p=r(49573),f=r(29475);let m=()=>{let[e,t]=(0,a.useState)(null),[r,s]=(0,a.useState)(!0),n=(0,a.useCallback)(async()=>{try{s(!0),t(null);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=2"),r=await e.json();console.log("Fetched cell settings data:",r);let a={currentAPN:h(r[0].response,r[1].response),apnPDPType:g(r[0].response),preferredNetworkType:x(r[2].response),nr5gMode:y(r[3].response),simSlot:N(r[4].response),cfunState:r[5].response.split(",")[1].replace(/"/g,"")};t(a),console.log("Processed cell settings data:",a)}catch(e){console.error("Error fetching cell settings data:",e)}s(!1)},[]);return(0,a.useEffect)(()=>{n()},[n]),{data:e,isLoading:r,fetchCellSettingsData:n}},h=(e,t)=>{var r,s;let a=null===(r=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===r?void 0:r.split(",")[2].replace(/"/g,"");if(void 0===a||""===a){let e=null===(s=t.split("\n").find(e=>e.includes("+CGCONTRDP:")))||void 0===s?void 0:s.split(",")[2].replace(/"/g,"");return void 0===e||""===e?"No APN found":e}return a},g=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching PDP Type":r},x=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching network type":r},y=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching NR5G mode":r},N=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===t?void 0:t.split(":")[1].trim();return void 0===r||""===r?"Error fetching SIM slot":r},v=()=>{let{toast:e}=(0,u.dj)(),{data:t,isLoading:r,fetchCellSettingsData:h}=m(),[g,x]=(0,a.useState)(!1),[y,N]=(0,a.useState)(!1),[v,w]=(0,a.useState)(null),[j,P]=(0,a.useState)(null),[b,T]=(0,a.useState)({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1}),[S,A]=(0,a.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:"",cfunState:""});(0,a.useEffect)(()=>{t&&!y&&(A({currentAPN:String(t.currentAPN||""),apnPDPType:String(t.apnPDPType||""),preferredNetworkType:String(t.preferredNetworkType||""),nr5gMode:String(t.nr5gMode||""),simSlot:String(t.simSlot||""),cfunState:String(t.cfunState||"")}),N(!0))},[t,y]),(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(P(t),console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);if(e){w(e);let t={currentAPN:!!e.apn,apnPDPType:!!e.pdp_type,preferredNetworkType:!!e.network_type,nr5gMode:!!(e.sa_nr5g_bands||e.nsa_nr5g_bands)};T(t),console.log("Active Profile:",e),console.log("Controlled Fields:",t)}}}}else w(null),T({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]),(0,a.useEffect)(()=>{t||N(!1)},[t]);let k=e=>{let t=[];if((e.currentAPN||e.apnPDPType)&&!b.currentAPN&&!b.apnPDPType){let r=e.apnPDPType||S.apnPDPType,s=e.currentAPN||S.currentAPN;t.push('AT+CGDCONT=1,"'.concat(r,'","').concat(s,'"'))}if(e.preferredNetworkType&&!b.preferredNetworkType){let r='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);t.push(0===t.length?"AT".concat(r):r)}if(e.nr5gMode&&!b.nr5gMode){let r='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);t.push(0===t.length?"AT".concat(r):r)}if(e.simSlot){let r="+QUIMSLOT=".concat(e.simSlot,";+COPS=2;+COPS=0");t.push(0===t.length?"AT".concat(r):r)}if(e.cfunState){let r="+CFUN=".concat(e.cfunState);t.push(0===t.length?"AT".concat(r):r)}return t.join(";")},R=(e,t)=>{b[e]||A(r=>({...r,[e]:t}))},C=async()=>{try{let t=await fetch("/cgi-bin/quecmanager/settings/force-rerun.sh"),r=await t.json();if("success"===r.status)e({title:"Scripts Restarted",description:"Scripts have been restarted successfully"});else if("info"===r.status)e({title:"Info",description:"No scripts were found to restart"});else throw Error("Failed to restart scripts")}catch(t){console.error("Error rerunning scripts:",t),e({variant:"destructive",title:"Script Restart Failed",description:"Failed to restart the required scripts"})}},E=async e=>{let t=encodeURIComponent(e),r=await fetch("/cgi-bin/quecmanager/at_cmd/at_queue_client?command=".concat(t,"&wait=1"));if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let s=await r.json();if("error"===s.response.status||"timeout"===s.response.status)throw Error(s.response.raw_output||"Command execution ".concat(s.response.status));return"success"===s.response.status},_=async r=>{r.preventDefault(),x(!0);try{let r={};if(Object.keys(S).forEach(e=>{S[e]===(null==t?void 0:t[e])||b[e]||(r[e]=S[e])}),0===Object.keys(r).length){e({title:"No changes detected",description:"Try changing some settings before saving"}),x(!1);return}let s=k(r);s&&await E(s),await new Promise(e=>setTimeout(e,1500)),await h(),N(!1),e({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3}),r.simSlot&&setTimeout(()=>{C()},3100)}catch(t){console.error("Error saving settings:",t),e({variant:"destructive",title:"Failed to save settings!",description:t instanceof Error?t.message:"An error occurred while saving the settings"})}finally{x(!1)}};return(0,s.jsx)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:(0,s.jsx)(n.Zp,{children:(0,s.jsxs)("form",{onSubmit:_,children:[(0,s.jsxs)(n.aR,{children:[(0,s.jsx)(n.ZB,{children:"Network Settings"}),(0,s.jsx)(n.BT,{children:"Change the network settings of the device."})]}),(0,s.jsxs)(n.Wu,{children:[v&&Object.values(b).some(e=>e)&&(0,s.jsxs)(p.Fc,{className:"mb-6",children:[(0,s.jsx)(f.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(p.XL,{children:"Profile Controlled Settings"}),(0,s.jsxs)(p.TN,{children:['Some settings are currently being managed by profile "',v.name,'".']})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(d.J,{htmlFor:"APN",children:["Current APN",b.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsx)(o.p,{type:"text",id:"APN",placeholder:"Current APN",value:b.currentAPN&&v?v.apn:S.currentAPN,onChange:e=>R("currentAPN",e.target.value),disabled:b.currentAPN||r,className:b.currentAPN?"bg-muted cursor-not-allowed":""})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(d.J,{htmlFor:"APN",children:["APN PDP Type",b.apnPDPType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:b.apnPDPType&&v?v.pdp_type:S.apnPDPType,onValueChange:e=>R("apnPDPType",e),disabled:b.apnPDPType||r,children:[(0,s.jsx)(l.bq,{className:b.apnPDPType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(l.yv,{children:(b.apnPDPType&&v?v.pdp_type:S.apnPDPType)?(e=>({IP:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e]||e)(b.apnPDPType&&v?v.pdp_type:S.apnPDPType):"Select PDP Type"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"PDP Type"}),(0,s.jsx)(l.eb,{value:"IP",children:"IPv4 Only"}),(0,s.jsx)(l.eb,{value:"IPV6",children:"IPv6 Only"}),(0,s.jsx)(l.eb,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,s.jsx)(l.eb,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(b.apnPDPType&&v?v.pdp_type:S.apnPDPType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(d.J,{children:["Preferred Network Type",b.preferredNetworkType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:b.preferredNetworkType&&v?v.network_type:S.preferredNetworkType,onValueChange:e=>R("preferredNetworkType",e),disabled:b.preferredNetworkType||r,children:[(0,s.jsx)(l.bq,{className:b.preferredNetworkType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(l.yv,{children:(b.preferredNetworkType&&v?v.network_type:S.preferredNetworkType)?(e=>({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[e]||e)(b.preferredNetworkType&&v?v.network_type:S.preferredNetworkType):"Select Network Type"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"Preferred Network Type"}),(0,s.jsx)(l.eb,{value:"AUTO",children:"Automatic"}),(0,s.jsx)(l.eb,{value:"LTE",children:"LTE Only"}),(0,s.jsx)(l.eb,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,s.jsx)(l.eb,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(b.preferredNetworkType&&v?v.network_type:S.preferredNetworkType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(d.J,{children:["NR5G Mode Control",b.nr5gMode&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:S.nr5gMode,onValueChange:e=>R("nr5gMode",e),disabled:b.nr5gMode||r,children:[(0,s.jsx)(l.bq,{className:b.nr5gMode?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(l.yv,{children:S.nr5gMode?(e=>({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[e]||e)(S.nr5gMode):"Select NR5G Mode"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"NR5G Mode"}),(0,s.jsx)(l.eb,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,s.jsx)(l.eb,{value:"1",children:"NR5G-NSA Only"}),(0,s.jsx)(l.eb,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(S.nr5gMode))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d.J,{children:"U-SIM Slot Configuration"}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:S.simSlot,onValueChange:e=>R("simSlot",e),children:[(0,s.jsx)(l.bq,{children:(0,s.jsx)(l.yv,{children:S.simSlot?"U-SIM Slot ".concat(S.simSlot):"Select U-SIM Slot"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"U-SIM Slot"}),(0,s.jsx)(l.eb,{value:"1",children:"U-SIM Slot 1"}),(0,s.jsx)(l.eb,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(S.simSlot))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d.J,{children:"Cellular Functionality"}),r?(0,s.jsx)(c.E,{className:"h-8"}):(0,s.jsxs)(l.l6,{value:S.cfunState,onValueChange:e=>R("cfunState",e),children:[(0,s.jsx)(l.bq,{children:(0,s.jsx)(l.yv,{children:S.cfunState?(e=>({0:"Minimum Functionality",1:"Full Functionality",4:"Disabled RX/TX"})[e]||e)(S.cfunState):"Select CFUN State"})}),(0,s.jsx)(l.gC,{children:(0,s.jsxs)(l.s3,{children:[(0,s.jsx)(l.TR,{children:"U-SIM Slot"}),(0,s.jsx)(l.eb,{value:"0",children:"Minimum Functionality"}),(0,s.jsx)(l.eb,{value:"1",children:"Full Functionality"}),(0,s.jsx)(l.eb,{value:"4",children:"Disabled RX/TX"})]})})]},"sim-slot-".concat(S.cfunState))]})]})]}),(0,s.jsx)(n.wL,{className:"grid border-t py-4",children:(0,s.jsx)(i.$,{type:"submit",disabled:g,children:g?"Saving...":"Save"})})]})})})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>o,TN:()=>c,XL:()=>d});var s=r(20475),a=r(20107),n=r(29395),l=r(22250);let i=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=a.forwardRef((e,t)=>{let{className:r,variant:a,...n}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,l.cn)(i({variant:a}),r),...n})});o.displayName="Alert";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h5",{ref:t,className:(0,l.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})});d.displayName="AlertTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("text-sm [&_p]:leading-relaxed",r),...a})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>o});var s=r(20475),a=r(20107),n=r(61837),l=r(29395),i=r(22250);let o=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:l,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,s.jsx)(u,{className:(0,i.cn)(o({variant:a,size:l,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>l,aR:()=>i,wL:()=>u});var s=r(20475),a=r(20107),n=r(22250);let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});l.displayName="Card";let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...a})});i.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var s=r(20475),a=r(20107),n=r(22250);let l=a.forwardRef((e,t)=>{let{className:r,type:a,...l}=e;return(0,s.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...l})});l.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(20475),a=r(20107),n=r(21840),l=r(29395),i=r(22250);let o=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.b,{ref:t,className:(0,i.cn)(o(),r),...a})});d.displayName=n.b.displayName},35601:(e,t,r)=>{"use strict";r.d(t,{TR:()=>h,bq:()=>u,eb:()=>g,gC:()=>m,l6:()=>o,s3:()=>d,yv:()=>c});var s=r(20475),a=r(20107),n=r(7197),l=r(95257),i=r(22250);let o=l.bL,d=l.YJ,c=l.WT,u=a.forwardRef((e,t)=>{let{className:r,children:a,...o}=e;return(0,s.jsxs)(l.l9,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...o,children:[a,(0,s.jsx)(l.In,{asChild:!0,children:(0,s.jsx)(n.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=l.l9.displayName;let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.PP,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(n.Mtm,{})})});p.displayName=l.PP.displayName;let f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.wn,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(n.D3D,{})})});f.displayName=l.wn.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,position:n="popper",...o}=e;return(0,s.jsx)(l.ZL,{children:(0,s.jsxs)(l.UC,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...o,children:[(0,s.jsx)(p,{}),(0,s.jsx)(l.LM,{className:(0,i.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,s.jsx)(f,{})]})})});m.displayName=l.UC.displayName;let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r),...a})});h.displayName=l.JU.displayName;let g=a.forwardRef((e,t)=>{let{className:r,children:a,...o}=e;return(0,s.jsxs)(l.q7,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(l.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(l.p4,{children:a})]})});g.displayName=l.q7.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",r),...a})}).displayName=l.wv.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var s=r(20475),a=r(22250);function n(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var s=r(20107);let a=0,n=new Map,l=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?l(r):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=i(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(64901),a=r(868);function n(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>o});var s=r(20107);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,s.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...p}=e;return(0,s.createElement)("svg",{ref:t,...l,width:a,height:a,stroke:r,strokeWidth:o?24*Number(i)/Number(a):i,className:n("lucide",d),...p},[...u.map(e=>{let[t,r]=e;return(0,s.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,s.forwardRef)((r,l)=>{let{className:o,...d}=r;return(0,s.createElement)(i,{ref:l,iconNode:t,className:n("lucide-".concat(a(e)),o),...d})});return r.displayName="".concat(e),r}},29475:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,6810,191,6035,7358],()=>t(58669)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f1027469cd65bc27.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f1027469cd65bc27.js new file mode 100644 index 0000000..bdd8cdb --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f1027469cd65bc27.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{58669:(e,t,r)=>{Promise.resolve().then(r.bind(r,46142))},46142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var s=r(20475),a=r(20107),l=r(72167),n=r(35601),o=r(85014),i=r(42541),d=r(64219),c=r(49153),u=r(36760),p=r(32857),f=r(49573),m=r(29475);let h=()=>{let[e,t]=(0,a.useState)(null),[r,s]=(0,a.useState)(!0),l=(0,a.useCallback)(async()=>{try{s(!0),t(null);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=2"),r=await e.json();console.log("Fetched cell settings data:",r);let a={currentAPN:g(r[0].response,r[1].response),apnPDPType:x(r[0].response),preferredNetworkType:v(r[2].response),nr5gMode:N(r[3].response),simSlot:y(r[4].response),cfunState:r[5].response.match(/\d+/)[0].trim(),autoSelState:r[6].response.match(/\d+/)[0].trim(),mbnProfilesList:r[7].response.split("\n").filter(e=>e.includes('+QMBNCFG: "List"')).map(e=>{let t=e.match(/\+QMBNCFG: "List",\d+,\d+,\d+,"([^"]+)"/);return t?t[1]:null}).filter(Boolean),selectedMbnProfile:""};t(a),console.log("Processed cell settings data:",a)}catch(e){console.error("Error fetching cell settings data:",e)}s(!1)},[]);return(0,a.useEffect)(()=>{l()},[l]),{data:e,isLoading:r,fetchCellSettingsData:l}},g=(e,t)=>{var r,s;let a=null===(r=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===r?void 0:r.split(",")[2].replace(/"/g,"");if(void 0===a||""===a){let e=null===(s=t.split("\n").find(e=>e.includes("+CGCONTRDP:")))||void 0===s?void 0:s.split(",")[2].replace(/"/g,"");return void 0===e||""===e?"No APN found":e}return a},x=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching PDP Type":r},v=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching network type":r},N=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching NR5G mode":r},y=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===t?void 0:t.split(":")[1].trim();return void 0===r||""===r?"Error fetching SIM slot":r};var b=r(88926),j=r(76554);let w=()=>{var e;let{toast:t}=(0,p.dj)(),{data:r,isLoading:g,fetchCellSettingsData:x}=h(),[v,N]=(0,a.useState)(!1),[y,w]=(0,a.useState)(!1),[P,S]=(0,a.useState)(null),[T,A]=(0,a.useState)(null),[C,M]=(0,a.useState)({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1}),[R,k]=(0,a.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:"",cfunState:"",autoSelState:"",selectedMbnProfile:"",mbnProfilesList:[]});(0,a.useEffect)(()=>{r&&!y&&(k({currentAPN:String(r.currentAPN||""),apnPDPType:String(r.apnPDPType||""),preferredNetworkType:String(r.preferredNetworkType||""),nr5gMode:String(r.nr5gMode||""),simSlot:String(r.simSlot||""),cfunState:String(r.cfunState||""),autoSelState:String(r.autoSelState||""),selectedMbnProfile:r.selectedMbnProfile||"",mbnProfilesList:r.mbnProfilesList||[]}),w(!0))},[r,y]),(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(A(t),console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);if(e){S(e);let t={currentAPN:!!e.apn,apnPDPType:!!e.pdp_type,preferredNetworkType:!!e.network_type,nr5gMode:!!(e.sa_nr5g_bands||e.nsa_nr5g_bands)};M(t),console.log("Active Profile:",e),console.log("Controlled Fields:",t)}}}}else S(null),M({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]),(0,a.useEffect)(()=>{r||w(!1)},[r]);let E=e=>{let r=[];if((e.currentAPN||e.apnPDPType)&&!C.currentAPN&&!C.apnPDPType){let t=e.apnPDPType||R.apnPDPType,s=e.currentAPN||R.currentAPN;r.push('AT+CGDCONT=1,"'.concat(t,'","').concat(s,'"'))}if(e.preferredNetworkType&&!C.preferredNetworkType){let t='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);r.push(0===r.length?"AT".concat(t):t)}if(e.nr5gMode&&!C.nr5gMode){let t='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);r.push(0===r.length?"AT".concat(t):t)}if(e.simSlot){let t="+QUIMSLOT=".concat(e.simSlot,";+COPS=2;+COPS=0");r.push(0===r.length?"AT".concat(t):t)}if(e.cfunState){let t="+CFUN=".concat(e.cfunState);r.push(0===r.length?"AT".concat(t):t)}if(e.autoSelState){let t='+QMBNCFG="AutoSel",'.concat(e.autoSelState);r.push(0===r.length?"AT".concat(t):t)}if(e.selectedMbnProfile&&("0"===e.autoSelState||"0"===R.autoSelState)){var s;let a=parseInt(e.selectedMbnProfile),l=null===(s=R.mbnProfilesList)||void 0===s?void 0:s[a];if(l){let e='+QMBNCFG="deactivate";+QMBNCFG="select","'.concat(l,'"');r.push(0===r.length?"AT".concat(e):e),t({title:"MBN Profile Changed",description:"A full device reboot is required for this change to take effect.",duration:5e3})}}return r.join(";")},D=(e,t)=>{C[e]||k(r=>({...r,[e]:t}))},_=async e=>{try{var t,r,s;console.log("Executing AT command:",e);let a=await (0,b.a)(e);if("error"===a.status)throw Error(a.status||"Command execution failed");if((null===(t=a.response)||void 0===t?void 0:t.status)==="error"||(null===(r=a.response)||void 0===r?void 0:r.status)==="timeout")throw Error(a.response.raw_output||"Command execution ".concat(a.response.status));return(null===(s=a.response)||void 0===s?void 0:s.status)==="success"}catch(e){throw console.error("AT command execution error:",e),e}},I=async e=>{e.preventDefault(),N(!0);try{let e={};if(Object.keys(R).forEach(t=>{if(!C[t]&&"mbnProfilesList"!==t){if("selectedMbnProfile"===t&&R.selectedMbnProfile!==(null==r?void 0:r.selectedMbnProfile)&&"0"===R.autoSelState){e.selectedMbnProfile=R.selectedMbnProfile;return}if("string"==typeof R[t]){let s=R[t],a=null==r?void 0:r[t];s!==a&&(e[t]=s)}}}),0===Object.keys(e).length){t({title:"No changes detected",description:"Try changing some settings before saving"}),N(!1);return}console.log("Detected changes:",e);let s=E(e);s&&(console.log("Executing command:",s),await _(s)),await new Promise(e=>setTimeout(e,1500)),await x(),w(!1),t({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3})}catch(e){console.error("Error saving settings:",e),t({variant:"destructive",title:"Failed to save settings!",description:e instanceof Error?e.message:"An error occurred while saving the settings"})}finally{N(!1)}};return(0,s.jsx)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:(0,s.jsx)(l.Zp,{children:(0,s.jsxs)("form",{onSubmit:I,children:[(0,s.jsxs)(l.aR,{children:[(0,s.jsx)(l.ZB,{children:"Network Settings"}),(0,s.jsx)(l.BT,{children:"Change the network settings of the device."})]}),(0,s.jsxs)(l.Wu,{children:[P&&Object.values(C).some(e=>e)&&(0,s.jsxs)(f.Fc,{className:"mb-6",children:[(0,s.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(f.XL,{children:"Profile Controlled Settings"}),(0,s.jsxs)(f.TN,{children:['Some settings are currently being managed by profile "',P.name,'".']})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["Current APN",C.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(d.p,{type:"text",id:"APN",placeholder:"Current APN",value:C.currentAPN&&P?P.apn:R.currentAPN,onChange:e=>D("currentAPN",e.target.value),disabled:C.currentAPN||g,className:C.currentAPN?"bg-muted cursor-not-allowed":""})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["APN PDP Type",C.apnPDPType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:C.apnPDPType&&P?P.pdp_type:R.apnPDPType,onValueChange:e=>D("apnPDPType",e),disabled:C.apnPDPType||g,children:[(0,s.jsx)(n.bq,{className:C.apnPDPType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(C.apnPDPType&&P?P.pdp_type:R.apnPDPType)?(e=>({IP:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e]||e)(C.apnPDPType&&P?P.pdp_type:R.apnPDPType):"Select PDP Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"PDP Type"}),(0,s.jsx)(n.eb,{value:"IP",children:"IPv4 Only"}),(0,s.jsx)(n.eb,{value:"IPV6",children:"IPv6 Only"}),(0,s.jsx)(n.eb,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,s.jsx)(n.eb,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(C.apnPDPType&&P?P.pdp_type:R.apnPDPType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNAutoSel",children:"MBN Profile Auto Selection"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:R.autoSelState,onValueChange:e=>D("autoSelState",e),disabled:g,children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:R.autoSelState?(e=>({0:"Disabled",1:"Enabled"})[e]||e)(R.autoSelState):"Select Auto Selection State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Auto Selection State"}),(0,s.jsx)(n.eb,{value:"1",children:"Enabled"}),(0,s.jsx)(n.eb,{value:"0",children:"Disabled"})]})})]},"auto-sel-".concat(R.autoSelState))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNProfile",children:"MBN Profile Selection"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(o.TooltipProvider,{children:(0,s.jsxs)(o.m_,{children:[(0,s.jsx)(o.k$,{children:(0,s.jsxs)(n.l6,{value:R.selectedMbnProfile||"",onValueChange:e=>D("selectedMbnProfile",e),disabled:g||"1"===R.autoSelState,children:[(0,s.jsx)(n.bq,{className:"1"===R.autoSelState?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select MBN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available MBN Profiles"}),null===(e=R.mbnProfilesList)||void 0===e?void 0:e.map((e,t)=>(0,s.jsx)(n.eb,{value:String(t),children:e},"profile-".concat(t)))]})})]})}),(0,s.jsx)(o.ZI,{children:(0,s.jsx)("p",{children:"1"===R.autoSelState&&"Disable Auto Selection to manually select a profile"})})]})})]}),(0,s.jsx)(j.w,{className:"col-span-2 my-2"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["Preferred Network Type",C.preferredNetworkType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:C.preferredNetworkType&&P?P.network_type:R.preferredNetworkType,onValueChange:e=>D("preferredNetworkType",e),disabled:C.preferredNetworkType||g,children:[(0,s.jsx)(n.bq,{className:C.preferredNetworkType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(C.preferredNetworkType&&P?P.network_type:R.preferredNetworkType)?(e=>({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[e]||e)(C.preferredNetworkType&&P?P.network_type:R.preferredNetworkType):"Select Network Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Preferred Network Type"}),(0,s.jsx)(n.eb,{value:"AUTO",children:"Automatic"}),(0,s.jsx)(n.eb,{value:"LTE",children:"LTE Only"}),(0,s.jsx)(n.eb,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,s.jsx)(n.eb,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(C.preferredNetworkType&&P?P.network_type:R.preferredNetworkType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["NR5G Mode Control",C.nr5gMode&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:R.nr5gMode,onValueChange:e=>D("nr5gMode",e),disabled:C.nr5gMode||g,children:[(0,s.jsx)(n.bq,{className:C.nr5gMode?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:R.nr5gMode?(e=>({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[e]||e)(R.nr5gMode):"Select NR5G Mode"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"NR5G Mode"}),(0,s.jsx)(n.eb,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,s.jsx)(n.eb,{value:"1",children:"NR5G-NSA Only"}),(0,s.jsx)(n.eb,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(R.nr5gMode))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"U-SIM Slot Configuration"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:R.simSlot,onValueChange:e=>D("simSlot",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:R.simSlot?"U-SIM Slot ".concat(R.simSlot):"Select U-SIM Slot"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"1",children:"U-SIM Slot 1"}),(0,s.jsx)(n.eb,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(R.simSlot))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"Cellular Functionality"}),g?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:R.cfunState,onValueChange:e=>D("cfunState",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:R.cfunState?(e=>({0:"Minimum Functionality",1:"Full Functionality",4:"Disabled RX/TX"})[e]||e)(R.cfunState):"Select CFUN State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"0",children:"Minimum Functionality"}),(0,s.jsx)(n.eb,{value:"1",children:"Full Functionality"}),(0,s.jsx)(n.eb,{value:"4",children:"Disabled RX/TX"})]})})]},"sim-slot-".concat(R.cfunState))]})]})]}),(0,s.jsx)(l.wL,{className:"grid border-t py-4",children:(0,s.jsx)(i.$,{type:"submit",disabled:v,children:v?"Saving...":"Save"})})]})})})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>i,TN:()=>c,XL:()=>d});var s=r(20475),a=r(20107),l=r(29395),n=r(22250);let o=(0,l.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),i=a.forwardRef((e,t)=>{let{className:r,variant:a,...l}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(o({variant:a}),r),...l})});i.displayName="Alert";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})});d.displayName="AlertTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...a})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var s=r(20475),a=r(20107),l=r(61837),n=r(29395),o=r(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:n,asChild:d=!1,...c}=e,u=d?l.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(i({variant:a,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>o,wL:()=>u});var s=r(20475),a=r(20107),l=r(22250);let n=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});n.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",r),...a})});o.displayName="CardHeader";let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h3",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",r),...a})});i.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var s=r(20475),a=r(20107),l=r(22250);let n=a.forwardRef((e,t)=>{let{className:r,type:a,...n}=e;return(0,s.jsx)("input",{type:a,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(20475),a=r(20107),l=r(21840),n=r(29395),o=r(22250);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.b,{ref:t,className:(0,o.cn)(i(),r),...a})});d.displayName=l.b.displayName},35601:(e,t,r)=>{"use strict";r.d(t,{TR:()=>h,bq:()=>u,eb:()=>g,gC:()=>m,l6:()=>i,s3:()=>d,yv:()=>c});var s=r(20475),a=r(20107),l=r(7197),n=r(95257),o=r(22250);let i=n.bL,d=n.YJ,c=n.WT,u=a.forwardRef((e,t)=>{let{className:r,children:a,...i}=e;return(0,s.jsxs)(n.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[a,(0,s.jsx)(n.In,{asChild:!0,children:(0,s.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(l.Mtm,{})})});p.displayName=n.PP.displayName;let f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(l.D3D,{})})});f.displayName=n.wn.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,position:l="popper",...i}=e;return(0,s.jsx)(n.ZL,{children:(0,s.jsxs)(n.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:l,...i,children:[(0,s.jsx)(p,{}),(0,s.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,s.jsx)(f,{})]})})});m.displayName=n.UC.displayName;let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...a})});h.displayName=n.JU.displayName;let g=a.forwardRef((e,t)=>{let{className:r,children:a,...i}=e;return(0,s.jsxs)(n.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(n.VF,{children:(0,s.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(n.p4,{children:a})]})});g.displayName=n.q7.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...a})}).displayName=n.wv.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var s=r(20475),a=r(20107),l=r(88853),n=r(22250);let o=a.forwardRef((e,t)=>{let{className:r,orientation:a="horizontal",decorative:o=!0,...i}=e;return(0,s.jsx)(l.b,{ref:t,decorative:o,orientation:a,className:(0,n.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=l.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var s=r(20475),a=r(22250);function l(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>o,ZI:()=>c,k$:()=>d,m_:()=>i});var s=r(20475),a=r(20107),l=r(43048),n=r(22250);let o=l.Kq,i=l.bL,d=l.l9,c=a.forwardRef((e,t)=>{let{className:r,sideOffset:a=4,...o}=e;return(0,s.jsx)(l.UC,{ref:t,sideOffset:a,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...o})});c.displayName=l.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var s=r(20107);let a=0,l=new Map,n=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=o(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>l});var s=r(64901),a=r(868);function l(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>s});let s=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},88926:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let a=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),l=encodeURIComponent(a),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(l);t&&(n+="&wait=1&timeout=".concat(r));let o=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let i=await o.json();if(i.error)throw Error("AT queue error: ".concat(i.error));if(t&&(null===(s=i.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return i}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var s=r(20107),a=r(34544),l=r(20475),n="horizontal",o=["horizontal","vertical"],i=s.forwardRef((e,t)=>{let{decorative:r,orientation:s=n,...i}=e,d=o.includes(s)?s:n;return(0,l.jsx)(a.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,3494,3048,191,6035,7358],()=>t(58669)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f4528f04c682eb68.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f4528f04c682eb68.js new file mode 100644 index 0000000..38a04d7 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f4528f04c682eb68.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{58669:(e,t,r)=>{Promise.resolve().then(r.bind(r,46142))},46142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>j});var s=r(20475),l=r(20107),a=r(72167),n=r(35601),o=r(85014),i=r(42541),d=r(64219),c=r(49153),u=r(36760),p=r(32857),f=r(49573),m=r(29475);let h=()=>{let[e,t]=(0,l.useState)(null),[r,s]=(0,l.useState)(!0),a=(0,l.useCallback)(async()=>{try{var e;s(!0),t(null);let r=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=2"),l=await r.json();console.log("Fetched cell settings data:",l);let a={APNProfiles:v(l[0].response,l[8].response,l[1].response),apnPDPType:x(l[0].response),preferredNetworkType:g(l[2].response),nr5gMode:P(l[3].response),simSlot:N(l[4].response),cfunState:l[5].response.match(/\d+/)[0].trim(),autoSelState:l[6].response.match(/\d+/)[0].trim(),mbnProfilesList:l[7].response.split("\n").filter(e=>e.includes('+QMBNCFG: "List"')).map(e=>{let t=e.match(/\+QMBNCFG: "List",\d+,\d+,\d+,"([^"]+)"/);return t?t[1]:null}).filter(Boolean),selectedMbnProfile:"",dataProfileIndex:null===(e=l[8].response.split("\n").find(e=>e.includes('+QMAP: "WWAN"')))||void 0===e?void 0:e.split(",")[1].trim().replace("+QMAP:","")};t(a),console.log("Processed cell settings data:",a)}catch(e){console.error("Error fetching cell settings data:",e)}s(!1)},[]);return(0,l.useEffect)(()=>{a()},[a]),{data:e,isLoading:r,fetchCellSettingsData:a}},x=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching PDP Type":r},g=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching network type":r},P=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching NR5G mode":r},N=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===t?void 0:t.split(":")[1].trim();return void 0===r||""===r?"Error fetching SIM slot":r},v=(e,t,r)=>{if(void 0!==e&&""!==e){var s,l,a;let n;let o=null===(s=t.split("\n").find(e=>e.includes('+QMAP: "WWAN"')))||void 0===s?void 0:s.split(",")[1].trim().replace("+QMAP:","");if(void 0===o||""===o)return;let i=e.split("\n").filter(e=>e.includes("+CGDCONT:")).map(e=>{let t=e.match(/\+CGDCONT:\s*\d+,"[^"]+","([^"]*)"/);return t?t[1]:e.match(/\+CGDCONT:\s*\d+,"[^"]+",""/)?"":null}).filter(e=>null!==e);void 0!==(n=""===i[0]?null===(l=r.split("\n").find(e=>e.includes("+CGCONTRDP:")))||void 0===l?void 0:l.split(",")[2].replace(/"/g,""):null===(a=r.split("\n").find(e=>e.includes("+CGCONTRDP:")))||void 0===a?void 0:a.split(",")[2].replace(/"/g,""))&&""!==n&&(i[0]=n);let d=parseInt(o,10)-1;if(d>=0&&d{var e;let{toast:t}=(0,p.dj)(),{data:r,isLoading:x,fetchCellSettingsData:g}=h(),[P,N]=(0,l.useState)(!1),[v,j]=(0,l.useState)(!1),[w,S]=(0,l.useState)(null),[A,T]=(0,l.useState)(null),[C,M]=(0,l.useState)({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1}),[I,R]=(0,l.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:"",cfunState:"",autoSelState:"",selectedMbnProfile:"",mbnProfilesList:[],apnProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:"1"});(0,l.useEffect)(()=>{if(r&&!v){let e={currentAPN:Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"",apnPDPType:String(r.apnPDPType||""),preferredNetworkType:String(r.preferredNetworkType||""),nr5gMode:String(r.nr5gMode||""),simSlot:String(r.simSlot||""),cfunState:String(r.cfunState||""),autoSelState:String(r.autoSelState||""),selectedMbnProfile:r.selectedMbnProfile||"",mbnProfilesList:r.mbnProfilesList||[],apnProfiles:Array.isArray(r.APNProfiles)?r.APNProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:r.dataProfileIndex||"1"};console.log("Data profile index from hook:",r.dataProfileIndex),R(e),j(!0)}},[r,v]),(0,l.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(T(t),console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);if(e){S(e);let t={currentAPN:!!e.apn,apnPDPType:!!e.pdp_type,preferredNetworkType:!!e.network_type,nr5gMode:!!(e.sa_nr5g_bands||e.nsa_nr5g_bands)};M(t),console.log("Active Profile:",e),console.log("Controlled Fields:",t)}}}}else S(null),M({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]),(0,l.useEffect)(()=>{r||j(!1)},[r]);let k=async e=>{let r=[];if((e.currentAPN||e.apnPDPType)&&!C.currentAPN&&!C.apnPDPType){let t=e.apnPDPType||I.apnPDPType,s=e.currentAPN||I.currentAPN,l=parseInt(I.dataProfileIndex,10);console.log("Setting APN on profile ".concat(l,' to "').concat(s,'" with type "').concat(t,'"')),r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(void 0!==e.selectedAPNProfileIndex&&e.selectedAPNProfileIndex!==I.selectedAPNProfileIndex&&I.apnProfiles.length>e.selectedAPNProfileIndex&&!C.currentAPN){let t=I.apnPDPType,s=I.apnProfiles[e.selectedAPNProfileIndex],l=parseInt(I.dataProfileIndex,10);console.log("Setting APN profile ".concat(l,' to "').concat(s,'" with type "').concat(t,'"')),r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(e.preferredNetworkType&&!C.preferredNetworkType){let t='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);r.push(0===r.length?"AT".concat(t):t)}if(e.nr5gMode&&!C.nr5gMode){let t='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);r.push(0===r.length?"AT".concat(t):t)}if(e.simSlot){let t="+QUIMSLOT=".concat(e.simSlot,";+COPS=2;+COPS=0");r.push(0===r.length?"AT".concat(t):t)}if(e.cfunState){let t="+CFUN=".concat(e.cfunState);r.push(0===r.length?"AT".concat(t):t)}if(e.autoSelState){let t='+QMBNCFG="AutoSel",'.concat(e.autoSelState);r.push(0===r.length?"AT".concat(t):t)}if(e.selectedMbnProfile&&("0"===e.autoSelState||"0"===I.autoSelState)){var s;let l=parseInt(e.selectedMbnProfile),a=null===(s=I.mbnProfilesList)||void 0===s?void 0:s[l];if(a){let e='+QMBNCFG="deactivate";+QMBNCFG="select","'.concat(a,'"');r.push(0===r.length?"AT".concat(e):e),t({title:"MBN Profile Changed",description:"A full device reboot is required for this change to take effect.",duration:5e3})}}return r.join(";")},E=(e,t)=>{"string"!=typeof e||C[e]||R(r=>({...r,[e]:t}))},D=async e=>{try{var t,r,s;console.log("Executing AT command:",e);let l=await (0,y.a)(e);if("error"===l.status)throw Error(l.status||"Command execution failed");if((null===(t=l.response)||void 0===t?void 0:t.status)==="error"||(null===(r=l.response)||void 0===r?void 0:r.status)==="timeout")throw Error(l.response.raw_output||"Command execution ".concat(l.response.status));return(null===(s=l.response)||void 0===s?void 0:s.status)==="success"}catch(e){throw console.error("AT command execution error:",e),e}},_=async e=>{e.preventDefault(),N(!0);try{let e={};if(Object.keys(I).forEach(t=>{if(!C[t]&&"mbnProfilesList"!==t&&"apnProfiles"!==t){if("selectedAPNProfileIndex"===t&&0!==I.selectedAPNProfileIndex){e.selectedAPNProfileIndex=I.selectedAPNProfileIndex;return}if("selectedMbnProfile"===t&&I.selectedMbnProfile!==(null==r?void 0:r.selectedMbnProfile)&&"0"===I.autoSelState){e.selectedMbnProfile=I.selectedMbnProfile;return}if("string"==typeof I[t]){let s=I[t];if("currentAPN"===t&&(null==r?void 0:r.APNProfiles)){let t=Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"";s!==t&&(e.currentAPN=s)}else{let l=null==r?void 0:r[t];s!==l&&(e[t]=s)}}}}),0===Object.keys(e).length){t({title:"No changes detected",description:"Try changing some settings before saving"}),N(!1);return}console.log("Detected changes:",e);let s=await k(e);s&&(console.log("Executing command:",s),await D(s),await D("AT+COPS=2"),await new Promise(e=>setTimeout(e,1e3)),await D("AT+COPS=0")),await new Promise(e=>setTimeout(e,2e3)),await g(),j(!1),t({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3})}catch(e){console.error("Error saving settings:",e),t({variant:"destructive",title:"Failed to save settings!",description:e instanceof Error?e.message:"An error occurred while saving the settings"})}finally{N(!1)}};return(0,s.jsx)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:(0,s.jsx)(a.Zp,{children:(0,s.jsxs)("form",{onSubmit:_,children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"Network Settings"}),(0,s.jsx)(a.BT,{children:"Change the network settings of the device."})]}),(0,s.jsxs)(a.Wu,{children:[w&&Object.values(C).some(e=>e)&&(0,s.jsxs)(f.Fc,{className:"mb-6",children:[(0,s.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(f.XL,{children:"Profile Controlled Settings"}),(0,s.jsxs)(f.TN,{children:['Some settings are currently being managed by profile "',w.name,'".']})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["Current APN",C.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(d.p,{type:"text",id:"APN",placeholder:"Current APN",value:C.currentAPN&&w?w.apn:I.currentAPN,onChange:e=>E("currentAPN",e.target.value),disabled:C.currentAPN||x,className:C.currentAPN?"bg-muted cursor-not-allowed":""})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APNProfile",children:["APN Profiles",C.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{disabled:C.currentAPN||x||I.apnProfiles.length<=1,value:String(I.selectedAPNProfileIndex),onValueChange:e=>{let t=parseInt(e,10);t>=0&&t({...e,selectedAPNProfileIndex:t,currentAPN:e.apnProfiles[t]||""}))},children:[(0,s.jsx)(n.bq,{className:C.currentAPN||I.apnProfiles.length<=1?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select APN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available APNs"}),I.apnProfiles.map((e,t)=>(0,s.jsxs)(n.eb,{value:String(t),children:[e||"(blank APN)",0===t&&" (Active)"]},"apn-".concat(t)))]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["APN PDP Type",C.apnPDPType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:C.apnPDPType&&w?w.pdp_type:I.apnPDPType,onValueChange:e=>E("apnPDPType",e),disabled:C.apnPDPType||x,children:[(0,s.jsx)(n.bq,{className:C.apnPDPType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(C.apnPDPType&&w?w.pdp_type:I.apnPDPType)?(e=>({IP:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e]||e)(C.apnPDPType&&w?w.pdp_type:I.apnPDPType):"Select PDP Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"PDP Type"}),(0,s.jsx)(n.eb,{value:"IP",children:"IPv4 Only"}),(0,s.jsx)(n.eb,{value:"IPV6",children:"IPv6 Only"}),(0,s.jsx)(n.eb,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,s.jsx)(n.eb,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(C.apnPDPType&&w?w.pdp_type:I.apnPDPType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNAutoSel",children:"MBN Profile Auto Selection"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.autoSelState,onValueChange:e=>E("autoSelState",e),disabled:x,children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.autoSelState?(e=>({0:"Disabled",1:"Enabled"})[e]||e)(I.autoSelState):"Select Auto Selection State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Auto Selection State"}),(0,s.jsx)(n.eb,{value:"1",children:"Enabled"}),(0,s.jsx)(n.eb,{value:"0",children:"Disabled"})]})})]},"auto-sel-".concat(I.autoSelState))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNProfile",children:"MBN Profile Selection"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(o.TooltipProvider,{children:(0,s.jsxs)(o.m_,{children:[(0,s.jsx)(o.k$,{children:(0,s.jsxs)(n.l6,{value:I.selectedMbnProfile||"",onValueChange:e=>E("selectedMbnProfile",e),disabled:x||"1"===I.autoSelState,children:[(0,s.jsx)(n.bq,{className:"1"===I.autoSelState?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select MBN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available MBN Profiles"}),null===(e=I.mbnProfilesList)||void 0===e?void 0:e.map((e,t)=>(0,s.jsx)(n.eb,{value:String(t),children:e},"profile-".concat(t)))]})})]})}),(0,s.jsx)(o.ZI,{children:(0,s.jsx)("p",{children:"1"===I.autoSelState&&"Disable Auto Selection to manually select a profile"})})]})})]}),(0,s.jsx)(b.w,{className:"col-span-2 my-2"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["Preferred Network Type",C.preferredNetworkType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType,onValueChange:e=>E("preferredNetworkType",e),disabled:C.preferredNetworkType||x,children:[(0,s.jsx)(n.bq,{className:C.preferredNetworkType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType)?(e=>({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[e]||e)(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType):"Select Network Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Preferred Network Type"}),(0,s.jsx)(n.eb,{value:"AUTO",children:"Automatic"}),(0,s.jsx)(n.eb,{value:"LTE",children:"LTE Only"}),(0,s.jsx)(n.eb,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,s.jsx)(n.eb,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["NR5G Mode Control",C.nr5gMode&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.nr5gMode,onValueChange:e=>E("nr5gMode",e),disabled:C.nr5gMode||x,children:[(0,s.jsx)(n.bq,{className:C.nr5gMode?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:I.nr5gMode?(e=>({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[e]||e)(I.nr5gMode):"Select NR5G Mode"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"NR5G Mode"}),(0,s.jsx)(n.eb,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,s.jsx)(n.eb,{value:"1",children:"NR5G-NSA Only"}),(0,s.jsx)(n.eb,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(I.nr5gMode))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"U-SIM Slot Configuration"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.simSlot,onValueChange:e=>E("simSlot",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.simSlot?"U-SIM Slot ".concat(I.simSlot):"Select U-SIM Slot"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"1",children:"U-SIM Slot 1"}),(0,s.jsx)(n.eb,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(I.simSlot))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"Cellular Functionality"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.cfunState,onValueChange:e=>E("cfunState",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.cfunState?(e=>({0:"Minimum Functionality",1:"Full Functionality",4:"Disabled RX/TX"})[e]||e)(I.cfunState):"Select CFUN State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"0",children:"Minimum Functionality"}),(0,s.jsx)(n.eb,{value:"1",children:"Full Functionality"}),(0,s.jsx)(n.eb,{value:"4",children:"Disabled RX/TX"})]})})]},"sim-slot-".concat(I.cfunState))]})]})]}),(0,s.jsx)(a.wL,{className:"grid border-t py-4",children:(0,s.jsx)(i.$,{type:"submit",disabled:P,children:P?"Saving...":"Save"})})]})})})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>i,TN:()=>c,XL:()=>d});var s=r(20475),l=r(20107),a=r(29395),n=r(22250);let o=(0,a.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),i=l.forwardRef((e,t)=>{let{className:r,variant:l,...a}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(o({variant:l}),r),...a})});i.displayName="Alert";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...l})});d.displayName="AlertTitle";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...l})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var s=r(20475),l=r(20107),a=r(61837),n=r(29395),o=r(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=l.forwardRef((e,t)=>{let{className:r,variant:l,size:n,asChild:d=!1,...c}=e,u=d?a.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(i({variant:l,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>o,wL:()=>u});var s=r(20475),l=r(20107),a=r(22250);let n=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...l})});n.displayName="Card";let o=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...l})});o.displayName="CardHeader";let i=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...l})});i.displayName="CardTitle";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...l})});d.displayName="CardDescription";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...l})});c.displayName="CardContent";let u=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...l})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var s=r(20475),l=r(20107),a=r(22250);let n=l.forwardRef((e,t)=>{let{className:r,type:l,...n}=e;return(0,s.jsx)("input",{type:l,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(20475),l=r(20107),a=r(21840),n=r(29395),o=r(22250);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.b,{ref:t,className:(0,o.cn)(i(),r),...l})});d.displayName=a.b.displayName},35601:(e,t,r)=>{"use strict";r.d(t,{TR:()=>h,bq:()=>u,eb:()=>x,gC:()=>m,l6:()=>i,s3:()=>d,yv:()=>c});var s=r(20475),l=r(20107),a=r(7197),n=r(95257),o=r(22250);let i=n.bL,d=n.YJ,c=n.WT,u=l.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return(0,s.jsxs)(n.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[l,(0,s.jsx)(n.In,{asChild:!0,children:(0,s.jsx)(a.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let p=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(a.Mtm,{})})});p.displayName=n.PP.displayName;let f=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(a.D3D,{})})});f.displayName=n.wn.displayName;let m=l.forwardRef((e,t)=>{let{className:r,children:l,position:a="popper",...i}=e;return(0,s.jsx)(n.ZL,{children:(0,s.jsxs)(n.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a,...i,children:[(0,s.jsx)(p,{}),(0,s.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,s.jsx)(f,{})]})})});m.displayName=n.UC.displayName;let h=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...l})});h.displayName=n.JU.displayName;let x=l.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return(0,s.jsxs)(n.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(n.VF,{children:(0,s.jsx)(a.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(n.p4,{children:l})]})});x.displayName=n.q7.displayName,l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...l})}).displayName=n.wv.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var s=r(20475),l=r(20107),a=r(88853),n=r(22250);let o=l.forwardRef((e,t)=>{let{className:r,orientation:l="horizontal",decorative:o=!0,...i}=e;return(0,s.jsx)(a.b,{ref:t,decorative:o,orientation:l,className:(0,n.cn)("shrink-0 bg-border","horizontal"===l?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=a.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var s=r(20475),l=r(22250);function a(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>o,ZI:()=>c,k$:()=>d,m_:()=>i});var s=r(20475),l=r(20107),a=r(43048),n=r(22250);let o=a.Kq,i=a.bL,d=a.l9,c=l.forwardRef((e,t)=>{let{className:r,sideOffset:l=4,...o}=e;return(0,s.jsx)(a.UC,{ref:t,sideOffset:l,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...o})});c.displayName=a.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var s=r(20107);let l=0,a=new Map,n=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=o(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(64901),l=r(868);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>s});let s=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},88926:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let l=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),a=encodeURIComponent(l),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a);t&&(n+="&wait=1&timeout=".concat(r));let o=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let i=await o.json();if(i.error)throw Error("AT queue error: ".concat(i.error));if(t&&(null===(s=i.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return i}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var s=r(20107),l=r(34544),a=r(20475),n="horizontal",o=["horizontal","vertical"],i=s.forwardRef((e,t)=>{let{decorative:r,orientation:s=n,...i}=e,d=o.includes(s)?s:n;return(0,a.jsx)(l.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,3494,3048,191,6035,7358],()=>t(58669)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f8c128893a9f6cd1.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f8c128893a9f6cd1.js new file mode 100644 index 0000000..8b9951c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-f8c128893a9f6cd1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{58669:(e,t,r)=>{Promise.resolve().then(r.bind(r,46142))},46142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>j});var s=r(20475),l=r(20107),a=r(72167),n=r(35601),i=r(85014),o=r(42541),d=r(64219),c=r(49153),u=r(36760),p=r(32857),f=r(49573),m=r(29475);let h=()=>{let[e,t]=(0,l.useState)(null),[r,s]=(0,l.useState)(!0),a=(0,l.useCallback)(async()=>{try{var e;s(!0),t(null);let r=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=2"),l=await r.json();console.log("Fetched cell settings data:",l);let a={APNProfiles:v(l[0].response,l[8].response,l[1].response),apnPDPType:x(l[0].response),preferredNetworkType:g(l[2].response),nr5gMode:P(l[3].response),simSlot:N(l[4].response),cfunState:l[5].response.match(/\d+/)[0].trim(),autoSelState:l[6].response.match(/\d+/)[0].trim(),mbnProfilesList:l[7].response.split("\n").filter(e=>e.includes('+QMBNCFG: "List"')).map(e=>{let t=e.match(/\+QMBNCFG: "List",\d+,\d+,\d+,"([^"]+)"/);return t?t[1]:null}).filter(Boolean),selectedMbnProfile:"",dataProfileIndex:null===(e=l[8].response.split("\n").find(e=>e.includes('+QMAP: "WWAN"')))||void 0===e?void 0:e.split(",")[1].trim().replace("+QMAP:","")};t(a),console.log("Processed cell settings data:",a)}catch(e){console.error("Error fetching cell settings data:",e)}s(!1)},[]);return(0,l.useEffect)(()=>{a()},[a]),{data:e,isLoading:r,fetchCellSettingsData:a}},x=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching PDP Type":r},g=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching network type":r},P=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching NR5G mode":r},N=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===t?void 0:t.split(":")[1].trim();return void 0===r||""===r?"Error fetching SIM slot":r},v=(e,t,r)=>{var s,l,a,n,i;if(!(null==e?void 0:e.trim()))return;let o=t.split("\n").find(e=>e.includes('+QMAP: "WWAN"')),d=null==o?void 0:null===(a=o.split(","))||void 0===a?void 0:null===(l=a[1])||void 0===l?void 0:null===(s=l.trim())||void 0===s?void 0:s.replace("+QMAP:","");if(!d)return;let c=e.split("\n").filter(e=>e.includes("+CGDCONT:")).map(e=>{let t=e.match(/\+CGDCONT:\s*\d+,"[^"]+","([^"]*)"/);return t?t[1]:null}).filter(Boolean);if(!c.length)return;if(""===c[0]){let e=r.split("\n").find(e=>e.includes("+CGCONTRDP:")),t=null==e?void 0:null===(i=e.split(","))||void 0===i?void 0:null===(n=i[2])||void 0===n?void 0:n.replace(/"/g,"");t&&(c[0]=t)}let u=parseInt(d,10)-1;return u>=0&&u{var e;let{toast:t}=(0,p.dj)(),{data:r,isLoading:x,fetchCellSettingsData:g}=h(),[P,N]=(0,l.useState)(!1),[v,j]=(0,l.useState)(!1),[w,S]=(0,l.useState)(null),[A,T]=(0,l.useState)(null),[C,M]=(0,l.useState)({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1}),[I,R]=(0,l.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:"",cfunState:"",autoSelState:"",selectedMbnProfile:"",mbnProfilesList:[],apnProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:"1"});(0,l.useEffect)(()=>{r&&!v&&(R({currentAPN:Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"",apnPDPType:String(r.apnPDPType||""),preferredNetworkType:String(r.preferredNetworkType||""),nr5gMode:String(r.nr5gMode||""),simSlot:String(r.simSlot||""),cfunState:String(r.cfunState||""),autoSelState:String(r.autoSelState||""),selectedMbnProfile:r.selectedMbnProfile||"",mbnProfilesList:r.mbnProfilesList||[],apnProfiles:Array.isArray(r.APNProfiles)?r.APNProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:r.dataProfileIndex||"1"}),j(!0))},[r,v]),(0,l.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(T(t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);if(e){S(e);let t={currentAPN:!!e.apn,apnPDPType:!!e.pdp_type,preferredNetworkType:!!e.network_type,nr5gMode:!!(e.sa_nr5g_bands||e.nsa_nr5g_bands)};M(t)}}}}else S(null),M({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]),(0,l.useEffect)(()=>{r||j(!1)},[r]);let k=async e=>{let r=[];if((e.currentAPN||e.apnPDPType)&&!C.currentAPN&&!C.apnPDPType){let t=e.apnPDPType||I.apnPDPType,s=e.currentAPN||I.currentAPN,l=parseInt(I.dataProfileIndex,10);r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(void 0!==e.selectedAPNProfileIndex&&e.selectedAPNProfileIndex!==I.selectedAPNProfileIndex&&I.apnProfiles.length>e.selectedAPNProfileIndex&&!C.currentAPN){let t=I.apnPDPType,s=I.apnProfiles[e.selectedAPNProfileIndex],l=parseInt(I.dataProfileIndex,10);r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(e.preferredNetworkType&&!C.preferredNetworkType){let t='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);r.push(0===r.length?"AT".concat(t):t)}if(e.nr5gMode&&!C.nr5gMode){let t='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);r.push(0===r.length?"AT".concat(t):t)}if(e.simSlot){let t="+QUIMSLOT=".concat(e.simSlot,";+COPS=2;+COPS=0");r.push(0===r.length?"AT".concat(t):t)}if(e.cfunState){let t="+CFUN=".concat(e.cfunState);r.push(0===r.length?"AT".concat(t):t)}if(e.autoSelState){let t='+QMBNCFG="AutoSel",'.concat(e.autoSelState);r.push(0===r.length?"AT".concat(t):t)}if(e.selectedMbnProfile&&("0"===e.autoSelState||"0"===I.autoSelState)){var s;let l=parseInt(e.selectedMbnProfile),a=null===(s=I.mbnProfilesList)||void 0===s?void 0:s[l];if(a){let e='+QMBNCFG="deactivate";+QMBNCFG="select","'.concat(a,'"');r.push(0===r.length?"AT".concat(e):e),t({title:"MBN Profile Changed",description:"A full device reboot is required for this change to take effect.",duration:5e3})}}return r.join(";")},E=(e,t)=>{"string"!=typeof e||C[e]||R(r=>({...r,[e]:t}))},D=async e=>{try{var t,r,s;console.log("Executing AT command:",e);let l=await (0,y.a)(e);if("error"===l.status)throw Error(l.status||"Command execution failed");if((null===(t=l.response)||void 0===t?void 0:t.status)==="error"||(null===(r=l.response)||void 0===r?void 0:r.status)==="timeout")throw Error(l.response.raw_output||"Command execution ".concat(l.response.status));return(null===(s=l.response)||void 0===s?void 0:s.status)==="success"}catch(e){throw console.error("AT command execution error:",e),e}},_=async e=>{e.preventDefault(),N(!0);try{let e={};if(Object.keys(I).forEach(t=>{if(!C[t]&&"mbnProfilesList"!==t&&"apnProfiles"!==t){if("selectedAPNProfileIndex"===t&&0!==I.selectedAPNProfileIndex){e.selectedAPNProfileIndex=I.selectedAPNProfileIndex;return}if("selectedMbnProfile"===t&&I.selectedMbnProfile!==(null==r?void 0:r.selectedMbnProfile)&&"0"===I.autoSelState){e.selectedMbnProfile=I.selectedMbnProfile;return}if("string"==typeof I[t]){let s=I[t];if("currentAPN"===t&&(null==r?void 0:r.APNProfiles)){let t=Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"";s!==t&&(e.currentAPN=s)}else{let l=null==r?void 0:r[t];s!==l&&(e[t]=s)}}}}),0===Object.keys(e).length){t({title:"No changes detected",description:"Try changing some settings before saving"}),N(!1);return}console.log("Detected changes:",e);let s=await k(e);s&&(await D(s),(e.currentAPN||e.apnPDPType)&&(await new Promise(e=>setTimeout(e,1e3)),await D("AT+COPS=2"),await new Promise(e=>setTimeout(e,1e3)),await D("AT+COPS=0"))),await new Promise(e=>setTimeout(e,2e3)),await g(),j(!1),t({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3})}catch(e){console.error("Error saving settings:",e),t({variant:"destructive",title:"Failed to save settings!",description:e instanceof Error?e.message:"An error occurred while saving the settings"})}finally{N(!1)}};return(0,s.jsx)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:(0,s.jsx)(a.Zp,{children:(0,s.jsxs)("form",{onSubmit:_,children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"Network Settings"}),(0,s.jsx)(a.BT,{children:"Change the network settings of the device."})]}),(0,s.jsxs)(a.Wu,{children:[w&&Object.values(C).some(e=>e)&&(0,s.jsxs)(f.Fc,{className:"mb-6",children:[(0,s.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(f.XL,{children:"Profile Controlled Settings"}),(0,s.jsxs)(f.TN,{children:['Some settings are currently being managed by profile "',w.name,'".']})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["Current APN",C.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(d.p,{type:"text",id:"APN",placeholder:"Current APN",value:C.currentAPN&&w?w.apn:I.currentAPN,onChange:e=>E("currentAPN",e.target.value),disabled:C.currentAPN||x,className:C.currentAPN?"bg-muted cursor-not-allowed":""})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APNProfile",children:["APN Profiles",C.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{disabled:C.currentAPN||x||I.apnProfiles.length<=1,value:String(I.selectedAPNProfileIndex),onValueChange:e=>{let t=parseInt(e,10);t>=0&&t({...e,selectedAPNProfileIndex:t,currentAPN:e.apnProfiles[t]||""}))},children:[(0,s.jsx)(n.bq,{className:C.currentAPN||I.apnProfiles.length<=1?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select APN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available APNs"}),I.apnProfiles.map((e,t)=>(0,s.jsxs)(n.eb,{value:String(t),children:[e||"(blank APN)",0===t&&" (Active)"]},"apn-".concat(t)))]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["APN PDP Type",C.apnPDPType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:C.apnPDPType&&w?w.pdp_type:I.apnPDPType,onValueChange:e=>E("apnPDPType",e),disabled:C.apnPDPType||x,children:[(0,s.jsx)(n.bq,{className:C.apnPDPType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(C.apnPDPType&&w?w.pdp_type:I.apnPDPType)?(e=>({IP:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e]||e)(C.apnPDPType&&w?w.pdp_type:I.apnPDPType):"Select PDP Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"PDP Type"}),(0,s.jsx)(n.eb,{value:"IP",children:"IPv4 Only"}),(0,s.jsx)(n.eb,{value:"IPV6",children:"IPv6 Only"}),(0,s.jsx)(n.eb,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,s.jsx)(n.eb,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(C.apnPDPType&&w?w.pdp_type:I.apnPDPType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNAutoSel",children:"MBN Profile Auto Selection"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.autoSelState,onValueChange:e=>E("autoSelState",e),disabled:x,children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.autoSelState?(e=>({0:"Disabled",1:"Enabled"})[e]||e)(I.autoSelState):"Select Auto Selection State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Auto Selection State"}),(0,s.jsx)(n.eb,{value:"1",children:"Enabled"}),(0,s.jsx)(n.eb,{value:"0",children:"Disabled"})]})})]},"auto-sel-".concat(I.autoSelState))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNProfile",children:"MBN Profile Selection"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(i.TooltipProvider,{children:(0,s.jsxs)(i.m_,{children:[(0,s.jsx)(i.k$,{children:(0,s.jsxs)(n.l6,{value:I.selectedMbnProfile||"",onValueChange:e=>E("selectedMbnProfile",e),disabled:x||"1"===I.autoSelState,children:[(0,s.jsx)(n.bq,{className:"1"===I.autoSelState?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select MBN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available MBN Profiles"}),null===(e=I.mbnProfilesList)||void 0===e?void 0:e.map((e,t)=>(0,s.jsx)(n.eb,{value:String(t),children:e},"profile-".concat(t)))]})})]})}),(0,s.jsx)(i.ZI,{children:(0,s.jsx)("p",{children:"1"===I.autoSelState&&"Disable Auto Selection to manually select a profile"})})]})})]}),(0,s.jsx)(b.w,{className:"col-span-2 my-2"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["Preferred Network Type",C.preferredNetworkType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType,onValueChange:e=>E("preferredNetworkType",e),disabled:C.preferredNetworkType||x,children:[(0,s.jsx)(n.bq,{className:C.preferredNetworkType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType)?(e=>({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[e]||e)(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType):"Select Network Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Preferred Network Type"}),(0,s.jsx)(n.eb,{value:"AUTO",children:"Automatic"}),(0,s.jsx)(n.eb,{value:"LTE",children:"LTE Only"}),(0,s.jsx)(n.eb,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,s.jsx)(n.eb,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["NR5G Mode Control",C.nr5gMode&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.nr5gMode,onValueChange:e=>E("nr5gMode",e),disabled:C.nr5gMode||x,children:[(0,s.jsx)(n.bq,{className:C.nr5gMode?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:I.nr5gMode?(e=>({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[e]||e)(I.nr5gMode):"Select NR5G Mode"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"NR5G Mode"}),(0,s.jsx)(n.eb,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,s.jsx)(n.eb,{value:"1",children:"NR5G-NSA Only"}),(0,s.jsx)(n.eb,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(I.nr5gMode))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"U-SIM Slot Configuration"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.simSlot,onValueChange:e=>E("simSlot",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.simSlot?"U-SIM Slot ".concat(I.simSlot):"Select U-SIM Slot"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"1",children:"U-SIM Slot 1"}),(0,s.jsx)(n.eb,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(I.simSlot))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"Cellular Functionality"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.cfunState,onValueChange:e=>E("cfunState",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.cfunState?(e=>({0:"Minimum Functionality",1:"Full Functionality",4:"Disabled RX/TX"})[e]||e)(I.cfunState):"Select CFUN State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"0",children:"Minimum Functionality"}),(0,s.jsx)(n.eb,{value:"1",children:"Full Functionality"}),(0,s.jsx)(n.eb,{value:"4",children:"Disabled RX/TX"})]})})]},"sim-slot-".concat(I.cfunState))]})]})]}),(0,s.jsx)(a.wL,{className:"grid border-t py-4",children:(0,s.jsx)(o.$,{type:"submit",disabled:P,children:P?"Saving...":"Save"})})]})})})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>o,TN:()=>c,XL:()=>d});var s=r(20475),l=r(20107),a=r(29395),n=r(22250);let i=(0,a.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=l.forwardRef((e,t)=>{let{className:r,variant:l,...a}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(i({variant:l}),r),...a})});o.displayName="Alert";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...l})});d.displayName="AlertTitle";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...l})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>o});var s=r(20475),l=r(20107),a=r(61837),n=r(29395),i=r(22250);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=l.forwardRef((e,t)=>{let{className:r,variant:l,size:n,asChild:d=!1,...c}=e,u=d?a.DX:"button";return(0,s.jsx)(u,{className:(0,i.cn)(o({variant:l,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>n,aR:()=>i,wL:()=>u});var s=r(20475),l=r(20107),a=r(22250);let n=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...l})});n.displayName="Card";let i=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...l})});i.displayName="CardHeader";let o=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...l})});o.displayName="CardTitle";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...l})});d.displayName="CardDescription";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...l})});c.displayName="CardContent";let u=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...l})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var s=r(20475),l=r(20107),a=r(22250);let n=l.forwardRef((e,t)=>{let{className:r,type:l,...n}=e;return(0,s.jsx)("input",{type:l,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(20475),l=r(20107),a=r(21840),n=r(29395),i=r(22250);let o=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.b,{ref:t,className:(0,i.cn)(o(),r),...l})});d.displayName=a.b.displayName},35601:(e,t,r)=>{"use strict";r.d(t,{TR:()=>h,bq:()=>u,eb:()=>x,gC:()=>m,l6:()=>o,s3:()=>d,yv:()=>c});var s=r(20475),l=r(20107),a=r(7197),n=r(95257),i=r(22250);let o=n.bL,d=n.YJ,c=n.WT,u=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,s.jsxs)(n.l9,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...o,children:[l,(0,s.jsx)(n.In,{asChild:!0,children:(0,s.jsx)(a.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let p=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.PP,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(a.Mtm,{})})});p.displayName=n.PP.displayName;let f=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.wn,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(a.D3D,{})})});f.displayName=n.wn.displayName;let m=l.forwardRef((e,t)=>{let{className:r,children:l,position:a="popper",...o}=e;return(0,s.jsx)(n.ZL,{children:(0,s.jsxs)(n.UC,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a,...o,children:[(0,s.jsx)(p,{}),(0,s.jsx)(n.LM,{className:(0,i.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,s.jsx)(f,{})]})})});m.displayName=n.UC.displayName;let h=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r),...l})});h.displayName=n.JU.displayName;let x=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,s.jsxs)(n.q7,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(n.VF,{children:(0,s.jsx)(a.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(n.p4,{children:l})]})});x.displayName=n.q7.displayName,l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",r),...l})}).displayName=n.wv.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var s=r(20475),l=r(20107),a=r(88853),n=r(22250);let i=l.forwardRef((e,t)=>{let{className:r,orientation:l="horizontal",decorative:i=!0,...o}=e;return(0,s.jsx)(a.b,{ref:t,decorative:i,orientation:l,className:(0,n.cn)("shrink-0 bg-border","horizontal"===l?"h-[1px] w-full":"h-full w-[1px]",r),...o})});i.displayName=a.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var s=r(20475),l=r(22250);function a(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>i,ZI:()=>c,k$:()=>d,m_:()=>o});var s=r(20475),l=r(20107),a=r(43048),n=r(22250);let i=a.Kq,o=a.bL,d=a.l9,c=l.forwardRef((e,t)=>{let{className:r,sideOffset:l=4,...i}=e;return(0,s.jsx)(a.UC,{ref:t,sideOffset:l,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i})});c.displayName=a.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var s=r(20107);let l=0,a=new Map,n=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=i(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(64901),l=r(868);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>s});let s=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},88926:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let l=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),a=encodeURIComponent(l),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a);t&&(n+="&wait=1&timeout=".concat(r));let i=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let o=await i.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(t&&(null===(s=o.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var s=r(20107),l=r(34544),a=r(20475),n="horizontal",i=["horizontal","vertical"],o=s.forwardRef((e,t)=>{let{decorative:r,orientation:s=n,...o}=e,d=i.includes(s)?s:n;return(0,a.jsx)(l.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,3746,9464,3494,3048,191,6035,7358],()=>t(58669)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-fb669639af2bc9ef.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-fb669639af2bc9ef.js new file mode 100644 index 0000000..5ac2daf --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-fb669639af2bc9ef.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{58669:(e,t,r)=>{Promise.resolve().then(r.bind(r,46142))},46142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>j});var s=r(20475),l=r(20107),a=r(72167),n=r(35601),i=r(85014),o=r(42541),d=r(64219),c=r(49153),u=r(36760),p=r(32857),f=r(49573),m=r(29475);let h=()=>{let[e,t]=(0,l.useState)(null),[r,s]=(0,l.useState)(!0),a=(0,l.useCallback)(async()=>{try{var e;s(!0),t(null);let r=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=2"),l=await r.json();console.log("Fetched cell settings data:",l);let a={APNProfiles:v(l[0].response,l[8].response,l[1].response),apnPDPType:x(l[0].response),preferredNetworkType:g(l[2].response),nr5gMode:P(l[3].response),simSlot:N(l[4].response),cfunState:l[5].response.match(/\d+/)[0].trim(),autoSelState:l[6].response.match(/\d+/)[0].trim(),mbnProfilesList:l[7].response.split("\n").filter(e=>e.includes('+QMBNCFG: "List"')).map(e=>{let t=e.match(/\+QMBNCFG: "List",\d+,\d+,\d+,"([^"]+)"/);return t?t[1]:null}).filter(Boolean),selectedMbnProfile:"",dataProfileIndex:null===(e=l[8].response.split("\n").find(e=>e.includes('+QMAP: "WWAN"')))||void 0===e?void 0:e.split(",")[1].trim().replace("+QMAP:","")};t(a),console.log("Processed cell settings data:",a)}catch(e){console.error("Error fetching cell settings data:",e)}s(!1)},[]);return(0,l.useEffect)(()=>{a()},[a]),{data:e,isLoading:r,fetchCellSettingsData:a}},x=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching PDP Type":r},g=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching network type":r},P=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===t?void 0:t.split(",")[1].replace(/"/g,"");return void 0===r||""===r?"Error fetching NR5G mode":r},N=e=>{var t;let r=null===(t=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===t?void 0:t.split(":")[1].trim();return void 0===r||""===r?"Error fetching SIM slot":r},v=(e,t,r)=>{var s,l,a,n,i;if(!(null==e?void 0:e.trim()))return;let o=t.split("\n").find(e=>e.includes('+QMAP: "WWAN"')),d=null==o?void 0:null===(a=o.split(","))||void 0===a?void 0:null===(l=a[1])||void 0===l?void 0:null===(s=l.trim())||void 0===s?void 0:s.replace("+QMAP:","");if(!d)return;let c=e.split("\n").filter(e=>e.includes("+CGDCONT:")).map(e=>{let t=e.match(/\+CGDCONT:\s*\d+,"[^"]+","([^"]*)"/);return t?t[1]:null}).filter(Boolean);if(!c.length)return;if(""===c[0]){let e=r.split("\n").find(e=>e.includes("+CGCONTRDP:")),t=null==e?void 0:null===(i=e.split(","))||void 0===i?void 0:null===(n=i[2])||void 0===n?void 0:n.replace(/"/g,"");t&&(c[0]=t)}let u=parseInt(d,10)-1;return u>=0&&u{var e;let{toast:t}=(0,p.dj)(),{data:r,isLoading:x,fetchCellSettingsData:g}=h(),[P,N]=(0,l.useState)(!1),[v,j]=(0,l.useState)(!1),[w,S]=(0,l.useState)(null),[A,T]=(0,l.useState)(null),[C,M]=(0,l.useState)({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1}),[I,R]=(0,l.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:"",cfunState:"",autoSelState:"",selectedMbnProfile:"",mbnProfilesList:[],apnProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:"1"});(0,l.useEffect)(()=>{r&&!v&&(R({currentAPN:Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"",apnPDPType:String(r.apnPDPType||""),preferredNetworkType:String(r.preferredNetworkType||""),nr5gMode:String(r.nr5gMode||""),simSlot:String(r.simSlot||""),cfunState:String(r.cfunState||""),autoSelState:String(r.autoSelState||""),selectedMbnProfile:r.selectedMbnProfile||"",mbnProfilesList:r.mbnProfilesList||[],apnProfiles:Array.isArray(r.APNProfiles)?r.APNProfiles:[],selectedAPNProfileIndex:0,dataProfileIndex:r.dataProfileIndex||"1"}),j(!0))},[r,v]),(0,l.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(T(t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);if(e){S(e);let t={currentAPN:!!e.apn,apnPDPType:!!e.pdp_type,preferredNetworkType:!!e.network_type,nr5gMode:!!(e.sa_nr5g_bands||e.nsa_nr5g_bands)};M(t)}}}}else S(null),M({currentAPN:!1,apnPDPType:!1,preferredNetworkType:!1,nr5gMode:!1})}catch(e){console.error("Error fetching profile data:",e)}})()},[]),(0,l.useEffect)(()=>{r||j(!1)},[r]);let k=async e=>{let r=[];if((e.currentAPN||e.apnPDPType)&&!C.currentAPN&&!C.apnPDPType){let t=e.apnPDPType||I.apnPDPType,s=e.currentAPN||I.currentAPN,l=parseInt(I.dataProfileIndex,10);r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(void 0!==e.selectedAPNProfileIndex&&e.selectedAPNProfileIndex!==I.selectedAPNProfileIndex&&I.apnProfiles.length>e.selectedAPNProfileIndex&&!C.currentAPN){let t=I.apnPDPType,s=I.apnProfiles[e.selectedAPNProfileIndex],l=parseInt(I.dataProfileIndex,10);r.push("AT+CGDCONT=".concat(l,',"').concat(t,'","').concat(s,'"'))}if(e.preferredNetworkType&&!C.preferredNetworkType){let t='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);r.push(0===r.length?"AT".concat(t):t)}if(e.nr5gMode&&!C.nr5gMode){let t='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);r.push(0===r.length?"AT".concat(t):t)}if(e.simSlot){let t="+QUIMSLOT=".concat(e.simSlot,";+COPS=2;+COPS=0");r.push(0===r.length?"AT".concat(t):t)}if(e.cfunState){let t="+CFUN=".concat(e.cfunState);r.push(0===r.length?"AT".concat(t):t)}if(e.autoSelState){let t='+QMBNCFG="AutoSel",'.concat(e.autoSelState);r.push(0===r.length?"AT".concat(t):t)}if(e.selectedMbnProfile&&("0"===e.autoSelState||"0"===I.autoSelState)){var s;let l=parseInt(e.selectedMbnProfile),a=null===(s=I.mbnProfilesList)||void 0===s?void 0:s[l];if(a){let e='+QMBNCFG="deactivate";+QMBNCFG="select","'.concat(a,'"');r.push(0===r.length?"AT".concat(e):e),t({title:"MBN Profile Changed",description:"A full device reboot is required for this change to take effect.",duration:5e3})}}return r.join(";")},E=(e,t)=>{"string"!=typeof e||C[e]||R(r=>({...r,[e]:t}))},D=async e=>{try{var t,r,s;let l=await (0,y.a)(e);if("error"===l.status)throw Error(l.status||"Command execution failed");if((null===(t=l.response)||void 0===t?void 0:t.status)==="error"||(null===(r=l.response)||void 0===r?void 0:r.status)==="timeout")throw Error(l.response.raw_output||"Command execution ".concat(l.response.status));return(null===(s=l.response)||void 0===s?void 0:s.status)==="success"}catch(e){throw console.error("AT command execution error:",e),e}},_=async e=>{e.preventDefault(),N(!0);try{let e={};if(Object.keys(I).forEach(t=>{if(!C[t]&&"mbnProfilesList"!==t&&"apnProfiles"!==t){if("selectedAPNProfileIndex"===t&&0!==I.selectedAPNProfileIndex){e.selectedAPNProfileIndex=I.selectedAPNProfileIndex;return}if("selectedMbnProfile"===t&&I.selectedMbnProfile!==(null==r?void 0:r.selectedMbnProfile)&&"0"===I.autoSelState){e.selectedMbnProfile=I.selectedMbnProfile;return}if("string"==typeof I[t]){let s=I[t];if("currentAPN"===t&&(null==r?void 0:r.APNProfiles)){let t=Array.isArray(r.APNProfiles)&&r.APNProfiles.length>0?r.APNProfiles[0]:"";s!==t&&(e.currentAPN=s)}else{let l=null==r?void 0:r[t];s!==l&&(e[t]=s)}}}}),0===Object.keys(e).length){t({title:"No changes detected",description:"Try changing some settings before saving"}),N(!1);return}let s=await k(e);s&&(await D(s),await D("AT+COPS=2"),await new Promise(e=>setTimeout(e,1e3)),await D("AT+COPS=0")),await new Promise(e=>setTimeout(e,2e3)),await g(),j(!1),t({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3})}catch(e){console.error("Error saving settings:",e),t({variant:"destructive",title:"Failed to save settings!",description:e instanceof Error?e.message:"An error occurred while saving the settings"})}finally{N(!1)}};return(0,s.jsx)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:(0,s.jsx)(a.Zp,{children:(0,s.jsxs)("form",{onSubmit:_,children:[(0,s.jsxs)(a.aR,{children:[(0,s.jsx)(a.ZB,{children:"Network Settings"}),(0,s.jsx)(a.BT,{children:"Change the network settings of the device."})]}),(0,s.jsxs)(a.Wu,{children:[w&&Object.values(C).some(e=>e)&&(0,s.jsxs)(f.Fc,{className:"mb-6",children:[(0,s.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(f.XL,{children:"Profile Controlled Settings"}),(0,s.jsxs)(f.TN,{children:['Some settings are currently being managed by profile "',w.name,'".']})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["Current APN",C.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(d.p,{type:"text",id:"APN",placeholder:"Current APN",value:C.currentAPN&&w?w.apn:I.currentAPN,onChange:e=>E("currentAPN",e.target.value),disabled:C.currentAPN||x,className:C.currentAPN?"bg-muted cursor-not-allowed":""})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APNProfile",children:["APN Profiles",C.currentAPN&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{disabled:C.currentAPN||x||I.apnProfiles.length<=1,value:String(I.selectedAPNProfileIndex),onValueChange:e=>{let t=parseInt(e,10);t>=0&&t({...e,selectedAPNProfileIndex:t,currentAPN:e.apnProfiles[t]||""}))},children:[(0,s.jsx)(n.bq,{className:C.currentAPN||I.apnProfiles.length<=1?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select APN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available APNs"}),I.apnProfiles.map((e,t)=>(0,s.jsxs)(n.eb,{value:String(t),children:[e||"(blank APN)",0===t&&" (Active)"]},"apn-".concat(t)))]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{htmlFor:"APN",children:["APN PDP Type",C.apnPDPType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:C.apnPDPType&&w?w.pdp_type:I.apnPDPType,onValueChange:e=>E("apnPDPType",e),disabled:C.apnPDPType||x,children:[(0,s.jsx)(n.bq,{className:C.apnPDPType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(C.apnPDPType&&w?w.pdp_type:I.apnPDPType)?(e=>({IP:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e]||e)(C.apnPDPType&&w?w.pdp_type:I.apnPDPType):"Select PDP Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"PDP Type"}),(0,s.jsx)(n.eb,{value:"IP",children:"IPv4 Only"}),(0,s.jsx)(n.eb,{value:"IPV6",children:"IPv6 Only"}),(0,s.jsx)(n.eb,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,s.jsx)(n.eb,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(C.apnPDPType&&w?w.pdp_type:I.apnPDPType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNAutoSel",children:"MBN Profile Auto Selection"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.autoSelState,onValueChange:e=>E("autoSelState",e),disabled:x,children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.autoSelState?(e=>({0:"Disabled",1:"Enabled"})[e]||e)(I.autoSelState):"Select Auto Selection State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Auto Selection State"}),(0,s.jsx)(n.eb,{value:"1",children:"Enabled"}),(0,s.jsx)(n.eb,{value:"0",children:"Disabled"})]})})]},"auto-sel-".concat(I.autoSelState))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{htmlFor:"MBNProfile",children:"MBN Profile Selection"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsx)(i.TooltipProvider,{children:(0,s.jsxs)(i.m_,{children:[(0,s.jsx)(i.k$,{children:(0,s.jsxs)(n.l6,{value:I.selectedMbnProfile||"",onValueChange:e=>E("selectedMbnProfile",e),disabled:x||"1"===I.autoSelState,children:[(0,s.jsx)(n.bq,{className:"1"===I.autoSelState?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{placeholder:"Select MBN Profile"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Available MBN Profiles"}),null===(e=I.mbnProfilesList)||void 0===e?void 0:e.map((e,t)=>(0,s.jsx)(n.eb,{value:String(t),children:e},"profile-".concat(t)))]})})]})}),(0,s.jsx)(i.ZI,{children:(0,s.jsx)("p",{children:"1"===I.autoSelState&&"Disable Auto Selection to manually select a profile"})})]})})]}),(0,s.jsx)(b.w,{className:"col-span-2 my-2"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["Preferred Network Type",C.preferredNetworkType&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType,onValueChange:e=>E("preferredNetworkType",e),disabled:C.preferredNetworkType||x,children:[(0,s.jsx)(n.bq,{className:C.preferredNetworkType?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType)?(e=>({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[e]||e)(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType):"Select Network Type"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"Preferred Network Type"}),(0,s.jsx)(n.eb,{value:"AUTO",children:"Automatic"}),(0,s.jsx)(n.eb,{value:"LTE",children:"LTE Only"}),(0,s.jsx)(n.eb,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,s.jsx)(n.eb,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(C.preferredNetworkType&&w?w.network_type:I.preferredNetworkType))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(c.J,{children:["NR5G Mode Control",C.nr5gMode&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.nr5gMode,onValueChange:e=>E("nr5gMode",e),disabled:C.nr5gMode||x,children:[(0,s.jsx)(n.bq,{className:C.nr5gMode?"bg-muted cursor-not-allowed":"",children:(0,s.jsx)(n.yv,{children:I.nr5gMode?(e=>({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[e]||e)(I.nr5gMode):"Select NR5G Mode"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"NR5G Mode"}),(0,s.jsx)(n.eb,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,s.jsx)(n.eb,{value:"1",children:"NR5G-NSA Only"}),(0,s.jsx)(n.eb,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(I.nr5gMode))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"U-SIM Slot Configuration"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.simSlot,onValueChange:e=>E("simSlot",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.simSlot?"U-SIM Slot ".concat(I.simSlot):"Select U-SIM Slot"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"1",children:"U-SIM Slot 1"}),(0,s.jsx)(n.eb,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(I.simSlot))]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(c.J,{children:"Cellular Functionality"}),x?(0,s.jsx)(u.E,{className:"h-8"}):(0,s.jsxs)(n.l6,{value:I.cfunState,onValueChange:e=>E("cfunState",e),children:[(0,s.jsx)(n.bq,{children:(0,s.jsx)(n.yv,{children:I.cfunState?(e=>({0:"Minimum Functionality",1:"Full Functionality",4:"Disabled RX/TX"})[e]||e)(I.cfunState):"Select CFUN State"})}),(0,s.jsx)(n.gC,{children:(0,s.jsxs)(n.s3,{children:[(0,s.jsx)(n.TR,{children:"U-SIM Slot"}),(0,s.jsx)(n.eb,{value:"0",children:"Minimum Functionality"}),(0,s.jsx)(n.eb,{value:"1",children:"Full Functionality"}),(0,s.jsx)(n.eb,{value:"4",children:"Disabled RX/TX"})]})})]},"sim-slot-".concat(I.cfunState))]})]})]}),(0,s.jsx)(a.wL,{className:"grid border-t py-4",children:(0,s.jsx)(o.$,{type:"submit",disabled:P,children:P?"Saving...":"Save"})})]})})})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>o,TN:()=>c,XL:()=>d});var s=r(20475),l=r(20107),a=r(29395),n=r(22250);let i=(0,a.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=l.forwardRef((e,t)=>{let{className:r,variant:l,...a}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(i({variant:l}),r),...a})});o.displayName="Alert";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...l})});d.displayName="AlertTitle";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...l})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>o});var s=r(20475),l=r(20107),a=r(61837),n=r(29395),i=r(22250);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=l.forwardRef((e,t)=>{let{className:r,variant:l,size:n,asChild:d=!1,...c}=e,u=d?a.DX:"button";return(0,s.jsx)(u,{className:(0,i.cn)(o({variant:l,size:n,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>n,aR:()=>i,wL:()=>u});var s=r(20475),l=r(20107),a=r(22250);let n=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...l})});n.displayName="Card";let i=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...l})});i.displayName="CardHeader";let o=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...l})});o.displayName="CardTitle";let d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...l})});d.displayName="CardDescription";let c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...l})});c.displayName="CardContent";let u=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...l})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var s=r(20475),l=r(20107),a=r(22250);let n=l.forwardRef((e,t)=>{let{className:r,type:l,...n}=e;return(0,s.jsx)("input",{type:l,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(20475),l=r(20107),a=r(21840),n=r(29395),i=r(22250);let o=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.b,{ref:t,className:(0,i.cn)(o(),r),...l})});d.displayName=a.b.displayName},35601:(e,t,r)=>{"use strict";r.d(t,{TR:()=>h,bq:()=>u,eb:()=>x,gC:()=>m,l6:()=>o,s3:()=>d,yv:()=>c});var s=r(20475),l=r(20107),a=r(7197),n=r(95257),i=r(22250);let o=n.bL,d=n.YJ,c=n.WT,u=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,s.jsxs)(n.l9,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...o,children:[l,(0,s.jsx)(n.In,{asChild:!0,children:(0,s.jsx)(a.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let p=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.PP,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(a.Mtm,{})})});p.displayName=n.PP.displayName;let f=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.wn,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...l,children:(0,s.jsx)(a.D3D,{})})});f.displayName=n.wn.displayName;let m=l.forwardRef((e,t)=>{let{className:r,children:l,position:a="popper",...o}=e;return(0,s.jsx)(n.ZL,{children:(0,s.jsxs)(n.UC,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a,...o,children:[(0,s.jsx)(p,{}),(0,s.jsx)(n.LM,{className:(0,i.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,s.jsx)(f,{})]})})});m.displayName=n.UC.displayName;let h=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r),...l})});h.displayName=n.JU.displayName;let x=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,s.jsxs)(n.q7,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(n.VF,{children:(0,s.jsx)(a.Srz,{className:"h-4 w-4"})})}),(0,s.jsx)(n.p4,{children:l})]})});x.displayName=n.q7.displayName,l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(n.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",r),...l})}).displayName=n.wv.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var s=r(20475),l=r(20107),a=r(88853),n=r(22250);let i=l.forwardRef((e,t)=>{let{className:r,orientation:l="horizontal",decorative:i=!0,...o}=e;return(0,s.jsx)(a.b,{ref:t,decorative:i,orientation:l,className:(0,n.cn)("shrink-0 bg-border","horizontal"===l?"h-[1px] w-full":"h-full w-[1px]",r),...o})});i.displayName=a.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var s=r(20475),l=r(22250);function a(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>i,ZI:()=>c,k$:()=>d,m_:()=>o});var s=r(20475),l=r(20107),a=r(43048),n=r(22250);let i=a.Kq,o=a.bL,d=a.l9,c=l.forwardRef((e,t)=>{let{className:r,sideOffset:l=4,...i}=e;return(0,s.jsx)(a.UC,{ref:t,sideOffset:l,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i})});c.displayName=a.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var s=r(20107);let l=0,a=new Map,n=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=i(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(64901),l=r(868);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>s});let s=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},88926:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let l=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),a=encodeURIComponent(l),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(a);t&&(n+="&wait=1&timeout=".concat(r));let i=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let o=await i.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(t&&(null===(s=o.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var s=r(20107),l=r(34544),a=r(20475),n="horizontal",i=["horizontal","vertical"],o=s.forwardRef((e,t)=>{let{decorative:r,orientation:s=n,...o}=e,d=i.includes(s)?s:n;return(0,a.jsx)(l.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,3494,3048,191,6035,7358],()=>t(58669)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-177937aa4101948c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-177937aa4101948c.js new file mode 100644 index 0000000..57fdb7b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-177937aa4101948c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5665],{5853:(e,s,_)=>{Promise.resolve().then(_.bind(_,87133))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,7133,191,6035,7358],()=>s(5853)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-b0b1901c61524def.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-b0b1901c61524def.js new file mode 100644 index 0000000..20b28e1 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-b0b1901c61524def.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5665],{5853:(e,s,_)=>{Promise.resolve().then(_.bind(_,19496))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,9496,191,6035,7358],()=>s(5853)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-b4fce1314caa0d3f.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-b4fce1314caa0d3f.js new file mode 100644 index 0000000..131aec9 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-b4fce1314caa0d3f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5665],{5853:(e,s,_)=>{Promise.resolve().then(_.bind(_,87133))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,2487,1209,191,6035,7358],()=>s(5853)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-c29bc828653b6a24.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-c29bc828653b6a24.js deleted file mode 100644 index d87156f..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-c29bc828653b6a24.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5665],{28853:(e,s,_)=>{Promise.resolve().then(_.bind(_,68373))}},e=>{var s=s=>e(e.s=s);e.O(0,[5105,1365,7401,9895,2019,9975,6586,3838,8441,1517,7358],()=>s(28853)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-c36099a3656d9687.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-c36099a3656d9687.js new file mode 100644 index 0000000..a7994f0 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-c36099a3656d9687.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5665],{5853:(e,t,s)=>{Promise.resolve().then(s.bind(s,19496))},19496:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>j});var a=s(20475),r=s(20107),l=s(72167),i=s(35601),o=s(42541),n=s(50049),d=s(64219),c=s(49153),u=s(21906),m=s(29475),p=s(52161),h=s(97801),f=s(32857),v=s(49573),g=s(39997);let x=(0,g.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var w=s(98969);let N=(0,g.A)("Clock1",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 8",key:"12zbmj"}]]),b=(0,g.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),y=e=>{let{loading:t,scheduleData:s,onStartTimeChange:i,onEndTimeChange:n,onSchedulingToggle:u}=e,[p,h]=(0,r.useState)({text:"Disabled",color:"text-red-600",icon:x}),f=()=>{if(!s.enabled){h({text:"Disabled",color:"text-red-600",icon:x});return}let e=new Date,t=60*e.getHours()+e.getMinutes(),[a,r]=s.startTime.split(":").map(Number),[l,i]=s.endTime.split(":").map(Number),o=60*a+r,n=60*l+i;o<=n?t>=o&&t<=n?h({text:"Active",color:"text-green-600",icon:w.A}):h({text:"Inactive",color:"text-yellow-500",icon:N}):t>=o||t<=n?h({text:"Active",color:"text-green-600",icon:w.A}):h({text:"Inactive",color:"text-yellow-500",icon:N})},g=()=>{s.active?h({text:"Active",color:"text-green-600",icon:w.A}):s.enabled&&!s.active?h({text:"Inactive",color:"text-yellow-500",icon:N}):h({text:"Disabled",color:"text-red-600",icon:x})};(0,r.useEffect)(()=>{g();let e=setInterval(f,6e4);return()=>{clearInterval(e)}},[s]);let y=p.icon;return(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsxs)(l.ZB,{className:"flex items-center justify-between",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{children:"Cell Locking Scheduler"})}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(y,{className:"h-4 w-4 mr-1 ".concat(p.color)}),(0,a.jsx)("div",{className:"text-sm text-gray-500",children:p.text})]})]}),(0,a.jsx)(l.BT,{children:"Schedule the device to lock to specific cells at certain times."})]}),(0,a.jsxs)(l.Wu,{children:[s.enabled&&(0,a.jsxs)(v.Fc,{className:"mb-6",children:[(0,a.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(v.XL,{children:"Scheduled Cell Locking Active"}),(0,a.jsx)(v.TN,{children:"Cell locking is currently being managed by the scheduler. Manual changes to cell locks may be overridden during scheduled hours."})]}),(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"start-time",children:"Start Time"}),(0,a.jsx)(d.p,{type:"time",id:"start-time",value:s.startTime,onChange:e=>i(e.target.value),disabled:t||s.enabled,placeholder:"START TIME"})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"end-time",children:"End Time"}),(0,a.jsx)(d.p,{type:"time",id:"end-time",value:s.endTime,onChange:e=>n(e.target.value),disabled:t||s.enabled,placeholder:"END TIME"})]}),(0,a.jsx)("div",{className:"lg:col-span-2 col-span-1",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Make sure to properly set the timezone using Luci for this to properly work. The scheduler will lock the device to the selected cells during the specified time range. The scheduler will not lock the device if the time range is not valid (e.g. start time is after end time)."})})]})]}),(0,a.jsx)(l.wL,{className:"border-t py-4",children:(0,a.jsxs)(o.$,{onClick:()=>u(!s.enabled),disabled:t||!s.locked&&!s.enabled,children:[(0,a.jsx)(b,{className:"h-4 w-4"}),s.enabled?"Disable Scheduler":"Enable Scheduler"]})})]})};var C=s(88926);let j=()=>{let{toast:e}=(0,f.dj)(),[t,s]=(0,r.useState)(!1),[v,g]=(0,r.useState)(!1),[x,w]=(0,r.useState)(!1),[N,b]=(0,r.useState)(!1),[j,R]=(0,r.useState)({enabled:!1,startTime:"",endTime:"",active:!1,status:"",message:"",locked:!1}),[A,E]=(0,r.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[T,k]=(0,r.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),F=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},S=async()=>{try{s(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=8"),t=await e.json();if(!e.ok)throw Error("Failed to fetch current status");console.log("Current cell locking status:",t);let a=F(t[2].response);console.log("Persist status:",a),a&&a.length>=2&&(w("1"===a[1]),b("1"===a[2]));let r=F(t[0].response);if(console.log("Current LTE lock status:",r),r){let e={EARFCN1:r[2],PCI1:r[3],EARFCN2:r[4],PCI2:r[5],EARFCN3:r[6],PCI3:r[7]};E(e),console.log("New LTE state:",e),parseInt(r[1])>0&&g(!0)}let l=F(t[1].response);if(console.log("Current NR5G lock status:",l),l&&l.length>=5){let e={NRPCI:l[1],NRARFCN:l[2],SCS:l[3],NRBAND:l[4]};k(e),console.log("New NR5G state:",e),parseInt(l[1])>0&&g(!0)}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{s(!1)}},P=async t=>{try{let a;if(s(!0),t&&(!j.startTime||!j.endTime))throw Error("Please set both start and end times");let r=t?{enabled:!0,startTime:j.startTime,endTime:j.endTime}:{enabled:!1},l=await fetch("/cgi-bin/quecmanager/cell-locking/scheduled_cell_locking.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await l.text();if(!l.ok)throw Error("Server responded with status: ".concat(l.status));try{a=JSON.parse(i)}catch(e){throw Error("Failed to parse response: ".concat(i))}if("success"===a.status)R(e=>({...e,enabled:t})),e({title:"Success",description:t?"Cell locking schedule enabled":"Cell locking schedule disabled"});else throw Error(a.message||"Failed to update scheduling")}catch(e){}finally{s(!1)}},I=async()=>{try{var t,a,r,l;s(!0);let i=[];if(A.EARFCN1&&A.PCI1&&i.push([A.EARFCN1,A.PCI1]),A.EARFCN2&&A.PCI2&&i.push([A.EARFCN2,A.PCI2]),A.EARFCN3&&A.PCI3&&i.push([A.EARFCN3,A.PCI3]),0===i.length)throw Error("Please fill at least one EARFCN and PCI pair");let o='AT+QNWLOCK="common/4g",'.concat(i.length);i.forEach(e=>{let[t,s]=e;o+=",".concat(t,",").concat(s)});let n=await (0,C.a)(o,!0);if((null===(t=n.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=n.response)||void 0===r?void 0:r.raw_output)||"Failed to lock LTE cells");await new Promise(e=>setTimeout(e,1e3));let d=await (0,C.a)('AT+QNWLOCK="save_ctrl",1,0',!0);if((null===(a=d.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(l=d.response)||void 0===l?void 0:l.raw_output)||"Failed to save LTE lock configuration");await S(),e({title:"Success",description:"LTE cells locked successfully with ".concat(i.length," pair").concat(i.length>1?"s":"")})}catch(t){s(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},_=async()=>{try{var t,a,r,l;if(s(!0),!T.NRPCI||!T.NRARFCN||!T.SCS||!T.NRBAND)throw Error("Please fill all NR5G fields");let i='AT+QNWLOCK="common/5g",'.concat(T.NRPCI,",").concat(T.NRARFCN,",").concat(T.SCS,",").concat(T.NRBAND),o=await (0,C.a)(i,!0);if((null===(t=o.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=o.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NR5G cell");await new Promise(e=>setTimeout(e,1e3));let n=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,1',!0);if((null===(a=n.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(l=n.response)||void 0===l?void 0:l.raw_output)||"Failed to save NR5G lock configuration");await S(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){s(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},L=async()=>{try{var t,a,r,l,i,o,n,d;s(!0);let c=await (0,C.a)('AT+QNWLOCK="common/4g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset LTE lock");await new Promise(e=>setTimeout(e,1e3));let u=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(a=u.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save LTE reset configuration");let m=await (0,C.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,C.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await S(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){s(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},D=async()=>{try{var t,a,r,l,i,o,n,d;s(!0);let c=await (0,C.a)('AT+QNWLOCK="common/5g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset NR5G lock");let u=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(a=u.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save NR5G reset configuration");let m=await (0,C.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,C.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await S(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){s(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},O=async t=>{try{var a,r;s(!0);let l=await (0,C.a)('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(N?"1":"0"),!0);if((null===(a=l.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update LTE persist setting");await S(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{s(!1)}},z=async t=>{try{var a,r;s(!0);let l=await (0,C.a)('AT+QNWLOCK="save_ctrl",'.concat(x?"1":"0",",").concat(t?"1":"0"),!0);if((null===(a=l.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update NR5G persist setting");await S(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{s(!1)}};return(0,r.useEffect)(()=>{(async()=>{let e=await fetch("/cgi-bin/quecmanager/cell-locking/get_cell_lock.sh"),t=await e.json();R({enabled:t.enabled,startTime:t.start_time||"",endTime:t.end_time||"",active:t.active,status:t.status,message:t.message,locked:t.locked}),g(t.locked),w("1"===t.ltePersist),b("1"===t.nr5gPersist),await S()})()},[]),(0,r.useEffect)(()=>{R(e=>({...e,locked:v}))},[v]),(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"4G LTE Cellular Locking"}),(0,a.jsx)(l.BT,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,a.jsx)(d.p,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:A.EARFCN1,onChange:e=>E(t=>({...t,EARFCN1:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"PCI1",children:"PCI 1"}),(0,a.jsx)(d.p,{type:"text",id:"PCI1",placeholder:"PCI 1",value:A.PCI1,onChange:e=>E(t=>({...t,PCI1:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,a.jsx)(d.p,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:A.EARFCN2,onChange:e=>E(t=>({...t,EARFCN2:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"PCI2",children:"PCI 2"}),(0,a.jsx)(d.p,{type:"text",id:"PCI2",placeholder:"PCI 2",value:A.PCI2,onChange:e=>E(t=>({...t,PCI2:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,a.jsx)(d.p,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:A.EARFCN3,onChange:e=>E(t=>({...t,EARFCN3:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"PCI3",children:"PCI 3"}),(0,a.jsx)(d.p,{type:"text",id:"PCI3",placeholder:"PCI 3",value:A.PCI3,onChange:e=>E(t=>({...t,PCI3:e.target.value})),disabled:t||j.enabled&&v})]})]})}),(0,a.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,a.jsxs)(o.$,{onClick:I,disabled:t||j.enabled&&v,children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,a.jsxs)(u.l,{pressed:x,onPressedChange:O,disabled:t||j.enabled&&v,children:[(0,a.jsx)(p.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,a.jsxs)(o.$,{variant:"secondary",onClick:L,disabled:t||j.enabled&&v,children:[(0,a.jsx)(h.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"NR5G-SA Cellular Locking"}),(0,a.jsx)(l.BT,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,a.jsx)(d.p,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:T.NRARFCN,onChange:e=>k(t=>({...t,NRARFCN:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,a.jsx)(d.p,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:T.NRPCI,onChange:e=>k(t=>({...t,NRPCI:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsx)(n.w,{className:"my-0.5 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"SCS",children:"SCS"}),(0,a.jsxs)(i.l6,{value:T.SCS,onValueChange:e=>k(t=>({...t,SCS:e})),disabled:t||j.enabled&&v,children:[(0,a.jsx)(i.bq,{id:"SCS",children:(0,a.jsx)(i.yv,{placeholder:"SCS"})}),(0,a.jsx)(i.gC,{children:(0,a.jsxs)(i.s3,{children:[(0,a.jsx)(i.TR,{children:"SCS"}),(0,a.jsx)(i.eb,{value:"15",children:"15 kHz"}),(0,a.jsx)(i.eb,{value:"30",children:"30 kHz"}),(0,a.jsx)(i.eb,{value:"60",children:"60 kHz"}),(0,a.jsx)(i.eb,{value:"120",children:"120 kHz"}),(0,a.jsx)(i.eb,{value:"240",children:"240 kHz"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"NRBAND",children:"NR Band"}),(0,a.jsx)(d.p,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:T.NRBAND,onChange:e=>k(t=>({...t,NRBAND:e.target.value})),disabled:t||j.enabled&&v})]})]})}),(0,a.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,a.jsxs)(o.$,{onClick:_,disabled:t||j.enabled&&v,children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,a.jsxs)(u.l,{pressed:N,onPressedChange:z,disabled:t||j.enabled&&v,children:[(0,a.jsx)(p.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,a.jsxs)(o.$,{variant:"secondary",onClick:D,disabled:t||j.enabled&&v,children:[(0,a.jsx)(h.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,a.jsx)(y,{loading:t,scheduleData:j,onStartTimeChange:e=>{R(t=>({...t,startTime:e}))},onEndTimeChange:e=>{R(t=>({...t,endTime:e}))},onSchedulingToggle:P})]})}},49573:(e,t,s)=>{"use strict";s.d(t,{Fc:()=>n,TN:()=>c,XL:()=>d});var a=s(20475),r=s(20107),l=s(29395),i=s(22250);let o=(0,l.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=r.forwardRef((e,t)=>{let{className:s,variant:r,...l}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:r}),s),...l})});n.displayName="Alert";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",s),...r})});d.displayName="AlertTitle";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",s),...r})});c.displayName="AlertDescription"},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>n});var a=s(20475),r=s(20107),l=s(61837),i=s(29395),o=s(22250);let n=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:s,variant:r,size:i,asChild:d=!1,...c}=e,u=d?l.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(n({variant:r,size:i,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>n,Zp:()=>i,aR:()=>o,wL:()=>u});var a=s(20475),r=s(20107),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});i.displayName="Card";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",s),...r})});o.displayName="CardHeader";let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",s),...r})});n.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",s),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var a=s(20475),r=s(20107),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,type:r,...i}=e;return(0,a.jsx)("input",{type:r,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},49153:(e,t,s)=>{"use strict";s.d(t,{J:()=>d});var a=s(20475),r=s(20107),l=s(21840),i=s(29395),o=s(22250);let n=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.b,{ref:t,className:(0,o.cn)(n(),s),...r})});d.displayName=l.b.displayName},35601:(e,t,s)=>{"use strict";s.d(t,{TR:()=>f,bq:()=>u,eb:()=>v,gC:()=>h,l6:()=>n,s3:()=>d,yv:()=>c});var a=s(20475),r=s(20107),l=s(7197),i=s(95257),o=s(22250);let n=i.bL,d=i.YJ,c=i.WT,u=r.forwardRef((e,t)=>{let{className:s,children:r,...n}=e;return(0,a.jsxs)(i.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...n,children:[r,(0,a.jsx)(i.In,{asChild:!0,children:(0,a.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.l9.displayName;let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(i.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(l.Mtm,{})})});m.displayName=i.PP.displayName;let p=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(i.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(l.D3D,{})})});p.displayName=i.wn.displayName;let h=r.forwardRef((e,t)=>{let{className:s,children:r,position:l="popper",...n}=e;return(0,a.jsx)(i.ZL,{children:(0,a.jsxs)(i.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:l,...n,children:[(0,a.jsx)(m,{}),(0,a.jsx)(i.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(p,{})]})})});h.displayName=i.UC.displayName;let f=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(i.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",s),...r})});f.displayName=i.JU.displayName;let v=r.forwardRef((e,t)=>{let{className:s,children:r,...n}=e;return(0,a.jsxs)(i.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...n,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(i.VF,{children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(i.p4,{children:r})]})});v.displayName=i.q7.displayName,r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(i.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",s),...r})}).displayName=i.wv.displayName},50049:(e,t,s)=>{"use strict";s.d(t,{w:()=>c});var a=s(20475),r=s(20107),l=s(34544),i="horizontal",o=["horizontal","vertical"],n=r.forwardRef((e,t)=>{let{decorative:s,orientation:r=i,...n}=e,d=o.includes(r)?r:i;return(0,a.jsx)(l.sG.div,{"data-orientation":d,...s?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...n,ref:t})});n.displayName="Separator";var d=s(22250);let c=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(n,{ref:t,decorative:l,orientation:r,className:(0,d.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...i})});c.displayName=n.displayName},21906:(e,t,s)=>{"use strict";s.d(t,{l:()=>m});var a=s(20475),r=s(20107),l=s(94521),i=s(13061),o=s(34544),n=r.forwardRef((e,t)=>{let{pressed:s,defaultPressed:r=!1,onPressedChange:n,...d}=e,[c=!1,u]=(0,i.i)({prop:s,onChange:n,defaultProp:r});return(0,a.jsx)(o.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:t,onClick:(0,l.m)(e.onClick,()=>{e.disabled||u(!c)})})});n.displayName="Toggle";var d=s(29395),c=s(22250);let u=(0,d.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),m=r.forwardRef((e,t)=>{let{className:s,variant:r,size:l,...i}=e;return(0,a.jsx)(n,{ref:t,className:(0,c.cn)(u({variant:r,size:l,className:s})),...i})});m.displayName=n.displayName},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>m,oR:()=>u});var a=s(20107);let r=0,l=new Map,i=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?i(s):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},n=[],d={toasts:[]};function c(e){d=o(d,e),n.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=a.useState(d);return a.useEffect(()=>(n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>l});var a=s(64901),r=s(868);function l(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{A:()=>n});var a=s(20107);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,t=Array(e),s=0;s!!e&&s.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:d="",children:c,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...i,width:r,height:r,stroke:s,strokeWidth:n?24*Number(o)/Number(r):o,className:l("lucide",d),...m},[...u.map(e=>{let[t,s]=e;return(0,a.createElement)(t,s)}),...Array.isArray(c)?c:[c]])}),n=(e,t)=>{let s=(0,a.forwardRef)((s,i)=>{let{className:n,...d}=s;return(0,a.createElement)(o,{ref:i,iconNode:t,className:l("lucide-".concat(r(e)),n),...d})});return s.displayName="".concat(e),s}},98969:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},29475:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},97801:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},52161:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(39997).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},88926:(e,t,s)=>{"use strict";s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),l=encodeURIComponent(r),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(l);t&&(i+="&wait=1&timeout=".concat(s));let o=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let n=await o.json();if(n.error)throw Error("AT queue error: ".concat(n.error));if(t&&(null===(a=n.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return n}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,6810,191,6035,7358],()=>t(5853)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-cbf807f40a5be9c8.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-cbf807f40a5be9c8.js new file mode 100644 index 0000000..aa779c0 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-cbf807f40a5be9c8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5665],{5853:(e,t,s)=>{Promise.resolve().then(s.bind(s,19496))},19496:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>j});var a=s(20475),r=s(20107),l=s(72167),i=s(35601),o=s(42541),n=s(76554),d=s(64219),c=s(49153),u=s(21906),m=s(29475),p=s(52161),h=s(97801),f=s(32857),v=s(49573),g=s(39997);let x=(0,g.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var w=s(98969);let N=(0,g.A)("Clock1",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 8",key:"12zbmj"}]]),b=(0,g.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),y=e=>{let{loading:t,scheduleData:s,onStartTimeChange:i,onEndTimeChange:n,onSchedulingToggle:u}=e,[p,h]=(0,r.useState)({text:"Disabled",color:"text-red-600",icon:x}),f=()=>{if(!s.enabled){h({text:"Disabled",color:"text-red-600",icon:x});return}let e=new Date,t=60*e.getHours()+e.getMinutes(),[a,r]=s.startTime.split(":").map(Number),[l,i]=s.endTime.split(":").map(Number),o=60*a+r,n=60*l+i;o<=n?t>=o&&t<=n?h({text:"Active",color:"text-green-600",icon:w.A}):h({text:"Inactive",color:"text-yellow-500",icon:N}):t>=o||t<=n?h({text:"Active",color:"text-green-600",icon:w.A}):h({text:"Inactive",color:"text-yellow-500",icon:N})},g=()=>{s.active?h({text:"Active",color:"text-green-600",icon:w.A}):s.enabled&&!s.active?h({text:"Inactive",color:"text-yellow-500",icon:N}):h({text:"Disabled",color:"text-red-600",icon:x})};(0,r.useEffect)(()=>{g();let e=setInterval(f,6e4);return()=>{clearInterval(e)}},[s]);let y=p.icon;return(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsxs)(l.ZB,{className:"flex items-center justify-between",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{children:"Cell Locking Scheduler"})}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(y,{className:"h-4 w-4 mr-1 ".concat(p.color)}),(0,a.jsx)("div",{className:"text-sm text-gray-500",children:p.text})]})]}),(0,a.jsx)(l.BT,{children:"Schedule the device to lock to specific cells at certain times."})]}),(0,a.jsxs)(l.Wu,{children:[s.enabled&&(0,a.jsxs)(v.Fc,{className:"mb-6",children:[(0,a.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(v.XL,{children:"Scheduled Cell Locking Active"}),(0,a.jsx)(v.TN,{children:"Cell locking is currently being managed by the scheduler. Manual changes to cell locks may be overridden during scheduled hours."})]}),(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"start-time",children:"Start Time"}),(0,a.jsx)(d.p,{type:"time",id:"start-time",value:s.startTime,onChange:e=>i(e.target.value),disabled:t||s.enabled,placeholder:"START TIME"})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"end-time",children:"End Time"}),(0,a.jsx)(d.p,{type:"time",id:"end-time",value:s.endTime,onChange:e=>n(e.target.value),disabled:t||s.enabled,placeholder:"END TIME"})]}),(0,a.jsx)("div",{className:"lg:col-span-2 col-span-1",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Make sure to properly set the timezone using Luci for this to properly work. The scheduler will lock the device to the selected cells during the specified time range. The scheduler will not lock the device if the time range is not valid (e.g. start time is after end time)."})})]})]}),(0,a.jsx)(l.wL,{className:"border-t py-4",children:(0,a.jsxs)(o.$,{onClick:()=>u(!s.enabled),disabled:t||!s.locked&&!s.enabled,children:[(0,a.jsx)(b,{className:"h-4 w-4"}),s.enabled?"Disable Scheduler":"Enable Scheduler"]})})]})};var C=s(88926);let j=()=>{let{toast:e}=(0,f.dj)(),[t,s]=(0,r.useState)(!1),[v,g]=(0,r.useState)(!1),[x,w]=(0,r.useState)(!1),[N,b]=(0,r.useState)(!1),[j,R]=(0,r.useState)({enabled:!1,startTime:"",endTime:"",active:!1,status:"",message:"",locked:!1}),[A,E]=(0,r.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[T,k]=(0,r.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),F=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},S=async()=>{try{s(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=8"),t=await e.json();if(!e.ok)throw Error("Failed to fetch current status");console.log("Current cell locking status:",t);let a=F(t[2].response);console.log("Persist status:",a),a&&a.length>=2&&(w("1"===a[1]),b("1"===a[2]));let r=F(t[0].response);if(console.log("Current LTE lock status:",r),r){let e={EARFCN1:r[2],PCI1:r[3],EARFCN2:r[4],PCI2:r[5],EARFCN3:r[6],PCI3:r[7]};E(e),console.log("New LTE state:",e),parseInt(r[1])>0&&g(!0)}let l=F(t[1].response);if(console.log("Current NR5G lock status:",l),l&&l.length>=5){let e={NRPCI:l[1],NRARFCN:l[2],SCS:l[3],NRBAND:l[4]};k(e),console.log("New NR5G state:",e),parseInt(l[1])>0&&g(!0)}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{s(!1)}},P=async t=>{try{let a;if(s(!0),t&&(!j.startTime||!j.endTime))throw Error("Please set both start and end times");let r=t?{enabled:!0,startTime:j.startTime,endTime:j.endTime}:{enabled:!1},l=await fetch("/cgi-bin/quecmanager/cell-locking/scheduled_cell_locking.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await l.text();if(!l.ok)throw Error("Server responded with status: ".concat(l.status));try{a=JSON.parse(i)}catch(e){throw Error("Failed to parse response: ".concat(i))}if("success"===a.status)R(e=>({...e,enabled:t})),e({title:"Success",description:t?"Cell locking schedule enabled":"Cell locking schedule disabled"});else throw Error(a.message||"Failed to update scheduling")}catch(e){}finally{s(!1)}},I=async()=>{try{var t,a,r,l;s(!0);let i=[];if(A.EARFCN1&&A.PCI1&&i.push([A.EARFCN1,A.PCI1]),A.EARFCN2&&A.PCI2&&i.push([A.EARFCN2,A.PCI2]),A.EARFCN3&&A.PCI3&&i.push([A.EARFCN3,A.PCI3]),0===i.length)throw Error("Please fill at least one EARFCN and PCI pair");let o='AT+QNWLOCK="common/4g",'.concat(i.length);i.forEach(e=>{let[t,s]=e;o+=",".concat(t,",").concat(s)});let n=await (0,C.a)(o,!0);if((null===(t=n.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=n.response)||void 0===r?void 0:r.raw_output)||"Failed to lock LTE cells");await new Promise(e=>setTimeout(e,1e3));let d=await (0,C.a)('AT+QNWLOCK="save_ctrl",1,0',!0);if((null===(a=d.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(l=d.response)||void 0===l?void 0:l.raw_output)||"Failed to save LTE lock configuration");await S(),e({title:"Success",description:"LTE cells locked successfully with ".concat(i.length," pair").concat(i.length>1?"s":"")})}catch(t){s(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},_=async()=>{try{var t,a,r,l;if(s(!0),!T.NRPCI||!T.NRARFCN||!T.SCS||!T.NRBAND)throw Error("Please fill all NR5G fields");let i='AT+QNWLOCK="common/5g",'.concat(T.NRPCI,",").concat(T.NRARFCN,",").concat(T.SCS,",").concat(T.NRBAND),o=await (0,C.a)(i,!0);if((null===(t=o.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(r=o.response)||void 0===r?void 0:r.raw_output)||"Failed to lock NR5G cell");await new Promise(e=>setTimeout(e,1e3));let n=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,1',!0);if((null===(a=n.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(l=n.response)||void 0===l?void 0:l.raw_output)||"Failed to save NR5G lock configuration");await S(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){s(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},L=async()=>{try{var t,a,r,l,i,o,n,d;s(!0);let c=await (0,C.a)('AT+QNWLOCK="common/4g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset LTE lock");await new Promise(e=>setTimeout(e,1e3));let u=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(a=u.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save LTE reset configuration");let m=await (0,C.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,C.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await S(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){s(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},D=async()=>{try{var t,a,r,l,i,o,n,d;s(!0);let c=await (0,C.a)('AT+QNWLOCK="common/5g",0',!0);if((null===(t=c.response)||void 0===t?void 0:t.status)!=="success")throw Error((null===(i=c.response)||void 0===i?void 0:i.raw_output)||"Failed to reset NR5G lock");let u=await (0,C.a)('AT+QNWLOCK="save_ctrl",0,0',!0);if((null===(a=u.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=u.response)||void 0===o?void 0:o.raw_output)||"Failed to save NR5G reset configuration");let m=await (0,C.a)("AT+COPS=2",!0);if((null===(r=m.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(n=m.response)||void 0===n?void 0:n.raw_output)||"Failed to disconnect from network");await new Promise(e=>setTimeout(e,2e3));let p=await (0,C.a)("AT+COPS=0",!0);if((null===(l=p.response)||void 0===l?void 0:l.status)!=="success")throw Error((null===(d=p.response)||void 0===d?void 0:d.raw_output)||"Failed to reconnect to network");await S(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){s(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},O=async t=>{try{var a,r;s(!0);let l=await (0,C.a)('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(N?"1":"0"),!0);if((null===(a=l.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update LTE persist setting");await S(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{s(!1)}},z=async t=>{try{var a,r;s(!0);let l=await (0,C.a)('AT+QNWLOCK="save_ctrl",'.concat(x?"1":"0",",").concat(t?"1":"0"),!0);if((null===(a=l.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(r=l.response)||void 0===r?void 0:r.raw_output)||"Failed to update NR5G persist setting");await S(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{s(!1)}};return(0,r.useEffect)(()=>{(async()=>{let e=await fetch("/cgi-bin/quecmanager/cell-locking/get_cell_lock.sh"),t=await e.json();R({enabled:t.enabled,startTime:t.start_time||"",endTime:t.end_time||"",active:t.active,status:t.status,message:t.message,locked:t.locked}),g(t.locked),w("1"===t.ltePersist),b("1"===t.nr5gPersist),await S()})()},[]),(0,r.useEffect)(()=>{R(e=>({...e,locked:v}))},[v]),(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"4G LTE Cellular Locking"}),(0,a.jsx)(l.BT,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,a.jsx)(d.p,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:A.EARFCN1,onChange:e=>E(t=>({...t,EARFCN1:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"PCI1",children:"PCI 1"}),(0,a.jsx)(d.p,{type:"text",id:"PCI1",placeholder:"PCI 1",value:A.PCI1,onChange:e=>E(t=>({...t,PCI1:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,a.jsx)(d.p,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:A.EARFCN2,onChange:e=>E(t=>({...t,EARFCN2:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"PCI2",children:"PCI 2"}),(0,a.jsx)(d.p,{type:"text",id:"PCI2",placeholder:"PCI 2",value:A.PCI2,onChange:e=>E(t=>({...t,PCI2:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsx)(n.w,{className:"my-1 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,a.jsx)(d.p,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:A.EARFCN3,onChange:e=>E(t=>({...t,EARFCN3:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"PCI3",children:"PCI 3"}),(0,a.jsx)(d.p,{type:"text",id:"PCI3",placeholder:"PCI 3",value:A.PCI3,onChange:e=>E(t=>({...t,PCI3:e.target.value})),disabled:t||j.enabled&&v})]})]})}),(0,a.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,a.jsxs)(o.$,{onClick:I,disabled:t||j.enabled&&v,children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,a.jsxs)(u.l,{pressed:x,onPressedChange:O,disabled:t||j.enabled&&v,children:[(0,a.jsx)(p.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,a.jsxs)(o.$,{variant:"secondary",onClick:L,disabled:t||j.enabled&&v,children:[(0,a.jsx)(h.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"NR5G-SA Cellular Locking"}),(0,a.jsx)(l.BT,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,a.jsx)(d.p,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:T.NRARFCN,onChange:e=>k(t=>({...t,NRARFCN:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,a.jsx)(d.p,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:T.NRPCI,onChange:e=>k(t=>({...t,NRPCI:e.target.value})),disabled:t||j.enabled&&v})]}),(0,a.jsx)(n.w,{className:"my-0.5 col-span-2 w-full"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"SCS",children:"SCS"}),(0,a.jsxs)(i.l6,{value:T.SCS,onValueChange:e=>k(t=>({...t,SCS:e})),disabled:t||j.enabled&&v,children:[(0,a.jsx)(i.bq,{id:"SCS",children:(0,a.jsx)(i.yv,{placeholder:"SCS"})}),(0,a.jsx)(i.gC,{children:(0,a.jsxs)(i.s3,{children:[(0,a.jsx)(i.TR,{children:"SCS"}),(0,a.jsx)(i.eb,{value:"15",children:"15 kHz"}),(0,a.jsx)(i.eb,{value:"30",children:"30 kHz"}),(0,a.jsx)(i.eb,{value:"60",children:"60 kHz"}),(0,a.jsx)(i.eb,{value:"120",children:"120 kHz"}),(0,a.jsx)(i.eb,{value:"240",children:"240 kHz"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c.J,{htmlFor:"NRBAND",children:"NR Band"}),(0,a.jsx)(d.p,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:T.NRBAND,onChange:e=>k(t=>({...t,NRBAND:e.target.value})),disabled:t||j.enabled&&v})]})]})}),(0,a.jsxs)(l.wL,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,a.jsxs)(o.$,{onClick:_,disabled:t||j.enabled&&v,children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,a.jsxs)(u.l,{pressed:N,onPressedChange:z,disabled:t||j.enabled&&v,children:[(0,a.jsx)(p.A,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,a.jsxs)(o.$,{variant:"secondary",onClick:D,disabled:t||j.enabled&&v,children:[(0,a.jsx)(h.A,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,a.jsx)(y,{loading:t,scheduleData:j,onStartTimeChange:e=>{R(t=>({...t,startTime:e}))},onEndTimeChange:e=>{R(t=>({...t,endTime:e}))},onSchedulingToggle:P})]})}},49573:(e,t,s)=>{"use strict";s.d(t,{Fc:()=>n,TN:()=>c,XL:()=>d});var a=s(20475),r=s(20107),l=s(29395),i=s(22250);let o=(0,l.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=r.forwardRef((e,t)=>{let{className:s,variant:r,...l}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:r}),s),...l})});n.displayName="Alert";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",s),...r})});d.displayName="AlertTitle";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",s),...r})});c.displayName="AlertDescription"},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>n});var a=s(20475),r=s(20107),l=s(61837),i=s(29395),o=s(22250);let n=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:s,variant:r,size:i,asChild:d=!1,...c}=e,u=d?l.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(n({variant:r,size:i,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>n,Zp:()=>i,aR:()=>o,wL:()=>u});var a=s(20475),r=s(20107),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});i.displayName="Card";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",s),...r})});o.displayName="CardHeader";let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",s),...r})});n.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",s),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var a=s(20475),r=s(20107),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,type:r,...i}=e;return(0,a.jsx)("input",{type:r,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},49153:(e,t,s)=>{"use strict";s.d(t,{J:()=>d});var a=s(20475),r=s(20107),l=s(21840),i=s(29395),o=s(22250);let n=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.b,{ref:t,className:(0,o.cn)(n(),s),...r})});d.displayName=l.b.displayName},35601:(e,t,s)=>{"use strict";s.d(t,{TR:()=>f,bq:()=>u,eb:()=>v,gC:()=>h,l6:()=>n,s3:()=>d,yv:()=>c});var a=s(20475),r=s(20107),l=s(7197),i=s(95257),o=s(22250);let n=i.bL,d=i.YJ,c=i.WT,u=r.forwardRef((e,t)=>{let{className:s,children:r,...n}=e;return(0,a.jsxs)(i.l9,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...n,children:[r,(0,a.jsx)(i.In,{asChild:!0,children:(0,a.jsx)(l.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.l9.displayName;let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(i.PP,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(l.Mtm,{})})});m.displayName=i.PP.displayName;let p=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(i.wn,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,a.jsx)(l.D3D,{})})});p.displayName=i.wn.displayName;let h=r.forwardRef((e,t)=>{let{className:s,children:r,position:l="popper",...n}=e;return(0,a.jsx)(i.ZL,{children:(0,a.jsxs)(i.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:l,...n,children:[(0,a.jsx)(m,{}),(0,a.jsx)(i.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(p,{})]})})});h.displayName=i.UC.displayName;let f=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(i.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",s),...r})});f.displayName=i.JU.displayName;let v=r.forwardRef((e,t)=>{let{className:s,children:r,...n}=e;return(0,a.jsxs)(i.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...n,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(i.VF,{children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(i.p4,{children:r})]})});v.displayName=i.q7.displayName,r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(i.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",s),...r})}).displayName=i.wv.displayName},76554:(e,t,s)=>{"use strict";s.d(t,{w:()=>o});var a=s(20475),r=s(20107),l=s(88853),i=s(22250);let o=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:o=!0,...n}=e;return(0,a.jsx)(l.b,{ref:t,decorative:o,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...n})});o.displayName=l.b.displayName},21906:(e,t,s)=>{"use strict";s.d(t,{l:()=>m});var a=s(20475),r=s(20107),l=s(94521),i=s(13061),o=s(34544),n=r.forwardRef((e,t)=>{let{pressed:s,defaultPressed:r=!1,onPressedChange:n,...d}=e,[c=!1,u]=(0,i.i)({prop:s,onChange:n,defaultProp:r});return(0,a.jsx)(o.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:t,onClick:(0,l.m)(e.onClick,()=>{e.disabled||u(!c)})})});n.displayName="Toggle";var d=s(29395),c=s(22250);let u=(0,d.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),m=r.forwardRef((e,t)=>{let{className:s,variant:r,size:l,...i}=e;return(0,a.jsx)(n,{ref:t,className:(0,c.cn)(u({variant:r,size:l,className:s})),...i})});m.displayName=n.displayName},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>m,oR:()=>u});var a=s(20107);let r=0,l=new Map,i=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?i(s):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},n=[],d={toasts:[]};function c(e){d=o(d,e),n.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=a.useState(d);return a.useEffect(()=>(n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>l});var a=s(64901),r=s(868);function l(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{A:()=>n});var a=s(20107);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,t=Array(e),s=0;s!!e&&s.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:d="",children:c,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...i,width:r,height:r,stroke:s,strokeWidth:n?24*Number(o)/Number(r):o,className:l("lucide",d),...m},[...u.map(e=>{let[t,s]=e;return(0,a.createElement)(t,s)}),...Array.isArray(c)?c:[c]])}),n=(e,t)=>{let s=(0,a.forwardRef)((s,i)=>{let{className:n,...d}=s;return(0,a.createElement)(o,{ref:i,iconNode:t,className:l("lucide-".concat(r(e)),n),...d})});return s.displayName="".concat(e),s}},98969:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(39997).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},29475:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},97801:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(39997).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},52161:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(39997).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},88926:(e,t,s)=>{"use strict";s.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),l=encodeURIComponent(r),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(l);t&&(i+="&wait=1&timeout=".concat(s));let o=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*s+5e3)});if(!o.ok)throw Error("AT command failed with status: ".concat(o.status));let n=await o.json();if(n.error)throw Error("AT queue error: ".concat(n.error));if(t&&(null===(a=n.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(s," seconds"));return n}catch(e){throw console.error("AT Command error:",e),e}}},88853:(e,t,s)=>{"use strict";s.d(t,{b:()=>d});var a=s(20107),r=s(34544),l=s(20475),i="horizontal",o=["horizontal","vertical"],n=a.forwardRef((e,t)=>{let{decorative:s,orientation:a=i,...n}=e,d=o.includes(a)?a:i;return(0,l.jsx)(r.sG.div,{"data-orientation":d,...s?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...n,ref:t})});n.displayName="Separator";var d=n}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,6810,191,6035,7358],()=>t(5853)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-5a5627d4caa9c7b7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-5a5627d4caa9c7b7.js new file mode 100644 index 0000000..d7da16a --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-5a5627d4caa9c7b7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9065],{6507:(e,t,r)=>{Promise.resolve().then(r.bind(r,70231))},70231:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var a=r(20475),s=r(20107),o=r(72167),i=r(85014),n=r(12607),l=r(29475),d=r(42541),c=r(64219),u=r(49153),f=r(36760),m=r(32857),p=r(49573),h=r(88926);let v=()=>{let[e,t]=(0,s.useState)(!0),[r,v]=(0,s.useState)(""),[g,x]=(0,s.useState)(""),[w,b]=(0,s.useState)(null),[y,N]=(0,s.useState)(!1),{toast:j}=(0,m.dj)(),I=(0,s.useCallback)(async()=>{try{t(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=3"),r=await e.json();console.log(r);let a=r[6].response.split("\n")[1];console.log(a);let s=a.match(/\d{15}/),o=s?s[0]:null;if(o)v(o),x(o);else throw Error("IMEI not found in response")}catch(e){j({title:"Failed to fetch IMEI",description:"Failed to fetch IMEI from the device",variant:"destructive"}),console.error(e)}finally{t(!1)}},[]),E=(0,s.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);e&&e.imei?(b(e),N(!0),x(e.imei),console.log("Active Profile with IMEI:",e)):(b(null),N(!1))}}}else b(null),N(!1)}catch(e){console.error("Error checking active profile:",e),b(null),N(!1)}},[]);(0,s.useEffect)(()=>{(async()=>{await I(),await E()})()},[I,E]);let A=async e=>{if(e.preventDefault(),y){j({title:"Profile Controlled",description:'IMEI is currently managed by profile "'.concat(null==w?void 0:w.name,'". Edit the profile to change IMEI.'),variant:"destructive"});return}if(t(!0),15!==g.length||isNaN(Number(g))){j({title:"Invalid IMEI",description:"IMEI must be 15 digits and numbers only",variant:"destructive"}),t(!1);return}try{var r,a,s,o;let e='AT+EGMR=1,7,"'.concat(g,'"'),t=await (0,h.a)(e,!0);if((null===(r=t.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(s=t.response)||void 0===s?void 0:s.raw_output)||"Failed to update IMEI");let i=await (0,h.a)("AT+QPOWD=1",!0);if((null===(a=i.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(o=i.response)||void 0===o?void 0:o.raw_output)||"Failed to reboot device");j({title:"Success",description:"IMEI has been updated successfully. Rebooting...",duration:9e4}),setTimeout(()=>{window.location.reload()},9e4)}catch(e){j({title:"Failed to update IMEI",description:"Failed to update IMEI on the device",variant:"destructive"}),console.error(e)}finally{t(!1)}};return(0,a.jsx)("div",{className:"grid gap-8",children:(0,a.jsx)(o.Zp,{children:(0,a.jsxs)("form",{onSubmit:A,children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{children:"IMEI Mangling"}),(0,a.jsxs)(o.BT,{className:"flex items-center justify-between",children:["Change the IMEI of the device.",(0,a.jsx)(i.TooltipProvider,{children:(0,a.jsxs)(i.m_,{children:[(0,a.jsx)(i.k$,{children:(0,a.jsxs)("span",{className:"flex items-center text-orange-500",children:[(0,a.jsx)(n.A,{className:"size-4 mr-1"}),"Do at your own risk!"]})}),(0,a.jsx)(i.ZI,{children:(0,a.jsx)("p",{children:"Add to library"})})]})})]})]}),(0,a.jsxs)(o.Wu,{children:[y&&w&&(0,a.jsxs)(p.Fc,{className:"mb-6",children:[(0,a.jsx)(l.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(p.XL,{children:"Profile Controlled"}),(0,a.jsxs)(p.TN,{children:['IMEI is currently being managed by profile "',w.name,'".']})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsxs)(u.J,{htmlFor:"IMEI",children:["Change Current IMEI",y&&(0,a.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),e?(0,a.jsx)(f.E,{className:"h-8"}):(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(c.p,{type:"text",id:"IMEI",value:g,onChange:e=>!y&&x(e.target.value),placeholder:r,disabled:y,className:y?"bg-muted cursor-not-allowed":""}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground font-medium",children:"This will reboot the device."})]})]})]}),(0,a.jsx)(o.wL,{className:"grid border-t py-4",children:(0,a.jsx)(d.$,{type:"submit",className:"w-full",disabled:e||g===r||y,children:e?"Processing...":"Change IMEI"})})]})})})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>l,TN:()=>c,XL:()=>d});var a=r(20475),s=r(20107),o=r(29395),i=r(22250);let n=(0,o.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=s.forwardRef((e,t)=>{let{className:r,variant:s,...o}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(n({variant:s}),r),...o})});l.displayName="Alert";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",r),...s})});d.displayName="AlertTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",r),...s})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>l});var a=r(20475),s=r(20107),o=r(61837),i=r(29395),n=r(22250);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:i,asChild:d=!1,...c}=e,u=d?o.DX:"button";return(0,a.jsx)(u,{className:(0,n.cn)(l({variant:s,size:i,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>i,aR:()=>n,wL:()=>u});var a=r(20475),s=r(20107),o=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});i.displayName="Card";let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});n.displayName="CardHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...s})});l.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var a=r(20475),s=r(20107),o=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,type:s,...i}=e;return(0,a.jsx)("input",{type:s,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),o=r(21840),i=r(29395),n=r(22250);let l=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,n.cn)(l(),r),...s})});d.displayName=o.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var a=r(20475),s=r(22250);function o(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>n,ZI:()=>c,k$:()=>d,m_:()=>l});var a=r(20475),s=r(20107),o=r(43048),i=r(22250);let n=o.Kq,l=o.bL,d=o.l9,c=s.forwardRef((e,t)=>{let{className:r,sideOffset:s=4,...n}=e;return(0,a.jsx)(o.UC,{ref:t,sideOffset:s,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})});c.displayName=o.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>u});var a=r(20107);let s=0,o=new Map,i=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},n=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=n(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=a.useState(d);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(64901),s=r(868);function o(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>l});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:d="",children:c,iconNode:u,...f}=e;return(0,a.createElement)("svg",{ref:t,...i,width:s,height:s,stroke:r,strokeWidth:l?24*Number(n)/Number(s):n,className:o("lucide",d),...f},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,a.forwardRef)((r,i)=>{let{className:l,...d}=r;return(0,a.createElement)(n,{ref:i,iconNode:t,className:o("lucide-".concat(s(e)),l),...d})});return r.displayName="".concat(e),r}},29475:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},12607:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},88926:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let s=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),o=encodeURIComponent(s),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(o);t&&(i+="&wait=1&timeout=".concat(r));let n=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!n.ok)throw Error("AT command failed with status: ".concat(n.status));let l=await n.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(a=l.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var a=r(20107),s=r(34544),o=r(20475),i=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var n=i},91475:(e,t,r)=>{"use strict";r.d(t,{b:()=>n,s:()=>i});var a=r(20107),s=r(34544),o=r(20475),i=a.forwardRef((e,t)=>(0,o.jsx)(s.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var n=i}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,7563,3048,191,6035,7358],()=>t(6507)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-5ee4a3e3cfdef0c5.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-5ee4a3e3cfdef0c5.js new file mode 100644 index 0000000..5c93068 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-5ee4a3e3cfdef0c5.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9065],{6507:(e,t,r)=>{Promise.resolve().then(r.bind(r,70231))},70231:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var s=r(20475),a=r(20107),i=r(72167),o=r(85014),n=r(12607),l=r(29475),d=r(42541),c=r(64219),u=r(49153),f=r(36760),m=r(32857),p=r(49573),h=r(88926);let g=()=>{let[e,t]=(0,a.useState)(!0),[r,g]=(0,a.useState)(""),[v,x]=(0,a.useState)(""),[b,y]=(0,a.useState)(null),[w,I]=(0,a.useState)(!1),{toast:N}=(0,m.dj)(),j=(0,a.useCallback)(async()=>{try{t(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=3"),r=await e.json();console.log(r);let s=r[6].response.split("\n")[1];console.log(s);let a=s.match(/\d{15}/),i=a?a[0]:null;if(i)g(i),x(i);else throw Error("IMEI not found in response")}catch(e){N({title:"Failed to fetch IMEI",description:"Failed to fetch IMEI from the device",variant:"destructive"}),console.error(e)}finally{t(!1)}},[]),E=(0,a.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);e&&e.imei?(y(e),I(!0),x(e.imei),console.log("Active Profile with IMEI:",e)):(y(null),I(!1))}}}else y(null),I(!1)}catch(e){console.error("Error checking active profile:",e),y(null),I(!1)}},[]);(0,a.useEffect)(()=>{(async()=>{await j(),await E()})()},[j,E]);let T=async e=>{if(e.preventDefault(),w){N({title:"Profile Controlled",description:'IMEI is currently managed by profile "'.concat(null==b?void 0:b.name,'". Edit the profile to change IMEI.'),variant:"destructive"});return}if(t(!0),15!==v.length||isNaN(Number(v))){N({title:"Invalid IMEI",description:"IMEI must be 15 digits and numbers only",variant:"destructive"}),t(!1);return}try{var r,s,a,i;let e='AT+EGMR=1,7,"'.concat(v,'"'),t=await (0,h.a)(e,!0);if((null===(r=t.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(a=t.response)||void 0===a?void 0:a.raw_output)||"Failed to update IMEI");let o=await (0,h.a)("AT+QPOWD=1",!0);if((null===(s=o.response)||void 0===s?void 0:s.status)!=="success")throw Error((null===(i=o.response)||void 0===i?void 0:i.raw_output)||"Failed to reboot device");N({title:"Success",description:"IMEI has been updated successfully. Rebooting...",duration:9e4}),setTimeout(()=>{window.location.reload()},9e4)}catch(e){N({title:"Failed to update IMEI",description:"Failed to update IMEI on the device",variant:"destructive"}),console.error(e)}finally{t(!1)}};return(0,s.jsx)("div",{className:"grid gap-8",children:(0,s.jsx)(i.Zp,{children:(0,s.jsxs)("form",{onSubmit:T,children:[(0,s.jsxs)(i.aR,{children:[(0,s.jsx)(i.ZB,{children:"IMEI Mangling"}),(0,s.jsxs)(i.BT,{className:"flex items-center justify-between",children:["Change the IMEI of the device. Changing the IMEI may void your warranty and is illegal in some jurisdictions.",(0,s.jsx)(o.TooltipProvider,{children:(0,s.jsxs)(o.m_,{children:[(0,s.jsx)(o.k$,{children:(0,s.jsx)(n.A,{className:"size-4 text-orange-500"})}),(0,s.jsx)(o.ZI,{children:(0,s.jsx)("p",{children:"Do at your own risk!"})})]})})]})]}),(0,s.jsxs)(i.Wu,{children:[w&&b&&(0,s.jsxs)(p.Fc,{className:"mb-6",children:[(0,s.jsx)(l.A,{className:"h-4 w-4",color:"orange"}),(0,s.jsx)(p.XL,{children:"Profile Controlled"}),(0,s.jsxs)(p.TN,{children:['IMEI is currently being managed by profile "',b.name,'".']})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsxs)(u.J,{htmlFor:"IMEI",children:["Change Current IMEI",w&&(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),e?(0,s.jsx)(f.E,{className:"h-8"}):(0,s.jsxs)("div",{className:"grid gap-1.5",children:[(0,s.jsx)(c.p,{type:"text",id:"IMEI",value:v,onChange:e=>!w&&x(e.target.value),placeholder:r,disabled:w,className:w?"bg-muted cursor-not-allowed":""}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground font-medium",children:"This will reboot the device."})]})]})]}),(0,s.jsx)(i.wL,{className:"grid border-t py-4",children:(0,s.jsx)(d.$,{type:"submit",className:"w-full",disabled:e||v===r||w,children:e?"Processing...":"Change IMEI"})})]})})})}},49573:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>l,TN:()=>c,XL:()=>d});var s=r(20475),a=r(20107),i=r(29395),o=r(22250);let n=(0,i.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=a.forwardRef((e,t)=>{let{className:r,variant:a,...i}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,o.cn)(n({variant:a}),r),...i})});l.displayName="Alert";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h5",{ref:t,className:(0,o.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})});d.displayName="AlertTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,o.cn)("text-sm [&_p]:leading-relaxed",r),...a})});c.displayName="AlertDescription"},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>l});var s=r(20475),a=r(20107),i=r(61837),o=r(29395),n=r(22250);let l=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:o,asChild:d=!1,...c}=e,u=d?i.DX:"button";return(0,s.jsx)(u,{className:(0,n.cn)(l({variant:a,size:o,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>o,aR:()=>n,wL:()=>u});var s=r(20475),a=r(20107),i=r(22250);let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});o.displayName="Card";let n=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...a})});n.displayName="CardHeader";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",r),...a})});l.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var s=r(20475),a=r(20107),i=r(22250);let o=a.forwardRef((e,t)=>{let{className:r,type:a,...o}=e;return(0,s.jsx)("input",{type:a,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o})});o.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(20475),a=r(20107),i=r(21840),o=r(29395),n=r(22250);let l=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.b,{ref:t,className:(0,n.cn)(l(),r),...a})});d.displayName=i.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var s=r(20475),a=r(22250);function i(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>n,ZI:()=>c,k$:()=>d,m_:()=>l});var s=r(20475),a=r(20107),i=r(43048),o=r(22250);let n=i.Kq,l=i.bL,d=i.l9,c=a.forwardRef((e,t)=>{let{className:r,sideOffset:a=4,...n}=e;return(0,s.jsx)(i.UC,{ref:t,sideOffset:a,className:(0,o.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})});c.displayName=i.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>u});var s=r(20107);let a=0,i=new Map,o=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},n=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=n(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(d);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var s=r(64901),a=r(868);function i(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let a=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),i=encodeURIComponent(a),o="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(i);t&&(o+="&wait=1&timeout=".concat(r));let n=await fetch(o,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!n.ok)throw Error("AT command failed with status: ".concat(n.status));let l=await n.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(s=l.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,8885,3746,3048,8112,191,6035,7358],()=>t(6507)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-812b4a781a9c8d64.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-812b4a781a9c8d64.js deleted file mode 100644 index 6323a1a..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-812b4a781a9c8d64.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9065],{24323:(e,t,r)=>{Promise.resolve().then(r.bind(r,15151))},15151:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var a=r(95155),s=r(12115),i=r(35007),o=r(9246),n=r(23950),l=r(48686),d=r(14085),c=r(9955),u=r(15785),f=r(25488),m=r(20241),p=r(39677),h=r(89622);let v=()=>{let[e,t]=(0,s.useState)(!0),[r,v]=(0,s.useState)(""),[g,x]=(0,s.useState)(""),[w,y]=(0,s.useState)(null),[b,N]=(0,s.useState)(!1),{toast:I}=(0,m.dj)(),j=(0,s.useCallback)(async()=>{try{t(!0);let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=3"),r=await e.json();console.log(r);let a=r[6].response.split("\n")[1];console.log(a);let s=a.match(/\d{15}/),i=s?s[0]:null;if(i)v(i),x(i);else throw Error("IMEI not found in response")}catch(e){I({title:"Failed to fetch IMEI",description:"Failed to fetch IMEI from the device",variant:"destructive"}),console.error(e)}finally{t(!1)}},[]),E=(0,s.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(!e.ok)throw Error("Failed to fetch profile status: ".concat(e.statusText));let t=await e.json();if(console.log("Profile Status:",t),"success"===t.status&&t.profile&&"unknown"!==t.profile&&"none"!==t.profile){let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let r=await e.json();if("success"===r.status&&Array.isArray(r.profiles)){let e=r.profiles.find(e=>e.name===t.profile);e&&e.imei?(y(e),N(!0),x(e.imei),console.log("Active Profile with IMEI:",e)):(y(null),N(!1))}}}else y(null),N(!1)}catch(e){console.error("Error checking active profile:",e),y(null),N(!1)}},[]);(0,s.useEffect)(()=>{(async()=>{await j(),await E()})()},[j,E]);let A=async e=>{if(e.preventDefault(),b){I({title:"Profile Controlled",description:'IMEI is currently managed by profile "'.concat(null==w?void 0:w.name,'". Edit the profile to change IMEI.'),variant:"destructive"});return}if(t(!0),15!==g.length||isNaN(Number(g))){I({title:"Invalid IMEI",description:"IMEI must be 15 digits and numbers only",variant:"destructive"}),t(!1);return}try{var r,a,s,i;let e='AT+EGMR=1,7,"'.concat(g,'"'),t=await (0,h.a)(e,!0);if((null===(r=t.response)||void 0===r?void 0:r.status)!=="success")throw Error((null===(s=t.response)||void 0===s?void 0:s.raw_output)||"Failed to update IMEI");let o=await (0,h.a)("AT+QPOWD=1",!0);if((null===(a=o.response)||void 0===a?void 0:a.status)!=="success")throw Error((null===(i=o.response)||void 0===i?void 0:i.raw_output)||"Failed to reboot device");I({title:"Success",description:"IMEI has been updated successfully. Rebooting...",duration:9e4}),setTimeout(()=>{window.location.reload()},9e4)}catch(e){I({title:"Failed to update IMEI",description:"Failed to update IMEI on the device",variant:"destructive"}),console.error(e)}finally{t(!1)}};return(0,a.jsx)("div",{className:"grid gap-8",children:(0,a.jsx)(i.Zp,{children:(0,a.jsxs)("form",{onSubmit:A,children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsx)(i.ZB,{children:"IMEI Mangling"}),(0,a.jsxs)(i.BT,{className:"flex items-center justify-between",children:["Change the IMEI of the device. Changing the IMEI may void your warranty and is illegal in some jurisdictions.",(0,a.jsx)(o.TooltipProvider,{children:(0,a.jsxs)(o.m_,{children:[(0,a.jsx)(o.k$,{children:(0,a.jsx)(n.A,{className:"size-4 text-orange-500"})}),(0,a.jsx)(o.ZI,{children:(0,a.jsx)("p",{children:"Do at your own risk!"})})]})})]})]}),(0,a.jsxs)(i.Wu,{children:[b&&w&&(0,a.jsxs)(p.Fc,{className:"mb-6",children:[(0,a.jsx)(l.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(p.XL,{children:"Profile Controlled"}),(0,a.jsxs)(p.TN,{children:['IMEI is currently being managed by profile "',w.name,'".']})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsxs)(u.J,{htmlFor:"IMEI",children:["Change Current IMEI",b&&(0,a.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:"(Profile Controlled)"})]}),e?(0,a.jsx)(f.E,{className:"h-8"}):(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(c.p,{type:"text",id:"IMEI",value:g,onChange:e=>!b&&x(e.target.value),placeholder:r,disabled:b,className:b?"bg-muted cursor-not-allowed":""}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground font-medium",children:"This will reboot the device."})]})]})]}),(0,a.jsx)(i.wL,{className:"grid border-t py-4",children:(0,a.jsx)(d.$,{type:"submit",className:"w-full",disabled:e||g===r||b,children:e?"Processing...":"Change IMEI"})})]})})})}},39677:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>l,TN:()=>c,XL:()=>d});var a=r(95155),s=r(12115),i=r(31027),o=r(29602);let n=(0,i.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=s.forwardRef((e,t)=>{let{className:r,variant:s,...i}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,o.cn)(n({variant:s}),r),...i})});l.displayName="Alert";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h5",{ref:t,className:(0,o.cn)("mb-1 font-medium leading-none tracking-tight",r),...s})});d.displayName="AlertTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("text-sm [&_p]:leading-relaxed",r),...s})});c.displayName="AlertDescription"},14085:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>l});var a=r(95155),s=r(12115),i=r(12317),o=r(31027),n=r(29602);let l=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,asChild:d=!1,...c}=e,u=d?i.DX:"button";return(0,a.jsx)(u,{className:(0,n.cn)(l({variant:s,size:o,className:r})),ref:t,...c})});d.displayName="Button"},35007:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>o,aR:()=>n,wL:()=>u});var a=r(95155),s=r(12115),i=r(29602);let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});o.displayName="Card";let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...s})});n.displayName="CardHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",r),...s})});l.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},9955:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var a=r(95155),s=r(12115),i=r(29602);let o=s.forwardRef((e,t)=>{let{className:r,type:s,...o}=e;return(0,a.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o})});o.displayName="Input"},15785:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(95155),s=r(12115),i=r(46195),o=r(31027),n=r(29602);let l=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(i.b,{ref:t,className:(0,n.cn)(l(),r),...s})});d.displayName=i.b.displayName},25488:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var a=r(95155),s=r(29602);function i(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},9246:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>n,ZI:()=>c,k$:()=>d,m_:()=>l});var a=r(95155),s=r(12115),i=r(19710),o=r(29602);let n=i.Kq,l=i.bL,d=i.l9,c=s.forwardRef((e,t)=>{let{className:r,sideOffset:s=4,...n}=e;return(0,a.jsx)(i.UC,{ref:t,sideOffset:s,className:(0,o.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})});c.displayName=i.UC.displayName},20241:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>u});var a=r(12115);let s=0,i=new Map,o=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},n=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=n(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=a.useState(d);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var a=r(43463),s=r(69795);function i(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>l});var a=r(12115);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:d="",children:c,iconNode:u,...f}=e;return(0,a.createElement)("svg",{ref:t,...o,width:s,height:s,stroke:r,strokeWidth:l?24*Number(n)/Number(s):n,className:i("lucide",d),...f},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,a.forwardRef)((r,o)=>{let{className:l,...d}=r;return(0,a.createElement)(n,{ref:o,iconNode:t,className:i("lucide-".concat(s(e)),l),...d})});return r.displayName="".concat(e),r}},48686:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(67401).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},23950:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(67401).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},89622:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});let a=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var a;let s=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),i=encodeURIComponent(s),o="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(i);t&&(o+="&wait=1&timeout=".concat(r));let n=await fetch(o,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*r+5e3)});if(!n.ok)throw Error("AT command failed with status: ".concat(n.status));let l=await n.json();if(l.error)throw Error("AT queue error: ".concat(l.error));if(t&&(null===(a=l.response)||void 0===a?void 0:a.status)==="timeout")throw Error("AT command timed out after ".concat(r," seconds"));return l}catch(e){throw console.error("AT Command error:",e),e}}},46195:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var a=r(12115),s=r(23360),i=r(95155),o=a.forwardRef((e,t)=>(0,i.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var n=o},63543:(e,t,r)=>{"use strict";r.d(t,{b:()=>n,s:()=>o});var a=r(12115),s=r(23360),i=r(95155),o=a.forwardRef((e,t)=>(0,i.jsx)(s.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));o.displayName="VisuallyHidden";var n=o}},e=>{var t=t=>e(e.s=t);e.O(0,[1365,7401,9895,9710,8441,1517,7358],()=>t(24323)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js deleted file mode 100644 index 5f74a9b..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[347],{48794:(s,e,t)=>{Promise.resolve().then(t.bind(t,31345))},31345:(s,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>r});var a=t(95155);t(12115);var l=t(76046),n=t(48173),i=t.n(n);let r=s=>{let{children:e}=s,t=(0,l.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Cellular Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(i(),{href:"/dashboard/cell-settings/basic-settings",className:"".concat("/dashboard/cell-settings/basic-settings/"===t?"font-semibold text-primary":"text-sm"),children:"Basic Settings"}),(0,a.jsx)(i(),{href:"/dashboard/cell-settings/band-locking",className:"".concat("/dashboard/cell-settings/band-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Band Locking"}),(0,a.jsx)(i(),{href:"/dashboard/cell-settings/cell-locking",className:"".concat("/dashboard/cell-settings/cell-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Cellular Locking"}),(0,a.jsx)(i(),{href:"/dashboard/cell-settings/imei-mangling",className:"".concat("/dashboard/cell-settings/imei-mangling/"===t?"font-semibold text-primary":"text-sm"),children:"IMEI Mangling"}),(0,a.jsx)(i(),{href:"/dashboard/cell-settings/sms",className:"".concat("/dashboard/cell-settings/sms/"===t?"font-semibold text-primary":"text-sm"),children:"SMS Inbox"})]}),e]})]})}}},s=>{var e=e=>s(s.s=e);s.O(0,[1028,8441,1517,7358],()=>e(48794)),_N_E=s.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-81a19da0f530d3d8.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-81a19da0f530d3d8.js new file mode 100644 index 0000000..0895bd6 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-81a19da0f530d3d8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[347],{64754:(s,e,t)=>{Promise.resolve().then(t.bind(t,83593))},83593:(s,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>i});var a=t(20475);t(20107);var l=t(16118),n=t(9477),r=t.n(n);let i=s=>{let{children:e}=s,t=(0,l.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Cellular Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(r(),{href:"/dashboard/cell-settings/basic-settings",className:"".concat("/dashboard/cell-settings/basic-settings/"===t?"font-semibold text-primary":"text-sm"),children:"Basic Settings"}),(0,a.jsx)(r(),{href:"/dashboard/cell-settings/band-locking",className:"".concat("/dashboard/cell-settings/band-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Band Locking"}),(0,a.jsx)(r(),{href:"/dashboard/cell-settings/cell-locking",className:"".concat("/dashboard/cell-settings/cell-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Cellular Locking"}),(0,a.jsx)(r(),{href:"/dashboard/cell-settings/imei-mangling",className:"".concat("/dashboard/cell-settings/imei-mangling/"===t?"font-semibold text-primary":"text-sm"),children:"IMEI Mangling"}),(0,a.jsx)(r(),{href:"/dashboard/cell-settings/sms",className:"".concat("/dashboard/cell-settings/sms/"===t?"font-semibold text-primary":"text-sm"),children:"SMS Inbox"})]}),e]})]})}},16118:(s,e,t)=>{"use strict";var a=t(65834);t.o(a,"usePathname")&&t.d(e,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(e,{useRouter:function(){return a.useRouter}})}},s=>{var e=e=>s(s.s=e);s.O(0,[9477,191,6035,7358],()=>e(64754)),_N_E=s.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js new file mode 100644 index 0000000..0895bd6 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[347],{64754:(s,e,t)=>{Promise.resolve().then(t.bind(t,83593))},83593:(s,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>i});var a=t(20475);t(20107);var l=t(16118),n=t(9477),r=t.n(n);let i=s=>{let{children:e}=s,t=(0,l.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Cellular Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(r(),{href:"/dashboard/cell-settings/basic-settings",className:"".concat("/dashboard/cell-settings/basic-settings/"===t?"font-semibold text-primary":"text-sm"),children:"Basic Settings"}),(0,a.jsx)(r(),{href:"/dashboard/cell-settings/band-locking",className:"".concat("/dashboard/cell-settings/band-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Band Locking"}),(0,a.jsx)(r(),{href:"/dashboard/cell-settings/cell-locking",className:"".concat("/dashboard/cell-settings/cell-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Cellular Locking"}),(0,a.jsx)(r(),{href:"/dashboard/cell-settings/imei-mangling",className:"".concat("/dashboard/cell-settings/imei-mangling/"===t?"font-semibold text-primary":"text-sm"),children:"IMEI Mangling"}),(0,a.jsx)(r(),{href:"/dashboard/cell-settings/sms",className:"".concat("/dashboard/cell-settings/sms/"===t?"font-semibold text-primary":"text-sm"),children:"SMS Inbox"})]}),e]})]})}},16118:(s,e,t)=>{"use strict";var a=t(65834);t.o(a,"usePathname")&&t.d(e,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(e,{useRouter:function(){return a.useRouter}})}},s=>{var e=e=>s(s.s=e);s.O(0,[9477,191,6035,7358],()=>e(64754)),_N_E=s.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-0de39fdeb0f89b69.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-0de39fdeb0f89b69.js new file mode 100644 index 0000000..22a2c82 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-0de39fdeb0f89b69.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4808],{10748:(e,s,_)=>{Promise.resolve().then(_.bind(_,87133))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,2487,1209,191,6035,7358],()=>s(10748)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-13fdbb8126fb40d4.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-13fdbb8126fb40d4.js new file mode 100644 index 0000000..bbcf457 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-13fdbb8126fb40d4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4808],{10748:(e,s,_)=>{Promise.resolve().then(_.bind(_,87133))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,7133,191,6035,7358],()=>s(10748)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-5551dfccbdafa5d6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-5551dfccbdafa5d6.js new file mode 100644 index 0000000..30d87f9 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-5551dfccbdafa5d6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4808],{10748:(e,s,_)=>{Promise.resolve().then(_.bind(_,19496))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,9496,191,6035,7358],()=>s(10748)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-a868a91a4ba4734d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-a868a91a4ba4734d.js deleted file mode 100644 index 64c7dc2..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/page-a868a91a4ba4734d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4808],{43412:(e,s,_)=>{Promise.resolve().then(_.bind(_,68373))}},e=>{var s=s=>e(e.s=s);e.O(0,[5105,1365,7401,9895,2019,9975,6586,3838,8441,1517,7358],()=>s(43412)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-0282bacf2bd5c5a0.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-0282bacf2bd5c5a0.js new file mode 100644 index 0000000..1385c05 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-0282bacf2bd5c5a0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3358],{54016:(e,t,s)=>{Promise.resolve().then(s.bind(s,33776))},33776:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>v});var r=s(20475),a=s(20107),n=s(59166),i=s(66698);let l=(0,s(39997).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var o=s(51873),d=s(72167),c=s(93557),u=s(36824),m=s(574),f=s(42541),p=s(76554),h=s(31739),x=s(64219),g=s(32857);let v=()=>{let[e,t]=(0,a.useState)([]),[s,v]=(0,a.useState)(!1),[y,b]=(0,a.useState)([]),[w,j]=(0,a.useState)(!1),[N,S]=(0,a.useState)(""),[R,k]=(0,a.useState)(""),[C,E]=(0,a.useState)(!1),[A,T]=(0,a.useState)(""),M=(e,t)=>e.trim()&&t.trim()?!!/^\d+$/.test(e.trim())||((0,g.oR)({title:"Validation Error",description:"Phone number should contain only numbers",variant:"destructive"}),!1):((0,g.oR)({title:"Validation Error",description:"Phone number and message are required",variant:"destructive"}),!1),I=async()=>{if(M(N,R)){E(!0);try{let e={phone:N.trim(),message:R.trim()},t=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(e).toString()}),s=await t.json();if(console.log("Response data:",s),s.success)(0,g.oR)({title:"Success",description:"Message sent successfully"}),S(""),k(""),z();else throw Error(s.error||"Failed to send message")}catch(e){console.error("Send operation failed:",e),(0,g.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{E(!1)}}},D=async(e,t)=>{if(M(e,t)){E(!0);try{let s={phone:e.trim(),message:t.trim()},r=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(s).toString()}),a=await r.json();if(console.log("Response data:",a),a.success)(0,g.oR)({title:"Success",description:"Reply sent successfully"}),T(""),z();else throw Error(a.error||"Failed to send reply")}catch(e){console.error("Reply operation failed:",e),(0,g.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{E(!1)}}},_=e=>{let t={},s=[];return e.msg.forEach(e=>{if(void 0!==e.reference&&void 0!==e.part){var r;let a="".concat(e.sender,"-").concat(e.reference);t[a]||(t[a]={index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:"",originalIndices:[]}),t[a].message+=e.content,null===(r=t[a].originalIndices)||void 0===r||r.push(e.index),e.part===e.total&&(s.push(t[a]),delete t[a])}else s.push({index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:e.content,originalIndices:[e.index]})}),Object.values(t).forEach(e=>{s.push(e)}),s.sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime())},z=async()=>{v(!0);try{let e=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_inbox.sh"),s=await e.json();if(!(null==s?void 0:s.msg)||!Array.isArray(s.msg))throw Error("Invalid response format");let r=_(s);t(r),b([])}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{v(!1)}},O=async e=>{v(!0);try{if(!e.length)throw Error("No messages selected");let t=[...new Set(e)].sort((e,t)=>e-t).join(",");console.log("Deleting messages with indices:",t);let s=await fetch("/cgi-bin/quecmanager/cell-settings/cell-settings/sms/sms_delete.sh?indexes=".concat(t),{method:"GET",headers:{Accept:"application/json","Cache-Control":"no-cache"}}),r=await s.text();if(console.log("Raw response:",r),/Deleted message \d+/.test(r))(0,g.oR)({title:"Success!",description:"Selected messages deleted."}),await z();else throw Error("Something went wrong")}catch(e){console.error("Delete operation failed:",e),(0,g.oR)({title:"Error!",description:"Something went wrong",variant:"destructive"})}finally{v(!1)}},L=e=>{b(t=>{let s=new Set(t);return e.every(e=>s.has(e))?e.forEach(e=>s.delete(e)):e.forEach(e=>s.add(e)),Array.from(s)})},P=e=>{try{let[t,s]=e.split(" "),[r,a,n]=t.split("/");return{date:"20".concat(n,"-").concat(r,"-").concat(a),time:s}}catch(e){return console.error("Error parsing timestamp:",e),{date:"Invalid date",time:"Invalid time"}}};return(0,a.useEffect)(()=>{z()},[]),(0,r.jsxs)("div",{className:"grid gap-6",children:[(0,r.jsxs)(d.Zp,{className:"w-full max-w-screen",children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsx)(d.ZB,{children:"SMS Inbox"}),(0,r.jsx)(d.BT,{children:(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("span",{children:"View and manage SMS messages"}),(0,r.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,r.jsx)(m.S,{checked:e.length>0&&y.length===e.flatMap(e=>e.originalIndices||[e.index]).length,onCheckedChange:t=>{t?b(e.flatMap(e=>e.originalIndices||[e.index])):b([])}}),(0,r.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)(u.F,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:s?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,r.jsx)(n.A,{className:"h-8 w-8 animate-spin"}),(0,r.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,r.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>{let{date:t,time:s}=P(e.timestamp),a=e.originalIndices||[e.index];return(0,r.jsxs)(c.lG,{children:[(0,r.jsx)(c.zM,{className:"w-full",children:(0,r.jsxs)(d.Zp,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)(d.ZB,{children:e.sender}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:a.join(", ")}),(0,r.jsx)(m.S,{checked:a.every(e=>y.includes(e)),onCheckedChange:()=>L(a)})]})]}),(0,r.jsxs)(d.BT,{className:"text-left",children:[t," at ",s]})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,r.jsxs)(c.Cf,{children:[(0,r.jsxs)(c.c7,{children:[(0,r.jsx)(c.L3,{children:e.sender}),(0,r.jsxs)(c.rr,{children:[t," at ",s]})]}),(0,r.jsx)("p",{className:"whitespace-pre-line",children:e.message}),(0,r.jsx)(p.w,{className:"my-2"}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(h.T,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",value:A,onChange:e=>T(e.target.value)}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(f.$,{onClick:()=>D(e.sender,A),disabled:C||!A.trim(),children:[C?(0,r.jsx)(n.A,{className:"h-4 w-4 mr-2 animate-spin"}):(0,r.jsx)(i.A,{className:"h-4 w-4 mr-2"}),C?"Sending...":"Reply"]})})]})]})]},a.join("-"))})})}),(0,r.jsx)(d.wL,{className:"border-t py-4",children:(0,r.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,r.jsxs)(f.$,{variant:"outline",onClick:z,disabled:s,children:[(0,r.jsx)(l,{className:"h-4 w-4 mr-2"}),"Refresh"]}),(0,r.jsxs)(f.$,{variant:"destructive",disabled:0===y.length||s,onClick:()=>{if(0===y.length){(0,g.oR)({title:"Delete Messages",description:"No messages selected"});return}O(y)},children:[(0,r.jsx)(o.A,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,r.jsxs)(d.Zp,{children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsx)(d.ZB,{children:"Send SMS"}),(0,r.jsx)(d.BT,{children:"Send a new SMS message"})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsxs)("div",{className:"grid gap-6",children:[(0,r.jsx)(x.p,{placeholder:'Recipient number with country code not including "+" symbol.',value:N,onChange:e=>S(e.target.value),required:!0}),(0,r.jsx)(h.T,{placeholder:"Type your SMS here...",className:"h-32",value:R,onChange:e=>k(e.target.value),required:!0}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(f.$,{onClick:I,disabled:C||!N.trim()||!R.trim(),children:[C?(0,r.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(i.A,{className:"h-4 w-4"}),C?"Sending SMS...":"Send SMS"]})})]})})]})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>o});var r=s(20475),a=s(20107),n=s(61837),i=s(29395),l=s(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:s,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l,wL:()=>u});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...a})});u.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>o});var r=s(20475),a=s(20107),n=s(32713),i=s(7197),l=s(22250);let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.bL,{ref:t,className:(0,l.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...a,children:(0,r.jsx)(n.C1,{className:(0,l.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(i.Srz,{className:"h-4 w-4"})})})});o.displayName=n.bL.displayName},93557:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>f,Es:()=>h,HM:()=>u,L3:()=>x,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var r=s(20475),a=s(20107),n=s(60241),i=s(7197),l=s(22250);let o=n.bL,d=n.l9,c=n.ZL,u=n.bm,m=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hJ,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a})});m.displayName=n.hJ.displayName;let f=a.forwardRef((e,t)=>{let{className:s,children:a,...o}=e;return(0,r.jsxs)(c,{children:[(0,r.jsx)(m,{}),(0,r.jsxs)(n.UC,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...o,children:[a,(0,r.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(i.MKb,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=n.UC.displayName;let p=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};p.displayName="DialogHeader";let h=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};h.displayName="DialogFooter";let x=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hE,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",s),...a})});x.displayName=n.hE.displayName;let g=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.VY,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...a})});g.displayName=n.VY.displayName},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,type:a,...i}=e;return(0,r.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},36824:(e,t,s)=>{"use strict";s.d(t,{$:()=>o,F:()=>l});var r=s(20475),a=s(20107),n=s(89679),i=s(22250);let l=a.forwardRef((e,t)=>{let{className:s,children:a,...l}=e;return(0,r.jsxs)(n.bL,{ref:t,className:(0,i.cn)("relative overflow-hidden",s),...l,children:[(0,r.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:a}),(0,r.jsx)(o,{}),(0,r.jsx)(n.OK,{})]})});l.displayName=n.bL.displayName;let o=a.forwardRef((e,t)=>{let{className:s,orientation:a="vertical",...l}=e;return(0,r.jsx)(n.VM,{ref:t,orientation:a,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...l,children:(0,r.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=n.VM.displayName},76554:(e,t,s)=>{"use strict";s.d(t,{w:()=>l});var r=s(20475),a=s(20107),n=s(88853),i=s(22250);let l=a.forwardRef((e,t)=>{let{className:s,orientation:a="horizontal",decorative:l=!0,...o}=e;return(0,r.jsx)(n.b,{ref:t,decorative:l,orientation:a,className:(0,i.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",s),...o})});l.displayName=n.b.displayName},31739:(e,t,s)=>{"use strict";s.d(t,{T:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...a})});i.displayName="Textarea"},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>m,oR:()=>u});var r=s(20107);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?i(s):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=r.useState(d);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var r=s(64901),a=s(868);function n(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},66698:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},32713:(e,t,s)=>{"use strict";s.d(t,{C1:()=>R,bL:()=>S});var r=s(20107),a=s(64236),n=s(45170),i=s(94521),l=s(13061),o=s(65163),d=s(63620),c=s(54245),u=s(34544),m=s(20475),f="Checkbox",[p,h]=(0,n.A)(f),[x,g]=p(f),v=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,name:n,checked:o,defaultChecked:d,required:c,disabled:f,value:p="on",onCheckedChange:h,form:g,...v}=e,[y,b]=r.useState(null),S=(0,a.s)(t,e=>b(e)),R=r.useRef(!1),k=!y||g||!!y.closest("form"),[C=!1,E]=(0,l.i)({prop:o,defaultProp:d,onChange:h}),A=r.useRef(C);return r.useEffect(()=>{let e=null==y?void 0:y.form;if(e){let t=()=>E(A.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[y,E]),(0,m.jsxs)(x,{scope:s,state:C,disabled:f,children:[(0,m.jsx)(u.sG.button,{type:"button",role:"checkbox","aria-checked":j(C)?"mixed":C,"aria-required":c,"data-state":N(C),"data-disabled":f?"":void 0,disabled:f,value:p,...v,ref:S,onKeyDown:(0,i.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.m)(e.onClick,e=>{E(e=>!!j(e)||!e),k&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())})}),k&&(0,m.jsx)(w,{control:y,bubbles:!R.current,name:n,value:p,checked:C,required:c,disabled:f,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!j(d)&&d})]})});v.displayName=f;var y="CheckboxIndicator",b=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,forceMount:r,...a}=e,n=g(y,s);return(0,m.jsx)(c.C,{present:r||j(n.state)||!0===n.state,children:(0,m.jsx)(u.sG.span,{"data-state":N(n.state),"data-disabled":n.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});b.displayName=y;var w=e=>{let{control:t,checked:s,bubbles:a=!0,defaultChecked:n,...i}=e,l=r.useRef(null),c=(0,o.Z)(s),u=(0,d.X)(t);r.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==s&&t){let r=new Event("click",{bubbles:a});e.indeterminate=j(s),t.call(e,!j(s)&&s),e.dispatchEvent(r)}},[c,s,a]);let f=r.useRef(!j(s)&&s);return(0,m.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=n?n:f.current,...i,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return"indeterminate"===e}function N(e){return j(e)?"indeterminate":e?"checked":"unchecked"}var S=v,R=b},88853:(e,t,s)=>{"use strict";s.d(t,{b:()=>d});var r=s(20107),a=s(34544),n=s(20475),i="horizontal",l=["horizontal","vertical"],o=r.forwardRef((e,t)=>{let{decorative:s,orientation:r=i,...o}=e,d=l.includes(r)?r:i;return(0,n.jsx)(a.sG.div,{"data-orientation":d,...s?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o},65163:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var r=s(20107);function a(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,s)=>{"use strict";s.d(t,{X:()=>n});var r=s(20107),a=s(54122);function n(e){let[t,s]=r.useState(void 0);return(0,a.N)(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,a;if(!Array.isArray(t)||!t.length)return;let n=t[0];if("borderBoxSize"in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;s({width:r,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}s(void 0)},[e]),t}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,9464,6357,9679,191,6035,7358],()=>t(54016)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-1b94e70f7fd6434f.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-1b94e70f7fd6434f.js new file mode 100644 index 0000000..615604e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-1b94e70f7fd6434f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3358],{54016:(e,t,s)=>{Promise.resolve().then(s.bind(s,7360))},7360:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>v});var r=s(20475),a=s(20107),n=s(59166),i=s(66698),l=s(83148),o=s(51873),d=s(72167),c=s(93557),u=s(36824),m=s(574),f=s(42541),p=s(76554),h=s(31739),x=s(64219),g=s(32857);let v=()=>{let[e,t]=(0,a.useState)([]),[s,v]=(0,a.useState)(!1),[y,b]=(0,a.useState)([]),[w,j]=(0,a.useState)(!1),[N,S]=(0,a.useState)(""),[k,R]=(0,a.useState)(""),[C,E]=(0,a.useState)(!1),[A,T]=(0,a.useState)(""),M=(e,t)=>e.trim()&&t.trim()?!!/^\d+$/.test(e.trim())||((0,g.oR)({title:"Validation Error",description:"Phone number should contain only numbers",variant:"destructive"}),!1):((0,g.oR)({title:"Validation Error",description:"Phone number and message are required",variant:"destructive"}),!1),I=async()=>{if(M(N,k)){E(!0);try{let e={phone:N.trim(),message:k.trim()},t=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(e).toString()}),s=await t.json();if(console.log("Response data:",s),s.success)(0,g.oR)({title:"Success",description:"Message sent successfully"}),S(""),R(""),z();else throw Error(s.error||"Failed to send message")}catch(e){console.error("Send operation failed:",e),(0,g.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{E(!1)}}},D=async(e,t)=>{if(M(e,t)){E(!0);try{let s={phone:e.trim(),message:t.trim()},r=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(s).toString()}),a=await r.json();if(console.log("Response data:",a),a.success)(0,g.oR)({title:"Success",description:"Reply sent successfully"}),T(""),z();else throw Error(a.error||"Failed to send reply")}catch(e){console.error("Reply operation failed:",e),(0,g.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{E(!1)}}},_=e=>{let t={},s=[];return e.msg.forEach(e=>{if(void 0!==e.reference&&void 0!==e.part){var r;let a="".concat(e.sender,"-").concat(e.reference);t[a]||(t[a]={index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:"",originalIndices:[]}),t[a].message+=e.content,null===(r=t[a].originalIndices)||void 0===r||r.push(e.index),e.part===e.total&&(s.push(t[a]),delete t[a])}else s.push({index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:e.content,originalIndices:[e.index]})}),Object.values(t).forEach(e=>{s.push(e)}),s.sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime())},z=async()=>{v(!0);try{let e=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_inbox.sh"),s=await e.json();if(!(null==s?void 0:s.msg)||!Array.isArray(s.msg))throw Error("Invalid response format");let r=_(s);t(r),b([])}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{v(!1)}},L=async e=>{v(!0);try{if(!e.length)throw Error("No messages selected");let t=[...new Set(e)].sort((e,t)=>e-t).join(",");console.log("Deleting messages with indices:",t);let s=await fetch("/cgi-bin/quecmanager/cell-settings/cell-settings/sms/sms_delete.sh?indexes=".concat(t),{method:"GET",headers:{Accept:"application/json","Cache-Control":"no-cache"}}),r=await s.text();if(console.log("Raw response:",r),/Deleted message \d+/.test(r))(0,g.oR)({title:"Success!",description:"Selected messages deleted."}),await z();else throw Error("Something went wrong")}catch(e){console.error("Delete operation failed:",e),(0,g.oR)({title:"Error!",description:"Something went wrong",variant:"destructive"})}finally{v(!1)}},O=e=>{b(t=>{let s=new Set(t);return e.every(e=>s.has(e))?e.forEach(e=>s.delete(e)):e.forEach(e=>s.add(e)),Array.from(s)})},P=e=>{try{let[t,s]=e.split(" "),[r,a,n]=t.split("/");return{date:"20".concat(n,"-").concat(r,"-").concat(a),time:s}}catch(e){return console.error("Error parsing timestamp:",e),{date:"Invalid date",time:"Invalid time"}}};return(0,a.useEffect)(()=>{z()},[]),(0,r.jsxs)("div",{className:"grid gap-6",children:[(0,r.jsxs)(d.Zp,{className:"w-full max-w-screen",children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsx)(d.ZB,{children:"SMS Inbox"}),(0,r.jsx)(d.BT,{children:(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("span",{children:"View and manage SMS messages"}),(0,r.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,r.jsx)(m.S,{checked:e.length>0&&y.length===e.flatMap(e=>e.originalIndices||[e.index]).length,onCheckedChange:t=>{t?b(e.flatMap(e=>e.originalIndices||[e.index])):b([])}}),(0,r.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)(u.F,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:s?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,r.jsx)(n.A,{className:"h-8 w-8 animate-spin"}),(0,r.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,r.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>{let{date:t,time:s}=P(e.timestamp),a=e.originalIndices||[e.index];return(0,r.jsxs)(c.lG,{children:[(0,r.jsx)(c.zM,{className:"w-full",children:(0,r.jsxs)(d.Zp,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)(d.ZB,{children:e.sender}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:a.join(", ")}),(0,r.jsx)(m.S,{checked:a.every(e=>y.includes(e)),onCheckedChange:()=>O(a)})]})]}),(0,r.jsxs)(d.BT,{className:"text-left",children:[t," at ",s]})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,r.jsxs)(c.Cf,{children:[(0,r.jsxs)(c.c7,{children:[(0,r.jsx)(c.L3,{children:e.sender}),(0,r.jsxs)(c.rr,{children:[t," at ",s]})]}),(0,r.jsx)("p",{className:"whitespace-pre-line",children:e.message}),(0,r.jsx)(p.w,{className:"my-2"}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(h.T,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",value:A,onChange:e=>T(e.target.value)}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(f.$,{onClick:()=>D(e.sender,A),disabled:C||!A.trim(),children:[C?(0,r.jsx)(n.A,{className:"h-4 w-4 mr-2 animate-spin"}):(0,r.jsx)(i.A,{className:"h-4 w-4 mr-2"}),C?"Sending...":"Reply"]})})]})]})]},a.join("-"))})})}),(0,r.jsx)(d.wL,{className:"border-t py-4",children:(0,r.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,r.jsxs)(f.$,{variant:"outline",onClick:z,disabled:s,children:[(0,r.jsx)(l.A,{className:"h-4 w-4 mr-2"}),"Refresh"]}),(0,r.jsxs)(f.$,{variant:"destructive",disabled:0===y.length||s,onClick:()=>{if(0===y.length){(0,g.oR)({title:"Delete Messages",description:"No messages selected"});return}L(y)},children:[(0,r.jsx)(o.A,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,r.jsxs)(d.Zp,{children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsx)(d.ZB,{children:"Send SMS"}),(0,r.jsx)(d.BT,{children:"Send a new SMS message"})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsxs)("div",{className:"grid gap-6",children:[(0,r.jsx)(x.p,{placeholder:'Recipient number with country code not including "+" symbol.',value:N,onChange:e=>S(e.target.value),required:!0}),(0,r.jsx)(h.T,{placeholder:"Type your SMS here...",className:"h-32",value:k,onChange:e=>R(e.target.value),required:!0}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(f.$,{onClick:I,disabled:C||!N.trim()||!k.trim(),children:[C?(0,r.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(i.A,{className:"h-4 w-4"}),C?"Sending SMS...":"Send SMS"]})})]})})]})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>o});var r=s(20475),a=s(20107),n=s(61837),i=s(29395),l=s(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:s,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l,wL:()=>u});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...a})});u.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>o});var r=s(20475),a=s(20107),n=s(32713),i=s(7197),l=s(22250);let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.bL,{ref:t,className:(0,l.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...a,children:(0,r.jsx)(n.C1,{className:(0,l.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(i.Srz,{className:"h-4 w-4"})})})});o.displayName=n.bL.displayName},93557:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>f,Es:()=>h,HM:()=>u,L3:()=>x,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var r=s(20475),a=s(20107),n=s(60241),i=s(7197),l=s(22250);let o=n.bL,d=n.l9,c=n.ZL,u=n.bm,m=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hJ,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a})});m.displayName=n.hJ.displayName;let f=a.forwardRef((e,t)=>{let{className:s,children:a,...o}=e;return(0,r.jsxs)(c,{children:[(0,r.jsx)(m,{}),(0,r.jsxs)(n.UC,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...o,children:[a,(0,r.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(i.MKb,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=n.UC.displayName;let p=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};p.displayName="DialogHeader";let h=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};h.displayName="DialogFooter";let x=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hE,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",s),...a})});x.displayName=n.hE.displayName;let g=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.VY,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...a})});g.displayName=n.VY.displayName},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,type:a,...i}=e;return(0,r.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},36824:(e,t,s)=>{"use strict";s.d(t,{$:()=>o,F:()=>l});var r=s(20475),a=s(20107),n=s(89679),i=s(22250);let l=a.forwardRef((e,t)=>{let{className:s,children:a,...l}=e;return(0,r.jsxs)(n.bL,{ref:t,className:(0,i.cn)("relative overflow-hidden",s),...l,children:[(0,r.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:a}),(0,r.jsx)(o,{}),(0,r.jsx)(n.OK,{})]})});l.displayName=n.bL.displayName;let o=a.forwardRef((e,t)=>{let{className:s,orientation:a="vertical",...l}=e;return(0,r.jsx)(n.VM,{ref:t,orientation:a,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...l,children:(0,r.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=n.VM.displayName},76554:(e,t,s)=>{"use strict";s.d(t,{w:()=>l});var r=s(20475),a=s(20107),n=s(88853),i=s(22250);let l=a.forwardRef((e,t)=>{let{className:s,orientation:a="horizontal",decorative:l=!0,...o}=e;return(0,r.jsx)(n.b,{ref:t,decorative:l,orientation:a,className:(0,i.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",s),...o})});l.displayName=n.b.displayName},31739:(e,t,s)=>{"use strict";s.d(t,{T:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...a})});i.displayName="Textarea"},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>m,oR:()=>u});var r=s(20107);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?i(s):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=r.useState(d);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var r=s(64901),a=s(868);function n(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{A:()=>o});var r=s(20107);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),s=0;s!!e&&s.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:s="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...m}=e;return(0,r.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:s,strokeWidth:o?24*Number(l)/Number(a):l,className:n("lucide",d),...m},[...u.map(e=>{let[t,s]=e;return(0,r.createElement)(t,s)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let s=(0,r.forwardRef)((s,i)=>{let{className:o,...d}=s;return(0,r.createElement)(l,{ref:i,iconNode:t,className:n("lucide-".concat(a(e)),o),...d})});return s.displayName="".concat(e),s}},59166:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},83148:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},66698:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},32713:(e,t,s)=>{"use strict";s.d(t,{C1:()=>k,bL:()=>S});var r=s(20107),a=s(64236),n=s(45170),i=s(94521),l=s(13061),o=s(65163),d=s(63620),c=s(54245),u=s(34544),m=s(20475),f="Checkbox",[p,h]=(0,n.A)(f),[x,g]=p(f),v=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,name:n,checked:o,defaultChecked:d,required:c,disabled:f,value:p="on",onCheckedChange:h,form:g,...v}=e,[y,b]=r.useState(null),S=(0,a.s)(t,e=>b(e)),k=r.useRef(!1),R=!y||g||!!y.closest("form"),[C=!1,E]=(0,l.i)({prop:o,defaultProp:d,onChange:h}),A=r.useRef(C);return r.useEffect(()=>{let e=null==y?void 0:y.form;if(e){let t=()=>E(A.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[y,E]),(0,m.jsxs)(x,{scope:s,state:C,disabled:f,children:[(0,m.jsx)(u.sG.button,{type:"button",role:"checkbox","aria-checked":j(C)?"mixed":C,"aria-required":c,"data-state":N(C),"data-disabled":f?"":void 0,disabled:f,value:p,...v,ref:S,onKeyDown:(0,i.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.m)(e.onClick,e=>{E(e=>!!j(e)||!e),R&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),R&&(0,m.jsx)(w,{control:y,bubbles:!k.current,name:n,value:p,checked:C,required:c,disabled:f,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!j(d)&&d})]})});v.displayName=f;var y="CheckboxIndicator",b=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,forceMount:r,...a}=e,n=g(y,s);return(0,m.jsx)(c.C,{present:r||j(n.state)||!0===n.state,children:(0,m.jsx)(u.sG.span,{"data-state":N(n.state),"data-disabled":n.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});b.displayName=y;var w=e=>{let{control:t,checked:s,bubbles:a=!0,defaultChecked:n,...i}=e,l=r.useRef(null),c=(0,o.Z)(s),u=(0,d.X)(t);r.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==s&&t){let r=new Event("click",{bubbles:a});e.indeterminate=j(s),t.call(e,!j(s)&&s),e.dispatchEvent(r)}},[c,s,a]);let f=r.useRef(!j(s)&&s);return(0,m.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=n?n:f.current,...i,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return"indeterminate"===e}function N(e){return j(e)?"indeterminate":e?"checked":"unchecked"}var S=v,k=b},88853:(e,t,s)=>{"use strict";s.d(t,{b:()=>d});var r=s(20107),a=s(34544),n=s(20475),i="horizontal",l=["horizontal","vertical"],o=r.forwardRef((e,t)=>{let{decorative:s,orientation:r=i,...o}=e,d=l.includes(r)?r:i;return(0,n.jsx)(a.sG.div,{"data-orientation":d,...s?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o},65163:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var r=s(20107);function a(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,s)=>{"use strict";s.d(t,{X:()=>n});var r=s(20107),a=s(54122);function n(e){let[t,s]=r.useState(void 0);return(0,a.N)(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,a;if(!Array.isArray(t)||!t.length)return;let n=t[0];if("borderBoxSize"in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;s({width:r,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}s(void 0)},[e]),t}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,9464,241,9679,191,6035,7358],()=>t(54016)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-1c7aa5f5d7a1ffef.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-1c7aa5f5d7a1ffef.js new file mode 100644 index 0000000..cd879ff --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-1c7aa5f5d7a1ffef.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3358],{54016:(e,t,s)=>{Promise.resolve().then(s.bind(s,33776))},33776:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>v});var r=s(20475),a=s(20107),n=s(59166),i=s(66698);let l=(0,s(39997).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var o=s(51873),d=s(72167),c=s(93557),u=s(36824),m=s(574),f=s(42541),p=s(76554),h=s(31739),x=s(64219),g=s(32857);let v=()=>{let[e,t]=(0,a.useState)([]),[s,v]=(0,a.useState)(!1),[y,b]=(0,a.useState)([]),[w,j]=(0,a.useState)(!1),[N,S]=(0,a.useState)(""),[k,R]=(0,a.useState)(""),[C,E]=(0,a.useState)(!1),[A,T]=(0,a.useState)(""),M=(e,t)=>e.trim()&&t.trim()?!!/^\d+$/.test(e.trim())||((0,g.oR)({title:"Validation Error",description:"Phone number should contain only numbers",variant:"destructive"}),!1):((0,g.oR)({title:"Validation Error",description:"Phone number and message are required",variant:"destructive"}),!1),I=async()=>{if(M(N,k)){E(!0);try{let e={phone:N.trim(),message:k.trim()},t=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(e).toString()}),s=await t.json();if(console.log("Response data:",s),s.success)(0,g.oR)({title:"Success",description:"Message sent successfully"}),S(""),R(""),z();else throw Error(s.error||"Failed to send message")}catch(e){console.error("Send operation failed:",e),(0,g.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{E(!1)}}},D=async(e,t)=>{if(M(e,t)){E(!0);try{let s={phone:e.trim(),message:t.trim()},r=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(s).toString()}),a=await r.json();if(console.log("Response data:",a),a.success)(0,g.oR)({title:"Success",description:"Reply sent successfully"}),T(""),z();else throw Error(a.error||"Failed to send reply")}catch(e){console.error("Reply operation failed:",e),(0,g.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{E(!1)}}},_=e=>{let t={},s=[];return e.msg.forEach(e=>{if(void 0!==e.reference&&void 0!==e.part){var r;let a="".concat(e.sender,"-").concat(e.reference);t[a]||(t[a]={index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:"",originalIndices:[]}),t[a].message+=e.content,null===(r=t[a].originalIndices)||void 0===r||r.push(e.index),e.part===e.total&&(s.push(t[a]),delete t[a])}else s.push({index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:e.content,originalIndices:[e.index]})}),Object.values(t).forEach(e=>{s.push(e)}),s.sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime())},z=async()=>{v(!0);try{let e=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_inbox.sh"),s=await e.json();if(!(null==s?void 0:s.msg)||!Array.isArray(s.msg))throw Error("Invalid response format");let r=_(s);t(r),b([])}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{v(!1)}},L=async e=>{v(!0);try{if(!e.length)throw Error("No messages selected");let t=[...new Set(e)].sort((e,t)=>e-t).join(",");console.log("Deleting messages with indices:",t);let s=await fetch("/cgi-bin/quecmanager/cell-settings/cell-settings/sms/sms_delete.sh?indexes=".concat(t),{method:"GET",headers:{Accept:"application/json","Cache-Control":"no-cache"}}),r=await s.text();if(console.log("Raw response:",r),/Deleted message \d+/.test(r))(0,g.oR)({title:"Success!",description:"Selected messages deleted."}),await z();else throw Error("Something went wrong")}catch(e){console.error("Delete operation failed:",e),(0,g.oR)({title:"Error!",description:"Something went wrong",variant:"destructive"})}finally{v(!1)}},O=e=>{b(t=>{let s=new Set(t);return e.every(e=>s.has(e))?e.forEach(e=>s.delete(e)):e.forEach(e=>s.add(e)),Array.from(s)})},P=e=>{try{let[t,s]=e.split(" "),[r,a,n]=t.split("/");return{date:"20".concat(n,"-").concat(r,"-").concat(a),time:s}}catch(e){return console.error("Error parsing timestamp:",e),{date:"Invalid date",time:"Invalid time"}}};return(0,a.useEffect)(()=>{z()},[]),(0,r.jsxs)("div",{className:"grid gap-6",children:[(0,r.jsxs)(d.Zp,{className:"w-full max-w-screen",children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsx)(d.ZB,{children:"SMS Inbox"}),(0,r.jsx)(d.BT,{children:(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("span",{children:"View and manage SMS messages"}),(0,r.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,r.jsx)(m.S,{checked:e.length>0&&y.length===e.flatMap(e=>e.originalIndices||[e.index]).length,onCheckedChange:t=>{t?b(e.flatMap(e=>e.originalIndices||[e.index])):b([])}}),(0,r.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)(u.F,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:s?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,r.jsx)(n.A,{className:"h-8 w-8 animate-spin"}),(0,r.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,r.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>{let{date:t,time:s}=P(e.timestamp),a=e.originalIndices||[e.index];return(0,r.jsxs)(c.lG,{children:[(0,r.jsx)(c.zM,{className:"w-full",children:(0,r.jsxs)(d.Zp,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)(d.ZB,{children:e.sender}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:a.join(", ")}),(0,r.jsx)(m.S,{checked:a.every(e=>y.includes(e)),onCheckedChange:()=>O(a)})]})]}),(0,r.jsxs)(d.BT,{className:"text-left",children:[t," at ",s]})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,r.jsxs)(c.Cf,{children:[(0,r.jsxs)(c.c7,{children:[(0,r.jsx)(c.L3,{children:e.sender}),(0,r.jsxs)(c.rr,{children:[t," at ",s]})]}),(0,r.jsx)("p",{className:"whitespace-pre-line",children:e.message}),(0,r.jsx)(p.w,{className:"my-2"}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(h.T,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",value:A,onChange:e=>T(e.target.value)}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(f.$,{onClick:()=>D(e.sender,A),disabled:C||!A.trim(),children:[C?(0,r.jsx)(n.A,{className:"h-4 w-4 mr-2 animate-spin"}):(0,r.jsx)(i.A,{className:"h-4 w-4 mr-2"}),C?"Sending...":"Reply"]})})]})]})]},a.join("-"))})})}),(0,r.jsx)(d.wL,{className:"border-t py-4",children:(0,r.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,r.jsxs)(f.$,{variant:"outline",onClick:z,disabled:s,children:[(0,r.jsx)(l,{className:"h-4 w-4 mr-2"}),"Refresh"]}),(0,r.jsxs)(f.$,{variant:"destructive",disabled:0===y.length||s,onClick:()=>{if(0===y.length){(0,g.oR)({title:"Delete Messages",description:"No messages selected"});return}L(y)},children:[(0,r.jsx)(o.A,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,r.jsxs)(d.Zp,{children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsx)(d.ZB,{children:"Send SMS"}),(0,r.jsx)(d.BT,{children:"Send a new SMS message"})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsxs)("div",{className:"grid gap-6",children:[(0,r.jsx)(x.p,{placeholder:'Recipient number with country code not including "+" symbol.',value:N,onChange:e=>S(e.target.value),required:!0}),(0,r.jsx)(h.T,{placeholder:"Type your SMS here...",className:"h-32",value:k,onChange:e=>R(e.target.value),required:!0}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(f.$,{onClick:I,disabled:C||!N.trim()||!k.trim(),children:[C?(0,r.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(i.A,{className:"h-4 w-4"}),C?"Sending SMS...":"Send SMS"]})})]})})]})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>o});var r=s(20475),a=s(20107),n=s(61837),i=s(29395),l=s(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:s,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l,wL:()=>u});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...a})});u.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>o});var r=s(20475),a=s(20107),n=s(32713),i=s(7197),l=s(22250);let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.bL,{ref:t,className:(0,l.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...a,children:(0,r.jsx)(n.C1,{className:(0,l.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(i.Srz,{className:"h-4 w-4"})})})});o.displayName=n.bL.displayName},93557:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>f,Es:()=>h,HM:()=>u,L3:()=>x,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var r=s(20475),a=s(20107),n=s(60241),i=s(7197),l=s(22250);let o=n.bL,d=n.l9,c=n.ZL,u=n.bm,m=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hJ,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a})});m.displayName=n.hJ.displayName;let f=a.forwardRef((e,t)=>{let{className:s,children:a,...o}=e;return(0,r.jsxs)(c,{children:[(0,r.jsx)(m,{}),(0,r.jsxs)(n.UC,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...o,children:[a,(0,r.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(i.MKb,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=n.UC.displayName;let p=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};p.displayName="DialogHeader";let h=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};h.displayName="DialogFooter";let x=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hE,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",s),...a})});x.displayName=n.hE.displayName;let g=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.VY,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...a})});g.displayName=n.VY.displayName},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,type:a,...i}=e;return(0,r.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},36824:(e,t,s)=>{"use strict";s.d(t,{$:()=>o,F:()=>l});var r=s(20475),a=s(20107),n=s(89679),i=s(22250);let l=a.forwardRef((e,t)=>{let{className:s,children:a,...l}=e;return(0,r.jsxs)(n.bL,{ref:t,className:(0,i.cn)("relative overflow-hidden",s),...l,children:[(0,r.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:a}),(0,r.jsx)(o,{}),(0,r.jsx)(n.OK,{})]})});l.displayName=n.bL.displayName;let o=a.forwardRef((e,t)=>{let{className:s,orientation:a="vertical",...l}=e;return(0,r.jsx)(n.VM,{ref:t,orientation:a,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...l,children:(0,r.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=n.VM.displayName},76554:(e,t,s)=>{"use strict";s.d(t,{w:()=>l});var r=s(20475),a=s(20107),n=s(88853),i=s(22250);let l=a.forwardRef((e,t)=>{let{className:s,orientation:a="horizontal",decorative:l=!0,...o}=e;return(0,r.jsx)(n.b,{ref:t,decorative:l,orientation:a,className:(0,i.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",s),...o})});l.displayName=n.b.displayName},31739:(e,t,s)=>{"use strict";s.d(t,{T:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...a})});i.displayName="Textarea"},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>m,oR:()=>u});var r=s(20107);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?i(s):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=r.useState(d);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var r=s(64901),a=s(868);function n(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{A:()=>o});var r=s(20107);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),s=0;s!!e&&s.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:s="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...m}=e;return(0,r.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:s,strokeWidth:o?24*Number(l)/Number(a):l,className:n("lucide",d),...m},[...u.map(e=>{let[t,s]=e;return(0,r.createElement)(t,s)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let s=(0,r.forwardRef)((s,i)=>{let{className:o,...d}=s;return(0,r.createElement)(l,{ref:i,iconNode:t,className:n("lucide-".concat(a(e)),o),...d})});return s.displayName="".concat(e),s}},59166:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},66698:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},32713:(e,t,s)=>{"use strict";s.d(t,{C1:()=>k,bL:()=>S});var r=s(20107),a=s(64236),n=s(45170),i=s(94521),l=s(13061),o=s(65163),d=s(63620),c=s(54245),u=s(34544),m=s(20475),f="Checkbox",[p,h]=(0,n.A)(f),[x,g]=p(f),v=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,name:n,checked:o,defaultChecked:d,required:c,disabled:f,value:p="on",onCheckedChange:h,form:g,...v}=e,[y,b]=r.useState(null),S=(0,a.s)(t,e=>b(e)),k=r.useRef(!1),R=!y||g||!!y.closest("form"),[C=!1,E]=(0,l.i)({prop:o,defaultProp:d,onChange:h}),A=r.useRef(C);return r.useEffect(()=>{let e=null==y?void 0:y.form;if(e){let t=()=>E(A.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[y,E]),(0,m.jsxs)(x,{scope:s,state:C,disabled:f,children:[(0,m.jsx)(u.sG.button,{type:"button",role:"checkbox","aria-checked":j(C)?"mixed":C,"aria-required":c,"data-state":N(C),"data-disabled":f?"":void 0,disabled:f,value:p,...v,ref:S,onKeyDown:(0,i.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.m)(e.onClick,e=>{E(e=>!!j(e)||!e),R&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),R&&(0,m.jsx)(w,{control:y,bubbles:!k.current,name:n,value:p,checked:C,required:c,disabled:f,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!j(d)&&d})]})});v.displayName=f;var y="CheckboxIndicator",b=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,forceMount:r,...a}=e,n=g(y,s);return(0,m.jsx)(c.C,{present:r||j(n.state)||!0===n.state,children:(0,m.jsx)(u.sG.span,{"data-state":N(n.state),"data-disabled":n.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});b.displayName=y;var w=e=>{let{control:t,checked:s,bubbles:a=!0,defaultChecked:n,...i}=e,l=r.useRef(null),c=(0,o.Z)(s),u=(0,d.X)(t);r.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==s&&t){let r=new Event("click",{bubbles:a});e.indeterminate=j(s),t.call(e,!j(s)&&s),e.dispatchEvent(r)}},[c,s,a]);let f=r.useRef(!j(s)&&s);return(0,m.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=n?n:f.current,...i,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return"indeterminate"===e}function N(e){return j(e)?"indeterminate":e?"checked":"unchecked"}var S=v,k=b},88853:(e,t,s)=>{"use strict";s.d(t,{b:()=>d});var r=s(20107),a=s(34544),n=s(20475),i="horizontal",l=["horizontal","vertical"],o=r.forwardRef((e,t)=>{let{decorative:s,orientation:r=i,...o}=e,d=l.includes(r)?r:i;return(0,n.jsx)(a.sG.div,{"data-orientation":d,...s?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o},65163:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var r=s(20107);function a(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,s)=>{"use strict";s.d(t,{X:()=>n});var r=s(20107),a=s(54122);function n(e){let[t,s]=r.useState(void 0);return(0,a.N)(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,a;if(!Array.isArray(t)||!t.length)return;let n=t[0];if("borderBoxSize"in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;s({width:r,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}s(void 0)},[e]),t}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,9464,241,9679,191,6035,7358],()=>t(54016)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-4d83fdaecde7cace.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-4d83fdaecde7cace.js deleted file mode 100644 index 92540c0..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-4d83fdaecde7cace.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3358],{12664:(e,t,s)=>{Promise.resolve().then(s.bind(s,8083))},8083:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>O});var a=s(95155),r=s(12115),n=s(14505),l=s(28283),i=s(24623),o=s(45686),d=s(35007),c=s(7837),m=s(3392),u=s(43670),p=s(14085),f=s(89282),x=s(10371),h=s(20241),g=s(15800),y=s(98867),j=s(22673),N=s(60061),w=s(7859),v=s(29602),b=s(87365);let S=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB,{ref:t,className:(0,v.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...r})});S.displayName=w.uB.displayName;let R=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,a.jsx)(b.$p$,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,a.jsx)(w.uB.Input,{ref:t,className:(0,v.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...r})]})});R.displayName=w.uB.Input.displayName;let C=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.List,{ref:t,className:(0,v.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",s),...r})});C.displayName=w.uB.List.displayName;let E=r.forwardRef((e,t)=>(0,a.jsx)(w.uB.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));E.displayName=w.uB.Empty.displayName;let T=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Group,{ref:t,className:(0,v.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...r})});T.displayName=w.uB.Group.displayName,r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Separator,{ref:t,className:(0,v.cn)("-mx-1 h-px bg-border",s),...r})}).displayName=w.uB.Separator.displayName;let A=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Item,{ref:t,className:(0,v.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s),...r})});A.displayName=w.uB.Item.displayName;var k=s(9955),_=s(51124);let M=r.forwardRef((e,t)=>{let{className:s,onChange:r,...n}=e;return(0,a.jsx)(j.Ay,{ref:t,className:(0,v.cn)("flex",s),flagComponent:D,countrySelectComponent:B,inputComponent:I,international:!0,defaultCountry:"US",smartCaret:!1,onChange:e=>null==r?void 0:r(e||""),...n})});M.displayName="PhoneInput";let I=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(k.p,{className:(0,v.cn)("rounded-e-lg rounded-s-none",s),...r,ref:t})});I.displayName="InputComponent";let B=e=>{let{disabled:t,value:s,options:r,onChange:n}=e;return(0,a.jsxs)(_.AM,{children:[(0,a.jsx)(_.Wv,{asChild:!0,children:(0,a.jsxs)(p.$,{type:"button",variant:"outline",className:"flex gap-1 rounded-e-none rounded-s-lg border-r-0 px-3 focus:z-10",disabled:t,children:[(0,a.jsx)(D,{country:s,countryName:s}),(0,a.jsx)(g.A,{className:(0,v.cn)("-mr-2 size-4 opacity-50",t?"hidden":"opacity-100")})]})}),(0,a.jsx)(_.hl,{className:"w-[300px] p-0",children:(0,a.jsxs)(S,{children:[(0,a.jsx)(R,{placeholder:"Search country..."}),(0,a.jsx)(C,{children:(0,a.jsxs)(m.F,{className:"h-72",children:[(0,a.jsx)(E,{children:"No country found."}),(0,a.jsx)(T,{children:r.map(e=>{let{value:t,label:r}=e;return t?(0,a.jsx)(z,{country:t,countryName:r,selectedCountry:s,onChange:n},t):null})})]})})]})})]})},z=e=>{let{country:t,countryName:s,selectedCountry:r,onChange:n}=e;return(0,a.jsxs)(A,{className:"gap-2",onSelect:()=>n(t),children:[(0,a.jsx)(D,{country:t,countryName:s}),(0,a.jsx)("span",{className:"flex-1 text-sm",children:s}),(0,a.jsx)("span",{className:"text-sm text-foreground/50",children:"+".concat(j.Ko(t))}),(0,a.jsx)(y.A,{className:"ml-auto size-4 ".concat(t===r?"opacity-100":"opacity-0")})]})},D=e=>{let{country:t,countryName:s}=e,r=N.Ay[t];return(0,a.jsx)("span",{className:"flex h-4 w-6 overflow-hidden rounded-sm bg-foreground/20 [&_svg]:size-full",children:r&&(0,a.jsx)(r,{title:s})})},O=()=>{let[e,t]=(0,r.useState)([]),[s,g]=(0,r.useState)(!1),[y,j]=(0,r.useState)([]),[N,w]=(0,r.useState)(""),[v,b]=(0,r.useState)(""),[S,R]=(0,r.useState)(!1),[C,E]=(0,r.useState)(""),T=e=>e.replace(/\+|\s/g,""),A=(e,t)=>{if(!e.trim()||!t.trim())return(0,h.oR)({title:"Validation Error",description:"Phone number and message are required",variant:"destructive"}),!1;let s=T(e);return!!/^\d+$/.test(s)||((0,h.oR)({title:"Validation Error",description:"Phone number should contain only numbers",variant:"destructive"}),!1)},k=async()=>{if(A(N,v)){R(!0);try{let e={phone:T(N.trim()),message:v.trim()},t=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(e).toString()}),s=await t.json();if(console.log("Response data:",s),s.success)(0,h.oR)({title:"Success",description:"Message sent successfully"}),w(""),b(""),B();else throw Error(s.error||"Failed to send message")}catch(e){console.error("Send operation failed:",e),(0,h.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{R(!1)}}},_=async(e,t)=>{if(A(e,t)){R(!0);try{let s={phone:T(e.trim()),message:t.trim()},a=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(s).toString()}),r=await a.json();if(console.log("Response data:",r),r.success)(0,h.oR)({title:"Success",description:"Reply sent successfully"}),E(""),B();else throw Error(r.error||"Failed to send reply")}catch(e){console.error("Reply operation failed:",e),(0,h.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{R(!1)}}},I=e=>{let t={},s=[];return e.msg.forEach(e=>{if(void 0!==e.reference&&void 0!==e.part){var a;let r="".concat(e.sender,"-").concat(e.reference);t[r]||(t[r]={index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:"",originalIndices:[]}),t[r].message+=e.content,null===(a=t[r].originalIndices)||void 0===a||a.push(e.index),e.part===e.total&&(s.push(t[r]),delete t[r])}else s.push({index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:e.content,originalIndices:[e.index]})}),Object.values(t).forEach(e=>{s.push(e)}),s.sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime())},B=async()=>{g(!0);try{let e=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_inbox.sh"),s=await e.json();if(!(null==s?void 0:s.msg)||!Array.isArray(s.msg))throw Error("Invalid response format");let a=I(s);t(a),j([])}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{g(!1)}},z=async e=>{g(!0);try{if(!e.length)throw Error("No messages selected");let t=[...new Set(e)].sort((e,t)=>e-t).join(",");console.log("Deleting messages with indices:",t);let s=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_delete.sh?indexes=".concat(t),{method:"GET",headers:{Accept:"application/json","Cache-Control":"no-cache"}}),a=await s.text();if(console.log("Raw response:",a),/Deleted message \d+/.test(a))(0,h.oR)({title:"Success!",description:"Selected messages deleted."}),await B();else throw Error("Something went wrong")}catch(e){console.error("Delete operation failed:",e),(0,h.oR)({title:"Error!",description:"Something went wrong",variant:"destructive"})}finally{g(!1)}},D=e=>{j(t=>{let s=new Set(t);return e.every(e=>s.has(e))?e.forEach(e=>s.delete(e)):e.forEach(e=>s.add(e)),Array.from(s)})},O=e=>{try{let[t,s]=e.split(" "),[a,r,n]=t.split("/");return{date:"20".concat(n,"-").concat(a,"-").concat(r),time:s}}catch(e){return console.error("Error parsing timestamp:",e),{date:"Invalid date",time:"Invalid time"}}};return(0,r.useEffect)(()=>{B()},[]),(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(d.Zp,{className:"w-full max-w-screen",children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsx)(d.ZB,{children:"SMS Inbox"}),(0,a.jsx)(d.BT,{children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{children:"View and manage SMS messages"}),(0,a.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,a.jsx)(u.S,{checked:e.length>0&&y.length===e.flatMap(e=>e.originalIndices||[e.index]).length,onCheckedChange:t=>{t?j(e.flatMap(e=>e.originalIndices||[e.index])):j([])}}),(0,a.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsx)(m.F,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:s?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,a.jsx)(n.A,{className:"h-8 w-8 animate-spin"}),(0,a.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,a.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>{let{date:t,time:s}=O(e.timestamp),r=e.originalIndices||[e.index];return(0,a.jsxs)(c.lG,{children:[(0,a.jsx)(c.zM,{className:"w-full",children:(0,a.jsxs)(d.Zp,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)(d.ZB,{children:e.sender}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:r.join(", ")}),(0,a.jsx)(u.S,{checked:r.every(e=>y.includes(e)),onCheckedChange:()=>D(r)})]})]}),(0,a.jsxs)(d.BT,{className:"text-left",children:[t," at ",s]})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,a.jsxs)(c.Cf,{children:[(0,a.jsxs)(c.c7,{children:[(0,a.jsx)(c.L3,{children:e.sender}),(0,a.jsxs)(c.rr,{children:[t," at ",s]})]}),(0,a.jsx)("p",{className:"whitespace-pre-line",children:e.message}),(0,a.jsx)(f.w,{className:"my-2"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(x.T,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",value:C,onChange:e=>E(e.target.value)}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsxs)(p.$,{onClick:()=>_(e.sender,C),disabled:S||!C.trim(),children:[S?(0,a.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(l.A,{className:"h-4 w-4"}),S?"Sending...":"Reply"]})})]})]})]},r.join("-"))})})}),(0,a.jsx)(d.wL,{className:"border-t py-4",children:(0,a.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,a.jsxs)(p.$,{variant:"outline",onClick:B,disabled:s,children:[(0,a.jsx)(i.A,{className:"h-4 w-4"}),"Refresh"]}),(0,a.jsxs)(p.$,{variant:"destructive",disabled:0===y.length||s,onClick:()=>{if(0===y.length){(0,h.oR)({title:"Delete Messages",description:"No messages selected"});return}z(y)},children:[(0,a.jsx)(o.A,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsx)(d.ZB,{children:"Send SMS"}),(0,a.jsx)(d.BT,{children:"Send a new SMS message"})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsx)(M,{value:N,onChange:e=>w(e),placeholder:"Enter recipient phone number"}),(0,a.jsx)(x.T,{placeholder:"Type your SMS here...",className:"h-32",value:v,onChange:e=>b(e.target.value),required:!0}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsxs)(p.$,{onClick:k,disabled:S||!N.trim()||!v.trim(),children:[S?(0,a.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(l.A,{className:"h-4 w-4"}),S?"Sending SMS...":"Send SMS"]})})]})})]})]})}},14085:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>o});var a=s(95155),r=s(12115),n=s(12317),l=s(31027),i=s(29602);let o=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:s,variant:r,size:l,asChild:d=!1,...c}=e,m=d?n.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(o({variant:r,size:l,className:s})),ref:t,...c})});d.displayName="Button"},35007:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>l,aR:()=>i,wL:()=>m});var a=s(95155),r=s(12115),n=s(29602);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});l.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...r})});i.displayName="CardHeader";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...r})});o.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...r})});c.displayName="CardContent";let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...r})});m.displayName="CardFooter"},43670:(e,t,s)=>{"use strict";s.d(t,{S:()=>o});var a=s(95155),r=s(12115),n=s(86352),l=s(87365),i=s(29602);let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...r,children:(0,a.jsx)(n.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})})});o.displayName=n.bL.displayName},7837:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>p,Es:()=>x,HM:()=>m,L3:()=>h,c7:()=>f,lG:()=>o,rr:()=>g,zM:()=>d});var a=s(95155),r=s(12115),n=s(66217),l=s(87365),i=s(29602);let o=n.bL,d=n.l9,c=n.ZL,m=n.bm,u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r})});u.displayName=n.hJ.displayName;let p=r.forwardRef((e,t)=>{let{className:s,children:r,...o}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(n.UC,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...o,children:[r,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(l.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=n.UC.displayName;let f=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};f.displayName="DialogHeader";let x=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};x.displayName="DialogFooter";let h=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",s),...r})});h.displayName=n.hE.displayName;let g=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",s),...r})});g.displayName=n.VY.displayName},9955:(e,t,s)=>{"use strict";s.d(t,{p:()=>l});var a=s(95155),r=s(12115),n=s(29602);let l=r.forwardRef((e,t)=>{let{className:s,type:r,...l}=e;return(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...l})});l.displayName="Input"},51124:(e,t,s)=>{"use strict";s.d(t,{AM:()=>i,Wv:()=>o,hl:()=>d});var a=s(95155),r=s(12115),n=s(80532),l=s(29602);let i=n.bL,o=n.l9;n.Mz;let d=r.forwardRef((e,t)=>{let{className:s,align:r="center",sideOffset:i=4,...o}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,align:r,sideOffset:i,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...o})})});d.displayName=n.UC.displayName},3392:(e,t,s)=>{"use strict";s.d(t,{$:()=>o,F:()=>i});var a=s(95155),r=s(12115),n=s(21868),l=s(29602);let i=r.forwardRef((e,t)=>{let{className:s,children:r,...i}=e;return(0,a.jsxs)(n.bL,{ref:t,className:(0,l.cn)("relative overflow-hidden",s),...i,children:[(0,a.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,a.jsx)(o,{}),(0,a.jsx)(n.OK,{})]})});i.displayName=n.bL.displayName;let o=r.forwardRef((e,t)=>{let{className:s,orientation:r="vertical",...i}=e;return(0,a.jsx)(n.VM,{ref:t,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...i,children:(0,a.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=n.VM.displayName},89282:(e,t,s)=>{"use strict";s.d(t,{w:()=>i});var a=s(95155),r=s(12115),n=s(90434),l=s(29602);let i=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:i=!0,...o}=e;return(0,a.jsx)(n.b,{ref:t,decorative:i,orientation:r,className:(0,l.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...o})});i.displayName=n.b.displayName},10371:(e,t,s)=>{"use strict";s.d(t,{T:()=>l});var a=s(95155),r=s(12115),n=s(29602);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...r})});l.displayName="Textarea"},20241:(e,t,s)=>{"use strict";s.d(t,{dj:()=>u,oR:()=>m});var a=s(12115);let r=0,n=new Map,l=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?l(s):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=i(d,e),o.forEach(e=>{e(d)})}function m(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var a=s(43463),r=s(69795);function n(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[5105,8465,1365,7401,9895,2019,3188,4346,5509,8441,1517,7358],()=>t(12664)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-653c20c7989a9d8c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-653c20c7989a9d8c.js new file mode 100644 index 0000000..0d88ac4 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-653c20c7989a9d8c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3358],{54016:(e,t,s)=>{Promise.resolve().then(s.bind(s,91557))},91557:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>O});var a=s(20475),r=s(20107),n=s(59166),l=s(66698),i=s(83148),o=s(51873),d=s(72167),c=s(93557),m=s(36824),u=s(574),p=s(42541),f=s(76554),x=s(31739),h=s(32857),g=s(4917),y=s(91912),j=s(70964),N=s(68288),w=s(80421),v=s(22250),b=s(7197);let S=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB,{ref:t,className:(0,v.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...r})});S.displayName=w.uB.displayName;let R=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,a.jsx)(b.$p$,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,a.jsx)(w.uB.Input,{ref:t,className:(0,v.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...r})]})});R.displayName=w.uB.Input.displayName;let C=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.List,{ref:t,className:(0,v.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",s),...r})});C.displayName=w.uB.List.displayName;let E=r.forwardRef((e,t)=>(0,a.jsx)(w.uB.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));E.displayName=w.uB.Empty.displayName;let T=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Group,{ref:t,className:(0,v.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...r})});T.displayName=w.uB.Group.displayName,r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Separator,{ref:t,className:(0,v.cn)("-mx-1 h-px bg-border",s),...r})}).displayName=w.uB.Separator.displayName;let A=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Item,{ref:t,className:(0,v.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s),...r})});A.displayName=w.uB.Item.displayName;var k=s(64219),_=s(55948);let M=r.forwardRef((e,t)=>{let{className:s,onChange:r,...n}=e;return(0,a.jsx)(j.Ay,{ref:t,className:(0,v.cn)("flex",s),flagComponent:D,countrySelectComponent:B,inputComponent:I,international:!0,defaultCountry:"US",smartCaret:!1,onChange:e=>null==r?void 0:r(e||""),...n})});M.displayName="PhoneInput";let I=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(k.p,{className:(0,v.cn)("rounded-e-lg rounded-s-none",s),...r,ref:t})});I.displayName="InputComponent";let B=e=>{let{disabled:t,value:s,options:r,onChange:n}=e;return(0,a.jsxs)(_.AM,{children:[(0,a.jsx)(_.Wv,{asChild:!0,children:(0,a.jsxs)(p.$,{type:"button",variant:"outline",className:"flex gap-1 rounded-e-none rounded-s-lg border-r-0 px-3 focus:z-10",disabled:t,children:[(0,a.jsx)(D,{country:s,countryName:s}),(0,a.jsx)(g.A,{className:(0,v.cn)("-mr-2 size-4 opacity-50",t?"hidden":"opacity-100")})]})}),(0,a.jsx)(_.hl,{className:"w-[300px] p-0",children:(0,a.jsxs)(S,{children:[(0,a.jsx)(R,{placeholder:"Search country..."}),(0,a.jsx)(C,{children:(0,a.jsxs)(m.F,{className:"h-72",children:[(0,a.jsx)(E,{children:"No country found."}),(0,a.jsx)(T,{children:r.map(e=>{let{value:t,label:r}=e;return t?(0,a.jsx)(z,{country:t,countryName:r,selectedCountry:s,onChange:n},t):null})})]})})]})})]})},z=e=>{let{country:t,countryName:s,selectedCountry:r,onChange:n}=e;return(0,a.jsxs)(A,{className:"gap-2",onSelect:()=>n(t),children:[(0,a.jsx)(D,{country:t,countryName:s}),(0,a.jsx)("span",{className:"flex-1 text-sm",children:s}),(0,a.jsx)("span",{className:"text-sm text-foreground/50",children:"+".concat(j.Ko(t))}),(0,a.jsx)(y.A,{className:"ml-auto size-4 ".concat(t===r?"opacity-100":"opacity-0")})]})},D=e=>{let{country:t,countryName:s}=e,r=N.Ay[t];return(0,a.jsx)("span",{className:"flex h-4 w-6 overflow-hidden rounded-sm bg-foreground/20 [&_svg]:size-full",children:r&&(0,a.jsx)(r,{title:s})})},O=()=>{let[e,t]=(0,r.useState)([]),[s,g]=(0,r.useState)(!1),[y,j]=(0,r.useState)([]),[N,w]=(0,r.useState)(""),[v,b]=(0,r.useState)(""),[S,R]=(0,r.useState)(!1),[C,E]=(0,r.useState)(""),T=e=>e.replace(/\+|\s/g,""),A=(e,t)=>{if(!e.trim()||!t.trim())return(0,h.oR)({title:"Validation Error",description:"Phone number and message are required",variant:"destructive"}),!1;let s=T(e);return!!/^\d+$/.test(s)||((0,h.oR)({title:"Validation Error",description:"Phone number should contain only numbers",variant:"destructive"}),!1)},k=async()=>{if(A(N,v)){R(!0);try{let e={phone:T(N.trim()),message:v.trim()},t=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(e).toString()}),s=await t.json();if(console.log("Response data:",s),s.success)(0,h.oR)({title:"Success",description:"Message sent successfully"}),w(""),b(""),B();else throw Error(s.error||"Failed to send message")}catch(e){console.error("Send operation failed:",e),(0,h.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{R(!1)}}},_=async(e,t)=>{if(A(e,t)){R(!0);try{let s={phone:T(e.trim()),message:t.trim()},a=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(s).toString()}),r=await a.json();if(console.log("Response data:",r),r.success)(0,h.oR)({title:"Success",description:"Reply sent successfully"}),E(""),B();else throw Error(r.error||"Failed to send reply")}catch(e){console.error("Reply operation failed:",e),(0,h.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{R(!1)}}},I=e=>{let t={},s=[];return e.msg.forEach(e=>{if(void 0!==e.reference&&void 0!==e.part){var a;let r="".concat(e.sender,"-").concat(e.reference);t[r]||(t[r]={index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:"",originalIndices:[]}),t[r].message+=e.content,null===(a=t[r].originalIndices)||void 0===a||a.push(e.index),e.part===e.total&&(s.push(t[r]),delete t[r])}else s.push({index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:e.content,originalIndices:[e.index]})}),Object.values(t).forEach(e=>{s.push(e)}),s.sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime())},B=async()=>{g(!0);try{let e=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_inbox.sh"),s=await e.json();if(!(null==s?void 0:s.msg)||!Array.isArray(s.msg))throw Error("Invalid response format");let a=I(s);t(a),j([])}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{g(!1)}},z=async e=>{g(!0);try{if(!e.length)throw Error("No messages selected");let t=[...new Set(e)].sort((e,t)=>e-t).join(",");console.log("Deleting messages with indices:",t);let s=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_delete.sh?indexes=".concat(t),{method:"GET",headers:{Accept:"application/json","Cache-Control":"no-cache"}}),a=await s.text();if(console.log("Raw response:",a),/Deleted message \d+/.test(a))(0,h.oR)({title:"Success!",description:"Selected messages deleted."}),await B();else throw Error("Something went wrong")}catch(e){console.error("Delete operation failed:",e),(0,h.oR)({title:"Error!",description:"Something went wrong",variant:"destructive"})}finally{g(!1)}},D=e=>{j(t=>{let s=new Set(t);return e.every(e=>s.has(e))?e.forEach(e=>s.delete(e)):e.forEach(e=>s.add(e)),Array.from(s)})},O=e=>{try{let[t,s]=e.split(" "),[a,r,n]=t.split("/");return{date:"20".concat(n,"-").concat(a,"-").concat(r),time:s}}catch(e){return console.error("Error parsing timestamp:",e),{date:"Invalid date",time:"Invalid time"}}};return(0,r.useEffect)(()=>{B()},[]),(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(d.Zp,{className:"w-full max-w-screen",children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsx)(d.ZB,{children:"SMS Inbox"}),(0,a.jsx)(d.BT,{children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{children:"View and manage SMS messages"}),(0,a.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,a.jsx)(u.S,{checked:e.length>0&&y.length===e.flatMap(e=>e.originalIndices||[e.index]).length,onCheckedChange:t=>{t?j(e.flatMap(e=>e.originalIndices||[e.index])):j([])}}),(0,a.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsx)(m.F,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:s?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,a.jsx)(n.A,{className:"h-8 w-8 animate-spin"}),(0,a.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,a.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>{let{date:t,time:s}=O(e.timestamp),r=e.originalIndices||[e.index];return(0,a.jsxs)(c.lG,{children:[(0,a.jsx)(c.zM,{className:"w-full",children:(0,a.jsxs)(d.Zp,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)(d.ZB,{children:e.sender}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:r.join(", ")}),(0,a.jsx)(u.S,{checked:r.every(e=>y.includes(e)),onCheckedChange:()=>D(r)})]})]}),(0,a.jsxs)(d.BT,{className:"text-left",children:[t," at ",s]})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,a.jsxs)(c.Cf,{children:[(0,a.jsxs)(c.c7,{children:[(0,a.jsx)(c.L3,{children:e.sender}),(0,a.jsxs)(c.rr,{children:[t," at ",s]})]}),(0,a.jsx)("p",{className:"whitespace-pre-line",children:e.message}),(0,a.jsx)(f.w,{className:"my-2"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(x.T,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",value:C,onChange:e=>E(e.target.value)}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsxs)(p.$,{onClick:()=>_(e.sender,C),disabled:S||!C.trim(),children:[S?(0,a.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(l.A,{className:"h-4 w-4"}),S?"Sending...":"Reply"]})})]})]})]},r.join("-"))})})}),(0,a.jsx)(d.wL,{className:"border-t py-4",children:(0,a.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,a.jsxs)(p.$,{variant:"outline",onClick:B,disabled:s,children:[(0,a.jsx)(i.A,{className:"h-4 w-4"}),"Refresh"]}),(0,a.jsxs)(p.$,{variant:"destructive",disabled:0===y.length||s,onClick:()=>{if(0===y.length){(0,h.oR)({title:"Delete Messages",description:"No messages selected"});return}z(y)},children:[(0,a.jsx)(o.A,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsx)(d.ZB,{children:"Send SMS"}),(0,a.jsx)(d.BT,{children:"Send a new SMS message"})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsx)(M,{value:N,onChange:e=>w(e),placeholder:"Enter recipient phone number"}),(0,a.jsx)(x.T,{placeholder:"Type your SMS here...",className:"h-32",value:v,onChange:e=>b(e.target.value),required:!0}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsxs)(p.$,{onClick:k,disabled:S||!N.trim()||!v.trim(),children:[S?(0,a.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(l.A,{className:"h-4 w-4"}),S?"Sending SMS...":"Send SMS"]})})]})})]})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>o});var a=s(20475),r=s(20107),n=s(61837),l=s(29395),i=s(22250);let o=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:s,variant:r,size:l,asChild:d=!1,...c}=e,m=d?n.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(o({variant:r,size:l,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>l,aR:()=>i,wL:()=>m});var a=s(20475),r=s(20107),n=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});l.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...r})});i.displayName="CardHeader";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...r})});o.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...r})});c.displayName="CardContent";let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...r})});m.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>o});var a=s(20475),r=s(20107),n=s(32713),l=s(7197),i=s(22250);let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...r,children:(0,a.jsx)(n.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})})});o.displayName=n.bL.displayName},93557:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>p,Es:()=>x,HM:()=>m,L3:()=>h,c7:()=>f,lG:()=>o,rr:()=>g,zM:()=>d});var a=s(20475),r=s(20107),n=s(60241),l=s(7197),i=s(22250);let o=n.bL,d=n.l9,c=n.ZL,m=n.bm,u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r})});u.displayName=n.hJ.displayName;let p=r.forwardRef((e,t)=>{let{className:s,children:r,...o}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(n.UC,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...o,children:[r,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(l.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=n.UC.displayName;let f=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};f.displayName="DialogHeader";let x=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};x.displayName="DialogFooter";let h=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",s),...r})});h.displayName=n.hE.displayName;let g=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",s),...r})});g.displayName=n.VY.displayName},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>l});var a=s(20475),r=s(20107),n=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,type:r,...l}=e;return(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...l})});l.displayName="Input"},55948:(e,t,s)=>{"use strict";s.d(t,{AM:()=>i,Wv:()=>o,hl:()=>d});var a=s(20475),r=s(20107),n=s(21869),l=s(22250);let i=n.bL,o=n.l9;n.Mz;let d=r.forwardRef((e,t)=>{let{className:s,align:r="center",sideOffset:i=4,...o}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,align:r,sideOffset:i,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...o})})});d.displayName=n.UC.displayName},36824:(e,t,s)=>{"use strict";s.d(t,{$:()=>o,F:()=>i});var a=s(20475),r=s(20107),n=s(89679),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,children:r,...i}=e;return(0,a.jsxs)(n.bL,{ref:t,className:(0,l.cn)("relative overflow-hidden",s),...i,children:[(0,a.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,a.jsx)(o,{}),(0,a.jsx)(n.OK,{})]})});i.displayName=n.bL.displayName;let o=r.forwardRef((e,t)=>{let{className:s,orientation:r="vertical",...i}=e;return(0,a.jsx)(n.VM,{ref:t,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...i,children:(0,a.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=n.VM.displayName},76554:(e,t,s)=>{"use strict";s.d(t,{w:()=>i});var a=s(20475),r=s(20107),n=s(88853),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:i=!0,...o}=e;return(0,a.jsx)(n.b,{ref:t,decorative:i,orientation:r,className:(0,l.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...o})});i.displayName=n.b.displayName},31739:(e,t,s)=>{"use strict";s.d(t,{T:()=>l});var a=s(20475),r=s(20107),n=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...r})});l.displayName="Textarea"},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>u,oR:()=>m});var a=s(20107);let r=0,n=new Map,l=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?l(s):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=i(d,e),o.forEach(e=>{e(d)})}function m(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var a=s(64901),r=s(868);function n(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[9980,1217,7780,8885,3746,9464,9679,7510,9951,191,6035,7358],()=>t(54016)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-851b9d4ba8e76ef1.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-851b9d4ba8e76ef1.js new file mode 100644 index 0000000..b9ccaf3 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-851b9d4ba8e76ef1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3358],{54016:(e,t,s)=>{Promise.resolve().then(s.bind(s,33776))},33776:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>v});var r=s(20475),a=s(20107),n=s(59166),i=s(66698);let l=(0,s(39997).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var o=s(51873),d=s(72167),c=s(93557),u=s(36824),m=s(574),f=s(42541),p=s(50049),h=s(31739),x=s(64219),g=s(32857);let v=()=>{let[e,t]=(0,a.useState)([]),[s,v]=(0,a.useState)(!1),[y,b]=(0,a.useState)([]),[w,j]=(0,a.useState)(!1),[N,S]=(0,a.useState)(""),[R,k]=(0,a.useState)(""),[C,E]=(0,a.useState)(!1),[A,T]=(0,a.useState)(""),M=(e,t)=>e.trim()&&t.trim()?!!/^\d+$/.test(e.trim())||((0,g.oR)({title:"Validation Error",description:"Phone number should contain only numbers",variant:"destructive"}),!1):((0,g.oR)({title:"Validation Error",description:"Phone number and message are required",variant:"destructive"}),!1),I=async()=>{if(M(N,R)){E(!0);try{let e={phone:N.trim(),message:R.trim()},t=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(e).toString()}),s=await t.json();if(console.log("Response data:",s),s.success)(0,g.oR)({title:"Success",description:"Message sent successfully"}),S(""),k(""),z();else throw Error(s.error||"Failed to send message")}catch(e){console.error("Send operation failed:",e),(0,g.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{E(!1)}}},D=async(e,t)=>{if(M(e,t)){E(!0);try{let s={phone:e.trim(),message:t.trim()},r=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(s).toString()}),a=await r.json();if(console.log("Response data:",a),a.success)(0,g.oR)({title:"Success",description:"Reply sent successfully"}),T(""),z();else throw Error(a.error||"Failed to send reply")}catch(e){console.error("Reply operation failed:",e),(0,g.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{E(!1)}}},_=e=>{let t={},s=[];return e.msg.forEach(e=>{if(void 0!==e.reference&&void 0!==e.part){var r;let a="".concat(e.sender,"-").concat(e.reference);t[a]||(t[a]={index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:"",originalIndices:[]}),t[a].message+=e.content,null===(r=t[a].originalIndices)||void 0===r||r.push(e.index),e.part===e.total&&(s.push(t[a]),delete t[a])}else s.push({index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:e.content,originalIndices:[e.index]})}),Object.values(t).forEach(e=>{s.push(e)}),s.sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime())},z=async()=>{v(!0);try{let e=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_inbox.sh"),s=await e.json();if(!(null==s?void 0:s.msg)||!Array.isArray(s.msg))throw Error("Invalid response format");let r=_(s);t(r),b([])}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{v(!1)}},O=async e=>{v(!0);try{if(!e.length)throw Error("No messages selected");let t=[...new Set(e)].sort((e,t)=>e-t).join(",");console.log("Deleting messages with indices:",t);let s=await fetch("/cgi-bin/quecmanager/cell-settings/cell-settings/sms/sms_delete.sh?indexes=".concat(t),{method:"GET",headers:{Accept:"application/json","Cache-Control":"no-cache"}}),r=await s.text();if(console.log("Raw response:",r),/Deleted message \d+/.test(r))(0,g.oR)({title:"Success!",description:"Selected messages deleted."}),await z();else throw Error("Something went wrong")}catch(e){console.error("Delete operation failed:",e),(0,g.oR)({title:"Error!",description:"Something went wrong",variant:"destructive"})}finally{v(!1)}},L=e=>{b(t=>{let s=new Set(t);return e.every(e=>s.has(e))?e.forEach(e=>s.delete(e)):e.forEach(e=>s.add(e)),Array.from(s)})},P=e=>{try{let[t,s]=e.split(" "),[r,a,n]=t.split("/");return{date:"20".concat(n,"-").concat(r,"-").concat(a),time:s}}catch(e){return console.error("Error parsing timestamp:",e),{date:"Invalid date",time:"Invalid time"}}};return(0,a.useEffect)(()=>{z()},[]),(0,r.jsxs)("div",{className:"grid gap-6",children:[(0,r.jsxs)(d.Zp,{className:"w-full max-w-screen",children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsx)(d.ZB,{children:"SMS Inbox"}),(0,r.jsx)(d.BT,{children:(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("span",{children:"View and manage SMS messages"}),(0,r.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,r.jsx)(m.S,{checked:e.length>0&&y.length===e.flatMap(e=>e.originalIndices||[e.index]).length,onCheckedChange:t=>{t?b(e.flatMap(e=>e.originalIndices||[e.index])):b([])}}),(0,r.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)(u.F,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:s?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,r.jsx)(n.A,{className:"h-8 w-8 animate-spin"}),(0,r.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,r.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>{let{date:t,time:s}=P(e.timestamp),a=e.originalIndices||[e.index];return(0,r.jsxs)(c.lG,{children:[(0,r.jsx)(c.zM,{className:"w-full",children:(0,r.jsxs)(d.Zp,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)(d.ZB,{children:e.sender}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:a.join(", ")}),(0,r.jsx)(m.S,{checked:a.every(e=>y.includes(e)),onCheckedChange:()=>L(a)})]})]}),(0,r.jsxs)(d.BT,{className:"text-left",children:[t," at ",s]})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,r.jsxs)(c.Cf,{children:[(0,r.jsxs)(c.c7,{children:[(0,r.jsx)(c.L3,{children:e.sender}),(0,r.jsxs)(c.rr,{children:[t," at ",s]})]}),(0,r.jsx)("p",{className:"whitespace-pre-line",children:e.message}),(0,r.jsx)(p.w,{className:"my-2"}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(h.T,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",value:A,onChange:e=>T(e.target.value)}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(f.$,{onClick:()=>D(e.sender,A),disabled:C||!A.trim(),children:[C?(0,r.jsx)(n.A,{className:"h-4 w-4 mr-2 animate-spin"}):(0,r.jsx)(i.A,{className:"h-4 w-4 mr-2"}),C?"Sending...":"Reply"]})})]})]})]},a.join("-"))})})}),(0,r.jsx)(d.wL,{className:"border-t py-4",children:(0,r.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,r.jsxs)(f.$,{variant:"outline",onClick:z,disabled:s,children:[(0,r.jsx)(l,{className:"h-4 w-4 mr-2"}),"Refresh"]}),(0,r.jsxs)(f.$,{variant:"destructive",disabled:0===y.length||s,onClick:()=>{if(0===y.length){(0,g.oR)({title:"Delete Messages",description:"No messages selected"});return}O(y)},children:[(0,r.jsx)(o.A,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,r.jsxs)(d.Zp,{children:[(0,r.jsxs)(d.aR,{children:[(0,r.jsx)(d.ZB,{children:"Send SMS"}),(0,r.jsx)(d.BT,{children:"Send a new SMS message"})]}),(0,r.jsx)(d.Wu,{children:(0,r.jsxs)("div",{className:"grid gap-6",children:[(0,r.jsx)(x.p,{placeholder:'Recipient number with country code not including "+" symbol.',value:N,onChange:e=>S(e.target.value),required:!0}),(0,r.jsx)(h.T,{placeholder:"Type your SMS here...",className:"h-32",value:R,onChange:e=>k(e.target.value),required:!0}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(f.$,{onClick:I,disabled:C||!N.trim()||!R.trim(),children:[C?(0,r.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(i.A,{className:"h-4 w-4"}),C?"Sending SMS...":"Send SMS"]})})]})})]})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>o});var r=s(20475),a=s(20107),n=s(61837),i=s(29395),l=s(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:s,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l,wL:()=>u});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...a})});u.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>o});var r=s(20475),a=s(20107),n=s(32713),i=s(7197),l=s(22250);let o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.bL,{ref:t,className:(0,l.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...a,children:(0,r.jsx)(n.C1,{className:(0,l.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(i.Srz,{className:"h-4 w-4"})})})});o.displayName=n.bL.displayName},93557:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>f,Es:()=>h,HM:()=>u,L3:()=>x,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var r=s(20475),a=s(20107),n=s(60241),i=s(7197),l=s(22250);let o=n.bL,d=n.l9,c=n.ZL,u=n.bm,m=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hJ,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a})});m.displayName=n.hJ.displayName;let f=a.forwardRef((e,t)=>{let{className:s,children:a,...o}=e;return(0,r.jsxs)(c,{children:[(0,r.jsx)(m,{}),(0,r.jsxs)(n.UC,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...o,children:[a,(0,r.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(i.MKb,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=n.UC.displayName;let p=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};p.displayName="DialogHeader";let h=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};h.displayName="DialogFooter";let x=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hE,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",s),...a})});x.displayName=n.hE.displayName;let g=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.VY,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...a})});g.displayName=n.VY.displayName},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,type:a,...i}=e;return(0,r.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},36824:(e,t,s)=>{"use strict";s.d(t,{$:()=>o,F:()=>l});var r=s(20475),a=s(20107),n=s(89679),i=s(22250);let l=a.forwardRef((e,t)=>{let{className:s,children:a,...l}=e;return(0,r.jsxs)(n.bL,{ref:t,className:(0,i.cn)("relative overflow-hidden",s),...l,children:[(0,r.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:a}),(0,r.jsx)(o,{}),(0,r.jsx)(n.OK,{})]})});l.displayName=n.bL.displayName;let o=a.forwardRef((e,t)=>{let{className:s,orientation:a="vertical",...l}=e;return(0,r.jsx)(n.VM,{ref:t,orientation:a,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...l,children:(0,r.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=n.VM.displayName},50049:(e,t,s)=>{"use strict";s.d(t,{w:()=>c});var r=s(20475),a=s(20107),n=s(34544),i="horizontal",l=["horizontal","vertical"],o=a.forwardRef((e,t)=>{let{decorative:s,orientation:a=i,...o}=e,d=l.includes(a)?a:i;return(0,r.jsx)(n.sG.div,{"data-orientation":d,...s?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=s(22250);let c=a.forwardRef((e,t)=>{let{className:s,orientation:a="horizontal",decorative:n=!0,...i}=e;return(0,r.jsx)(o,{ref:t,decorative:n,orientation:a,className:(0,d.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",s),...i})});c.displayName=o.displayName},31739:(e,t,s)=>{"use strict";s.d(t,{T:()=>i});var r=s(20475),a=s(20107),n=s(22250);let i=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...a})});i.displayName="Textarea"},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>m,oR:()=>u});var r=s(20107);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?i(s):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=r.useState(d);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var r=s(64901),a=s(868);function n(){for(var e=arguments.length,t=Array(e),s=0;s{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},66698:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},51873:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(39997).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},32713:(e,t,s)=>{"use strict";s.d(t,{C1:()=>R,bL:()=>S});var r=s(20107),a=s(64236),n=s(45170),i=s(94521),l=s(13061),o=s(65163),d=s(63620),c=s(54245),u=s(34544),m=s(20475),f="Checkbox",[p,h]=(0,n.A)(f),[x,g]=p(f),v=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,name:n,checked:o,defaultChecked:d,required:c,disabled:f,value:p="on",onCheckedChange:h,form:g,...v}=e,[y,b]=r.useState(null),S=(0,a.s)(t,e=>b(e)),R=r.useRef(!1),k=!y||g||!!y.closest("form"),[C=!1,E]=(0,l.i)({prop:o,defaultProp:d,onChange:h}),A=r.useRef(C);return r.useEffect(()=>{let e=null==y?void 0:y.form;if(e){let t=()=>E(A.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[y,E]),(0,m.jsxs)(x,{scope:s,state:C,disabled:f,children:[(0,m.jsx)(u.sG.button,{type:"button",role:"checkbox","aria-checked":j(C)?"mixed":C,"aria-required":c,"data-state":N(C),"data-disabled":f?"":void 0,disabled:f,value:p,...v,ref:S,onKeyDown:(0,i.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.m)(e.onClick,e=>{E(e=>!!j(e)||!e),k&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())})}),k&&(0,m.jsx)(w,{control:y,bubbles:!R.current,name:n,value:p,checked:C,required:c,disabled:f,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!j(d)&&d})]})});v.displayName=f;var y="CheckboxIndicator",b=r.forwardRef((e,t)=>{let{__scopeCheckbox:s,forceMount:r,...a}=e,n=g(y,s);return(0,m.jsx)(c.C,{present:r||j(n.state)||!0===n.state,children:(0,m.jsx)(u.sG.span,{"data-state":N(n.state),"data-disabled":n.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});b.displayName=y;var w=e=>{let{control:t,checked:s,bubbles:a=!0,defaultChecked:n,...i}=e,l=r.useRef(null),c=(0,o.Z)(s),u=(0,d.X)(t);r.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==s&&t){let r=new Event("click",{bubbles:a});e.indeterminate=j(s),t.call(e,!j(s)&&s),e.dispatchEvent(r)}},[c,s,a]);let f=r.useRef(!j(s)&&s);return(0,m.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=n?n:f.current,...i,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return"indeterminate"===e}function N(e){return j(e)?"indeterminate":e?"checked":"unchecked"}var S=v,R=b},65163:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var r=s(20107);function a(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},63620:(e,t,s)=>{"use strict";s.d(t,{X:()=>n});var r=s(20107),a=s(54122);function n(e){let[t,s]=r.useState(void 0);return(0,a.N)(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,a;if(!Array.isArray(t)||!t.length)return;let n=t[0];if("borderBoxSize"in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;s({width:r,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}s(void 0)},[e]),t}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,9464,6357,9679,191,6035,7358],()=>t(54016)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-c91b3ada25c7de30.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-c91b3ada25c7de30.js new file mode 100644 index 0000000..adc1682 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-c91b3ada25c7de30.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3358],{54016:(e,t,s)=>{Promise.resolve().then(s.bind(s,91557))},91557:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>O});var a=s(20475),r=s(20107),n=s(59166),l=s(66698),i=s(83148),o=s(51873),d=s(72167),c=s(93557),m=s(36824),u=s(574),p=s(42541),f=s(76554),x=s(31739),h=s(32857),g=s(4917),y=s(91912),j=s(70964),N=s(68288),w=s(80421),v=s(22250),b=s(7197);let S=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB,{ref:t,className:(0,v.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...r})});S.displayName=w.uB.displayName;let R=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,a.jsx)(b.$p$,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,a.jsx)(w.uB.Input,{ref:t,className:(0,v.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...r})]})});R.displayName=w.uB.Input.displayName;let C=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.List,{ref:t,className:(0,v.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",s),...r})});C.displayName=w.uB.List.displayName;let E=r.forwardRef((e,t)=>(0,a.jsx)(w.uB.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));E.displayName=w.uB.Empty.displayName;let T=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Group,{ref:t,className:(0,v.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...r})});T.displayName=w.uB.Group.displayName,r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Separator,{ref:t,className:(0,v.cn)("-mx-1 h-px bg-border",s),...r})}).displayName=w.uB.Separator.displayName;let A=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(w.uB.Item,{ref:t,className:(0,v.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s),...r})});A.displayName=w.uB.Item.displayName;var k=s(64219),_=s(55948);let M=r.forwardRef((e,t)=>{let{className:s,onChange:r,...n}=e;return(0,a.jsx)(j.Ay,{ref:t,className:(0,v.cn)("flex",s),flagComponent:D,countrySelectComponent:B,inputComponent:I,international:!0,defaultCountry:"US",smartCaret:!1,onChange:e=>null==r?void 0:r(e||""),...n})});M.displayName="PhoneInput";let I=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(k.p,{className:(0,v.cn)("rounded-e-lg rounded-s-none",s),...r,ref:t})});I.displayName="InputComponent";let B=e=>{let{disabled:t,value:s,options:r,onChange:n}=e;return(0,a.jsxs)(_.AM,{children:[(0,a.jsx)(_.Wv,{asChild:!0,children:(0,a.jsxs)(p.$,{type:"button",variant:"outline",className:"flex gap-1 rounded-e-none rounded-s-lg border-r-0 px-3 focus:z-10",disabled:t,children:[(0,a.jsx)(D,{country:s,countryName:s}),(0,a.jsx)(g.A,{className:(0,v.cn)("-mr-2 size-4 opacity-50",t?"hidden":"opacity-100")})]})}),(0,a.jsx)(_.hl,{className:"w-[300px] p-0",children:(0,a.jsxs)(S,{children:[(0,a.jsx)(R,{placeholder:"Search country..."}),(0,a.jsx)(C,{children:(0,a.jsxs)(m.F,{className:"h-72",children:[(0,a.jsx)(E,{children:"No country found."}),(0,a.jsx)(T,{children:r.map(e=>{let{value:t,label:r}=e;return t?(0,a.jsx)(z,{country:t,countryName:r,selectedCountry:s,onChange:n},t):null})})]})})]})})]})},z=e=>{let{country:t,countryName:s,selectedCountry:r,onChange:n}=e;return(0,a.jsxs)(A,{className:"gap-2",onSelect:()=>n(t),children:[(0,a.jsx)(D,{country:t,countryName:s}),(0,a.jsx)("span",{className:"flex-1 text-sm",children:s}),(0,a.jsx)("span",{className:"text-sm text-foreground/50",children:"+".concat(j.Ko(t))}),(0,a.jsx)(y.A,{className:"ml-auto size-4 ".concat(t===r?"opacity-100":"opacity-0")})]})},D=e=>{let{country:t,countryName:s}=e,r=N.Ay[t];return(0,a.jsx)("span",{className:"flex h-4 w-6 overflow-hidden rounded-sm bg-foreground/20 [&_svg]:size-full",children:r&&(0,a.jsx)(r,{title:s})})},O=()=>{let[e,t]=(0,r.useState)([]),[s,g]=(0,r.useState)(!1),[y,j]=(0,r.useState)([]),[N,w]=(0,r.useState)(""),[v,b]=(0,r.useState)(""),[S,R]=(0,r.useState)(!1),[C,E]=(0,r.useState)(""),T=e=>e.replace(/\+|\s/g,""),A=(e,t)=>{if(!e.trim()||!t.trim())return(0,h.oR)({title:"Validation Error",description:"Phone number and message are required",variant:"destructive"}),!1;let s=T(e);return!!/^\d+$/.test(s)||((0,h.oR)({title:"Validation Error",description:"Phone number should contain only numbers",variant:"destructive"}),!1)},k=async()=>{if(A(N,v)){R(!0);try{let e={phone:T(N.trim()),message:v.trim()},t=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(e).toString()}),s=await t.json();if(console.log("Response data:",s),s.success)(0,h.oR)({title:"Success",description:"Message sent successfully"}),w(""),b(""),B();else throw Error(s.error||"Failed to send message")}catch(e){console.error("Send operation failed:",e),(0,h.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{R(!1)}}},_=async(e,t)=>{if(A(e,t)){R(!0);try{let s={phone:T(e.trim()),message:t.trim()},a=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_send.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","Cache-Control":"no-cache"},body:new URLSearchParams(s).toString()}),r=await a.json();if(console.log("Response data:",r),r.success)(0,h.oR)({title:"Success",description:"Reply sent successfully"}),E(""),B();else throw Error(r.error||"Failed to send reply")}catch(e){console.error("Reply operation failed:",e),(0,h.oR)({title:"Error",description:e instanceof Error?e.message:"Something went wrong",variant:"destructive"})}finally{R(!1)}}},I=e=>{let t={},s=[];return e.msg.forEach(e=>{if(void 0!==e.reference&&void 0!==e.part){var a;let r="".concat(e.sender,"-").concat(e.reference);t[r]||(t[r]={index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:"",originalIndices:[]}),t[r].message+=e.content,null===(a=t[r].originalIndices)||void 0===a||a.push(e.index),e.part===e.total&&(s.push(t[r]),delete t[r])}else s.push({index:e.index,status:"received",sender:e.sender,timestamp:e.timestamp,message:e.content,originalIndices:[e.index]})}),Object.values(t).forEach(e=>{s.push(e)}),s.sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime())},B=async()=>{g(!0);try{let e=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_inbox.sh"),s=await e.json();if(!(null==s?void 0:s.msg)||!Array.isArray(s.msg))throw Error("Invalid response format");let a=I(s);t(a),j([])}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{g(!1)}},z=async e=>{g(!0);try{if(!e.length)throw Error("No messages selected");let t=[...new Set(e)].sort((e,t)=>e-t).join(",");console.log("Deleting messages with indices:",t);let s=await fetch("/cgi-bin/quecmanager/cell-settings/sms/sms_delete.sh?indexes=".concat(t),{method:"GET",headers:{Accept:"application/json","Cache-Control":"no-cache"}}),a=await s.text();if(console.log("Raw response:",a),/Deleted message \d+/.test(a))(0,h.oR)({title:"Success!",description:"Selected messages deleted."}),await B();else throw Error("Something went wrong")}catch(e){console.error("Delete operation failed:",e),(0,h.oR)({title:"Error!",description:"Something went wrong",variant:"destructive"})}finally{g(!1)}},D=e=>{j(t=>{let s=new Set(t);return e.every(e=>s.has(e))?e.forEach(e=>s.delete(e)):e.forEach(e=>s.add(e)),Array.from(s)})},O=e=>{try{let[t,s]=e.split(" "),[a,r,n]=t.split("/");return{date:"20".concat(n,"-").concat(a,"-").concat(r),time:s}}catch(e){return console.error("Error parsing timestamp:",e),{date:"Invalid date",time:"Invalid time"}}};return(0,r.useEffect)(()=>{B()},[]),(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(d.Zp,{className:"w-full max-w-screen",children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsx)(d.ZB,{children:"SMS Inbox"}),(0,a.jsx)(d.BT,{children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{children:"View and manage SMS messages"}),(0,a.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,a.jsx)(u.S,{checked:e.length>0&&y.length===e.flatMap(e=>e.originalIndices||[e.index]).length,onCheckedChange:t=>{t?j(e.flatMap(e=>e.originalIndices||[e.index])):j([])}}),(0,a.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsx)(m.F,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:s?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,a.jsx)(n.A,{className:"h-8 w-8 animate-spin"}),(0,a.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,a.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>{let{date:t,time:s}=O(e.timestamp),r=e.originalIndices||[e.index];return(0,a.jsxs)(c.lG,{children:[(0,a.jsx)(c.zM,{className:"w-full",children:(0,a.jsxs)(d.Zp,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)(d.ZB,{children:e.sender}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:r.join(", ")}),(0,a.jsx)(u.S,{checked:r.every(e=>y.includes(e)),onCheckedChange:()=>D(r)})]})]}),(0,a.jsxs)(d.BT,{className:"text-left",children:[t," at ",s]})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,a.jsxs)(c.Cf,{children:[(0,a.jsxs)(c.c7,{children:[(0,a.jsx)(c.L3,{children:e.sender}),(0,a.jsxs)(c.rr,{children:[t," at ",s]})]}),(0,a.jsx)("p",{className:"whitespace-pre-line",children:e.message}),(0,a.jsx)(f.w,{className:"my-2"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(x.T,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",value:C,onChange:e=>E(e.target.value)}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsxs)(p.$,{onClick:()=>_(e.sender,C),disabled:S||!C.trim(),children:[S?(0,a.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(l.A,{className:"h-4 w-4"}),S?"Sending...":"Reply"]})})]})]})]},r.join("-"))})})}),(0,a.jsx)(d.wL,{className:"border-t py-4",children:(0,a.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,a.jsxs)(p.$,{variant:"outline",onClick:B,disabled:s,children:[(0,a.jsx)(i.A,{className:"h-4 w-4"}),"Refresh"]}),(0,a.jsxs)(p.$,{variant:"destructive",disabled:0===y.length||s,onClick:()=>{if(0===y.length){(0,h.oR)({title:"Delete Messages",description:"No messages selected"});return}z(y)},children:[(0,a.jsx)(o.A,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsx)(d.ZB,{children:"Send SMS"}),(0,a.jsx)(d.BT,{children:"Send a new SMS message"})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsx)(M,{value:N,onChange:e=>w(e),placeholder:"Enter recipient phone number"}),(0,a.jsx)(x.T,{placeholder:"Type your SMS here...",className:"h-32",value:v,onChange:e=>b(e.target.value),required:!0}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsxs)(p.$,{onClick:k,disabled:S||!N.trim()||!v.trim(),children:[S?(0,a.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(l.A,{className:"h-4 w-4"}),S?"Sending SMS...":"Send SMS"]})})]})})]})]})}},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>o});var a=s(20475),r=s(20107),n=s(61837),l=s(29395),i=s(22250);let o=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:s,variant:r,size:l,asChild:d=!1,...c}=e,m=d?n.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(o({variant:r,size:l,className:s})),ref:t,...c})});d.displayName="Button"},72167:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>l,aR:()=>i,wL:()=>m});var a=s(20475),r=s(20107),n=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});l.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...r})});i.displayName="CardHeader";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",s),...r})});o.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...r})});c.displayName="CardContent";let m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...r})});m.displayName="CardFooter"},574:(e,t,s)=>{"use strict";s.d(t,{S:()=>o});var a=s(20475),r=s(20107),n=s(32713),l=s(7197),i=s(22250);let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...r,children:(0,a.jsx)(n.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})})});o.displayName=n.bL.displayName},93557:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>p,Es:()=>x,HM:()=>m,L3:()=>h,c7:()=>f,lG:()=>o,rr:()=>g,zM:()=>d});var a=s(20475),r=s(20107),n=s(60241),l=s(7197),i=s(22250);let o=n.bL,d=n.l9,c=n.ZL,m=n.bm,u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r})});u.displayName=n.hJ.displayName;let p=r.forwardRef((e,t)=>{let{className:s,children:r,...o}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(n.UC,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...o,children:[r,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(l.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=n.UC.displayName;let f=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};f.displayName="DialogHeader";let x=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};x.displayName="DialogFooter";let h=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",s),...r})});h.displayName=n.hE.displayName;let g=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",s),...r})});g.displayName=n.VY.displayName},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>l});var a=s(20475),r=s(20107),n=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,type:r,...l}=e;return(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...l})});l.displayName="Input"},55948:(e,t,s)=>{"use strict";s.d(t,{AM:()=>i,Wv:()=>o,hl:()=>d});var a=s(20475),r=s(20107),n=s(21869),l=s(22250);let i=n.bL,o=n.l9;n.Mz;let d=r.forwardRef((e,t)=>{let{className:s,align:r="center",sideOffset:i=4,...o}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,align:r,sideOffset:i,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...o})})});d.displayName=n.UC.displayName},36824:(e,t,s)=>{"use strict";s.d(t,{$:()=>o,F:()=>i});var a=s(20475),r=s(20107),n=s(89679),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,children:r,...i}=e;return(0,a.jsxs)(n.bL,{ref:t,className:(0,l.cn)("relative overflow-hidden",s),...i,children:[(0,a.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,a.jsx)(o,{}),(0,a.jsx)(n.OK,{})]})});i.displayName=n.bL.displayName;let o=r.forwardRef((e,t)=>{let{className:s,orientation:r="vertical",...i}=e;return(0,a.jsx)(n.VM,{ref:t,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...i,children:(0,a.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=n.VM.displayName},76554:(e,t,s)=>{"use strict";s.d(t,{w:()=>i});var a=s(20475),r=s(20107),n=s(88853),l=s(22250);let i=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:i=!0,...o}=e;return(0,a.jsx)(n.b,{ref:t,decorative:i,orientation:r,className:(0,l.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...o})});i.displayName=n.b.displayName},31739:(e,t,s)=>{"use strict";s.d(t,{T:()=>l});var a=s(20475),r=s(20107),n=s(22250);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...r})});l.displayName="Textarea"},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>u,oR:()=>m});var a=s(20107);let r=0,n=new Map,l=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?l(s):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=i(d,e),o.forEach(e=>{e(d)})}function m(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function u(){let[e,t]=a.useState(d);return a.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var a=s(64901),r=s(868);function n(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[9980,1217,7780,8885,3746,9464,241,9679,4736,9951,191,6035,7358],()=>t(54016)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-0e75ee27c0191fef.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-0e75ee27c0191fef.js new file mode 100644 index 0000000..1f79ce8 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-0e75ee27c0191fef.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5014],{41126:(e,s,a)=>{Promise.resolve().then(a.bind(a,88388))},88388:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>L});var t=a(20475),r=a(20107),n=a(72167),l=a(51303),c=a(85014),i=a(42541),d=a(33466),o=a(22250);let u=r.forwardRef((e,s)=>{let{className:a,value:r,...n}=e;return(0,t.jsx)(d.bL,{ref:s,className:(0,o.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...n,children:(0,t.jsx)(d.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});u.displayName=d.bL.displayName;var m=a(59166),x=a(27720),f=a(91994),p=a(76076),h=a(51873),g=a(45934),j=a(38741),v=a(36824),b=a(32857);let N=e=>{let{neighborCells:s}=e;(0,r.useEffect)(()=>{s&&console.log("Neighbor cells data:",s)},[s]);let a=e=>e?Array.from(e.matchAll(/\+QENG: "neighbourcell (intra|inter)","LTE",(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"LTE",cellType:e[1],frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrq:parseInt(e[4]),rsrp:parseInt(e[5])})):[],n=e=>e?Array.from(e.matchAll(/\+QNWCFG: "nr5g_meas_info",(\d+),(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"NR5G-NSA",cellType:"nr5g",frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrp:parseInt(e[4]),rsrq:parseInt(e[5])})):[],i=e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),d=[];if((null==s?void 0:s.status)==="success"){var o,u,m,x;(null===(o=s.data)||void 0===o?void 0:o.neighborCells)?d=[...d,...a(s.data.neighborCells)]:(null===(u=s.raw_data)||void 0===u?void 0:u.neighborCells)&&(d=[...d,...a(s.raw_data.neighborCells)]),(null===(m=s.data)||void 0===m?void 0:m.meas)?d=[...d,...n(s.data.meas)]:(null===(x=s.raw_data)||void 0===x?void 0:x.meas)&&(d=[...d,...n(s.raw_data.meas)])}return(d.sort((e,s)=>e.type.startsWith("NR5G")&&!s.type.startsWith("NR5G")?-1:!e.type.startsWith("NR5G")&&s.type.startsWith("NR5G")?1:s.rsrp-e.rsrp),s&&0!==d.length)?(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"Cell Type"}),(0,t.jsx)(l.nd,{children:"Frequency"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:d.map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{className:"font-medium",children:e.type}),(0,t.jsx)(l.nA,{children:e.cellType}),(0,t.jsx)(l.nA,{children:e.frequency}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:i(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.type,"-").concat(e.frequency,"-").concat(e.pci,"-").concat(s)))})]})}):(0,t.jsx)("div",{className:"text-center py-4 text-gray-500",children:"No neighbor cells data available"})};var y=a(7197);let w={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz","-":"-"};var T=a(37921),C=a(28702);let R=C.bL,I=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(C.q7,{ref:s,className:(0,o.cn)("border-b",a),...r})});I.displayName="AccordionItem";let S=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(C.Y9,{className:"flex",children:(0,t.jsxs)(C.l9,{ref:s,className:(0,o.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...n,children:[r,(0,t.jsx)(y.D3D,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});S.displayName=C.l9.displayName;let F=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(C.UC,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,t.jsx)("div",{className:(0,o.cn)("pb-4 pt-0",a),children:r})})});F.displayName=C.UC.displayName;let k=e=>{var s,a,r,l,c,i;let{cell:d,operatorInfo:o}=e,u="LTE"===d.type;return(0,t.jsxs)(n.Zp,{className:"overflow-hidden border shadow-sm",children:[(0,t.jsxs)(n.aR,{className:"bg-muted/30 pb-2",children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)(g.E,{variant:u?"outline":"default",className:u?"bg-orange-600":"",children:[u?"LTE":"5G NR"," - ",(null==o?void 0:o.brand)&&o.operator?"".concat(o.brand):(null==o?void 0:o.operator)?o.operator:"".concat(d.mcc).concat(d.mnc)]}),(0,t.jsx)(n.ZB,{className:"text-base",children:u?"Band ".concat(d.band," (").concat((null===(s=d.frequencyInfo)||void 0===s?void 0:s.bandName)||"Unknown",")"):"n".concat(d.band," (").concat((null===(a=d.frequencyInfo)||void 0===a?void 0:a.bandName)||"Unknown",")")})]})}),(0,t.jsxs)(n.BT,{className:"mt-1 flex items-center space-x-2",children:[(0,t.jsxs)("span",{children:["Cell ID: ",d.cellId]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsxs)("span",{children:["PCI: ",d.pci]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:u?"EARFCN: ".concat(d.freq):"NR-ARFCN: ".concat(d.freq)})]})]}),(0,t.jsxs)(n.Wu,{className:"pt-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-2",children:[(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Frequency Information"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Downlink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(r=d.frequencyInfo)||void 0===r?void 0:r.dlFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(l=d.frequencyInfo)||void 0===l?void 0:l.ulFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Duplex Mode:"}),(0,t.jsx)("div",{className:"font-medium",children:(null===(c=d.frequencyInfo)||void 0===c?void 0:c.duplexType)||"Unknown"}),u&&(null===(i=d.frequencyInfo)||void 0===i?void 0:i.ulEarfcn)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink EARFCN:"}),(0,t.jsx)("div",{className:"font-medium",children:d.frequencyInfo.ulEarfcn})]})]})]})}),(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Signal Parameters"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRP:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrp," dBm"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRQ:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrq," dB"]}),u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"SQUAL:"}),(0,t.jsx)("div",{className:"font-medium",children:d.squal}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Bandwidth:"}),(0,t.jsx)("div",{className:"font-medium",children:d.bandwidthMHz||"".concat(d.bandwidth," RB")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Subcarrier Spacing:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.scs," kHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Carrier Bandwidth:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.carrierBandwidth," RB"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SSB SCS:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.ssbScs," kHz"]})]})]})]})})]}),(0,t.jsx)(R,{type:"single",collapsible:!0,className:"mt-4",children:(0,t.jsxs)(I,{value:"advanced",children:[(0,t.jsx)(S,{className:"text-sm py-2",children:"Advanced Details"}),(0,t.jsx)(F,{children:o&&(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Operator:"}),(0,t.jsx)("div",{className:"font-medium",children:o.operator}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Brand:"}),(0,t.jsx)("div",{className:"font-medium",children:o.brand}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Country:"}),(0,t.jsx)("div",{className:"font-medium",children:o.countryName}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"MCC-MNC:"}),(0,t.jsxs)("div",{className:"font-medium",children:[o.mcc,"-",o.mnc]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SRXLEV:"}),(0,t.jsx)("div",{className:"font-medium",children:d.srxlev})]})})})]})})]})]})},D=e=>{let{scanResult:s,isLoading:a=!1,mccMncList:l=[]}=e,[c,i]=(0,r.useState)("all"),d=(0,r.useCallback)((e,s)=>l.find(a=>a.mcc===e&&a.mnc===s)||null,[l]),o=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"}],u=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"}],x=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:"",band:0};if("LTE"===s){let[e,s,a,t,r]=d;return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:parseInt(t),band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),f=(0,r.useCallback)(e=>{let s,a;let t=e.freq,r=o.find(s=>t>=s.earfcnRange[0]&&t<=s.earfcnRange[1]&&s.band===e.band);if(!r){let s,a;let r=o.find(s=>s.band===e.band);if(!r)return null;let n=r.dlLow+(t-r.earfcnOffset)%1e3*r.spacing;if("FDD"===r.duplexType){s=t+18e3;let e=r.ulHigh-r.ulLow;a=(r.ulLow+e/2).toFixed(2)}else a=n.toFixed(2);return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a,ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}}let n=r.dlLow+(t-r.earfcnOffset)*r.spacing;if("FDD"===r.duplexType){let e=t-r.earfcnOffset;s=t+18e3,a=r.ulLow+e*r.spacing}else a=n;return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a.toFixed(2),ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}},[o]),p=(0,r.useCallback)(e=>{let s;let a=e.freq;if(a>=0&&a<=599999)s=0+(a-0)*.005;else if(a>=6e5&&a<=2016666)s=3e3+(a-6e5)*.015;else{if(!(a>=2016667)||!(a<=3279165))return null;s=24250.08+(a-2016667)*.06}let t=u.find(s=>a>=s.nrarfcnRange[0]&&a<=s.nrarfcnRange[1]&&s.band===e.band);if(!t){let t=u.find(s=>s.band===e.band);return t?{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:"FDD"===t.duplexType?((t.ulLow+t.ulHigh)/2).toFixed(2):s.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}:null}let r="FDD"===t.duplexType?t.ulLow+(s-t.dlLow):s;return{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:r.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}},[u]),h=(0,r.useMemo)(()=>{if(!(null==s?void 0:s.output))return{lte:[],nr5g:[]};let e=x(s.output),a=[],t=[];e.forEach(e=>{var s,r;let n=d(e.mcc,e.mnc);if("LTE"===e.type){let t=null!==(s=f(e))&&void 0!==s?s:void 0;a.push({...e,frequencyInfo:t,operatorInfo:n})}else if("NR5G"===e.type){let s=null!==(r=p(e))&&void 0!==r?r:void 0;t.push({...e,frequencyInfo:s,operatorInfo:n})}});let r=(e,s)=>{var a,t;let r=(null===(a=e.operatorInfo)||void 0===a?void 0:a.operator)||"",n=(null===(t=s.operatorInfo)||void 0===t?void 0:t.operator)||"";return r.localeCompare(n)};return{lte:a.sort(r),nr5g:t.sort(r)}},[s,x,f,p,d]);if(a)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Analyzing frequency details for detected cells..."})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)(m.A,{className:"w-8 h-8 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Processing frequency information..."})]})})]});if(!s||!s.output)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Detailed frequency information for detected cells"})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"Run a cell scan to view detailed frequency information"})})]});let g=h.lte.length+h.nr5g.length;return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:s.timestamp&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Analysis based on full cell scan from: ",s.timestamp]})})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(T.tU,{defaultValue:"all",value:c,onValueChange:e=>i(e),className:"mb-6",children:[(0,t.jsxs)(T.j7,{className:"grid w-full grid-cols-3",children:[(0,t.jsxs)(T.Xi,{value:"all",children:["All Cells (",g,")"]}),(0,t.jsxs)(T.Xi,{value:"lte",children:["LTE (",h.lte.length,")"]}),(0,t.jsxs)(T.Xi,{value:"nr5g",children:["5G NR (",h.nr5g.length,")"]})]}),(0,t.jsx)(T.av,{value:"all",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===g?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No cells detected in the scan"}):(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s))),h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))]})})}),(0,t.jsx)(T.av,{value:"lte",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.lte.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No LTE cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s)))})})}),(0,t.jsx)(T.av,{value:"nr5g",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.nr5g.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No 5G NR cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))})})})]})}),(0,t.jsx)(n.wL,{className:"border-t p-4 flex justify-between",children:(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Frequency calculation based on 3GPP TS 38.104 and TS 36.101 specifications"})})]})},L=()=>{let{toast:e}=(0,b.dj)(),[s,a]=(0,r.useState)(null),[d,o]=(0,r.useState)(null),[T,C]=(0,r.useState)(0),[R,I]=(0,r.useState)(!1),[S,F]=(0,r.useState)(null),[k,L]=(0,r.useState)([]),[A,q]=(0,r.useState)(null),[H,E]=(0,r.useState)({status:"idle",progress:0,message:""}),[B,_]=(0,r.useState)(0);(0,r.useEffect)(()=>{if(!d){C(0);return}let e=()=>{let s=new Date(d).getTime(),a=Math.max(0,6e4-(new Date().getTime()-s));C(a),a>0&&requestAnimationFrame(e)};e()},[d]);let O=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/fetch_mccmnc.sh"),s=await e.json();L(s)}catch(s){console.error("Failed to fetch MCC-MNC list:",s),e({title:"Warning",description:"Failed to load operator information",variant:"destructive"})}},[]);(0,r.useEffect)(()=>{O()},[O]);let M=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh"),s=await e.json();F(s)}catch(s){console.error("Failed to fetch Quecwatch status:",s),e({title:"Error",description:"Failed to check Quecwatch status",variant:"destructive"})}},[]),P=(0,r.useCallback)((e,s)=>k.find(a=>a.mcc===e&&a.mnc===s)||null,[k]),z=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:""};if("LTE"===s){let[e,s,a,t,r]=d,n=parseInt(t),l=w[n.toString()]||"".concat(n," RB");return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:n,bandwidthMHz:l,band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),G=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)return;let s=await e.json();"success"===s.status&&s.output?(a(s),o(s.timestamp||null)):"running"===s.status&&(E({status:"scanning",progress:50,message:"Scan in progress...",startTime:Date.now()-6e4}),Z(),setTimeout(U,2e3))}catch(e){console.error("Failed to check initial scan results",e)}},[]),U=(0,r.useCallback)(async()=>{if(B>60){console.log("Reached maximum polling attempts, waiting for results to appear");return}try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("success"===s.status&&s.output){a(s),o(s.timestamp||null),E({status:"idle",progress:100,message:""}),_(0);return}if("running"===s.status){_(e=>e+1),setTimeout(U,2e3);return}B<30&&(_(e=>e+1),setTimeout(U,2e3))}catch(e){console.error("Failed to check scan status",e),B<60&&(_(e=>e+1),setTimeout(U,3e3))}},[B]),Z=(0,r.useCallback)(()=>{let e;e=setInterval(()=>{E(s=>{if("scanning"!==s.status)return clearInterval(e),s;let a=10+88*Math.min((Date.now()-(s.startTime||Date.now()))/12e4,1),t="Scanning available networks... This may take a minute";return a>85?t="Finalizing scan results...":a>50&&(t="Collecting operator data..."),{...s,progress:Math.min(a,98),message:t}})},1e3),setTimeout(()=>{clearInterval(e),E(e=>"scanning"===e.status?{...e,progress:98,message:"Waiting for results..."}:e)},15e4)},[]),W=(0,r.useCallback)(async()=>{if("scanning"!==H.status&&!R){I(!0),a(null),o(null),_(0),E({status:"scanning",progress:0,message:"Initiating scan...",startTime:Date.now()});try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/cell_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("running"===s.status||"success"===s.status)E(e=>({...e,progress:10,message:"Scan in progress..."})),Z(),setTimeout(U,2e3);else throw Error(s.message||"Failed to start scan")}catch(s){console.error("Scan error:",s),e({title:"Error",description:s instanceof Error?s.message:"Failed to start cell scan",variant:"destructive"}),E({status:"idle",progress:0,message:""})}finally{I(!1)}}},[H.status,R,U,Z]),$=(0,r.useCallback)(e=>e.reduce((e,s)=>{let a="".concat(s.mcc).concat(s.mnc);if(!e[a]){let t=P(s.mcc,s.mnc);e[a]={cells:[],operatorInfo:t}}return e[a].cells.push(s),e},{}),[P]),Q=(0,r.useCallback)(e=>[...e].sort((e,s)=>e.type!==s.type?"LTE"===e.type?-1:1:s.rsrp-e.rsrp),[]),X=(0,r.useCallback)(e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),[]);(0,r.useEffect)(()=>{G(),M()},[G,M]);let V=(0,r.useCallback)(()=>{a(null),o(null),E({status:"idle",progress:0,message:""})},[]),J=(0,r.useCallback)(()=>{if(!(null==s?void 0:s.output))return;let e=new Blob([["Type,MCC,MNC,Frequency,PCI,RSRP,RSRQ,Band,Cell ID,TAC",...z(s.output).map(e=>"".concat(e.type,",").concat(e.mcc,",").concat(e.mnc,",").concat(e.freq,",").concat(e.pci,",").concat(e.rsrp,",").concat(e.rsrq,",").concat(e.band,",").concat(e.cellId,",").concat(e.tac))].join("\n")],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(e),a.setAttribute("download","cell_scan_".concat(new Date().toISOString(),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},[s,z]),K=(0,r.useCallback)((e,s,a)=>a?"".concat(e).concat(s," - ").concat(a.brand," by ").concat(a.operator):"".concat(e).concat(s),[]),Y=(null==s?void 0:s.status)==="success"&&s.output?$(z(s.output)):{},ee=(0,r.useCallback)(async()=>{if(!R){I(!0),q(null);try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/network_info.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();if(console.log("Neighbor cell data:",t),"success"===t.status&&t.mode){var s,a;(null===(s=t.data)||void 0===s?void 0:s.neighborCells)||(null===(a=t.data)||void 0===a?void 0:a.meas)?q(t):t.raw_data&&q({status:t.status,timestamp:t.timestamp,mode:t.mode,data:{neighborCells:t.raw_data.neighborCells,meas:t.raw_data.meas}})}else q(t)}catch(s){console.error("Failed to fetch neighbor cells",s),e({title:"Error",description:"Failed to scan neighbor cells. Please try again.",variant:"destructive"})}finally{I(!1)}}},[R]),es=(0,r.useCallback)(()=>{q(null)},[]);return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Full Network Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan all available network cells, including those from other network providers. Current network mode will affect the results and you may be disconnected during the scan.",d&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",d]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(v.F,{className:"h-96",children:[!s&&"idle"===H.status&&(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"Click the button below to start scanning the network..."})}),"scanning"===H.status&&(0,t.jsxs)("div",{className:"flex flex-col space-y-2 items-center justify-center h-full w-full",children:[(0,t.jsx)(u,{value:H.progress,className:"w-full"}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 text-center",children:H.message})})]}),(0,t.jsx)("div",{className:"grid gap-4",children:Object.entries(Y).map(e=>{let[s,{cells:a,operatorInfo:r}]=e;return(0,t.jsxs)(n.Zp,{className:"p-4 grid gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(g.E,{children:K(a[0].mcc,a[0].mnc,r)})}),(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"E/ARFCN"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Band"}),(0,t.jsx)(l.nd,{children:"Bandwidth"}),(0,t.jsx)(l.nd,{children:"Cell ID"}),(0,t.jsx)(l.nd,{children:"TAC"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:Q(a).map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{children:e.type}),(0,t.jsx)(l.nA,{children:e.freq}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:e.band}),(0,t.jsx)(l.nA,{children:"LTE"===e.type?e.bandwidthMHz:"-"}),(0,t.jsx)(l.nA,{children:e.cellId}),(0,t.jsx)(l.nA,{children:e.tac}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:X(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.cellId,"-").concat(s)))})]})]},s)})})]})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(null==S?void 0:S.status)==="active"?(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{disabled:!0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:"Please disable Quecwatch first before proceeding."})]})}):(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{onClick:W,disabled:"scanning"===H.status||R||T>0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:T>0?(0,t.jsxs)("span",{children:["Please wait ",Math.ceil(T/1e3)," ","seconds before scanning again"]}):(0,t.jsx)("span",{children:"Start a new network scan"})})]})}),(null==s?void 0:s.status)==="success"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.$,{variant:"secondary",onClick:J,disabled:"scanning"===H.status,children:[(0,t.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Export to CSV"]}),(0,t.jsxs)(i.$,{variant:"destructive",onClick:V,disabled:"scanning"===H.status,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})]})})]}),(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Neighbor Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan neighbor cells of the current network provider. This provides detailed information about cells in your immediate vicinity that your device can connect to.",(null==A?void 0:A.timestamp)&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",A.timestamp]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsx)(N,{neighborCells:A})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)(i.$,{onClick:ee,disabled:R,children:R?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning..."})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(y.$p$,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Neighbor Scan"})]})}),(null==A?void 0:A.status)==="success"&&(0,t.jsxs)(i.$,{variant:"destructive",onClick:es,disabled:R,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})})]}),(0,t.jsx)(D,{scanResult:s,isLoading:"scanning"===H.status,mccMncList:k})]})}},45934:(e,s,a)=>{"use strict";a.d(s,{E:()=>c});var t=a(20475);a(20107);var r=a(29395),n=a(22250);let l=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function c(e){let{className:s,variant:a,...r}=e;return(0,t.jsx)("div",{className:(0,n.cn)(l({variant:a}),s),...r})}},42541:(e,s,a)=>{"use strict";a.d(s,{$:()=>d,r:()=>i});var t=a(20475),r=a(20107),n=a(61837),l=a(29395),c=a(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,s)=>{let{className:a,variant:r,size:l,asChild:d=!1,...o}=e,u=d?n.DX:"button";return(0,t.jsx)(u,{className:(0,c.cn)(i({variant:r,size:l,className:a})),ref:s,...o})});d.displayName="Button"},72167:(e,s,a)=>{"use strict";a.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>i,Zp:()=>l,aR:()=>c,wL:()=>u});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});l.displayName="Card";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...r})});c.displayName="CardHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",a),...r})});i.displayName="CardTitle";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",a),...r})});o.displayName="CardContent";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},36824:(e,s,a)=>{"use strict";a.d(s,{$:()=>i,F:()=>c});var t=a(20475),r=a(20107),n=a(89679),l=a(22250);let c=r.forwardRef((e,s)=>{let{className:a,children:r,...c}=e;return(0,t.jsxs)(n.bL,{ref:s,className:(0,l.cn)("relative overflow-hidden",a),...c,children:[(0,t.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(i,{}),(0,t.jsx)(n.OK,{})]})});c.displayName=n.bL.displayName;let i=r.forwardRef((e,s)=>{let{className:a,orientation:r="vertical",...c}=e;return(0,t.jsx)(n.VM,{ref:s,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...c,children:(0,t.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=n.VM.displayName},51303:(e,s,a)=>{"use strict";a.d(s,{A0:()=>c,BF:()=>i,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>o,r6:()=>m});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,n.cn)("w-full caption-bottom text-sm",a),...r})})});l.displayName="Table";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("thead",{ref:s,className:(0,n.cn)("[&_tr]:border-b",a),...r})});c.displayName="TableHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...r})});i.displayName="TableBody",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...r})}).displayName="TableFooter";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tr",{ref:s,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...r})});d.displayName="TableRow";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("th",{ref:s,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});o.displayName="TableHead";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("td",{ref:s,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});u.displayName="TableCell";let m=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("caption",{ref:s,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...r})});m.displayName="TableCaption"},37921:(e,s,a)=>{"use strict";a.d(s,{Xi:()=>d,av:()=>o,j7:()=>i,tU:()=>c});var t=a(20475),r=a(20107),n=a(93677),l=a(22250);let c=n.bL,i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.B8,{ref:s,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...r})});i.displayName=n.B8.displayName;let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.l9,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...r})});d.displayName=n.l9.displayName;let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});o.displayName=n.UC.displayName},85014:(e,s,a)=>{"use strict";a.d(s,{TooltipProvider:()=>c,ZI:()=>o,k$:()=>d,m_:()=>i});var t=a(20475),r=a(20107),n=a(43048),l=a(22250);let c=n.Kq,i=n.bL,d=n.l9,o=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...c}=e;return(0,t.jsx)(n.UC,{ref:s,sideOffset:r,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...c})});o.displayName=n.UC.displayName},32857:(e,s,a)=>{"use strict";a.d(s,{dj:()=>m,oR:()=>u});var t=a(20107);let r=0,n=new Map,l=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},c=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=s;return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},i=[],d={toasts:[]};function o(e){d=c(d,e),i.forEach(e=>{e(d)})}function u(e){let{...s}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>o({type:"DISMISS_TOAST",toastId:a});return o({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,s]=t.useState(d);return t.useEffect(()=>(i.push(s),()=>{let e=i.indexOf(s);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,a)=>{"use strict";a.d(s,{cn:()=>n});var t=a(64901),r=a(868);function n(){for(var e=arguments.length,s=Array(e),a=0;a{var s=s=>e(e.s=s);e.O(0,[9980,2101,7780,8885,7563,9679,3048,3453,2394,191,6035,7358],()=>s(41126)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-2c4956be7a457748.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-2c4956be7a457748.js new file mode 100644 index 0000000..9d2953b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-2c4956be7a457748.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5014],{41126:(e,s,a)=>{Promise.resolve().then(a.bind(a,88388))},88388:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>L});var t=a(20475),r=a(20107),n=a(72167),l=a(51303),c=a(85014),i=a(42541),d=a(33466),o=a(22250);let u=r.forwardRef((e,s)=>{let{className:a,value:r,...n}=e;return(0,t.jsx)(d.bL,{ref:s,className:(0,o.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...n,children:(0,t.jsx)(d.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});u.displayName=d.bL.displayName;var m=a(59166),x=a(27720),f=a(91994),p=a(76076),h=a(51873),g=a(45934),j=a(38741),v=a(36824),b=a(32857);let N=e=>{let{neighborCells:s}=e;(0,r.useEffect)(()=>{s&&console.log("Neighbor cells data:",s)},[s]);let a=e=>e?Array.from(e.matchAll(/\+QENG: "neighbourcell (intra|inter)","LTE",(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"LTE",cellType:e[1],frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrq:parseInt(e[4]),rsrp:parseInt(e[5])})):[],n=e=>e?Array.from(e.matchAll(/\+QNWCFG: "nr5g_meas_info",(\d+),(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"NR5G-NSA",cellType:"nr5g",frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrp:parseInt(e[4]),rsrq:parseInt(e[5])})):[],i=e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),d=[];if((null==s?void 0:s.status)==="success"){var o,u,m,x;(null===(o=s.data)||void 0===o?void 0:o.neighborCells)?d=[...d,...a(s.data.neighborCells)]:(null===(u=s.raw_data)||void 0===u?void 0:u.neighborCells)&&(d=[...d,...a(s.raw_data.neighborCells)]),(null===(m=s.data)||void 0===m?void 0:m.meas)?d=[...d,...n(s.data.meas)]:(null===(x=s.raw_data)||void 0===x?void 0:x.meas)&&(d=[...d,...n(s.raw_data.meas)])}return(d.sort((e,s)=>e.type.startsWith("NR5G")&&!s.type.startsWith("NR5G")?-1:!e.type.startsWith("NR5G")&&s.type.startsWith("NR5G")?1:s.rsrp-e.rsrp),s&&0!==d.length)?(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"Cell Type"}),(0,t.jsx)(l.nd,{children:"Frequency"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:d.map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{className:"font-medium",children:e.type}),(0,t.jsx)(l.nA,{children:e.cellType}),(0,t.jsx)(l.nA,{children:e.frequency}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:i(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.type,"-").concat(e.frequency,"-").concat(e.pci,"-").concat(s)))})]})}):(0,t.jsx)("div",{className:"text-center py-4 text-gray-500",children:"No neighbor cells data available"})};var y=a(7197);let w={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz","-":"-"};var T=a(37921),R=a(28702);let C=R.bL,I=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(R.q7,{ref:s,className:(0,o.cn)("border-b",a),...r})});I.displayName="AccordionItem";let S=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(R.Y9,{className:"flex",children:(0,t.jsxs)(R.l9,{ref:s,className:(0,o.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...n,children:[r,(0,t.jsx)(y.D3D,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});S.displayName=R.l9.displayName;let k=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(R.UC,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,t.jsx)("div",{className:(0,o.cn)("pb-4 pt-0",a),children:r})})});k.displayName=R.UC.displayName;let F=e=>{var s,a,r,l,c,i;let{cell:d,operatorInfo:o}=e,u="LTE"===d.type;return(0,t.jsxs)(n.Zp,{className:"overflow-hidden border shadow-sm",children:[(0,t.jsxs)(n.aR,{className:"bg-muted/30 pb-2",children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)(g.E,{variant:u?"outline":"default",className:u?"bg-blue-600":"",children:[u?"LTE":"5G NR"," - ",(null==o?void 0:o.brand)&&o.operator?"".concat(o.brand):(null==o?void 0:o.operator)?o.operator:"".concat(d.mcc).concat(d.mnc)]}),(0,t.jsx)(n.ZB,{className:"text-base",children:u?"Band ".concat(d.band," (").concat((null===(s=d.frequencyInfo)||void 0===s?void 0:s.bandName)||"Unknown",")"):"n".concat(d.band," (").concat((null===(a=d.frequencyInfo)||void 0===a?void 0:a.bandName)||"Unknown",")")})]})}),(0,t.jsxs)(n.BT,{className:"mt-1 flex items-center space-x-2",children:[(0,t.jsx)("span",{children:d.cellId}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:d.pci}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:d.freq}),(0,t.jsx)("span",{children:"•"}),(0,t.jsxs)("span",{children:["RSRP: ",d.rsrp," dBm"]})]})]}),(0,t.jsxs)(n.Wu,{className:"pt-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-2",children:[(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Frequency Information"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Downlink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(r=d.frequencyInfo)||void 0===r?void 0:r.dlFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(l=d.frequencyInfo)||void 0===l?void 0:l.ulFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Duplex Mode:"}),(0,t.jsx)("div",{className:"font-medium",children:(null===(c=d.frequencyInfo)||void 0===c?void 0:c.duplexType)||"Unknown"}),u&&(null===(i=d.frequencyInfo)||void 0===i?void 0:i.ulEarfcn)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink EARFCN:"}),(0,t.jsx)("div",{className:"font-medium",children:d.frequencyInfo.ulEarfcn})]})]})]})}),(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Signal Parameters"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRP:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrp," dBm"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRQ:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrq," dB"]}),u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"SQUAL:"}),(0,t.jsx)("div",{className:"font-medium",children:d.squal}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Bandwidth:"}),(0,t.jsx)("div",{className:"font-medium",children:d.bandwidthMHz||"".concat(d.bandwidth," RB")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Subcarrier Spacing:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.scs," kHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Carrier Bandwidth:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.carrierBandwidth," RB"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SSB SCS:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.ssbScs," kHz"]})]})]})]})})]}),(0,t.jsx)(C,{type:"single",collapsible:!0,className:"mt-4",children:(0,t.jsxs)(I,{value:"advanced",children:[(0,t.jsx)(S,{className:"text-sm py-2",children:"Advanced Details"}),(0,t.jsx)(k,{children:o&&(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"SRXLEV:"}),(0,t.jsx)("div",{className:"font-medium",children:d.srxlev}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Operator:"}),(0,t.jsx)("div",{className:"font-medium",children:o.operator}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Brand:"}),(0,t.jsx)("div",{className:"font-medium",children:o.brand}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Country:"}),(0,t.jsx)("div",{className:"font-medium",children:o.countryName}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"MCC-MNC:"}),(0,t.jsxs)("div",{className:"font-medium",children:[o.mcc,"-",o.mnc]})]})})})]})})]})]})},D=e=>{let{scanResult:s,isLoading:a=!1,mccMncList:l=[]}=e,[c,i]=(0,r.useState)("all"),d=(0,r.useCallback)((e,s)=>l.find(a=>a.mcc===e&&a.mnc===s)||null,[l]),o=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"}],u=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"}],x=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:"",band:0};if("LTE"===s){let[e,s,a,t,r]=d;return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:parseInt(t),band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),f=(0,r.useCallback)(e=>{let s,a;let t=e.freq,r=o.find(s=>t>=s.earfcnRange[0]&&t<=s.earfcnRange[1]&&s.band===e.band);if(!r){let s,a;let r=o.find(s=>s.band===e.band);if(!r)return null;let n=r.dlLow+(t-r.earfcnOffset)%1e3*r.spacing;if("FDD"===r.duplexType){s=t+18e3;let e=r.ulHigh-r.ulLow;a=(r.ulLow+e/2).toFixed(2)}else a=n.toFixed(2);return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a,ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}}let n=r.dlLow+(t-r.earfcnOffset)*r.spacing;if("FDD"===r.duplexType){let e=t-r.earfcnOffset;s=t+18e3,a=r.ulLow+e*r.spacing}else a=n;return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a.toFixed(2),ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}},[o]),p=(0,r.useCallback)(e=>{let s;let a=e.freq;if(a>=0&&a<=599999)s=0+(a-0)*.005;else if(a>=6e5&&a<=2016666)s=3e3+(a-6e5)*.015;else{if(!(a>=2016667)||!(a<=3279165))return null;s=24250.08+(a-2016667)*.06}let t=u.find(s=>a>=s.nrarfcnRange[0]&&a<=s.nrarfcnRange[1]&&s.band===e.band);if(!t){let t=u.find(s=>s.band===e.band);return t?{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:"FDD"===t.duplexType?((t.ulLow+t.ulHigh)/2).toFixed(2):s.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}:null}let r="FDD"===t.duplexType?t.ulLow+(s-t.dlLow):s;return{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:r.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}},[u]),h=(0,r.useMemo)(()=>{if(!(null==s?void 0:s.output))return{lte:[],nr5g:[]};let e=x(s.output),a=[],t=[];e.forEach(e=>{var s,r;let n=d(e.mcc,e.mnc);if("LTE"===e.type){let t=null!==(s=f(e))&&void 0!==s?s:void 0;a.push({...e,frequencyInfo:t,operatorInfo:n})}else if("NR5G"===e.type){let s=null!==(r=p(e))&&void 0!==r?r:void 0;t.push({...e,frequencyInfo:s,operatorInfo:n})}});let r=(e,s)=>{var a,t;let r=(null===(a=e.operatorInfo)||void 0===a?void 0:a.operator)||"",n=(null===(t=s.operatorInfo)||void 0===t?void 0:t.operator)||"";return r.localeCompare(n)};return{lte:a.sort(r),nr5g:t.sort(r)}},[s,x,f,p,d]);if(a)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Analyzing frequency details for detected cells..."})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)(m.A,{className:"w-8 h-8 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Processing frequency information..."})]})})]});if(!s||!s.output)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Detailed frequency information for detected cells"})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"Run a cell scan to view detailed frequency information"})})]});let g=h.lte.length+h.nr5g.length;return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:s.timestamp&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Analysis based on full cell scan from: ",s.timestamp]})})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(T.tU,{defaultValue:"all",value:c,onValueChange:e=>i(e),className:"mb-6",children:[(0,t.jsxs)(T.j7,{className:"grid w-full grid-cols-3",children:[(0,t.jsxs)(T.Xi,{value:"all",children:["All Cells (",g,")"]}),(0,t.jsxs)(T.Xi,{value:"lte",children:["LTE (",h.lte.length,")"]}),(0,t.jsxs)(T.Xi,{value:"nr5g",children:["5G NR (",h.nr5g.length,")"]})]}),(0,t.jsx)(T.av,{value:"all",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===g?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No cells detected in the scan"}):(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[h.lte.map((e,s)=>(0,t.jsx)(F,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s))),h.nr5g.map((e,s)=>(0,t.jsx)(F,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))]})})}),(0,t.jsx)(T.av,{value:"lte",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.lte.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No LTE cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.lte.map((e,s)=>(0,t.jsx)(F,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s)))})})}),(0,t.jsx)(T.av,{value:"nr5g",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.nr5g.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No 5G NR cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.nr5g.map((e,s)=>(0,t.jsx)(F,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))})})})]})}),(0,t.jsx)(n.wL,{className:"border-t p-4 flex justify-between",children:(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Frequency calculation based on 3GPP TS 38.104 and TS 36.101 specifications"})})]})},L=()=>{let{toast:e}=(0,b.dj)(),[s,a]=(0,r.useState)(null),[d,o]=(0,r.useState)(null),[T,R]=(0,r.useState)(0),[C,I]=(0,r.useState)(!1),[S,k]=(0,r.useState)(null),[F,L]=(0,r.useState)([]),[A,q]=(0,r.useState)(null),[H,E]=(0,r.useState)({status:"idle",progress:0,message:""}),[B,_]=(0,r.useState)(0);(0,r.useEffect)(()=>{if(!d){R(0);return}let e=()=>{let s=new Date(d).getTime(),a=Math.max(0,6e4-(new Date().getTime()-s));R(a),a>0&&requestAnimationFrame(e)};e()},[d]);let O=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/fetch_mccmnc.sh"),s=await e.json();L(s)}catch(s){console.error("Failed to fetch MCC-MNC list:",s),e({title:"Warning",description:"Failed to load operator information",variant:"destructive"})}},[]);(0,r.useEffect)(()=>{O()},[O]);let M=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh"),s=await e.json();k(s)}catch(s){console.error("Failed to fetch Quecwatch status:",s),e({title:"Error",description:"Failed to check Quecwatch status",variant:"destructive"})}},[]),P=(0,r.useCallback)((e,s)=>F.find(a=>a.mcc===e&&a.mnc===s)||null,[F]),z=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:""};if("LTE"===s){let[e,s,a,t,r]=d,n=parseInt(t),l=w[n.toString()]||"".concat(n," RB");return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:n,bandwidthMHz:l,band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),G=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)return;let s=await e.json();"success"===s.status&&s.output?(a(s),o(s.timestamp||null)):"running"===s.status&&(E({status:"scanning",progress:50,message:"Scan in progress...",startTime:Date.now()-6e4}),Z(),setTimeout(U,2e3))}catch(e){console.error("Failed to check initial scan results",e)}},[]),U=(0,r.useCallback)(async()=>{if(B>60){console.log("Reached maximum polling attempts, waiting for results to appear");return}try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("success"===s.status&&s.output){a(s),o(s.timestamp||null),E({status:"idle",progress:100,message:""}),_(0);return}if("running"===s.status){_(e=>e+1),setTimeout(U,2e3);return}B<30&&(_(e=>e+1),setTimeout(U,2e3))}catch(e){console.error("Failed to check scan status",e),B<60&&(_(e=>e+1),setTimeout(U,3e3))}},[B]),Z=(0,r.useCallback)(()=>{let e;e=setInterval(()=>{E(s=>{if("scanning"!==s.status)return clearInterval(e),s;let a=10+88*Math.min((Date.now()-(s.startTime||Date.now()))/12e4,1),t="Scanning available networks... This may take a minute";return a>85?t="Finalizing scan results...":a>50&&(t="Collecting operator data..."),{...s,progress:Math.min(a,98),message:t}})},1e3),setTimeout(()=>{clearInterval(e),E(e=>"scanning"===e.status?{...e,progress:98,message:"Waiting for results..."}:e)},15e4)},[]),W=(0,r.useCallback)(async()=>{if("scanning"!==H.status&&!C){I(!0),a(null),o(null),_(0),E({status:"scanning",progress:0,message:"Initiating scan...",startTime:Date.now()});try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/cell_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("running"===s.status||"success"===s.status)E(e=>({...e,progress:10,message:"Scan in progress..."})),Z(),setTimeout(U,2e3);else throw Error(s.message||"Failed to start scan")}catch(s){console.error("Scan error:",s),e({title:"Error",description:s instanceof Error?s.message:"Failed to start cell scan",variant:"destructive"}),E({status:"idle",progress:0,message:""})}finally{I(!1)}}},[H.status,C,U,Z]),$=(0,r.useCallback)(e=>e.reduce((e,s)=>{let a="".concat(s.mcc).concat(s.mnc);if(!e[a]){let t=P(s.mcc,s.mnc);e[a]={cells:[],operatorInfo:t}}return e[a].cells.push(s),e},{}),[P]),Q=(0,r.useCallback)(e=>[...e].sort((e,s)=>e.type!==s.type?"LTE"===e.type?-1:1:s.rsrp-e.rsrp),[]),X=(0,r.useCallback)(e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),[]);(0,r.useEffect)(()=>{G(),M()},[G,M]);let V=(0,r.useCallback)(()=>{a(null),o(null),E({status:"idle",progress:0,message:""})},[]),J=(0,r.useCallback)(()=>{if(!(null==s?void 0:s.output))return;let e=new Blob([["Type,MCC,MNC,Frequency,PCI,RSRP,RSRQ,Band,Cell ID,TAC",...z(s.output).map(e=>"".concat(e.type,",").concat(e.mcc,",").concat(e.mnc,",").concat(e.freq,",").concat(e.pci,",").concat(e.rsrp,",").concat(e.rsrq,",").concat(e.band,",").concat(e.cellId,",").concat(e.tac))].join("\n")],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(e),a.setAttribute("download","cell_scan_".concat(new Date().toISOString(),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},[s,z]),K=(0,r.useCallback)((e,s,a)=>a?"".concat(e).concat(s," - ").concat(a.brand," by ").concat(a.operator):"".concat(e).concat(s),[]),Y=(null==s?void 0:s.status)==="success"&&s.output?$(z(s.output)):{},ee=(0,r.useCallback)(async()=>{if(!C){I(!0),q(null);try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/network_info.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();if(console.log("Neighbor cell data:",t),"success"===t.status&&t.mode){var s,a;(null===(s=t.data)||void 0===s?void 0:s.neighborCells)||(null===(a=t.data)||void 0===a?void 0:a.meas)?q(t):t.raw_data&&q({status:t.status,timestamp:t.timestamp,mode:t.mode,data:{neighborCells:t.raw_data.neighborCells,meas:t.raw_data.meas}})}else q(t)}catch(s){console.error("Failed to fetch neighbor cells",s),e({title:"Error",description:"Failed to scan neighbor cells. Please try again.",variant:"destructive"})}finally{I(!1)}}},[C]),es=(0,r.useCallback)(()=>{q(null)},[]);return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Full Network Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan all available network cells, including those from other network providers. Current network mode will affect the results and you may be disconnected during the scan.",d&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",d]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(v.F,{className:"h-96",children:[!s&&"idle"===H.status&&(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"Click the button below to start scanning the network..."})}),"scanning"===H.status&&(0,t.jsxs)("div",{className:"flex flex-col space-y-2 items-center justify-center h-full w-full",children:[(0,t.jsx)(u,{value:H.progress,className:"w-full"}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 text-center",children:H.message})})]}),(0,t.jsx)("div",{className:"grid gap-4",children:Object.entries(Y).map(e=>{let[s,{cells:a,operatorInfo:r}]=e;return(0,t.jsxs)(n.Zp,{className:"p-4 grid gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(g.E,{children:K(a[0].mcc,a[0].mnc,r)})}),(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"E/ARFCN"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Band"}),(0,t.jsx)(l.nd,{children:"Bandwidth"}),(0,t.jsx)(l.nd,{children:"Cell ID"}),(0,t.jsx)(l.nd,{children:"TAC"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:Q(a).map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{children:e.type}),(0,t.jsx)(l.nA,{children:e.freq}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:e.band}),(0,t.jsx)(l.nA,{children:"LTE"===e.type?e.bandwidthMHz:"-"}),(0,t.jsx)(l.nA,{children:e.cellId}),(0,t.jsx)(l.nA,{children:e.tac}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:X(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.cellId,"-").concat(s)))})]})]},s)})})]})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(null==S?void 0:S.status)==="active"?(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{disabled:!0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:"Please disable Quecwatch first before proceeding."})]})}):(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{onClick:W,disabled:"scanning"===H.status||C||T>0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:T>0?(0,t.jsxs)("span",{children:["Please wait ",Math.ceil(T/1e3)," ","seconds before scanning again"]}):(0,t.jsx)("span",{children:"Start a new network scan"})})]})}),(null==s?void 0:s.status)==="success"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.$,{variant:"secondary",onClick:J,disabled:"scanning"===H.status,children:[(0,t.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Export to CSV"]}),(0,t.jsxs)(i.$,{variant:"destructive",onClick:V,disabled:"scanning"===H.status,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})]})})]}),(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Neighbor Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan neighbor cells of the current network provider. This provides detailed information about cells in your immediate vicinity that your device can connect to.",(null==A?void 0:A.timestamp)&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",A.timestamp]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsx)(N,{neighborCells:A})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)(i.$,{onClick:ee,disabled:C||(null==S?void 0:S.status)==="active",children:C?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning..."})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(y.$p$,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Neighbor Scan"})]})}),(null==A?void 0:A.status)==="success"&&(0,t.jsxs)(i.$,{variant:"destructive",onClick:es,disabled:C,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})})]}),(0,t.jsx)(D,{scanResult:s,isLoading:"scanning"===H.status,mccMncList:F})]})}},45934:(e,s,a)=>{"use strict";a.d(s,{E:()=>c});var t=a(20475);a(20107);var r=a(29395),n=a(22250);let l=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function c(e){let{className:s,variant:a,...r}=e;return(0,t.jsx)("div",{className:(0,n.cn)(l({variant:a}),s),...r})}},42541:(e,s,a)=>{"use strict";a.d(s,{$:()=>d,r:()=>i});var t=a(20475),r=a(20107),n=a(61837),l=a(29395),c=a(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,s)=>{let{className:a,variant:r,size:l,asChild:d=!1,...o}=e,u=d?n.DX:"button";return(0,t.jsx)(u,{className:(0,c.cn)(i({variant:r,size:l,className:a})),ref:s,...o})});d.displayName="Button"},72167:(e,s,a)=>{"use strict";a.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>i,Zp:()=>l,aR:()=>c,wL:()=>u});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});l.displayName="Card";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...r})});c.displayName="CardHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",a),...r})});i.displayName="CardTitle";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",a),...r})});o.displayName="CardContent";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},36824:(e,s,a)=>{"use strict";a.d(s,{$:()=>i,F:()=>c});var t=a(20475),r=a(20107),n=a(89679),l=a(22250);let c=r.forwardRef((e,s)=>{let{className:a,children:r,...c}=e;return(0,t.jsxs)(n.bL,{ref:s,className:(0,l.cn)("relative overflow-hidden",a),...c,children:[(0,t.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(i,{}),(0,t.jsx)(n.OK,{})]})});c.displayName=n.bL.displayName;let i=r.forwardRef((e,s)=>{let{className:a,orientation:r="vertical",...c}=e;return(0,t.jsx)(n.VM,{ref:s,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...c,children:(0,t.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=n.VM.displayName},51303:(e,s,a)=>{"use strict";a.d(s,{A0:()=>c,BF:()=>i,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>o,r6:()=>m});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,n.cn)("w-full caption-bottom text-sm",a),...r})})});l.displayName="Table";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("thead",{ref:s,className:(0,n.cn)("[&_tr]:border-b",a),...r})});c.displayName="TableHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...r})});i.displayName="TableBody",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...r})}).displayName="TableFooter";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tr",{ref:s,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...r})});d.displayName="TableRow";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("th",{ref:s,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});o.displayName="TableHead";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("td",{ref:s,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});u.displayName="TableCell";let m=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("caption",{ref:s,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...r})});m.displayName="TableCaption"},37921:(e,s,a)=>{"use strict";a.d(s,{Xi:()=>d,av:()=>o,j7:()=>i,tU:()=>c});var t=a(20475),r=a(20107),n=a(93677),l=a(22250);let c=n.bL,i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.B8,{ref:s,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...r})});i.displayName=n.B8.displayName;let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.l9,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...r})});d.displayName=n.l9.displayName;let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});o.displayName=n.UC.displayName},85014:(e,s,a)=>{"use strict";a.d(s,{TooltipProvider:()=>c,ZI:()=>o,k$:()=>d,m_:()=>i});var t=a(20475),r=a(20107),n=a(43048),l=a(22250);let c=n.Kq,i=n.bL,d=n.l9,o=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...c}=e;return(0,t.jsx)(n.UC,{ref:s,sideOffset:r,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...c})});o.displayName=n.UC.displayName},32857:(e,s,a)=>{"use strict";a.d(s,{dj:()=>m,oR:()=>u});var t=a(20107);let r=0,n=new Map,l=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},c=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=s;return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},i=[],d={toasts:[]};function o(e){d=c(d,e),i.forEach(e=>{e(d)})}function u(e){let{...s}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>o({type:"DISMISS_TOAST",toastId:a});return o({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,s]=t.useState(d);return t.useEffect(()=>(i.push(s),()=>{let e=i.indexOf(s);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,a)=>{"use strict";a.d(s,{cn:()=>n});var t=a(64901),r=a(868);function n(){for(var e=arguments.length,s=Array(e),a=0;a{var s=s=>e(e.s=s);e.O(0,[9980,2101,7780,8885,7563,9679,3048,3453,2394,191,6035,7358],()=>s(41126)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-39748f3b35deaf13.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-39748f3b35deaf13.js new file mode 100644 index 0000000..bee4160 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-39748f3b35deaf13.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5014],{41126:(e,s,a)=>{Promise.resolve().then(a.bind(a,88388))},88388:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>L});var t=a(20475),r=a(20107),n=a(72167),l=a(51303),c=a(85014),i=a(42541),d=a(33466),o=a(22250);let u=r.forwardRef((e,s)=>{let{className:a,value:r,...n}=e;return(0,t.jsx)(d.bL,{ref:s,className:(0,o.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...n,children:(0,t.jsx)(d.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});u.displayName=d.bL.displayName;var m=a(59166),x=a(27720),f=a(91994),p=a(76076),h=a(51873),g=a(45934),j=a(38741),v=a(36824),b=a(32857);let N=e=>{let{neighborCells:s}=e;(0,r.useEffect)(()=>{s&&console.log("Neighbor cells data:",s)},[s]);let a=e=>e?Array.from(e.matchAll(/\+QENG: "neighbourcell (intra|inter)","LTE",(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"LTE",cellType:e[1],frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrq:parseInt(e[4]),rsrp:parseInt(e[5])})):[],n=e=>e?Array.from(e.matchAll(/\+QNWCFG: "nr5g_meas_info",(\d+),(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"NR5G-NSA",cellType:"nr5g",frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrp:parseInt(e[4]),rsrq:parseInt(e[5])})):[],i=e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),d=[];if((null==s?void 0:s.status)==="success"){var o,u,m,x;(null===(o=s.data)||void 0===o?void 0:o.neighborCells)?d=[...d,...a(s.data.neighborCells)]:(null===(u=s.raw_data)||void 0===u?void 0:u.neighborCells)&&(d=[...d,...a(s.raw_data.neighborCells)]),(null===(m=s.data)||void 0===m?void 0:m.meas)?d=[...d,...n(s.data.meas)]:(null===(x=s.raw_data)||void 0===x?void 0:x.meas)&&(d=[...d,...n(s.raw_data.meas)])}return(d.sort((e,s)=>e.type.startsWith("NR5G")&&!s.type.startsWith("NR5G")?-1:!e.type.startsWith("NR5G")&&s.type.startsWith("NR5G")?1:s.rsrp-e.rsrp),s&&0!==d.length)?(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"Cell Type"}),(0,t.jsx)(l.nd,{children:"Frequency"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:d.map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{className:"font-medium",children:e.type}),(0,t.jsx)(l.nA,{children:e.cellType}),(0,t.jsx)(l.nA,{children:e.frequency}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:i(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.type,"-").concat(e.frequency,"-").concat(e.pci,"-").concat(s)))})]})}):(0,t.jsx)("div",{className:"text-center py-4 text-gray-500",children:"No neighbor cells data available"})};var y=a(7197);let w={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz","-":"-"};var T=a(37921),C=a(28702);let R=C.bL,I=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(C.q7,{ref:s,className:(0,o.cn)("border-b",a),...r})});I.displayName="AccordionItem";let S=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(C.Y9,{className:"flex",children:(0,t.jsxs)(C.l9,{ref:s,className:(0,o.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...n,children:[r,(0,t.jsx)(y.D3D,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});S.displayName=C.l9.displayName;let F=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(C.UC,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,t.jsx)("div",{className:(0,o.cn)("pb-4 pt-0",a),children:r})})});F.displayName=C.UC.displayName;let k=e=>{var s,a,r,l,c,i;let{cell:d,operatorInfo:o}=e,u="LTE"===d.type;return(0,t.jsxs)(n.Zp,{className:"overflow-hidden border shadow-sm",children:[(0,t.jsxs)(n.aR,{className:"bg-muted/30 pb-2",children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)(g.E,{variant:u?"outline":"default",className:u?"bg-orange-600":"",children:[u?"LTE":"5G NR"," - ",(null==o?void 0:o.brand)&&o.operator?"".concat(o.brand):(null==o?void 0:o.operator)?o.operator:"".concat(d.mcc).concat(d.mnc)]}),(0,t.jsx)(n.ZB,{className:"text-base",children:u?"Band ".concat(d.band," (").concat((null===(s=d.frequencyInfo)||void 0===s?void 0:s.bandName)||"Unknown",")"):"n".concat(d.band," (").concat((null===(a=d.frequencyInfo)||void 0===a?void 0:a.bandName)||"Unknown",")")})]})}),(0,t.jsxs)(n.BT,{className:"mt-1 flex items-center space-x-2",children:[(0,t.jsxs)("span",{children:["Cell ID: ",d.cellId]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsxs)("span",{children:["PCI: ",d.pci]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:u?"EARFCN: ".concat(d.freq):"NR-ARFCN: ".concat(d.freq)})]})]}),(0,t.jsxs)(n.Wu,{className:"pt-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-2",children:[(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Frequency Information"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Downlink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(r=d.frequencyInfo)||void 0===r?void 0:r.dlFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(l=d.frequencyInfo)||void 0===l?void 0:l.ulFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Duplex Mode:"}),(0,t.jsx)("div",{className:"font-medium",children:(null===(c=d.frequencyInfo)||void 0===c?void 0:c.duplexType)||"Unknown"}),u&&(null===(i=d.frequencyInfo)||void 0===i?void 0:i.ulEarfcn)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink EARFCN:"}),(0,t.jsx)("div",{className:"font-medium",children:d.frequencyInfo.ulEarfcn})]})]})]})}),(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Signal Parameters"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRP:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrp," dBm"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRQ:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrq," dB"]}),u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"SQUAL:"}),(0,t.jsx)("div",{className:"font-medium",children:d.squal}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Bandwidth:"}),(0,t.jsx)("div",{className:"font-medium",children:d.bandwidthMHz||"".concat(d.bandwidth," RB")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Subcarrier Spacing:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.scs," kHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Carrier Bandwidth:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.carrierBandwidth," RB"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SSB SCS:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.ssbScs," kHz"]})]})]})]})})]}),(0,t.jsx)(R,{type:"single",collapsible:!0,className:"mt-4",children:(0,t.jsxs)(I,{value:"advanced",children:[(0,t.jsx)(S,{className:"text-sm py-2",children:"Advanced Details"}),(0,t.jsx)(F,{children:o&&(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Operator:"}),(0,t.jsx)("div",{className:"font-medium",children:o.operator}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Brand:"}),(0,t.jsx)("div",{className:"font-medium",children:o.brand}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Country:"}),(0,t.jsx)("div",{className:"font-medium",children:o.countryName}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"MCC-MNC:"}),(0,t.jsxs)("div",{className:"font-medium",children:[o.mcc,"-",o.mnc]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SRXLEV:"}),(0,t.jsx)("div",{className:"font-medium",children:d.srxlev})]})})})]})})]})]})},D=e=>{let{scanResult:s,isLoading:a=!1,mccMncList:l=[]}=e,[c,i]=(0,r.useState)("all"),d=(0,r.useCallback)((e,s)=>l.find(a=>a.mcc===e&&a.mnc===s)||null,[l]),o=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"}],u=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"}],x=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:"",band:0};if("LTE"===s){let[e,s,a,t,r]=d;return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:parseInt(t),band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),f=(0,r.useCallback)(e=>{let s,a;let t=e.freq,r=o.find(s=>t>=s.earfcnRange[0]&&t<=s.earfcnRange[1]&&s.band===e.band);if(!r){let s,a;let r=o.find(s=>s.band===e.band);if(!r)return null;let n=r.dlLow+(t-r.earfcnOffset)%1e3*r.spacing;if("FDD"===r.duplexType){s=t+18e3;let e=r.ulHigh-r.ulLow;a=(r.ulLow+e/2).toFixed(2)}else a=n.toFixed(2);return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a,ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}}let n=r.dlLow+(t-r.earfcnOffset)*r.spacing;if("FDD"===r.duplexType){let e=t-r.earfcnOffset;s=t+18e3,a=r.ulLow+e*r.spacing}else a=n;return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a.toFixed(2),ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}},[o]),p=(0,r.useCallback)(e=>{let s;let a=e.freq;if(a>=0&&a<=599999)s=0+(a-0)*.005;else if(a>=6e5&&a<=2016666)s=3e3+(a-6e5)*.015;else{if(!(a>=2016667)||!(a<=3279165))return null;s=24250.08+(a-2016667)*.06}let t=u.find(s=>a>=s.nrarfcnRange[0]&&a<=s.nrarfcnRange[1]&&s.band===e.band);if(!t){let t=u.find(s=>s.band===e.band);return t?{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:"FDD"===t.duplexType?((t.ulLow+t.ulHigh)/2).toFixed(2):s.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}:null}let r="FDD"===t.duplexType?t.ulLow+(s-t.dlLow):s;return{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:r.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}},[u]),h=(0,r.useMemo)(()=>{if(!(null==s?void 0:s.output))return{lte:[],nr5g:[]};let e=x(s.output),a=[],t=[];e.forEach(e=>{var s,r;let n=d(e.mcc,e.mnc);if("LTE"===e.type){let t=null!==(s=f(e))&&void 0!==s?s:void 0;a.push({...e,frequencyInfo:t,operatorInfo:n})}else if("NR5G"===e.type){let s=null!==(r=p(e))&&void 0!==r?r:void 0;t.push({...e,frequencyInfo:s,operatorInfo:n})}});let r=(e,s)=>{var a,t;let r=(null===(a=e.operatorInfo)||void 0===a?void 0:a.operator)||"",n=(null===(t=s.operatorInfo)||void 0===t?void 0:t.operator)||"";return r.localeCompare(n)};return{lte:a.sort(r),nr5g:t.sort(r)}},[s,x,f,p,d]);if(a)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Analyzing frequency details for detected cells..."})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)(m.A,{className:"w-8 h-8 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Processing frequency information..."})]})})]});if(!s||!s.output)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Detailed frequency information for detected cells"})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"Run a cell scan to view detailed frequency information"})})]});let g=h.lte.length+h.nr5g.length;return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:s.timestamp&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Analysis based on full cell scan from: ",s.timestamp]})})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(T.tU,{defaultValue:"all",value:c,onValueChange:e=>i(e),className:"mb-6",children:[(0,t.jsxs)(T.j7,{className:"grid w-full grid-cols-3",children:[(0,t.jsxs)(T.Xi,{value:"all",children:["All Cells (",g,")"]}),(0,t.jsxs)(T.Xi,{value:"lte",children:["LTE (",h.lte.length,")"]}),(0,t.jsxs)(T.Xi,{value:"nr5g",children:["5G NR (",h.nr5g.length,")"]})]}),(0,t.jsx)(T.av,{value:"all",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===g?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No cells detected in the scan"}):(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s))),h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))]})})}),(0,t.jsx)(T.av,{value:"lte",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.lte.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No LTE cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s)))})})}),(0,t.jsx)(T.av,{value:"nr5g",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.nr5g.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No 5G NR cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))})})})]})}),(0,t.jsx)(n.wL,{className:"border-t p-4 flex justify-between",children:(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Frequency calculation based on 3GPP TS 38.104 and TS 36.101 specifications"})})]})},L=()=>{let{toast:e}=(0,b.dj)(),[s,a]=(0,r.useState)(null),[d,o]=(0,r.useState)(null),[T,C]=(0,r.useState)(0),[R,I]=(0,r.useState)(!1),[S,F]=(0,r.useState)(null),[k,L]=(0,r.useState)([]),[A,q]=(0,r.useState)(null),[H,E]=(0,r.useState)({status:"idle",progress:0,message:""}),[B,_]=(0,r.useState)(0);(0,r.useEffect)(()=>{if(!d){C(0);return}let e=()=>{let s=new Date(d).getTime(),a=Math.max(0,6e4-(new Date().getTime()-s));C(a),a>0&&requestAnimationFrame(e)};e()},[d]);let O=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/fetch_mccmnc.sh"),s=await e.json();L(s)}catch(s){console.error("Failed to fetch MCC-MNC list:",s),e({title:"Warning",description:"Failed to load operator information",variant:"destructive"})}},[]);(0,r.useEffect)(()=>{O()},[O]);let M=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh"),s=await e.json();F(s)}catch(s){console.error("Failed to fetch Quecwatch status:",s),e({title:"Error",description:"Failed to check Quecwatch status",variant:"destructive"})}},[]),P=(0,r.useCallback)((e,s)=>k.find(a=>a.mcc===e&&a.mnc===s)||null,[k]),z=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:""};if("LTE"===s){let[e,s,a,t,r]=d,n=parseInt(t),l=w[n.toString()]||"".concat(n," RB");return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:n,bandwidthMHz:l,band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),G=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)return;let s=await e.json();"success"===s.status&&s.output?(a(s),o(s.timestamp||null)):"running"===s.status&&(E({status:"scanning",progress:50,message:"Scan in progress...",startTime:Date.now()-6e4}),Z(),setTimeout(U,2e3))}catch(e){console.error("Failed to check initial scan results",e)}},[]),U=(0,r.useCallback)(async()=>{if(B>60){console.log("Reached maximum polling attempts, waiting for results to appear");return}try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("success"===s.status&&s.output){a(s),o(s.timestamp||null),E({status:"idle",progress:100,message:""}),_(0);return}if("running"===s.status){_(e=>e+1),setTimeout(U,2e3);return}B<30&&(_(e=>e+1),setTimeout(U,2e3))}catch(e){console.error("Failed to check scan status",e),B<60&&(_(e=>e+1),setTimeout(U,3e3))}},[B]),Z=(0,r.useCallback)(()=>{let e;e=setInterval(()=>{E(s=>{if("scanning"!==s.status)return clearInterval(e),s;let a=10+88*Math.min((Date.now()-(s.startTime||Date.now()))/12e4,1),t="Scanning available networks... This may take a minute";return a>85?t="Finalizing scan results...":a>50&&(t="Collecting operator data..."),{...s,progress:Math.min(a,98),message:t}})},1e3),setTimeout(()=>{clearInterval(e),E(e=>"scanning"===e.status?{...e,progress:98,message:"Waiting for results..."}:e)},15e4)},[]),W=(0,r.useCallback)(async()=>{if("scanning"!==H.status&&!R){I(!0),a(null),o(null),_(0),E({status:"scanning",progress:0,message:"Initiating scan...",startTime:Date.now()});try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/cell_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("running"===s.status||"success"===s.status)E(e=>({...e,progress:10,message:"Scan in progress..."})),Z(),setTimeout(U,2e3);else throw Error(s.message||"Failed to start scan")}catch(s){console.error("Scan error:",s),e({title:"Error",description:s instanceof Error?s.message:"Failed to start cell scan",variant:"destructive"}),E({status:"idle",progress:0,message:""})}finally{I(!1)}}},[H.status,R,U,Z]),$=(0,r.useCallback)(e=>e.reduce((e,s)=>{let a="".concat(s.mcc).concat(s.mnc);if(!e[a]){let t=P(s.mcc,s.mnc);e[a]={cells:[],operatorInfo:t}}return e[a].cells.push(s),e},{}),[P]),Q=(0,r.useCallback)(e=>[...e].sort((e,s)=>e.type!==s.type?"LTE"===e.type?-1:1:s.rsrp-e.rsrp),[]),X=(0,r.useCallback)(e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),[]);(0,r.useEffect)(()=>{G(),M()},[G,M]);let V=(0,r.useCallback)(()=>{a(null),o(null),E({status:"idle",progress:0,message:""})},[]),J=(0,r.useCallback)(()=>{if(!(null==s?void 0:s.output))return;let e=new Blob([["Type,MCC,MNC,Frequency,PCI,RSRP,RSRQ,Band,Cell ID,TAC",...z(s.output).map(e=>"".concat(e.type,",").concat(e.mcc,",").concat(e.mnc,",").concat(e.freq,",").concat(e.pci,",").concat(e.rsrp,",").concat(e.rsrq,",").concat(e.band,",").concat(e.cellId,",").concat(e.tac))].join("\n")],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(e),a.setAttribute("download","cell_scan_".concat(new Date().toISOString(),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},[s,z]),K=(0,r.useCallback)((e,s,a)=>a?"".concat(e).concat(s," - ").concat(a.brand," by ").concat(a.operator):"".concat(e).concat(s),[]),Y=(null==s?void 0:s.status)==="success"&&s.output?$(z(s.output)):{},ee=(0,r.useCallback)(async()=>{if(!R){I(!0),q(null);try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/network_info.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();if(console.log("Neighbor cell data:",t),"success"===t.status&&t.mode){var s,a;(null===(s=t.data)||void 0===s?void 0:s.neighborCells)||(null===(a=t.data)||void 0===a?void 0:a.meas)?q(t):t.raw_data&&q({status:t.status,timestamp:t.timestamp,mode:t.mode,data:{neighborCells:t.raw_data.neighborCells,meas:t.raw_data.meas}})}else q(t)}catch(s){console.error("Failed to fetch neighbor cells",s),e({title:"Error",description:"Failed to scan neighbor cells. Please try again.",variant:"destructive"})}finally{I(!1)}}},[R]),es=(0,r.useCallback)(()=>{q(null)},[]);return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Full Network Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan all available network cells, including those from other network providers. Current network mode will affect the results and you may be disconnected during the scan.",d&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",d]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(v.F,{className:"h-96",children:[!s&&"idle"===H.status&&(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"Click the button below to start scanning the network..."})}),"scanning"===H.status&&(0,t.jsxs)("div",{className:"flex flex-col space-y-2 items-center justify-center h-full w-full",children:[(0,t.jsx)(u,{value:H.progress,className:"w-full"}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 text-center",children:H.message})})]}),(0,t.jsx)("div",{className:"grid gap-4",children:Object.entries(Y).map(e=>{let[s,{cells:a,operatorInfo:r}]=e;return(0,t.jsxs)(n.Zp,{className:"p-4 grid gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(g.E,{children:K(a[0].mcc,a[0].mnc,r)})}),(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"E/ARFCN"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Band"}),(0,t.jsx)(l.nd,{children:"Bandwidth"}),(0,t.jsx)(l.nd,{children:"Cell ID"}),(0,t.jsx)(l.nd,{children:"TAC"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:Q(a).map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{children:e.type}),(0,t.jsx)(l.nA,{children:e.freq}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:e.band}),(0,t.jsx)(l.nA,{children:"LTE"===e.type?e.bandwidthMHz:"-"}),(0,t.jsx)(l.nA,{children:e.cellId}),(0,t.jsx)(l.nA,{children:e.tac}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:X(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.cellId,"-").concat(s)))})]})]},s)})})]})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(null==S?void 0:S.status)==="active"?(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{disabled:!0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:"Please disable Quecwatch first before proceeding."})]})}):(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{onClick:W,disabled:"scanning"===H.status||R||T>0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:T>0?(0,t.jsxs)("span",{children:["Please wait ",Math.ceil(T/1e3)," ","seconds before scanning again"]}):(0,t.jsx)("span",{children:"Start a new network scan"})})]})}),(null==s?void 0:s.status)==="success"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.$,{variant:"secondary",onClick:J,disabled:"scanning"===H.status,children:[(0,t.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Export to CSV"]}),(0,t.jsxs)(i.$,{variant:"destructive",onClick:V,disabled:"scanning"===H.status,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})]})})]}),(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Neighbor Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan neighbor cells of the current network provider. This provides detailed information about cells in your immediate vicinity that your device can connect to.",(null==A?void 0:A.timestamp)&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",A.timestamp]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsx)(N,{neighborCells:A})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)(i.$,{onClick:ee,disabled:R,children:R?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning..."})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(y.$p$,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Neighbor Scan"})]})}),(null==A?void 0:A.status)==="success"&&(0,t.jsxs)(i.$,{variant:"destructive",onClick:es,disabled:R,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})})]}),(0,t.jsx)(D,{scanResult:s,isLoading:"scanning"===H.status,mccMncList:k})]})}},45934:(e,s,a)=>{"use strict";a.d(s,{E:()=>c});var t=a(20475);a(20107);var r=a(29395),n=a(22250);let l=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function c(e){let{className:s,variant:a,...r}=e;return(0,t.jsx)("div",{className:(0,n.cn)(l({variant:a}),s),...r})}},42541:(e,s,a)=>{"use strict";a.d(s,{$:()=>d,r:()=>i});var t=a(20475),r=a(20107),n=a(61837),l=a(29395),c=a(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,s)=>{let{className:a,variant:r,size:l,asChild:d=!1,...o}=e,u=d?n.DX:"button";return(0,t.jsx)(u,{className:(0,c.cn)(i({variant:r,size:l,className:a})),ref:s,...o})});d.displayName="Button"},72167:(e,s,a)=>{"use strict";a.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>i,Zp:()=>l,aR:()=>c,wL:()=>u});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});l.displayName="Card";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...r})});c.displayName="CardHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",a),...r})});i.displayName="CardTitle";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",a),...r})});o.displayName="CardContent";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},36824:(e,s,a)=>{"use strict";a.d(s,{$:()=>i,F:()=>c});var t=a(20475),r=a(20107),n=a(89679),l=a(22250);let c=r.forwardRef((e,s)=>{let{className:a,children:r,...c}=e;return(0,t.jsxs)(n.bL,{ref:s,className:(0,l.cn)("relative overflow-hidden",a),...c,children:[(0,t.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(i,{}),(0,t.jsx)(n.OK,{})]})});c.displayName=n.bL.displayName;let i=r.forwardRef((e,s)=>{let{className:a,orientation:r="vertical",...c}=e;return(0,t.jsx)(n.VM,{ref:s,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...c,children:(0,t.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=n.VM.displayName},51303:(e,s,a)=>{"use strict";a.d(s,{A0:()=>c,BF:()=>i,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>o,r6:()=>m});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,n.cn)("w-full caption-bottom text-sm",a),...r})})});l.displayName="Table";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("thead",{ref:s,className:(0,n.cn)("[&_tr]:border-b",a),...r})});c.displayName="TableHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...r})});i.displayName="TableBody",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...r})}).displayName="TableFooter";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tr",{ref:s,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...r})});d.displayName="TableRow";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("th",{ref:s,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});o.displayName="TableHead";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("td",{ref:s,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});u.displayName="TableCell";let m=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("caption",{ref:s,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...r})});m.displayName="TableCaption"},37921:(e,s,a)=>{"use strict";a.d(s,{Xi:()=>d,av:()=>o,j7:()=>i,tU:()=>c});var t=a(20475),r=a(20107),n=a(93677),l=a(22250);let c=n.bL,i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.B8,{ref:s,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...r})});i.displayName=n.B8.displayName;let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.l9,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...r})});d.displayName=n.l9.displayName;let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});o.displayName=n.UC.displayName},85014:(e,s,a)=>{"use strict";a.d(s,{TooltipProvider:()=>c,ZI:()=>o,k$:()=>d,m_:()=>i});var t=a(20475),r=a(20107),n=a(43048),l=a(22250);let c=n.Kq,i=n.bL,d=n.l9,o=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...c}=e;return(0,t.jsx)(n.UC,{ref:s,sideOffset:r,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...c})});o.displayName=n.UC.displayName},32857:(e,s,a)=>{"use strict";a.d(s,{dj:()=>m,oR:()=>u});var t=a(20107);let r=0,n=new Map,l=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},c=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=s;return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},i=[],d={toasts:[]};function o(e){d=c(d,e),i.forEach(e=>{e(d)})}function u(e){let{...s}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>o({type:"DISMISS_TOAST",toastId:a});return o({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,s]=t.useState(d);return t.useEffect(()=>(i.push(s),()=>{let e=i.indexOf(s);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,a)=>{"use strict";a.d(s,{cn:()=>n});var t=a(64901),r=a(868);function n(){for(var e=arguments.length,s=Array(e),a=0;a{var s=s=>e(e.s=s);e.O(0,[9980,2101,7780,8885,7563,3048,9679,3453,2394,191,6035,7358],()=>s(41126)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-a05961e226ae9f47.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-a05961e226ae9f47.js deleted file mode 100644 index 39aa241..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-a05961e226ae9f47.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5014],{8990:(e,s,a)=>{Promise.resolve().then(a.bind(a,27018))},27018:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>k});var t=a(95155),n=a(12115),r=a(35007),l=a(22079),c=a(9246),i=a(14085),d=a(16838),o=a(29602);let u=n.forwardRef((e,s)=>{let{className:a,value:n,...r}=e;return(0,t.jsx)(d.bL,{ref:s,className:(0,o.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...r,children:(0,t.jsx)(d.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(n||0),"%)")}})})});u.displayName=d.bL.displayName;var m=a(14505),f=a(20853),x=a(21773),p=a(77163),h=a(45686),g=a(39286),j=a(76084),v=a(3392),b=a(20241);let N=e=>{let{neighborCells:s}=e;(0,n.useEffect)(()=>{s&&console.log("Neighbor cells data:",s)},[s]);let a=e=>e?Array.from(e.matchAll(/\+QENG: "neighbourcell (intra|inter)","LTE",(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"LTE",cellType:e[1],frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrq:parseInt(e[4]),rsrp:parseInt(e[5])})):[],r=e=>e?Array.from(e.matchAll(/\+QNWCFG: "nr5g_meas_info",(\d+),(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"NR5G-NSA",cellType:"nr5g",frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrp:parseInt(e[4]),rsrq:parseInt(e[5])})):[],i=e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),d=[];if((null==s?void 0:s.status)==="success"){var o,u,m,f;(null===(o=s.data)||void 0===o?void 0:o.neighborCells)?d=[...d,...a(s.data.neighborCells)]:(null===(u=s.raw_data)||void 0===u?void 0:u.neighborCells)&&(d=[...d,...a(s.raw_data.neighborCells)]),(null===(m=s.data)||void 0===m?void 0:m.meas)?d=[...d,...r(s.data.meas)]:(null===(f=s.raw_data)||void 0===f?void 0:f.meas)&&(d=[...d,...r(s.raw_data.meas)])}return(d.sort((e,s)=>e.type.startsWith("NR5G")&&!s.type.startsWith("NR5G")?-1:!e.type.startsWith("NR5G")&&s.type.startsWith("NR5G")?1:s.rsrp-e.rsrp),s&&0!==d.length)?(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"Cell Type"}),(0,t.jsx)(l.nd,{children:"Frequency"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:d.map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{className:"font-medium",children:e.type}),(0,t.jsx)(l.nA,{children:e.cellType}),(0,t.jsx)(l.nA,{children:e.frequency}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:i(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.type,"-").concat(e.frequency,"-").concat(e.pci,"-").concat(s)))})]})}):(0,t.jsx)("div",{className:"text-center py-4 text-gray-500",children:"No neighbor cells data available"})};var y=a(87365);let w={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz","-":"-"};var T=a(31641),R=a(85217);let C=R.bL,I=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(R.q7,{ref:s,className:(0,o.cn)("border-b",a),...n})});I.displayName="AccordionItem";let S=n.forwardRef((e,s)=>{let{className:a,children:n,...r}=e;return(0,t.jsx)(R.Y9,{className:"flex",children:(0,t.jsxs)(R.l9,{ref:s,className:(0,o.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...r,children:[n,(0,t.jsx)(y.D3D,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});S.displayName=R.l9.displayName;let D=n.forwardRef((e,s)=>{let{className:a,children:n,...r}=e;return(0,t.jsx)(R.UC,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:(0,t.jsx)("div",{className:(0,o.cn)("pb-4 pt-0",a),children:n})})});D.displayName=R.UC.displayName;let F=e=>{var s,a,n,l,c,i;let{cell:d,operatorInfo:o}=e,u="LTE"===d.type;return(0,t.jsxs)(r.Zp,{className:"overflow-hidden border shadow-sm",children:[(0,t.jsxs)(r.aR,{className:"bg-muted/30 pb-2",children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)(g.E,{variant:u?"outline":"default",className:u?"bg-orange-600":"",children:[u?"LTE":"5G NR"," - ",(null==o?void 0:o.brand)&&o.operator?"".concat(o.brand):(null==o?void 0:o.operator)?o.operator:"".concat(d.mcc).concat(d.mnc)]}),(0,t.jsx)(r.ZB,{className:"text-base",children:u?"Band ".concat(d.band," (").concat((null===(s=d.frequencyInfo)||void 0===s?void 0:s.bandName)||"Unknown",")"):"n".concat(d.band," (").concat((null===(a=d.frequencyInfo)||void 0===a?void 0:a.bandName)||"Unknown",")")})]})}),(0,t.jsxs)(r.BT,{className:"mt-1 flex items-center space-x-2",children:[(0,t.jsxs)("span",{children:["Cell ID: ",d.cellId]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsxs)("span",{children:["PCI: ",d.pci]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:u?"EARFCN: ".concat(d.freq):"NR-ARFCN: ".concat(d.freq)})]})]}),(0,t.jsxs)(r.Wu,{className:"pt-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-2",children:[(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Frequency Information"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Downlink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(n=d.frequencyInfo)||void 0===n?void 0:n.dlFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(l=d.frequencyInfo)||void 0===l?void 0:l.ulFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Duplex Mode:"}),(0,t.jsx)("div",{className:"font-medium",children:(null===(c=d.frequencyInfo)||void 0===c?void 0:c.duplexType)||"Unknown"}),u&&(null===(i=d.frequencyInfo)||void 0===i?void 0:i.ulEarfcn)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink EARFCN:"}),(0,t.jsx)("div",{className:"font-medium",children:d.frequencyInfo.ulEarfcn})]})]})]})}),(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Signal Parameters"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRP:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrp||"-"," dBm"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRQ:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrq||"-"," dB"]}),u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"SQUAL:"}),(0,t.jsx)("div",{className:"font-medium",children:d.squal}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Bandwidth:"}),(0,t.jsx)("div",{className:"font-medium",children:d.bandwidthMHz||"".concat(d.bandwidth," RB")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Subcarrier Spacing:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.scs||"-"," kHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Carrier Bandwidth:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.carrierBandwidth||"-"," RB"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SSB SCS:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.ssbScs||"-"," kHz"]})]})]})]})})]}),(0,t.jsx)(C,{type:"single",collapsible:!0,className:"mt-4",children:(0,t.jsxs)(I,{value:"advanced",children:[(0,t.jsx)(S,{className:"text-sm py-2",children:"Advanced Details"}),(0,t.jsx)(D,{children:o&&(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Operator:"}),(0,t.jsx)("div",{className:"font-medium",children:o.operator}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Brand:"}),(0,t.jsx)("div",{className:"font-medium",children:o.brand}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Country:"}),(0,t.jsx)("div",{className:"font-medium",children:o.countryName}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"MCC-MNC:"}),(0,t.jsxs)("div",{className:"font-medium",children:[o.mcc,"-",o.mnc]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SRXLEV:"}),(0,t.jsx)("div",{className:"font-medium",children:d.srxlev})]})})})]})})]})]})},L=e=>{let{scanResult:s,isLoading:a=!1,mccMncList:l=[]}=e,[c,i]=(0,n.useState)("all"),d=(0,n.useCallback)((e,s)=>l.find(a=>a.mcc===e&&a.mnc===s)||null,[l]),o=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"}],u=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:5,name:"CLR",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,nrarfcnOffset:173800,nrarfcnRange:[173800,178800],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:25,name:"Extended PCS",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,nrarfcnOffset:386e3,nrarfcnRange:[386e3,399e3],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,nrarfcnOffset:422e3,nrarfcnRange:[422e3,44e4],duplexType:"FDD"},{band:70,name:"AWS-4",dlLow:1995,dlHigh:2020,ulLow:1695,ulHigh:1710,nrarfcnOffset:399001,nrarfcnRange:[399001,404e3],duplexType:"FDD"},{band:71,name:"600MHz",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,nrarfcnOffset:123400,nrarfcnRange:[123400,130400],duplexType:"FDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"}],f=(0,n.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,n,r,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(n),pci:parseInt(r),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:"",band:0};if("LTE"===s){let[e,s,a,t,n]=d;return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:parseInt(t),band:parseInt(n)}}if("NR5G"===s){let[e,s,a,t,n,r,l,c]=d;return{...o,type:"NR5G",cellId:s,tac:a,scs:parseInt(e),carrierBandwidth:parseInt(t),band:parseInt(n),offsetToPointA:parseInt(r),ssbSubcarrierOffset:parseInt(l),ssbScs:"-"===c?0:parseInt(c,10)}}return null}).filter(e=>null!==e):[],[]),x=(0,n.useCallback)(e=>{let s,a;let t=e.freq,n=o.find(s=>t>=s.earfcnRange[0]&&t<=s.earfcnRange[1]&&s.band===e.band);if(!n){let s,a;let n=o.find(s=>s.band===e.band);if(!n)return null;let r=n.dlLow+(t-n.earfcnOffset)%1e3*n.spacing;if("FDD"===n.duplexType){s=t+18e3;let e=n.ulHigh-n.ulLow;a=(n.ulLow+e/2).toFixed(2)}else a=r.toFixed(2);return{band:n.band,bandName:n.name,earfcn:t,dlFrequency:r.toFixed(2),ulFrequency:a,ulEarfcn:s,duplexType:n.duplexType,bandwidth:e.bandwidthMHz}}let r=n.dlLow+(t-n.earfcnOffset)*n.spacing;if("FDD"===n.duplexType){let e=t-n.earfcnOffset;s=t+18e3,a=n.ulLow+e*n.spacing}else a=r;return{band:n.band,bandName:n.name,earfcn:t,dlFrequency:r.toFixed(2),ulFrequency:a.toFixed(2),ulEarfcn:s,duplexType:n.duplexType,bandwidth:e.bandwidthMHz}},[o]),p=(0,n.useCallback)(e=>{let s;let a=e.freq;if(a>=0&&a<=599999)s=0+(a-0)*.005;else if(a>=6e5&&a<=2016666)s=3e3+(a-6e5)*.015;else{if(!(a>=2016667)||!(a<=3279165))return null;s=24250.08+(a-2016667)*.06}let t=u.find(s=>a>=s.nrarfcnRange[0]&&a<=s.nrarfcnRange[1]&&s.band===e.band);if(!t){let t=u.find(s=>s.band===e.band);return t?{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:"FDD"===t.duplexType?((t.ulLow+t.ulHigh)/2).toFixed(2):s.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}:null}let n="FDD"===t.duplexType?t.ulLow+(s-t.dlLow):s;return{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:n.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}},[u]),h=(0,n.useMemo)(()=>{if(!(null==s?void 0:s.output))return{lte:[],nr5g:[]};let e=f(s.output),a=[],t=[];e.forEach(e=>{var s,n;let r=d(e.mcc,e.mnc);if("LTE"===e.type){let t=null!==(s=x(e))&&void 0!==s?s:void 0;a.push({...e,frequencyInfo:t,operatorInfo:r})}else if("NR5G"===e.type){let s=null!==(n=p(e))&&void 0!==n?n:void 0;t.push({...e,frequencyInfo:s,operatorInfo:r})}});let n=(e,s)=>{var a,t;let n=(null===(a=e.operatorInfo)||void 0===a?void 0:a.operator)||"",r=(null===(t=s.operatorInfo)||void 0===t?void 0:t.operator)||"";return n.localeCompare(r)};return{lte:a.sort(n),nr5g:t.sort(n)}},[s,f,x,p,d]);if(a)return(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(r.BT,{children:"Analyzing frequency details for detected cells..."})]}),(0,t.jsx)(r.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)(m.A,{className:"w-8 h-8 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Processing frequency information..."})]})})]});if(!s||!s.output)return(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(r.BT,{children:"Detailed frequency information for detected cells"})]}),(0,t.jsx)(r.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"Run a cell scan to view detailed frequency information"})})]});let g=h.lte.length+h.nr5g.length;return(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(r.BT,{children:s.timestamp&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Analysis based on full cell scan from: ",s.timestamp]})})]}),(0,t.jsx)(r.Wu,{children:(0,t.jsxs)(T.tU,{defaultValue:"all",value:c,onValueChange:e=>i(e),className:"mb-6",children:[(0,t.jsxs)(T.j7,{className:"grid w-full grid-cols-3",children:[(0,t.jsxs)(T.Xi,{value:"all",children:["All Cells (",g,")"]}),(0,t.jsxs)(T.Xi,{value:"lte",children:["LTE (",h.lte.length,")"]}),(0,t.jsxs)(T.Xi,{value:"nr5g",children:["5G NR (",h.nr5g.length,")"]})]}),(0,t.jsx)(T.av,{value:"all",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===g?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No cells detected in the scan"}):(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[h.lte.map((e,s)=>(0,t.jsx)(F,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s))),h.nr5g.map((e,s)=>(0,t.jsx)(F,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))]})})}),(0,t.jsx)(T.av,{value:"lte",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.lte.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No LTE cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.lte.map((e,s)=>(0,t.jsx)(F,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s)))})})}),(0,t.jsx)(T.av,{value:"nr5g",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.nr5g.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No 5G NR cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.nr5g.map((e,s)=>(0,t.jsx)(F,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))})})})]})}),(0,t.jsx)(r.wL,{className:"border-t p-4 flex justify-between",children:(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Frequency calculation based on 3GPP TS 38.104 and TS 36.101 specifications"})})]})},k=()=>{let{toast:e}=(0,b.dj)(),[s,a]=(0,n.useState)(null),[d,o]=(0,n.useState)(null),[T,R]=(0,n.useState)(0),[C,I]=(0,n.useState)(!1),[S,D]=(0,n.useState)(null),[F,k]=(0,n.useState)([]),[A,H]=(0,n.useState)(null),[q,E]=(0,n.useState)({status:"idle",progress:0,message:""}),[_,B]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(!d){R(0);return}let e=()=>{let s=new Date(d).getTime(),a=Math.max(0,6e4-(new Date().getTime()-s));R(a),a>0&&requestAnimationFrame(e)};e()},[d]);let O=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/fetch_mccmnc.sh"),s=await e.json();k(s)}catch(s){console.error("Failed to fetch MCC-MNC list:",s),e({title:"Warning",description:"Failed to load operator information",variant:"destructive"})}},[]);(0,n.useEffect)(()=>{O()},[O]);let M=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh"),s=await e.json();D(s)}catch(s){console.error("Failed to fetch Quecwatch status:",s),e({title:"Error",description:"Failed to check Quecwatch status",variant:"destructive"})}},[]),P=(0,n.useCallback)((e,s)=>F.find(a=>a.mcc===e&&a.mnc===s)||null,[F]),z=(0,n.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,n,r,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(n),pci:parseInt(r),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:""};if("LTE"===s){let[e,s,a,t,n]=d,r=parseInt(t),l=w[r.toString()]||"".concat(r," RB");return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:r,bandwidthMHz:l,band:parseInt(n)}}if("NR5G"===s){let[e,s,a,t,n,r,l,c]=d;return{...o,type:"NR5G",cellId:s,tac:a,scs:parseInt(e),carrierBandwidth:parseInt(t),band:parseInt(n),offsetToPointA:parseInt(r),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),G=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)return;let s=await e.json();"success"===s.status&&s.output?(a(s),o(s.timestamp||null)):"running"===s.status&&(E({status:"scanning",progress:50,message:"Scan in progress...",startTime:Date.now()-6e4}),Z(),setTimeout(U,2e3))}catch(e){console.error("Failed to check initial scan results",e)}},[]),U=(0,n.useCallback)(async()=>{if(_>60){console.log("Reached maximum polling attempts, waiting for results to appear");return}try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("success"===s.status&&s.output){a(s),o(s.timestamp||null),E({status:"idle",progress:100,message:""}),B(0);return}if("running"===s.status){B(e=>e+1),setTimeout(U,2e3);return}_<30&&(B(e=>e+1),setTimeout(U,2e3))}catch(e){console.error("Failed to check scan status",e),_<60&&(B(e=>e+1),setTimeout(U,3e3))}},[_]),Z=(0,n.useCallback)(()=>{let e;e=setInterval(()=>{E(s=>{if("scanning"!==s.status)return clearInterval(e),s;let a=10+88*Math.min((Date.now()-(s.startTime||Date.now()))/12e4,1),t="Scanning available networks... This may take a minute";return a>85?t="Finalizing scan results...":a>50&&(t="Collecting operator data..."),{...s,progress:Math.min(a,98),message:t}})},1e3),setTimeout(()=>{clearInterval(e),E(e=>"scanning"===e.status?{...e,progress:98,message:"Waiting for results..."}:e)},15e4)},[]),W=(0,n.useCallback)(async()=>{if("scanning"!==q.status&&!C){I(!0),a(null),o(null),B(0),E({status:"scanning",progress:0,message:"Initiating scan...",startTime:Date.now()});try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/cell_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("running"===s.status||"success"===s.status)E(e=>({...e,progress:10,message:"Scan in progress..."})),Z(),setTimeout(U,2e3);else throw Error(s.message||"Failed to start scan")}catch(s){console.error("Scan error:",s),e({title:"Error",description:s instanceof Error?s.message:"Failed to start cell scan",variant:"destructive"}),E({status:"idle",progress:0,message:""})}finally{I(!1)}}},[q.status,C,U,Z]),$=(0,n.useCallback)(e=>e.reduce((e,s)=>{let a="".concat(s.mcc).concat(s.mnc);if(!e[a]){let t=P(s.mcc,s.mnc);e[a]={cells:[],operatorInfo:t}}return e[a].cells.push(s),e},{}),[P]),Q=(0,n.useCallback)(e=>[...e].sort((e,s)=>e.type!==s.type?"LTE"===e.type?-1:1:s.rsrp-e.rsrp),[]),X=(0,n.useCallback)(e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),[]);(0,n.useEffect)(()=>{G(),M()},[G,M]);let V=(0,n.useCallback)(async()=>{a(null),o(null),E({status:"idle",progress:0,message:""});let s=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/clear_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!s.ok)return;let t=await s.json();"success"!==t.status&&"idle"!==t.status&&e({title:"Error",description:"Failed to remove scan results. Please try again.",variant:"destructive"})},[]),J=(0,n.useCallback)(()=>{if(!(null==s?void 0:s.output))return;let e=new Blob([["Type,MCC,MNC,Frequency,PCI,RSRP,RSRQ,Band,Cell ID,TAC",...z(s.output).map(e=>"".concat(e.type,",").concat(e.mcc,",").concat(e.mnc,",").concat(e.freq,",").concat(e.pci,",").concat(e.rsrp,",").concat(e.rsrq,",").concat(e.band,",").concat(e.cellId,",").concat(e.tac))].join("\n")],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(e),a.setAttribute("download","cell_scan_".concat(new Date().toISOString(),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},[s,z]),K=(0,n.useCallback)((e,s,a)=>a?"".concat(e).concat(s," - ").concat(a.brand," by ").concat(a.operator):"".concat(e).concat(s),[]),Y=(null==s?void 0:s.status)==="success"&&s.output?$(z(s.output)):{},ee=(0,n.useCallback)(async()=>{if(!C){I(!0),H(null);try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/network_info.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();if(console.log("Neighbor cell data:",t),"success"===t.status&&t.mode){var s,a;(null===(s=t.data)||void 0===s?void 0:s.neighborCells)||(null===(a=t.data)||void 0===a?void 0:a.meas)?H(t):t.raw_data&&H({status:t.status,timestamp:t.timestamp,mode:t.mode,data:{neighborCells:t.raw_data.neighborCells,meas:t.raw_data.meas}})}else H(t)}catch(s){console.error("Failed to fetch neighbor cells",s),e({title:"Error",description:"Failed to scan neighbor cells. Please try again.",variant:"destructive"})}finally{I(!1)}}},[C]),es=(0,n.useCallback)(()=>{H(null)},[]);return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Full Network Cell Scan"}),(0,t.jsxs)(r.BT,{children:["Scan all available network cells, including those from other network providers. Current network mode will affect the results and you may be disconnected during the scan.",d&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",d]})]})]}),(0,t.jsx)(r.Wu,{children:(0,t.jsxs)(v.F,{className:"h-96",children:[!s&&"idle"===q.status&&(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"Click the button below to start scanning the network..."})}),"scanning"===q.status&&(0,t.jsxs)("div",{className:"flex flex-col space-y-2 items-center justify-center h-full w-full",children:[(0,t.jsx)(u,{value:q.progress,className:"w-full"}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 text-center",children:q.message})})]}),(0,t.jsx)("div",{className:"grid gap-4",children:Object.entries(Y).map(e=>{let[s,{cells:a,operatorInfo:n}]=e;return(0,t.jsxs)(r.Zp,{className:"p-4 grid gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(g.E,{children:K(a[0].mcc,a[0].mnc,n)})}),(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"E/ARFCN"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Band"}),(0,t.jsx)(l.nd,{children:"Bandwidth"}),(0,t.jsx)(l.nd,{children:"Cell ID"}),(0,t.jsx)(l.nd,{children:"TAC"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:Q(a).map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{children:e.type}),(0,t.jsx)(l.nA,{children:e.freq}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:e.band}),(0,t.jsx)(l.nA,{children:"LTE"===e.type?e.bandwidthMHz:e.carrierBandwidth+"MHz"}),(0,t.jsx)(l.nA,{children:parseInt(e.cellId,16)||"-"}),(0,t.jsx)(l.nA,{children:parseInt(e.tac,16)||"-"}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:X(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.cellId,"-").concat(s)))})]})]},s)})})]})}),(0,t.jsx)(r.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(null==S?void 0:S.status)==="active"?(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{disabled:!0,children:"scanning"===q.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:"Please disable Quecwatch first before proceeding."})]})}):(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{onClick:W,disabled:"scanning"===q.status||C||T>0,children:"scanning"===q.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:T>0?(0,t.jsxs)("span",{children:["Please wait ",Math.ceil(T/1e3)," ","seconds before scanning again"]}):(0,t.jsx)("span",{children:"Start a new network scan"})})]})}),(null==s?void 0:s.status)==="success"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.$,{variant:"secondary",onClick:J,disabled:"scanning"===q.status,children:[(0,t.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Export to CSV"]}),(0,t.jsxs)(i.$,{variant:"destructive",onClick:V,disabled:"scanning"===q.status,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})]})})]}),(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Neighbor Cell Scan"}),(0,t.jsxs)(r.BT,{children:["Scan neighbor cells of the current network provider. This provides detailed information about cells in your immediate vicinity that your device can connect to.",(null==A?void 0:A.timestamp)&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",A.timestamp]})]})]}),(0,t.jsx)(r.Wu,{children:(0,t.jsx)(N,{neighborCells:A})}),(0,t.jsx)(r.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)(i.$,{onClick:ee,disabled:C,children:C?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning..."})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(y.$p$,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Neighbor Scan"})]})}),(null==A?void 0:A.status)==="success"&&(0,t.jsxs)(i.$,{variant:"destructive",onClick:es,disabled:C,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})})]}),(0,t.jsx)(L,{scanResult:s,isLoading:"scanning"===q.status,mccMncList:F})]})}},39286:(e,s,a)=>{"use strict";a.d(s,{E:()=>c});var t=a(95155);a(12115);var n=a(31027),r=a(29602);let l=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function c(e){let{className:s,variant:a,...n}=e;return(0,t.jsx)("div",{className:(0,r.cn)(l({variant:a}),s),...n})}},14085:(e,s,a)=>{"use strict";a.d(s,{$:()=>d,r:()=>i});var t=a(95155),n=a(12115),r=a(12317),l=a(31027),c=a(29602);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:a,variant:n,size:l,asChild:d=!1,...o}=e,u=d?r.DX:"button";return(0,t.jsx)(u,{className:(0,c.cn)(i({variant:n,size:l,className:a})),ref:s,...o})});d.displayName="Button"},35007:(e,s,a)=>{"use strict";a.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>i,Zp:()=>l,aR:()=>c,wL:()=>u});var t=a(95155),n=a(12115),r=a(29602);let l=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...n})});l.displayName="Card";let c=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",a),...n})});c.displayName="CardHeader";let i=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",a),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",a),...n})});d.displayName="CardDescription";let o=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",a),...n})});o.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",a),...n})});u.displayName="CardFooter"},3392:(e,s,a)=>{"use strict";a.d(s,{$:()=>i,F:()=>c});var t=a(95155),n=a(12115),r=a(21868),l=a(29602);let c=n.forwardRef((e,s)=>{let{className:a,children:n,...c}=e;return(0,t.jsxs)(r.bL,{ref:s,className:(0,l.cn)("relative overflow-hidden",a),...c,children:[(0,t.jsx)(r.LM,{className:"h-full w-full rounded-[inherit]",children:n}),(0,t.jsx)(i,{}),(0,t.jsx)(r.OK,{})]})});c.displayName=r.bL.displayName;let i=n.forwardRef((e,s)=>{let{className:a,orientation:n="vertical",...c}=e;return(0,t.jsx)(r.VM,{ref:s,orientation:n,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...c,children:(0,t.jsx)(r.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=r.VM.displayName},22079:(e,s,a)=>{"use strict";a.d(s,{A0:()=>c,BF:()=>i,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>o,r6:()=>m});var t=a(95155),n=a(12115),r=a(29602);let l=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,r.cn)("w-full caption-bottom text-sm",a),...n})})});l.displayName="Table";let c=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("thead",{ref:s,className:(0,r.cn)("[&_tr]:border-b",a),...n})});c.displayName="TableHeader";let i=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,r.cn)("[&_tr:last-child]:border-0",a),...n})});i.displayName="TableBody",n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,r.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...n})}).displayName="TableFooter";let d=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("tr",{ref:s,className:(0,r.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...n})});d.displayName="TableRow";let o=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("th",{ref:s,className:(0,r.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...n})});o.displayName="TableHead";let u=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("td",{ref:s,className:(0,r.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...n})});u.displayName="TableCell";let m=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("caption",{ref:s,className:(0,r.cn)("mt-4 text-sm text-muted-foreground",a),...n})});m.displayName="TableCaption"},31641:(e,s,a)=>{"use strict";a.d(s,{Xi:()=>d,av:()=>o,j7:()=>i,tU:()=>c});var t=a(95155),n=a(12115),r=a(58629),l=a(29602);let c=r.bL,i=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(r.B8,{ref:s,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...n})});i.displayName=r.B8.displayName;let d=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(r.l9,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...n})});d.displayName=r.l9.displayName;let o=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(r.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...n})});o.displayName=r.UC.displayName},9246:(e,s,a)=>{"use strict";a.d(s,{TooltipProvider:()=>c,ZI:()=>o,k$:()=>d,m_:()=>i});var t=a(95155),n=a(12115),r=a(19710),l=a(29602);let c=r.Kq,i=r.bL,d=r.l9,o=n.forwardRef((e,s)=>{let{className:a,sideOffset:n=4,...c}=e;return(0,t.jsx)(r.UC,{ref:s,sideOffset:n,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...c})});o.displayName=r.UC.displayName},20241:(e,s,a)=>{"use strict";a.d(s,{dj:()=>m,oR:()=>u});var t=a(12115);let n=0,r=new Map,l=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},c=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=s;return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},i=[],d={toasts:[]};function o(e){d=c(d,e),i.forEach(e=>{e(d)})}function u(e){let{...s}=e,a=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>o({type:"DISMISS_TOAST",toastId:a});return o({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,s]=t.useState(d);return t.useEffect(()=>(i.push(s),()=>{let e=i.indexOf(s);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,s,a)=>{"use strict";a.d(s,{cn:()=>r});var t=a(43463),n=a(69795);function r(){for(var e=arguments.length,s=Array(e),a=0;a{var s=s=>e(e.s=s);e.O(0,[5105,3873,1365,7401,9895,9710,3188,3740,3944,8441,1517,7358],()=>s(8990)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-b41913a6d3cf3d54.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-b41913a6d3cf3d54.js new file mode 100644 index 0000000..e37b083 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-b41913a6d3cf3d54.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5014],{41126:(e,s,a)=>{Promise.resolve().then(a.bind(a,88388))},88388:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>L});var t=a(20475),r=a(20107),n=a(72167),l=a(51303),c=a(85014),i=a(42541),d=a(33466),o=a(22250);let u=r.forwardRef((e,s)=>{let{className:a,value:r,...n}=e;return(0,t.jsx)(d.bL,{ref:s,className:(0,o.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...n,children:(0,t.jsx)(d.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});u.displayName=d.bL.displayName;var m=a(59166),x=a(27720),f=a(91994),p=a(76076),h=a(51873),g=a(45934),j=a(38741),v=a(36824),b=a(32857);let N=e=>{let{neighborCells:s}=e;(0,r.useEffect)(()=>{s&&console.log("Neighbor cells data:",s)},[s]);let a=e=>e?Array.from(e.matchAll(/\+QENG: "neighbourcell (intra|inter)","LTE",(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"LTE",cellType:e[1],frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrq:parseInt(e[4]),rsrp:parseInt(e[5])})):[],n=e=>e?Array.from(e.matchAll(/\+QNWCFG: "nr5g_meas_info",(\d+),(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"NR5G-NSA",cellType:"nr5g",frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrp:parseInt(e[4]),rsrq:parseInt(e[5])})):[],i=e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),d=[];if((null==s?void 0:s.status)==="success"){var o,u,m,x;(null===(o=s.data)||void 0===o?void 0:o.neighborCells)?d=[...d,...a(s.data.neighborCells)]:(null===(u=s.raw_data)||void 0===u?void 0:u.neighborCells)&&(d=[...d,...a(s.raw_data.neighborCells)]),(null===(m=s.data)||void 0===m?void 0:m.meas)?d=[...d,...n(s.data.meas)]:(null===(x=s.raw_data)||void 0===x?void 0:x.meas)&&(d=[...d,...n(s.raw_data.meas)])}return(d.sort((e,s)=>e.type.startsWith("NR5G")&&!s.type.startsWith("NR5G")?-1:!e.type.startsWith("NR5G")&&s.type.startsWith("NR5G")?1:s.rsrp-e.rsrp),s&&0!==d.length)?(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"Cell Type"}),(0,t.jsx)(l.nd,{children:"Frequency"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:d.map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{className:"font-medium",children:e.type}),(0,t.jsx)(l.nA,{children:e.cellType}),(0,t.jsx)(l.nA,{children:e.frequency}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:i(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.type,"-").concat(e.frequency,"-").concat(e.pci,"-").concat(s)))})]})}):(0,t.jsx)("div",{className:"text-center py-4 text-gray-500",children:"No neighbor cells data available"})};var y=a(7197);let w={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz","-":"-"};var T=a(37921),C=a(28702);let R=C.bL,I=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(C.q7,{ref:s,className:(0,o.cn)("border-b",a),...r})});I.displayName="AccordionItem";let S=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(C.Y9,{className:"flex",children:(0,t.jsxs)(C.l9,{ref:s,className:(0,o.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...n,children:[r,(0,t.jsx)(y.D3D,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});S.displayName=C.l9.displayName;let F=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(C.UC,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,t.jsx)("div",{className:(0,o.cn)("pb-4 pt-0",a),children:r})})});F.displayName=C.UC.displayName;let k=e=>{var s,a,r,l,c,i;let{cell:d,operatorInfo:o}=e,u="LTE"===d.type;return(0,t.jsxs)(n.Zp,{className:"overflow-hidden border shadow-sm",children:[(0,t.jsxs)(n.aR,{className:"bg-muted/30 pb-2",children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)(g.E,{variant:u?"outline":"default",className:u?"bg-orange-600":"",children:[u?"LTE":"5G NR"," - ",(null==o?void 0:o.brand)&&o.operator?"".concat(o.brand):(null==o?void 0:o.operator)?o.operator:"".concat(d.mcc).concat(d.mnc)]}),(0,t.jsx)(n.ZB,{className:"text-base",children:u?"Band ".concat(d.band," (").concat((null===(s=d.frequencyInfo)||void 0===s?void 0:s.bandName)||"Unknown",")"):"n".concat(d.band," (").concat((null===(a=d.frequencyInfo)||void 0===a?void 0:a.bandName)||"Unknown",")")})]})}),(0,t.jsxs)(n.BT,{className:"mt-1 flex items-center space-x-2",children:[(0,t.jsxs)("span",{children:["Cell ID: ",d.cellId]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsxs)("span",{children:["PCI: ",d.pci]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:u?"EARFCN: ".concat(d.freq):"NR-ARFCN: ".concat(d.freq)})]})]}),(0,t.jsxs)(n.Wu,{className:"pt-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-2",children:[(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Frequency Information"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Downlink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(r=d.frequencyInfo)||void 0===r?void 0:r.dlFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(l=d.frequencyInfo)||void 0===l?void 0:l.ulFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Duplex Mode:"}),(0,t.jsx)("div",{className:"font-medium",children:(null===(c=d.frequencyInfo)||void 0===c?void 0:c.duplexType)||"Unknown"}),u&&(null===(i=d.frequencyInfo)||void 0===i?void 0:i.ulEarfcn)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink EARFCN:"}),(0,t.jsx)("div",{className:"font-medium",children:d.frequencyInfo.ulEarfcn})]})]})]})}),(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Signal Parameters"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRP:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrp," dBm"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRQ:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrq," dB"]}),u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"SQUAL:"}),(0,t.jsx)("div",{className:"font-medium",children:d.squal}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Bandwidth:"}),(0,t.jsx)("div",{className:"font-medium",children:d.bandwidthMHz||"".concat(d.bandwidth," RB")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Subcarrier Spacing:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.scs," kHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Carrier Bandwidth:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.carrierBandwidth," RB"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SSB SCS:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.ssbScs," kHz"]})]})]})]})})]}),(0,t.jsx)(R,{type:"single",collapsible:!0,className:"mt-4",children:(0,t.jsxs)(I,{value:"advanced",children:[(0,t.jsx)(S,{className:"text-sm py-2",children:"Advanced Details"}),(0,t.jsx)(F,{children:o&&(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Operator:"}),(0,t.jsx)("div",{className:"font-medium",children:o.operator}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Brand:"}),(0,t.jsx)("div",{className:"font-medium",children:o.brand}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Country:"}),(0,t.jsx)("div",{className:"font-medium",children:o.countryName}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"MCC-MNC:"}),(0,t.jsxs)("div",{className:"font-medium",children:[o.mcc,"-",o.mnc]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SRXLEV:"}),(0,t.jsx)("div",{className:"font-medium",children:d.srxlev})]})})})]})})]})]})},D=e=>{let{scanResult:s,isLoading:a=!1,mccMncList:l=[]}=e,[c,i]=(0,r.useState)("all"),d=(0,r.useCallback)((e,s)=>l.find(a=>a.mcc===e&&a.mnc===s)||null,[l]),o=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"}],u=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"}],x=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:"",band:0};if("LTE"===s){let[e,s,a,t,r]=d;return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:parseInt(t),band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),f=(0,r.useCallback)(e=>{let s,a;let t=e.freq,r=o.find(s=>t>=s.earfcnRange[0]&&t<=s.earfcnRange[1]&&s.band===e.band);if(!r){let s,a;let r=o.find(s=>s.band===e.band);if(!r)return null;let n=r.dlLow+(t-r.earfcnOffset)%1e3*r.spacing;if("FDD"===r.duplexType){s=t+18e3;let e=r.ulHigh-r.ulLow;a=(r.ulLow+e/2).toFixed(2)}else a=n.toFixed(2);return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a,ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}}let n=r.dlLow+(t-r.earfcnOffset)*r.spacing;if("FDD"===r.duplexType){let e=t-r.earfcnOffset;s=t+18e3,a=r.ulLow+e*r.spacing}else a=n;return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a.toFixed(2),ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}},[o]),p=(0,r.useCallback)(e=>{let s;let a=e.freq;if(a>=0&&a<=599999)s=0+(a-0)*.005;else if(a>=6e5&&a<=2016666)s=3e3+(a-6e5)*.015;else{if(!(a>=2016667)||!(a<=3279165))return null;s=24250.08+(a-2016667)*.06}let t=u.find(s=>a>=s.nrarfcnRange[0]&&a<=s.nrarfcnRange[1]&&s.band===e.band);if(!t){let t=u.find(s=>s.band===e.band);return t?{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:"FDD"===t.duplexType?((t.ulLow+t.ulHigh)/2).toFixed(2):s.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}:null}let r="FDD"===t.duplexType?t.ulLow+(s-t.dlLow):s;return{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:r.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}},[u]),h=(0,r.useMemo)(()=>{if(!(null==s?void 0:s.output))return{lte:[],nr5g:[]};let e=x(s.output),a=[],t=[];e.forEach(e=>{var s,r;let n=d(e.mcc,e.mnc);if("LTE"===e.type){let t=null!==(s=f(e))&&void 0!==s?s:void 0;a.push({...e,frequencyInfo:t,operatorInfo:n})}else if("NR5G"===e.type){let s=null!==(r=p(e))&&void 0!==r?r:void 0;t.push({...e,frequencyInfo:s,operatorInfo:n})}});let r=(e,s)=>{var a,t;let r=(null===(a=e.operatorInfo)||void 0===a?void 0:a.operator)||"",n=(null===(t=s.operatorInfo)||void 0===t?void 0:t.operator)||"";return r.localeCompare(n)};return{lte:a.sort(r),nr5g:t.sort(r)}},[s,x,f,p,d]);if(a)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Analyzing frequency details for detected cells..."})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)(m.A,{className:"w-8 h-8 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Processing frequency information..."})]})})]});if(!s||!s.output)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Detailed frequency information for detected cells"})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"Run a cell scan to view detailed frequency information"})})]});let g=h.lte.length+h.nr5g.length;return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:s.timestamp&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Analysis based on full cell scan from: ",s.timestamp]})})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(T.tU,{defaultValue:"all",value:c,onValueChange:e=>i(e),className:"mb-6",children:[(0,t.jsxs)(T.j7,{className:"grid w-full grid-cols-3",children:[(0,t.jsxs)(T.Xi,{value:"all",children:["All Cells (",g,")"]}),(0,t.jsxs)(T.Xi,{value:"lte",children:["LTE (",h.lte.length,")"]}),(0,t.jsxs)(T.Xi,{value:"nr5g",children:["5G NR (",h.nr5g.length,")"]})]}),(0,t.jsx)(T.av,{value:"all",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===g?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No cells detected in the scan"}):(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s))),h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))]})})}),(0,t.jsx)(T.av,{value:"lte",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.lte.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No LTE cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s)))})})}),(0,t.jsx)(T.av,{value:"nr5g",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.nr5g.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No 5G NR cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))})})})]})}),(0,t.jsx)(n.wL,{className:"border-t p-4 flex justify-between",children:(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Frequency calculation based on 3GPP TS 38.104 and TS 36.101 specifications"})})]})},L=()=>{let{toast:e}=(0,b.dj)(),[s,a]=(0,r.useState)(null),[d,o]=(0,r.useState)(null),[T,C]=(0,r.useState)(0),[R,I]=(0,r.useState)(!1),[S,F]=(0,r.useState)(null),[k,L]=(0,r.useState)([]),[A,q]=(0,r.useState)(null),[H,E]=(0,r.useState)({status:"idle",progress:0,message:""}),[B,_]=(0,r.useState)(0);(0,r.useEffect)(()=>{if(!d){C(0);return}let e=()=>{let s=new Date(d).getTime(),a=Math.max(0,6e4-(new Date().getTime()-s));C(a),a>0&&requestAnimationFrame(e)};e()},[d]);let O=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/fetch_mccmnc.sh"),s=await e.json();L(s)}catch(s){console.error("Failed to fetch MCC-MNC list:",s),e({title:"Warning",description:"Failed to load operator information",variant:"destructive"})}},[]);(0,r.useEffect)(()=>{O()},[O]);let M=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh"),s=await e.json();F(s)}catch(s){console.error("Failed to fetch Quecwatch status:",s),e({title:"Error",description:"Failed to check Quecwatch status",variant:"destructive"})}},[]),P=(0,r.useCallback)((e,s)=>k.find(a=>a.mcc===e&&a.mnc===s)||null,[k]),z=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:""};if("LTE"===s){let[e,s,a,t,r]=d,n=parseInt(t),l=w[n.toString()]||"".concat(n," RB");return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:n,bandwidthMHz:l,band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),G=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)return;let s=await e.json();"success"===s.status&&s.output?(a(s),o(s.timestamp||null)):"running"===s.status&&(E({status:"scanning",progress:50,message:"Scan in progress...",startTime:Date.now()-6e4}),Z(),setTimeout(U,2e3))}catch(e){console.error("Failed to check initial scan results",e)}},[]),U=(0,r.useCallback)(async()=>{if(B>60){console.log("Reached maximum polling attempts, waiting for results to appear");return}try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("success"===s.status&&s.output){a(s),o(s.timestamp||null),E({status:"idle",progress:100,message:""}),_(0);return}if("running"===s.status){_(e=>e+1),setTimeout(U,2e3);return}B<30&&(_(e=>e+1),setTimeout(U,2e3))}catch(e){console.error("Failed to check scan status",e),B<60&&(_(e=>e+1),setTimeout(U,3e3))}},[B]),Z=(0,r.useCallback)(()=>{let e;e=setInterval(()=>{E(s=>{if("scanning"!==s.status)return clearInterval(e),s;let a=10+88*Math.min((Date.now()-(s.startTime||Date.now()))/12e4,1),t="Scanning available networks... This may take a minute";return a>85?t="Finalizing scan results...":a>50&&(t="Collecting operator data..."),{...s,progress:Math.min(a,98),message:t}})},1e3),setTimeout(()=>{clearInterval(e),E(e=>"scanning"===e.status?{...e,progress:98,message:"Waiting for results..."}:e)},15e4)},[]),W=(0,r.useCallback)(async()=>{if("scanning"!==H.status&&!R){I(!0),a(null),o(null),_(0),E({status:"scanning",progress:0,message:"Initiating scan...",startTime:Date.now()});try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/cell_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("running"===s.status||"success"===s.status)E(e=>({...e,progress:10,message:"Scan in progress..."})),Z(),setTimeout(U,2e3);else throw Error(s.message||"Failed to start scan")}catch(s){console.error("Scan error:",s),e({title:"Error",description:s instanceof Error?s.message:"Failed to start cell scan",variant:"destructive"}),E({status:"idle",progress:0,message:""})}finally{I(!1)}}},[H.status,R,U,Z]),$=(0,r.useCallback)(e=>e.reduce((e,s)=>{let a="".concat(s.mcc).concat(s.mnc);if(!e[a]){let t=P(s.mcc,s.mnc);e[a]={cells:[],operatorInfo:t}}return e[a].cells.push(s),e},{}),[P]),Q=(0,r.useCallback)(e=>[...e].sort((e,s)=>e.type!==s.type?"LTE"===e.type?-1:1:s.rsrp-e.rsrp),[]),X=(0,r.useCallback)(e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),[]);(0,r.useEffect)(()=>{G(),M()},[G,M]);let V=(0,r.useCallback)(()=>{a(null),o(null),E({status:"idle",progress:0,message:""})},[]),J=(0,r.useCallback)(()=>{if(!(null==s?void 0:s.output))return;let e=new Blob([["Type,MCC,MNC,Frequency,PCI,RSRP,RSRQ,Band,Cell ID,TAC",...z(s.output).map(e=>"".concat(e.type,",").concat(e.mcc,",").concat(e.mnc,",").concat(e.freq,",").concat(e.pci,",").concat(e.rsrp,",").concat(e.rsrq,",").concat(e.band,",").concat(e.cellId,",").concat(e.tac))].join("\n")],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(e),a.setAttribute("download","cell_scan_".concat(new Date().toISOString(),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},[s,z]),K=(0,r.useCallback)((e,s,a)=>a?"".concat(e).concat(s," - ").concat(a.brand," by ").concat(a.operator):"".concat(e).concat(s),[]),Y=(null==s?void 0:s.status)==="success"&&s.output?$(z(s.output)):{},ee=(0,r.useCallback)(async()=>{if(!R){I(!0),q(null);try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/network_info.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();if(console.log("Neighbor cell data:",t),"success"===t.status&&t.mode){var s,a;(null===(s=t.data)||void 0===s?void 0:s.neighborCells)||(null===(a=t.data)||void 0===a?void 0:a.meas)?q(t):t.raw_data&&q({status:t.status,timestamp:t.timestamp,mode:t.mode,data:{neighborCells:t.raw_data.neighborCells,meas:t.raw_data.meas}})}else q(t)}catch(s){console.error("Failed to fetch neighbor cells",s),e({title:"Error",description:"Failed to scan neighbor cells. Please try again.",variant:"destructive"})}finally{I(!1)}}},[R]),es=(0,r.useCallback)(()=>{q(null)},[]);return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Full Network Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan all available network cells, including those from other network providers. Current network mode will affect the results and you may be disconnected during the scan.",d&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",d]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(v.F,{className:"h-96",children:[!s&&"idle"===H.status&&(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"Click the button below to start scanning the network..."})}),"scanning"===H.status&&(0,t.jsxs)("div",{className:"flex flex-col space-y-2 items-center justify-center h-full w-full",children:[(0,t.jsx)(u,{value:H.progress,className:"w-full"}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 text-center",children:H.message})})]}),(0,t.jsx)("div",{className:"grid gap-4",children:Object.entries(Y).map(e=>{let[s,{cells:a,operatorInfo:r}]=e;return(0,t.jsxs)(n.Zp,{className:"p-4 grid gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(g.E,{children:K(a[0].mcc,a[0].mnc,r)})}),(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"E/ARFCN"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Band"}),(0,t.jsx)(l.nd,{children:"Bandwidth"}),(0,t.jsx)(l.nd,{children:"Cell ID"}),(0,t.jsx)(l.nd,{children:"TAC"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:Q(a).map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{children:e.type}),(0,t.jsx)(l.nA,{children:e.freq}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:e.band}),(0,t.jsx)(l.nA,{children:"LTE"===e.type?e.bandwidthMHz:"-"}),(0,t.jsx)(l.nA,{children:e.cellId}),(0,t.jsx)(l.nA,{children:e.tac}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:X(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.cellId,"-").concat(s)))})]})]},s)})})]})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(null==S?void 0:S.status)==="active"?(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{disabled:!0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:"Please disable Quecwatch first before proceeding."})]})}):(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{onClick:W,disabled:"scanning"===H.status||R||T>0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:T>0?(0,t.jsxs)("span",{children:["Please wait ",Math.ceil(T/1e3)," ","seconds before scanning again"]}):(0,t.jsx)("span",{children:"Start a new network scan"})})]})}),(null==s?void 0:s.status)==="success"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.$,{variant:"secondary",onClick:J,disabled:"scanning"===H.status,children:[(0,t.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Export to CSV"]}),(0,t.jsxs)(i.$,{variant:"destructive",onClick:V,disabled:"scanning"===H.status,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})]})})]}),(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Neighbor Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan neighbor cells of the current network provider. This provides detailed information about cells in your immediate vicinity that your device can connect to.",(null==A?void 0:A.timestamp)&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",A.timestamp]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsx)(N,{neighborCells:A})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)(i.$,{onClick:ee,disabled:R,children:R?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning..."})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(y.$p$,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Neighbor Scan"})]})}),(null==A?void 0:A.status)==="success"&&(0,t.jsxs)(i.$,{variant:"destructive",onClick:es,disabled:R,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})})]}),(0,t.jsx)(D,{scanResult:s,isLoading:"scanning"===H.status,mccMncList:k})]})}},45934:(e,s,a)=>{"use strict";a.d(s,{E:()=>c});var t=a(20475);a(20107);var r=a(29395),n=a(22250);let l=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function c(e){let{className:s,variant:a,...r}=e;return(0,t.jsx)("div",{className:(0,n.cn)(l({variant:a}),s),...r})}},42541:(e,s,a)=>{"use strict";a.d(s,{$:()=>d,r:()=>i});var t=a(20475),r=a(20107),n=a(61837),l=a(29395),c=a(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,s)=>{let{className:a,variant:r,size:l,asChild:d=!1,...o}=e,u=d?n.DX:"button";return(0,t.jsx)(u,{className:(0,c.cn)(i({variant:r,size:l,className:a})),ref:s,...o})});d.displayName="Button"},72167:(e,s,a)=>{"use strict";a.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>i,Zp:()=>l,aR:()=>c,wL:()=>u});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});l.displayName="Card";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...r})});c.displayName="CardHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",a),...r})});i.displayName="CardTitle";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",a),...r})});o.displayName="CardContent";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},36824:(e,s,a)=>{"use strict";a.d(s,{$:()=>i,F:()=>c});var t=a(20475),r=a(20107),n=a(89679),l=a(22250);let c=r.forwardRef((e,s)=>{let{className:a,children:r,...c}=e;return(0,t.jsxs)(n.bL,{ref:s,className:(0,l.cn)("relative overflow-hidden",a),...c,children:[(0,t.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(i,{}),(0,t.jsx)(n.OK,{})]})});c.displayName=n.bL.displayName;let i=r.forwardRef((e,s)=>{let{className:a,orientation:r="vertical",...c}=e;return(0,t.jsx)(n.VM,{ref:s,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...c,children:(0,t.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=n.VM.displayName},51303:(e,s,a)=>{"use strict";a.d(s,{A0:()=>c,BF:()=>i,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>o,r6:()=>m});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,n.cn)("w-full caption-bottom text-sm",a),...r})})});l.displayName="Table";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("thead",{ref:s,className:(0,n.cn)("[&_tr]:border-b",a),...r})});c.displayName="TableHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...r})});i.displayName="TableBody",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...r})}).displayName="TableFooter";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tr",{ref:s,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...r})});d.displayName="TableRow";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("th",{ref:s,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});o.displayName="TableHead";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("td",{ref:s,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});u.displayName="TableCell";let m=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("caption",{ref:s,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...r})});m.displayName="TableCaption"},37921:(e,s,a)=>{"use strict";a.d(s,{Xi:()=>d,av:()=>o,j7:()=>i,tU:()=>c});var t=a(20475),r=a(20107),n=a(93677),l=a(22250);let c=n.bL,i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.B8,{ref:s,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...r})});i.displayName=n.B8.displayName;let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.l9,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...r})});d.displayName=n.l9.displayName;let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});o.displayName=n.UC.displayName},85014:(e,s,a)=>{"use strict";a.d(s,{TooltipProvider:()=>c,ZI:()=>o,k$:()=>d,m_:()=>i});var t=a(20475),r=a(20107),n=a(43048),l=a(22250);let c=n.Kq,i=n.bL,d=n.l9,o=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...c}=e;return(0,t.jsx)(n.UC,{ref:s,sideOffset:r,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...c})});o.displayName=n.UC.displayName},32857:(e,s,a)=>{"use strict";a.d(s,{dj:()=>m,oR:()=>u});var t=a(20107);let r=0,n=new Map,l=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},c=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=s;return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},i=[],d={toasts:[]};function o(e){d=c(d,e),i.forEach(e=>{e(d)})}function u(e){let{...s}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>o({type:"DISMISS_TOAST",toastId:a});return o({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,s]=t.useState(d);return t.useEffect(()=>(i.push(s),()=>{let e=i.indexOf(s);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,a)=>{"use strict";a.d(s,{cn:()=>n});var t=a(64901),r=a(868);function n(){for(var e=arguments.length,s=Array(e),a=0;a{var s=s=>e(e.s=s);e.O(0,[9980,2101,7780,8885,3746,3048,9679,3453,9488,191,6035,7358],()=>s(41126)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-d1a137fe638995d6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-d1a137fe638995d6.js new file mode 100644 index 0000000..f8a8d73 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-d1a137fe638995d6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5014],{41126:(e,s,a)=>{Promise.resolve().then(a.bind(a,88388))},88388:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>L});var t=a(20475),r=a(20107),n=a(72167),l=a(51303),c=a(85014),i=a(42541),d=a(33466),o=a(22250);let u=r.forwardRef((e,s)=>{let{className:a,value:r,...n}=e;return(0,t.jsx)(d.bL,{ref:s,className:(0,o.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...n,children:(0,t.jsx)(d.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});u.displayName=d.bL.displayName;var m=a(59166),x=a(27720),f=a(91994),p=a(76076),h=a(51873),g=a(45934),j=a(38741),v=a(36824),b=a(32857);let N=e=>{let{neighborCells:s}=e;(0,r.useEffect)(()=>{s&&console.log("Neighbor cells data:",s)},[s]);let a=e=>e?Array.from(e.matchAll(/\+QENG: "neighbourcell (intra|inter)","LTE",(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"LTE",cellType:e[1],frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrq:parseInt(e[4]),rsrp:parseInt(e[5])})):[],n=e=>e?Array.from(e.matchAll(/\+QNWCFG: "nr5g_meas_info",(\d+),(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"NR5G-NSA",cellType:"nr5g",frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrp:parseInt(e[4]),rsrq:parseInt(e[5])})):[],i=e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),d=[];if((null==s?void 0:s.status)==="success"){var o,u,m,x;(null===(o=s.data)||void 0===o?void 0:o.neighborCells)?d=[...d,...a(s.data.neighborCells)]:(null===(u=s.raw_data)||void 0===u?void 0:u.neighborCells)&&(d=[...d,...a(s.raw_data.neighborCells)]),(null===(m=s.data)||void 0===m?void 0:m.meas)?d=[...d,...n(s.data.meas)]:(null===(x=s.raw_data)||void 0===x?void 0:x.meas)&&(d=[...d,...n(s.raw_data.meas)])}return(d.sort((e,s)=>e.type.startsWith("NR5G")&&!s.type.startsWith("NR5G")?-1:!e.type.startsWith("NR5G")&&s.type.startsWith("NR5G")?1:s.rsrp-e.rsrp),s&&0!==d.length)?(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"Cell Type"}),(0,t.jsx)(l.nd,{children:"Frequency"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:d.map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{className:"font-medium",children:e.type}),(0,t.jsx)(l.nA,{children:e.cellType}),(0,t.jsx)(l.nA,{children:e.frequency}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:i(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.type,"-").concat(e.frequency,"-").concat(e.pci,"-").concat(s)))})]})}):(0,t.jsx)("div",{className:"text-center py-4 text-gray-500",children:"No neighbor cells data available"})};var y=a(7197);let w={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz","-":"-"};var T=a(37921),C=a(28702);let R=C.bL,I=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(C.q7,{ref:s,className:(0,o.cn)("border-b",a),...r})});I.displayName="AccordionItem";let S=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(C.Y9,{className:"flex",children:(0,t.jsxs)(C.l9,{ref:s,className:(0,o.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...n,children:[r,(0,t.jsx)(y.D3D,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});S.displayName=C.l9.displayName;let F=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsx)(C.UC,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,t.jsx)("div",{className:(0,o.cn)("pb-4 pt-0",a),children:r})})});F.displayName=C.UC.displayName;let k=e=>{var s,a,r,l,c,i;let{cell:d,operatorInfo:o}=e,u="LTE"===d.type;return(0,t.jsxs)(n.Zp,{className:"overflow-hidden border shadow-sm",children:[(0,t.jsxs)(n.aR,{className:"bg-muted/30 pb-2",children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)(g.E,{variant:u?"outline":"default",className:u?"bg-orange-600":"",children:[u?"LTE":"5G NR"," - ",(null==o?void 0:o.brand)&&o.operator?"".concat(o.brand):(null==o?void 0:o.operator)?o.operator:"".concat(d.mcc).concat(d.mnc)]}),(0,t.jsx)(n.ZB,{className:"text-base",children:u?"Band ".concat(d.band," (").concat((null===(s=d.frequencyInfo)||void 0===s?void 0:s.bandName)||"Unknown",")"):"n".concat(d.band," (").concat((null===(a=d.frequencyInfo)||void 0===a?void 0:a.bandName)||"Unknown",")")})]})}),(0,t.jsxs)(n.BT,{className:"mt-1 flex items-center space-x-2",children:[(0,t.jsxs)("span",{children:["Cell ID: ",d.cellId]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsxs)("span",{children:["PCI: ",d.pci]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:u?"EARFCN: ".concat(d.freq):"NR-ARFCN: ".concat(d.freq)})]})]}),(0,t.jsxs)(n.Wu,{className:"pt-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-2",children:[(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Frequency Information"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Downlink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(r=d.frequencyInfo)||void 0===r?void 0:r.dlFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(l=d.frequencyInfo)||void 0===l?void 0:l.ulFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Duplex Mode:"}),(0,t.jsx)("div",{className:"font-medium",children:(null===(c=d.frequencyInfo)||void 0===c?void 0:c.duplexType)||"Unknown"}),u&&(null===(i=d.frequencyInfo)||void 0===i?void 0:i.ulEarfcn)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink EARFCN:"}),(0,t.jsx)("div",{className:"font-medium",children:d.frequencyInfo.ulEarfcn})]})]})]})}),(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Signal Parameters"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRP:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrp," dBm"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRQ:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrq," dB"]}),u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"SQUAL:"}),(0,t.jsx)("div",{className:"font-medium",children:d.squal}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Bandwidth:"}),(0,t.jsx)("div",{className:"font-medium",children:d.bandwidthMHz||"".concat(d.bandwidth," RB")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Subcarrier Spacing:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.scs," kHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Carrier Bandwidth:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.carrierBandwidth," RB"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SSB SCS:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.ssbScs," kHz"]})]})]})]})})]}),(0,t.jsx)(R,{type:"single",collapsible:!0,className:"mt-4",children:(0,t.jsxs)(I,{value:"advanced",children:[(0,t.jsx)(S,{className:"text-sm py-2",children:"Advanced Details"}),(0,t.jsx)(F,{children:o&&(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Operator:"}),(0,t.jsx)("div",{className:"font-medium",children:o.operator}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Brand:"}),(0,t.jsx)("div",{className:"font-medium",children:o.brand}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Country:"}),(0,t.jsx)("div",{className:"font-medium",children:o.countryName}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"MCC-MNC:"}),(0,t.jsxs)("div",{className:"font-medium",children:[o.mcc,"-",o.mnc]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SRXLEV:"}),(0,t.jsx)("div",{className:"font-medium",children:d.srxlev})]})})})]})})]})]})},D=e=>{let{scanResult:s,isLoading:a=!1,mccMncList:l=[]}=e,[c,i]=(0,r.useState)("all"),d=(0,r.useCallback)((e,s)=>l.find(a=>a.mcc===e&&a.mnc===s)||null,[l]),o=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"}],u=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"}],x=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:"",band:0};if("LTE"===s){let[e,s,a,t,r]=d;return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:parseInt(t),band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),f=(0,r.useCallback)(e=>{let s,a;let t=e.freq,r=o.find(s=>t>=s.earfcnRange[0]&&t<=s.earfcnRange[1]&&s.band===e.band);if(!r){let s,a;let r=o.find(s=>s.band===e.band);if(!r)return null;let n=r.dlLow+(t-r.earfcnOffset)%1e3*r.spacing;if("FDD"===r.duplexType){s=t+18e3;let e=r.ulHigh-r.ulLow;a=(r.ulLow+e/2).toFixed(2)}else a=n.toFixed(2);return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a,ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}}let n=r.dlLow+(t-r.earfcnOffset)*r.spacing;if("FDD"===r.duplexType){let e=t-r.earfcnOffset;s=t+18e3,a=r.ulLow+e*r.spacing}else a=n;return{band:r.band,bandName:r.name,earfcn:t,dlFrequency:n.toFixed(2),ulFrequency:a.toFixed(2),ulEarfcn:s,duplexType:r.duplexType,bandwidth:e.bandwidthMHz}},[o]),p=(0,r.useCallback)(e=>{let s;let a=e.freq;if(a>=0&&a<=599999)s=0+(a-0)*.005;else if(a>=6e5&&a<=2016666)s=3e3+(a-6e5)*.015;else{if(!(a>=2016667)||!(a<=3279165))return null;s=24250.08+(a-2016667)*.06}let t=u.find(s=>a>=s.nrarfcnRange[0]&&a<=s.nrarfcnRange[1]&&s.band===e.band);if(!t){let t=u.find(s=>s.band===e.band);return t?{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:"FDD"===t.duplexType?((t.ulLow+t.ulHigh)/2).toFixed(2):s.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}:null}let r="FDD"===t.duplexType?t.ulLow+(s-t.dlLow):s;return{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:r.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}},[u]),h=(0,r.useMemo)(()=>{if(!(null==s?void 0:s.output))return{lte:[],nr5g:[]};let e=x(s.output),a=[],t=[];e.forEach(e=>{var s,r;let n=d(e.mcc,e.mnc);if("LTE"===e.type){let t=null!==(s=f(e))&&void 0!==s?s:void 0;a.push({...e,frequencyInfo:t,operatorInfo:n})}else if("NR5G"===e.type){let s=null!==(r=p(e))&&void 0!==r?r:void 0;t.push({...e,frequencyInfo:s,operatorInfo:n})}});let r=(e,s)=>{var a,t;let r=(null===(a=e.operatorInfo)||void 0===a?void 0:a.operator)||"",n=(null===(t=s.operatorInfo)||void 0===t?void 0:t.operator)||"";return r.localeCompare(n)};return{lte:a.sort(r),nr5g:t.sort(r)}},[s,x,f,p,d]);if(a)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Analyzing frequency details for detected cells..."})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)(m.A,{className:"w-8 h-8 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Processing frequency information..."})]})})]});if(!s||!s.output)return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:"Detailed frequency information for detected cells"})]}),(0,t.jsx)(n.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"Run a cell scan to view detailed frequency information"})})]});let g=h.lte.length+h.nr5g.length;return(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(n.BT,{children:s.timestamp&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Analysis based on full cell scan from: ",s.timestamp]})})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(T.tU,{defaultValue:"all",value:c,onValueChange:e=>i(e),className:"mb-6",children:[(0,t.jsxs)(T.j7,{className:"grid w-full grid-cols-3",children:[(0,t.jsxs)(T.Xi,{value:"all",children:["All Cells (",g,")"]}),(0,t.jsxs)(T.Xi,{value:"lte",children:["LTE (",h.lte.length,")"]}),(0,t.jsxs)(T.Xi,{value:"nr5g",children:["5G NR (",h.nr5g.length,")"]})]}),(0,t.jsx)(T.av,{value:"all",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===g?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No cells detected in the scan"}):(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s))),h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))]})})}),(0,t.jsx)(T.av,{value:"lte",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.lte.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No LTE cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s)))})})}),(0,t.jsx)(T.av,{value:"nr5g",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.nr5g.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No 5G NR cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))})})})]})}),(0,t.jsx)(n.wL,{className:"border-t p-4 flex justify-between",children:(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Frequency calculation based on 3GPP TS 38.104 and TS 36.101 specifications"})})]})},L=()=>{let{toast:e}=(0,b.dj)(),[s,a]=(0,r.useState)(null),[d,o]=(0,r.useState)(null),[T,C]=(0,r.useState)(0),[R,I]=(0,r.useState)(!1),[S,F]=(0,r.useState)(null),[k,L]=(0,r.useState)([]),[A,q]=(0,r.useState)(null),[H,E]=(0,r.useState)({status:"idle",progress:0,message:""}),[B,_]=(0,r.useState)(0);(0,r.useEffect)(()=>{if(!d){C(0);return}let e=()=>{let s=new Date(d).getTime(),a=Math.max(0,6e4-(new Date().getTime()-s));C(a),a>0&&requestAnimationFrame(e)};e()},[d]);let O=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/fetch_mccmnc.sh"),s=await e.json();L(s)}catch(s){console.error("Failed to fetch MCC-MNC list:",s),e({title:"Warning",description:"Failed to load operator information",variant:"destructive"})}},[]);(0,r.useEffect)(()=>{O()},[O]);let M=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh"),s=await e.json();F(s)}catch(s){console.error("Failed to fetch Quecwatch status:",s),e({title:"Error",description:"Failed to check Quecwatch status",variant:"destructive"})}},[]),P=(0,r.useCallback)((e,s)=>k.find(a=>a.mcc===e&&a.mnc===s)||null,[k]),z=(0,r.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,r,n,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(r),pci:parseInt(n),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:""};if("LTE"===s){let[e,s,a,t,r]=d,n=parseInt(t),l=w[n.toString()]||"".concat(n," RB");return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:n,bandwidthMHz:l,band:parseInt(r)}}if("NR5G"===s){let[e,s,a,t,r,n,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(r),offsetToPointA:parseInt(n),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),G=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)return;let s=await e.json();"success"===s.status&&s.output?(a(s),o(s.timestamp||null)):"running"===s.status&&(E({status:"scanning",progress:50,message:"Scan in progress...",startTime:Date.now()-6e4}),Z(),setTimeout(U,2e3))}catch(e){console.error("Failed to check initial scan results",e)}},[]),U=(0,r.useCallback)(async()=>{if(B>60){console.log("Reached maximum polling attempts, waiting for results to appear");return}try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("success"===s.status&&s.output){a(s),o(s.timestamp||null),E({status:"idle",progress:100,message:""}),_(0);return}if("running"===s.status){_(e=>e+1),setTimeout(U,2e3);return}B<30&&(_(e=>e+1),setTimeout(U,2e3))}catch(e){console.error("Failed to check scan status",e),B<60&&(_(e=>e+1),setTimeout(U,3e3))}},[B]),Z=(0,r.useCallback)(()=>{let e;e=setInterval(()=>{E(s=>{if("scanning"!==s.status)return clearInterval(e),s;let a=10+88*Math.min((Date.now()-(s.startTime||Date.now()))/12e4,1),t="Scanning available networks... This may take a minute";return a>85?t="Finalizing scan results...":a>50&&(t="Collecting operator data..."),{...s,progress:Math.min(a,98),message:t}})},1e3),setTimeout(()=>{clearInterval(e),E(e=>"scanning"===e.status?{...e,progress:98,message:"Waiting for results..."}:e)},15e4)},[]),W=(0,r.useCallback)(async()=>{if("scanning"!==H.status&&!R){I(!0),a(null),o(null),_(0),E({status:"scanning",progress:0,message:"Initiating scan...",startTime:Date.now()});try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/cell_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("running"===s.status||"success"===s.status)E(e=>({...e,progress:10,message:"Scan in progress..."})),Z(),setTimeout(U,2e3);else throw Error(s.message||"Failed to start scan")}catch(s){console.error("Scan error:",s),e({title:"Error",description:s instanceof Error?s.message:"Failed to start cell scan",variant:"destructive"}),E({status:"idle",progress:0,message:""})}finally{I(!1)}}},[H.status,R,U,Z]),$=(0,r.useCallback)(e=>e.reduce((e,s)=>{let a="".concat(s.mcc).concat(s.mnc);if(!e[a]){let t=P(s.mcc,s.mnc);e[a]={cells:[],operatorInfo:t}}return e[a].cells.push(s),e},{}),[P]),Q=(0,r.useCallback)(e=>[...e].sort((e,s)=>e.type!==s.type?"LTE"===e.type?-1:1:s.rsrp-e.rsrp),[]),X=(0,r.useCallback)(e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),[]);(0,r.useEffect)(()=>{G(),M()},[G,M]);let V=(0,r.useCallback)(()=>{a(null),o(null),E({status:"idle",progress:0,message:""})},[]),J=(0,r.useCallback)(()=>{if(!(null==s?void 0:s.output))return;let e=new Blob([["Type,MCC,MNC,Frequency,PCI,RSRP,RSRQ,Band,Cell ID,TAC",...z(s.output).map(e=>"".concat(e.type,",").concat(e.mcc,",").concat(e.mnc,",").concat(e.freq,",").concat(e.pci,",").concat(e.rsrp,",").concat(e.rsrq,",").concat(e.band,",").concat(e.cellId,",").concat(e.tac))].join("\n")],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(e),a.setAttribute("download","cell_scan_".concat(new Date().toISOString(),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},[s,z]),K=(0,r.useCallback)((e,s,a)=>a?"".concat(e).concat(s," - ").concat(a.brand," by ").concat(a.operator):"".concat(e).concat(s),[]),Y=(null==s?void 0:s.status)==="success"&&s.output?$(z(s.output)):{},ee=(0,r.useCallback)(async()=>{if(!R){I(!0),q(null);try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/network_info.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();if(console.log("Neighbor cell data:",t),"success"===t.status&&t.mode){var s,a;(null===(s=t.data)||void 0===s?void 0:s.neighborCells)||(null===(a=t.data)||void 0===a?void 0:a.meas)?q(t):t.raw_data&&q({status:t.status,timestamp:t.timestamp,mode:t.mode,data:{neighborCells:t.raw_data.neighborCells,meas:t.raw_data.meas}})}else q(t)}catch(s){console.error("Failed to fetch neighbor cells",s),e({title:"Error",description:"Failed to scan neighbor cells. Please try again.",variant:"destructive"})}finally{I(!1)}}},[R]),es=(0,r.useCallback)(()=>{q(null)},[]);return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Full Network Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan all available network cells, including those from other network providers. Current network mode will affect the results and you may be disconnected during the scan.",d&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",d]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsxs)(v.F,{className:"h-96",children:[!s&&"idle"===H.status&&(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"Click the button below to start scanning the network..."})}),"scanning"===H.status&&(0,t.jsxs)("div",{className:"flex flex-col space-y-2 items-center justify-center h-full w-full",children:[(0,t.jsx)(u,{value:H.progress,className:"w-full"}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 text-center",children:H.message})})]}),(0,t.jsx)("div",{className:"grid gap-4",children:Object.entries(Y).map(e=>{let[s,{cells:a,operatorInfo:r}]=e;return(0,t.jsxs)(n.Zp,{className:"p-4 grid gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(g.E,{children:K(a[0].mcc,a[0].mnc,r)})}),(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"E/ARFCN"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Band"}),(0,t.jsx)(l.nd,{children:"Bandwidth"}),(0,t.jsx)(l.nd,{children:"Cell ID"}),(0,t.jsx)(l.nd,{children:"TAC"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:Q(a).map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{children:e.type}),(0,t.jsx)(l.nA,{children:e.freq}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:e.band}),(0,t.jsx)(l.nA,{children:"LTE"===e.type?e.bandwidthMHz:"-"}),(0,t.jsx)(l.nA,{children:e.cellId}),(0,t.jsx)(l.nA,{children:e.tac}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:X(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.cellId,"-").concat(s)))})]})]},s)})})]})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(null==S?void 0:S.status)==="active"?(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{disabled:!0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:"Please disable Quecwatch first before proceeding."})]})}):(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{onClick:W,disabled:"scanning"===H.status||R||T>0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:T>0?(0,t.jsxs)("span",{children:["Please wait ",Math.ceil(T/1e3)," ","seconds before scanning again"]}):(0,t.jsx)("span",{children:"Start a new network scan"})})]})}),(null==s?void 0:s.status)==="success"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.$,{variant:"secondary",onClick:J,disabled:"scanning"===H.status,children:[(0,t.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Export to CSV"]}),(0,t.jsxs)(i.$,{variant:"destructive",onClick:V,disabled:"scanning"===H.status,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})]})})]}),(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsx)(n.ZB,{children:"Neighbor Cell Scan"}),(0,t.jsxs)(n.BT,{children:["Scan neighbor cells of the current network provider. This provides detailed information about cells in your immediate vicinity that your device can connect to.",(null==A?void 0:A.timestamp)&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",A.timestamp]})]})]}),(0,t.jsx)(n.Wu,{children:(0,t.jsx)(N,{neighborCells:A})}),(0,t.jsx)(n.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)(i.$,{onClick:ee,disabled:R,children:R?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning..."})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(y.$p$,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Neighbor Scan"})]})}),(null==A?void 0:A.status)==="success"&&(0,t.jsxs)(i.$,{variant:"destructive",onClick:es,disabled:R,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})})]}),(0,t.jsx)(D,{scanResult:s,isLoading:"scanning"===H.status,mccMncList:k})]})}},45934:(e,s,a)=>{"use strict";a.d(s,{E:()=>c});var t=a(20475);a(20107);var r=a(29395),n=a(22250);let l=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function c(e){let{className:s,variant:a,...r}=e;return(0,t.jsx)("div",{className:(0,n.cn)(l({variant:a}),s),...r})}},42541:(e,s,a)=>{"use strict";a.d(s,{$:()=>d,r:()=>i});var t=a(20475),r=a(20107),n=a(61837),l=a(29395),c=a(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,s)=>{let{className:a,variant:r,size:l,asChild:d=!1,...o}=e,u=d?n.DX:"button";return(0,t.jsx)(u,{className:(0,c.cn)(i({variant:r,size:l,className:a})),ref:s,...o})});d.displayName="Button"},72167:(e,s,a)=>{"use strict";a.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>i,Zp:()=>l,aR:()=>c,wL:()=>u});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...r})});l.displayName="Card";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...r})});c.displayName="CardHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",a),...r})});i.displayName="CardTitle";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",a),...r})});o.displayName="CardContent";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",a),...r})});u.displayName="CardFooter"},36824:(e,s,a)=>{"use strict";a.d(s,{$:()=>i,F:()=>c});var t=a(20475),r=a(20107),n=a(89679),l=a(22250);let c=r.forwardRef((e,s)=>{let{className:a,children:r,...c}=e;return(0,t.jsxs)(n.bL,{ref:s,className:(0,l.cn)("relative overflow-hidden",a),...c,children:[(0,t.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(i,{}),(0,t.jsx)(n.OK,{})]})});c.displayName=n.bL.displayName;let i=r.forwardRef((e,s)=>{let{className:a,orientation:r="vertical",...c}=e;return(0,t.jsx)(n.VM,{ref:s,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...c,children:(0,t.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=n.VM.displayName},51303:(e,s,a)=>{"use strict";a.d(s,{A0:()=>c,BF:()=>i,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>o,r6:()=>m});var t=a(20475),r=a(20107),n=a(22250);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,n.cn)("w-full caption-bottom text-sm",a),...r})})});l.displayName="Table";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("thead",{ref:s,className:(0,n.cn)("[&_tr]:border-b",a),...r})});c.displayName="TableHeader";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...r})});i.displayName="TableBody",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...r})}).displayName="TableFooter";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tr",{ref:s,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...r})});d.displayName="TableRow";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("th",{ref:s,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});o.displayName="TableHead";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("td",{ref:s,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});u.displayName="TableCell";let m=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("caption",{ref:s,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...r})});m.displayName="TableCaption"},37921:(e,s,a)=>{"use strict";a.d(s,{Xi:()=>d,av:()=>o,j7:()=>i,tU:()=>c});var t=a(20475),r=a(20107),n=a(93677),l=a(22250);let c=n.bL,i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.B8,{ref:s,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...r})});i.displayName=n.B8.displayName;let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.l9,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...r})});d.displayName=n.l9.displayName;let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});o.displayName=n.UC.displayName},85014:(e,s,a)=>{"use strict";a.d(s,{TooltipProvider:()=>c,ZI:()=>o,k$:()=>d,m_:()=>i});var t=a(20475),r=a(20107),n=a(43048),l=a(22250);let c=n.Kq,i=n.bL,d=n.l9,o=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...c}=e;return(0,t.jsx)(n.UC,{ref:s,sideOffset:r,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...c})});o.displayName=n.UC.displayName},32857:(e,s,a)=>{"use strict";a.d(s,{dj:()=>m,oR:()=>u});var t=a(20107);let r=0,n=new Map,l=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},c=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=s;return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},i=[],d={toasts:[]};function o(e){d=c(d,e),i.forEach(e=>{e(d)})}function u(e){let{...s}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>o({type:"DISMISS_TOAST",toastId:a});return o({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,s]=t.useState(d);return t.useEffect(()=>(i.push(s),()=>{let e=i.indexOf(s);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,a)=>{"use strict";a.d(s,{cn:()=>n});var t=a(64901),r=a(868);function n(){for(var e=arguments.length,s=Array(e),a=0;a{var s=s=>e(e.s=s);e.O(0,[9980,2101,7780,8885,3746,3048,9679,3095,3453,5668,191,6035,7358],()=>s(41126)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-fc41be1e6a56e9e7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-fc41be1e6a56e9e7.js new file mode 100644 index 0000000..1f96d01 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/cell-scanner/page-fc41be1e6a56e9e7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5014],{41126:(e,s,a)=>{Promise.resolve().then(a.bind(a,88388))},88388:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>L});var t=a(20475),n=a(20107),r=a(72167),l=a(51303),c=a(85014),i=a(42541),d=a(33466),o=a(22250);let u=n.forwardRef((e,s)=>{let{className:a,value:n,...r}=e;return(0,t.jsx)(d.bL,{ref:s,className:(0,o.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...r,children:(0,t.jsx)(d.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(n||0),"%)")}})})});u.displayName=d.bL.displayName;var m=a(59166),x=a(27720),f=a(91994),p=a(76076),h=a(51873),g=a(45934),j=a(38741),v=a(36824),b=a(32857);let N=e=>{let{neighborCells:s}=e;(0,n.useEffect)(()=>{s&&console.log("Neighbor cells data:",s)},[s]);let a=e=>e?Array.from(e.matchAll(/\+QENG: "neighbourcell (intra|inter)","LTE",(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"LTE",cellType:e[1],frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrq:parseInt(e[4]),rsrp:parseInt(e[5])})):[],r=e=>e?Array.from(e.matchAll(/\+QNWCFG: "nr5g_meas_info",(\d+),(\d+),(\d+),(-?\d+),(-?\d+)/g)).map(e=>({type:"NR5G-NSA",cellType:"nr5g",frequency:parseInt(e[2]),pci:parseInt(e[3]),rsrp:parseInt(e[4]),rsrq:parseInt(e[5])})):[],i=e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),d=[];if((null==s?void 0:s.status)==="success"){var o,u,m,x;(null===(o=s.data)||void 0===o?void 0:o.neighborCells)?d=[...d,...a(s.data.neighborCells)]:(null===(u=s.raw_data)||void 0===u?void 0:u.neighborCells)&&(d=[...d,...a(s.raw_data.neighborCells)]),(null===(m=s.data)||void 0===m?void 0:m.meas)?d=[...d,...r(s.data.meas)]:(null===(x=s.raw_data)||void 0===x?void 0:x.meas)&&(d=[...d,...r(s.raw_data.meas)])}return(d.sort((e,s)=>e.type.startsWith("NR5G")&&!s.type.startsWith("NR5G")?-1:!e.type.startsWith("NR5G")&&s.type.startsWith("NR5G")?1:s.rsrp-e.rsrp),s&&0!==d.length)?(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"Cell Type"}),(0,t.jsx)(l.nd,{children:"Frequency"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:d.map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{className:"font-medium",children:e.type}),(0,t.jsx)(l.nA,{children:e.cellType}),(0,t.jsx)(l.nA,{children:e.frequency}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:i(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.type,"-").concat(e.frequency,"-").concat(e.pci,"-").concat(s)))})]})}):(0,t.jsx)("div",{className:"text-center py-4 text-gray-500",children:"No neighbor cells data available"})};var y=a(7197);let w={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz","-":"-"};var T=a(37921),C=a(28702);let R=C.bL,I=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(C.q7,{ref:s,className:(0,o.cn)("border-b",a),...n})});I.displayName="AccordionItem";let S=n.forwardRef((e,s)=>{let{className:a,children:n,...r}=e;return(0,t.jsx)(C.Y9,{className:"flex",children:(0,t.jsxs)(C.l9,{ref:s,className:(0,o.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...r,children:[n,(0,t.jsx)(y.D3D,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});S.displayName=C.l9.displayName;let F=n.forwardRef((e,s)=>{let{className:a,children:n,...r}=e;return(0,t.jsx)(C.UC,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:(0,t.jsx)("div",{className:(0,o.cn)("pb-4 pt-0",a),children:n})})});F.displayName=C.UC.displayName;let k=e=>{var s,a,n,l,c,i;let{cell:d,operatorInfo:o}=e,u="LTE"===d.type;return(0,t.jsxs)(r.Zp,{className:"overflow-hidden border shadow-sm",children:[(0,t.jsxs)(r.aR,{className:"bg-muted/30 pb-2",children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)(g.E,{variant:u?"outline":"default",className:u?"bg-orange-600":"",children:[u?"LTE":"5G NR"," - ",(null==o?void 0:o.brand)&&o.operator?"".concat(o.brand):(null==o?void 0:o.operator)?o.operator:"".concat(d.mcc).concat(d.mnc)]}),(0,t.jsx)(r.ZB,{className:"text-base",children:u?"Band ".concat(d.band," (").concat((null===(s=d.frequencyInfo)||void 0===s?void 0:s.bandName)||"Unknown",")"):"n".concat(d.band," (").concat((null===(a=d.frequencyInfo)||void 0===a?void 0:a.bandName)||"Unknown",")")})]})}),(0,t.jsxs)(r.BT,{className:"mt-1 flex items-center space-x-2",children:[(0,t.jsxs)("span",{children:["Cell ID: ",d.cellId]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsxs)("span",{children:["PCI: ",d.pci]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:u?"EARFCN: ".concat(d.freq):"NR-ARFCN: ".concat(d.freq)})]})]}),(0,t.jsxs)(r.Wu,{className:"pt-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-2",children:[(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Frequency Information"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Downlink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(n=d.frequencyInfo)||void 0===n?void 0:n.dlFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink Frequency:"}),(0,t.jsxs)("div",{className:"font-medium",children:[(null===(l=d.frequencyInfo)||void 0===l?void 0:l.ulFrequency)||"Unknown"," MHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Duplex Mode:"}),(0,t.jsx)("div",{className:"font-medium",children:(null===(c=d.frequencyInfo)||void 0===c?void 0:c.duplexType)||"Unknown"}),u&&(null===(i=d.frequencyInfo)||void 0===i?void 0:i.ulEarfcn)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Uplink EARFCN:"}),(0,t.jsx)("div",{className:"font-medium",children:d.frequencyInfo.ulEarfcn})]})]})]})}),(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-sm font-semibold mb-1",children:"Signal Parameters"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRP:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrp," dBm"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"RSRQ:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.rsrq," dB"]}),u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"SQUAL:"}),(0,t.jsx)("div",{className:"font-medium",children:d.squal}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Bandwidth:"}),(0,t.jsx)("div",{className:"font-medium",children:d.bandwidthMHz||"".concat(d.bandwidth," RB")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Subcarrier Spacing:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.scs," kHz"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Carrier Bandwidth:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.carrierBandwidth," RB"]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SSB SCS:"}),(0,t.jsxs)("div",{className:"font-medium",children:[d.ssbScs," kHz"]})]})]})]})})]}),(0,t.jsx)(R,{type:"single",collapsible:!0,className:"mt-4",children:(0,t.jsxs)(I,{value:"advanced",children:[(0,t.jsx)(S,{className:"text-sm py-2",children:"Advanced Details"}),(0,t.jsx)(F,{children:o&&(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 text-sm",children:[(0,t.jsx)("div",{className:"text-muted-foreground",children:"Operator:"}),(0,t.jsx)("div",{className:"font-medium",children:o.operator}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Brand:"}),(0,t.jsx)("div",{className:"font-medium",children:o.brand}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"Country:"}),(0,t.jsx)("div",{className:"font-medium",children:o.countryName}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"MCC-MNC:"}),(0,t.jsxs)("div",{className:"font-medium",children:[o.mcc,"-",o.mnc]}),(0,t.jsx)("div",{className:"text-muted-foreground",children:"SRXLEV:"}),(0,t.jsx)("div",{className:"font-medium",children:d.srxlev})]})})})]})})]})]})},D=e=>{let{scanResult:s,isLoading:a=!1,mccMncList:l=[]}=e,[c,i]=(0,n.useState)("all"),d=(0,n.useCallback)((e,s)=>l.find(a=>a.mcc===e&&a.mnc===s)||null,[l]),o=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"}],u=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"}],x=(0,n.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,n,r,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(n),pci:parseInt(r),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:"",band:0};if("LTE"===s){let[e,s,a,t,n]=d;return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:parseInt(t),band:parseInt(n)}}if("NR5G"===s){let[e,s,a,t,n,r,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(n),offsetToPointA:parseInt(r),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),f=(0,n.useCallback)(e=>{let s,a;let t=e.freq,n=o.find(s=>t>=s.earfcnRange[0]&&t<=s.earfcnRange[1]&&s.band===e.band);if(!n){let s,a;let n=o.find(s=>s.band===e.band);if(!n)return null;let r=n.dlLow+(t-n.earfcnOffset)%1e3*n.spacing;if("FDD"===n.duplexType){s=t+18e3;let e=n.ulHigh-n.ulLow;a=(n.ulLow+e/2).toFixed(2)}else a=r.toFixed(2);return{band:n.band,bandName:n.name,earfcn:t,dlFrequency:r.toFixed(2),ulFrequency:a,ulEarfcn:s,duplexType:n.duplexType,bandwidth:e.bandwidthMHz}}let r=n.dlLow+(t-n.earfcnOffset)*n.spacing;if("FDD"===n.duplexType){let e=t-n.earfcnOffset;s=t+18e3,a=n.ulLow+e*n.spacing}else a=r;return{band:n.band,bandName:n.name,earfcn:t,dlFrequency:r.toFixed(2),ulFrequency:a.toFixed(2),ulEarfcn:s,duplexType:n.duplexType,bandwidth:e.bandwidthMHz}},[o]),p=(0,n.useCallback)(e=>{let s;let a=e.freq;if(a>=0&&a<=599999)s=0+(a-0)*.005;else if(a>=6e5&&a<=2016666)s=3e3+(a-6e5)*.015;else{if(!(a>=2016667)||!(a<=3279165))return null;s=24250.08+(a-2016667)*.06}let t=u.find(s=>a>=s.nrarfcnRange[0]&&a<=s.nrarfcnRange[1]&&s.band===e.band);if(!t){let t=u.find(s=>s.band===e.band);return t?{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:"FDD"===t.duplexType?((t.ulLow+t.ulHigh)/2).toFixed(2):s.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}:null}let n="FDD"===t.duplexType?t.ulLow+(s-t.dlLow):s;return{band:t.band,bandName:t.name,nrarfcn:a,dlFrequency:s.toFixed(2),ulFrequency:n.toFixed(2),duplexType:t.duplexType,scs:e.scs,channelBandwidth:"".concat(e.carrierBandwidth," RB")}},[u]),h=(0,n.useMemo)(()=>{if(!(null==s?void 0:s.output))return{lte:[],nr5g:[]};let e=x(s.output),a=[],t=[];e.forEach(e=>{var s,n;let r=d(e.mcc,e.mnc);if("LTE"===e.type){let t=null!==(s=f(e))&&void 0!==s?s:void 0;a.push({...e,frequencyInfo:t,operatorInfo:r})}else if("NR5G"===e.type){let s=null!==(n=p(e))&&void 0!==n?n:void 0;t.push({...e,frequencyInfo:s,operatorInfo:r})}});let n=(e,s)=>{var a,t;let n=(null===(a=e.operatorInfo)||void 0===a?void 0:a.operator)||"",r=(null===(t=s.operatorInfo)||void 0===t?void 0:t.operator)||"";return n.localeCompare(r)};return{lte:a.sort(n),nr5g:t.sort(n)}},[s,x,f,p,d]);if(a)return(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(r.BT,{children:"Analyzing frequency details for detected cells..."})]}),(0,t.jsx)(r.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)(m.A,{className:"w-8 h-8 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Processing frequency information..."})]})})]});if(!s||!s.output)return(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(r.BT,{children:"Detailed frequency information for detected cells"})]}),(0,t.jsx)(r.Wu,{className:"flex items-center justify-center min-h-[300px]",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"Run a cell scan to view detailed frequency information"})})]});let g=h.lte.length+h.nr5g.length;return(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Cell Frequency Analysis"}),(0,t.jsx)(r.BT,{children:s.timestamp&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Analysis based on full cell scan from: ",s.timestamp]})})]}),(0,t.jsx)(r.Wu,{children:(0,t.jsxs)(T.tU,{defaultValue:"all",value:c,onValueChange:e=>i(e),className:"mb-6",children:[(0,t.jsxs)(T.j7,{className:"grid w-full grid-cols-3",children:[(0,t.jsxs)(T.Xi,{value:"all",children:["All Cells (",g,")"]}),(0,t.jsxs)(T.Xi,{value:"lte",children:["LTE (",h.lte.length,")"]}),(0,t.jsxs)(T.Xi,{value:"nr5g",children:["5G NR (",h.nr5g.length,")"]})]}),(0,t.jsx)(T.av,{value:"all",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===g?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No cells detected in the scan"}):(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s))),h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))]})})}),(0,t.jsx)(T.av,{value:"lte",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.lte.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No LTE cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.lte.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"lte-".concat(e.cellId,"-").concat(s)))})})}),(0,t.jsx)(T.av,{value:"nr5g",className:"mt-4",children:(0,t.jsx)(v.F,{className:"h-[500px] pr-4",children:0===h.nr5g.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No 5G NR cells detected in the scan"}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:h.nr5g.map((e,s)=>(0,t.jsx)(k,{cell:e,operatorInfo:e.operatorInfo},"nr5g-".concat(e.cellId,"-").concat(s)))})})})]})}),(0,t.jsx)(r.wL,{className:"border-t p-4 flex justify-between",children:(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Frequency calculation based on 3GPP TS 38.104 and TS 36.101 specifications"})})]})},L=()=>{let{toast:e}=(0,b.dj)(),[s,a]=(0,n.useState)(null),[d,o]=(0,n.useState)(null),[T,C]=(0,n.useState)(0),[R,I]=(0,n.useState)(!1),[S,F]=(0,n.useState)(null),[k,L]=(0,n.useState)([]),[A,q]=(0,n.useState)(null),[H,E]=(0,n.useState)({status:"idle",progress:0,message:""}),[B,_]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(!d){C(0);return}let e=()=>{let s=new Date(d).getTime(),a=Math.max(0,6e4-(new Date().getTime()-s));C(a),a>0&&requestAnimationFrame(e)};e()},[d]);let O=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/fetch_mccmnc.sh"),s=await e.json();L(s)}catch(s){console.error("Failed to fetch MCC-MNC list:",s),e({title:"Warning",description:"Failed to load operator information",variant:"destructive"})}},[]);(0,n.useEffect)(()=>{O()},[O]);let M=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh"),s=await e.json();F(s)}catch(s){console.error("Failed to fetch Quecwatch status:",s),e({title:"Error",description:"Failed to check Quecwatch status",variant:"destructive"})}},[]),P=(0,n.useCallback)((e,s)=>k.find(a=>a.mcc===e&&a.mnc===s)||null,[k]),z=(0,n.useCallback)(e=>e?e.split("\n").filter(e=>e.trim().startsWith("+QSCAN:")).map(e=>{let[s,a,t,n,r,l,c,i,...d]=e.substring(e.indexOf(":")+1).trim().split(",").map(e=>e.trim().replace(/\\"/g,"").replace(/"/g,"").replace(/\r/g,"")),o={type:s=s.replace(/\\\\/g,"").replace(/\\/g,"").replace(/"/g,"").trim(),mcc:a,mnc:t,freq:parseInt(n),pci:parseInt(r),rsrp:parseInt(l),rsrq:parseInt(c),srxlev:"-"===i?0:parseInt(i),cellId:"",tac:""};if("LTE"===s){let[e,s,a,t,n]=d,r=parseInt(t),l=w[r.toString()]||"".concat(r," RB");return{...o,type:"LTE",squal:"-"===e?0:parseInt(e),cellId:s,tac:a,bandwidth:r,bandwidthMHz:l,band:parseInt(n)}}if("NR5G"===s){let[e,s,a,t,n,r,l,c]=d;return{...o,type:"NR5G",cellId:e,tac:s,scs:parseInt(a),carrierBandwidth:parseInt(t),band:parseInt(n),offsetToPointA:parseInt(r),ssbSubcarrierOffset:parseInt(l),ssbScs:parseInt(c)}}return null}).filter(e=>null!==e):[],[]),G=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)return;let s=await e.json();"success"===s.status&&s.output?(a(s),o(s.timestamp||null)):"running"===s.status&&(E({status:"scanning",progress:50,message:"Scan in progress...",startTime:Date.now()-6e4}),Z(),setTimeout(U,2e3))}catch(e){console.error("Failed to check initial scan results",e)}},[]),U=(0,n.useCallback)(async()=>{if(B>60){console.log("Reached maximum polling attempts, waiting for results to appear");return}try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/check_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("success"===s.status&&s.output){a(s),o(s.timestamp||null),E({status:"idle",progress:100,message:""}),_(0);return}if("running"===s.status){_(e=>e+1),setTimeout(U,2e3);return}B<30&&(_(e=>e+1),setTimeout(U,2e3))}catch(e){console.error("Failed to check scan status",e),B<60&&(_(e=>e+1),setTimeout(U,3e3))}},[B]),Z=(0,n.useCallback)(()=>{let e;e=setInterval(()=>{E(s=>{if("scanning"!==s.status)return clearInterval(e),s;let a=10+88*Math.min((Date.now()-(s.startTime||Date.now()))/12e4,1),t="Scanning available networks... This may take a minute";return a>85?t="Finalizing scan results...":a>50&&(t="Collecting operator data..."),{...s,progress:Math.min(a,98),message:t}})},1e3),setTimeout(()=>{clearInterval(e),E(e=>"scanning"===e.status?{...e,progress:98,message:"Waiting for results..."}:e)},15e4)},[]),W=(0,n.useCallback)(async()=>{if("scanning"!==H.status&&!R){I(!0),a(null),o(null),_(0),E({status:"scanning",progress:0,message:"Initiating scan...",startTime:Date.now()});try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/cell_scan.sh",{headers:{"Cache-Control":"no-cache, no-store"}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let s=await e.json();if("running"===s.status||"success"===s.status)E(e=>({...e,progress:10,message:"Scan in progress..."})),Z(),setTimeout(U,2e3);else throw Error(s.message||"Failed to start scan")}catch(s){console.error("Scan error:",s),e({title:"Error",description:s instanceof Error?s.message:"Failed to start cell scan",variant:"destructive"}),E({status:"idle",progress:0,message:""})}finally{I(!1)}}},[H.status,R,U,Z]),$=(0,n.useCallback)(e=>e.reduce((e,s)=>{let a="".concat(s.mcc).concat(s.mnc);if(!e[a]){let t=P(s.mcc,s.mnc);e[a]={cells:[],operatorInfo:t}}return e[a].cells.push(s),e},{}),[P]),Q=(0,n.useCallback)(e=>[...e].sort((e,s)=>e.type!==s.type?"LTE"===e.type?-1:1:s.rsrp-e.rsrp),[]),X=(0,n.useCallback)(e=>e>=-65?(0,t.jsx)(j.z_q,{className:"text-xl text-green-500"}):e>=-75?(0,t.jsx)(j.sRp,{className:"text-xl text-green-400"}):e>=-85?(0,t.jsx)(j.ztD,{className:"text-xl text-yellow-500"}):e>=-95?(0,t.jsx)(j.G7Q,{className:"text-xl text-yellow-600"}):(0,t.jsx)(j.NJ4,{className:"text-xl text-red-500"}),[]);(0,n.useEffect)(()=>{G(),M()},[G,M]);let V=(0,n.useCallback)(()=>{a(null),o(null),E({status:"idle",progress:0,message:""})},[]),J=(0,n.useCallback)(()=>{if(!(null==s?void 0:s.output))return;let e=new Blob([["Type,MCC,MNC,Frequency,PCI,RSRP,RSRQ,Band,Cell ID,TAC",...z(s.output).map(e=>"".concat(e.type,",").concat(e.mcc,",").concat(e.mnc,",").concat(e.freq,",").concat(e.pci,",").concat(e.rsrp,",").concat(e.rsrq,",").concat(e.band,",").concat(e.cellId,",").concat(e.tac))].join("\n")],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(e),a.setAttribute("download","cell_scan_".concat(new Date().toISOString(),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},[s,z]),K=(0,n.useCallback)((e,s,a)=>a?"".concat(e).concat(s," - ").concat(a.brand," by ").concat(a.operator):"".concat(e).concat(s),[]),Y=(null==s?void 0:s.status)==="success"&&s.output?$(z(s.output)):{},ee=(0,n.useCallback)(async()=>{if(!R){I(!0),q(null);try{let e=await fetch("/cgi-bin/quecmanager/experimental/cell_scanner/network_info.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();if(console.log("Neighbor cell data:",t),"success"===t.status&&t.mode){var s,a;(null===(s=t.data)||void 0===s?void 0:s.neighborCells)||(null===(a=t.data)||void 0===a?void 0:a.meas)?q(t):t.raw_data&&q({status:t.status,timestamp:t.timestamp,mode:t.mode,data:{neighborCells:t.raw_data.neighborCells,meas:t.raw_data.meas}})}else q(t)}catch(s){console.error("Failed to fetch neighbor cells",s),e({title:"Error",description:"Failed to scan neighbor cells. Please try again.",variant:"destructive"})}finally{I(!1)}}},[R]),es=(0,n.useCallback)(()=>{q(null)},[]);return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Full Network Cell Scan"}),(0,t.jsxs)(r.BT,{children:["Scan all available network cells, including those from other network providers. Current network mode will affect the results and you may be disconnected during the scan.",d&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",d]})]})]}),(0,t.jsx)(r.Wu,{children:(0,t.jsxs)(v.F,{className:"h-96",children:[!s&&"idle"===H.status&&(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("p",{className:"text-gray-500 text-center",children:"Click the button below to start scanning the network..."})}),"scanning"===H.status&&(0,t.jsxs)("div",{className:"flex flex-col space-y-2 items-center justify-center h-full w-full",children:[(0,t.jsx)(u,{value:H.progress,className:"w-full"}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 text-center",children:H.message})})]}),(0,t.jsx)("div",{className:"grid gap-4",children:Object.entries(Y).map(e=>{let[s,{cells:a,operatorInfo:n}]=e;return(0,t.jsxs)(r.Zp,{className:"p-4 grid gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(g.E,{children:K(a[0].mcc,a[0].mnc,n)})}),(0,t.jsxs)(l.XI,{children:[(0,t.jsx)(l.A0,{children:(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nd,{children:"Type"}),(0,t.jsx)(l.nd,{children:"E/ARFCN"}),(0,t.jsx)(l.nd,{children:"PCI"}),(0,t.jsx)(l.nd,{children:"Band"}),(0,t.jsx)(l.nd,{children:"Bandwidth"}),(0,t.jsx)(l.nd,{children:"Cell ID"}),(0,t.jsx)(l.nd,{children:"TAC"}),(0,t.jsx)(l.nd,{children:"Signal"})]})}),(0,t.jsx)(l.BF,{children:Q(a).map((e,s)=>(0,t.jsxs)(l.Hj,{children:[(0,t.jsx)(l.nA,{children:e.type}),(0,t.jsx)(l.nA,{children:e.freq}),(0,t.jsx)(l.nA,{children:e.pci}),(0,t.jsx)(l.nA,{children:e.band}),(0,t.jsx)(l.nA,{children:"LTE"===e.type?e.bandwidthMHz:"-"}),(0,t.jsx)(l.nA,{children:e.cellId}),(0,t.jsx)(l.nA,{children:e.tac}),(0,t.jsx)(l.nA,{children:(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:X(e.rsrp)}),(0,t.jsx)(c.ZI,{children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRP"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:["RSRQ"," ",(0,t.jsxs)("span",{className:"font-medium",children:[e.rsrq," dB"]})]})]})})]})})})]},"".concat(e.cellId,"-").concat(s)))})]})]},s)})})]})}),(0,t.jsx)(r.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(null==S?void 0:S.status)==="active"?(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{disabled:!0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:"Please disable Quecwatch first before proceeding."})]})}):(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.m_,{children:[(0,t.jsx)(c.k$,{children:(0,t.jsx)(i.$,{onClick:W,disabled:"scanning"===H.status||R||T>0,children:"scanning"===H.status?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning Network..."})]}):s?(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Run Cell Scan Again"})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(x.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Cell Scan"})]})})}),(0,t.jsx)(c.ZI,{children:T>0?(0,t.jsxs)("span",{children:["Please wait ",Math.ceil(T/1e3)," ","seconds before scanning again"]}):(0,t.jsx)("span",{children:"Start a new network scan"})})]})}),(null==s?void 0:s.status)==="success"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.$,{variant:"secondary",onClick:J,disabled:"scanning"===H.status,children:[(0,t.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Export to CSV"]}),(0,t.jsxs)(i.$,{variant:"destructive",onClick:V,disabled:"scanning"===H.status,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})]})})]}),(0,t.jsxs)(r.Zp,{children:[(0,t.jsxs)(r.aR,{children:[(0,t.jsx)(r.ZB,{children:"Neighbor Cell Scan"}),(0,t.jsxs)(r.BT,{children:["Scan neighbor cells of the current network provider. This provides detailed information about cells in your immediate vicinity that your device can connect to.",(null==A?void 0:A.timestamp)&&(0,t.jsxs)("div",{className:"mt-1 text-sm text-muted-foreground",children:["Last scan: ",A.timestamp]})]})]}),(0,t.jsx)(r.Wu,{children:(0,t.jsx)(N,{neighborCells:A})}),(0,t.jsx)(r.wL,{className:"border-t py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)(i.$,{onClick:ee,disabled:R||(null==S?void 0:S.status)==="active",children:R?(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)(m.A,{className:"animate-spin w-4 h-4"}),(0,t.jsx)("span",{children:"Scanning..."})]}):(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(y.$p$,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Start Neighbor Scan"})]})}),(null==A?void 0:A.status)==="success"&&(0,t.jsxs)(i.$,{variant:"destructive",onClick:es,disabled:R,children:[(0,t.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Clear Results"]})]})})]}),(0,t.jsx)(D,{scanResult:s,isLoading:"scanning"===H.status,mccMncList:k})]})}},45934:(e,s,a)=>{"use strict";a.d(s,{E:()=>c});var t=a(20475);a(20107);var n=a(29395),r=a(22250);let l=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function c(e){let{className:s,variant:a,...n}=e;return(0,t.jsx)("div",{className:(0,r.cn)(l({variant:a}),s),...n})}},42541:(e,s,a)=>{"use strict";a.d(s,{$:()=>d,r:()=>i});var t=a(20475),n=a(20107),r=a(61837),l=a(29395),c=a(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:a,variant:n,size:l,asChild:d=!1,...o}=e,u=d?r.DX:"button";return(0,t.jsx)(u,{className:(0,c.cn)(i({variant:n,size:l,className:a})),ref:s,...o})});d.displayName="Button"},72167:(e,s,a)=>{"use strict";a.d(s,{BT:()=>d,Wu:()=>o,ZB:()=>i,Zp:()=>l,aR:()=>c,wL:()=>u});var t=a(20475),n=a(20107),r=a(22250);let l=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...n})});l.displayName="Card";let c=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",a),...n})});c.displayName="CardHeader";let i=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",a),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",a),...n})});d.displayName="CardDescription";let o=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",a),...n})});o.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",a),...n})});u.displayName="CardFooter"},36824:(e,s,a)=>{"use strict";a.d(s,{$:()=>i,F:()=>c});var t=a(20475),n=a(20107),r=a(89679),l=a(22250);let c=n.forwardRef((e,s)=>{let{className:a,children:n,...c}=e;return(0,t.jsxs)(r.bL,{ref:s,className:(0,l.cn)("relative overflow-hidden",a),...c,children:[(0,t.jsx)(r.LM,{className:"h-full w-full rounded-[inherit]",children:n}),(0,t.jsx)(i,{}),(0,t.jsx)(r.OK,{})]})});c.displayName=r.bL.displayName;let i=n.forwardRef((e,s)=>{let{className:a,orientation:n="vertical",...c}=e;return(0,t.jsx)(r.VM,{ref:s,orientation:n,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...c,children:(0,t.jsx)(r.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=r.VM.displayName},51303:(e,s,a)=>{"use strict";a.d(s,{A0:()=>c,BF:()=>i,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>o,r6:()=>m});var t=a(20475),n=a(20107),r=a(22250);let l=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,r.cn)("w-full caption-bottom text-sm",a),...n})})});l.displayName="Table";let c=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("thead",{ref:s,className:(0,r.cn)("[&_tr]:border-b",a),...n})});c.displayName="TableHeader";let i=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,r.cn)("[&_tr:last-child]:border-0",a),...n})});i.displayName="TableBody",n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,r.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...n})}).displayName="TableFooter";let d=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("tr",{ref:s,className:(0,r.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...n})});d.displayName="TableRow";let o=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("th",{ref:s,className:(0,r.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...n})});o.displayName="TableHead";let u=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("td",{ref:s,className:(0,r.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...n})});u.displayName="TableCell";let m=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)("caption",{ref:s,className:(0,r.cn)("mt-4 text-sm text-muted-foreground",a),...n})});m.displayName="TableCaption"},37921:(e,s,a)=>{"use strict";a.d(s,{Xi:()=>d,av:()=>o,j7:()=>i,tU:()=>c});var t=a(20475),n=a(20107),r=a(93677),l=a(22250);let c=r.bL,i=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(r.B8,{ref:s,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...n})});i.displayName=r.B8.displayName;let d=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(r.l9,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...n})});d.displayName=r.l9.displayName;let o=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(r.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...n})});o.displayName=r.UC.displayName},85014:(e,s,a)=>{"use strict";a.d(s,{TooltipProvider:()=>c,ZI:()=>o,k$:()=>d,m_:()=>i});var t=a(20475),n=a(20107),r=a(43048),l=a(22250);let c=r.Kq,i=r.bL,d=r.l9,o=n.forwardRef((e,s)=>{let{className:a,sideOffset:n=4,...c}=e;return(0,t.jsx)(r.UC,{ref:s,sideOffset:n,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...c})});o.displayName=r.UC.displayName},32857:(e,s,a)=>{"use strict";a.d(s,{dj:()=>m,oR:()=>u});var t=a(20107);let n=0,r=new Map,l=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},c=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=s;return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},i=[],d={toasts:[]};function o(e){d=c(d,e),i.forEach(e=>{e(d)})}function u(e){let{...s}=e,a=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>o({type:"DISMISS_TOAST",toastId:a});return o({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,s]=t.useState(d);return t.useEffect(()=>(i.push(s),()=>{let e=i.indexOf(s);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,a)=>{"use strict";a.d(s,{cn:()=>r});var t=a(64901),n=a(868);function r(){for(var e=arguments.length,s=Array(e),a=0;a{var s=s=>e(e.s=s);e.O(0,[9980,2101,7780,8885,7563,9679,3048,3453,2394,191,6035,7358],()=>s(41126)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-267d35951f7f764c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-267d35951f7f764c.js new file mode 100644 index 0000000..cbbc28b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-267d35951f7f764c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{33504:(e,n,r)=>{Promise.resolve().then(r.bind(r,14332))},14332:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>g});var a=r(20475),t=r(20107),l=r(72167),s=r(64219),i=r(42541),d=r(49153),o=r(37921),c=r(51873),u=r(58212);let f=e=>{if(window.localStorage)try{let n=localStorage.getItem(e);console.log("LocalStorage value for ".concat(e,":"),n?JSON.parse(n):"null")}catch(e){console.error("Error reading from localStorage:",e)}else console.log("localStorage not available")},g=()=>{let[e,n]=(0,t.useState)(""),[r,g]=(0,t.useState)(null),[m,p]=(0,t.useState)(""),[h,x]=(0,t.useState)("auto"),[y,w]=(0,t.useState)([]),b=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:4,name:"AWS-1",dlLow:2110,dlHigh:2155,ulLow:1710,ulHigh:1755,earfcnOffset:1950,earfcnRange:[1950,2399],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:12,name:"700 a",dlLow:729,dlHigh:746,ulLow:699,ulHigh:716,earfcnOffset:5010,earfcnRange:[5010,5179],spacing:.1,duplexType:"FDD"},{band:13,name:"700 c",dlLow:746,dlHigh:756,ulLow:777,ulHigh:787,earfcnOffset:5180,earfcnRange:[5180,5279],spacing:.1,duplexType:"FDD"},{band:14,name:"700 PS",dlLow:758,dlHigh:768,ulLow:788,ulHigh:798,earfcnOffset:5280,earfcnRange:[5280,5379],spacing:.1,duplexType:"FDD"},{band:17,name:"700 b",dlLow:734,dlHigh:746,ulLow:704,ulHigh:716,earfcnOffset:5730,earfcnRange:[5730,5849],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:25,name:"1900+",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,earfcnOffset:8040,earfcnRange:[8040,8689],spacing:.1,duplexType:"FDD"},{band:26,name:"850+",dlLow:859,dlHigh:894,ulLow:814,ulHigh:849,earfcnOffset:8690,earfcnRange:[8690,9039],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,earfcnOffset:66436,earfcnRange:[66436,67335],spacing:.1,duplexType:"FDD"},{band:71,name:"600",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,earfcnOffset:68586,earfcnRange:[68586,68935],spacing:.1,duplexType:"FDD"},{band:38,name:"TD 2600",dlLow:2570,dlHigh:2620,ulLow:2570,ulHigh:2620,earfcnOffset:37750,earfcnRange:[37750,38249],spacing:.1,duplexType:"TDD"},{band:40,name:"TD 2300",dlLow:2300,dlHigh:2400,ulLow:2300,ulHigh:2400,earfcnOffset:38650,earfcnRange:[38650,39649],spacing:.1,duplexType:"TDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"},{band:48,name:"CBRS",dlLow:3550,dlHigh:3700,ulLow:3550,ulHigh:3700,earfcnOffset:55240,earfcnRange:[55240,56739],spacing:.1,duplexType:"TDD"}],v=[{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,nrarfcnOffset:173800,nrarfcnRange:[173800,178800],duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,nrarfcnOffset:185e3,nrarfcnRange:[185e3,192e3],duplexType:"FDD"},{band:12,name:"700 a",dlLow:729,dlHigh:746,ulLow:699,ulHigh:716,nrarfcnOffset:145800,nrarfcnRange:[145800,149200],duplexType:"FDD"},{band:14,name:"700 PS",dlLow:758,dlHigh:768,ulLow:788,ulHigh:798,nrarfcnOffset:151600,nrarfcnRange:[151600,153600],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:71,name:"600",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,nrarfcnOffset:123400,nrarfcnRange:[123400,130400],duplexType:"FDD"},{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,nrarfcnOffset:386e3,nrarfcnRange:[386e3,398e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:25,name:"1900+",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,nrarfcnOffset:386e3,nrarfcnRange:[386e3,399e3],duplexType:"FDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,nrarfcnOffset:422e3,nrarfcnRange:[422e3,44e4],duplexType:"FDD"},{band:70,name:"AWS-4",dlLow:1995,dlHigh:2020,ulLow:1695,ulHigh:1710,nrarfcnOffset:399e3,nrarfcnRange:[399e3,404e3],duplexType:"FDD"},{band:34,name:"2000 TDD",dlLow:2010,dlHigh:2025,ulLow:2010,ulHigh:2025,nrarfcnOffset:402e3,nrarfcnRange:[402e3,405e3],duplexType:"TDD"},{band:38,name:"TD 2600",dlLow:2570,dlHigh:2620,ulLow:2570,ulHigh:2620,nrarfcnOffset:514e3,nrarfcnRange:[514e3,524e3],duplexType:"TDD"},{band:39,name:"IMT 1900 TDD",dlLow:1880,dlHigh:1920,ulLow:1880,ulHigh:1920,nrarfcnOffset:376e3,nrarfcnRange:[376e3,384e3],duplexType:"TDD"},{band:40,name:"TD 2300",dlLow:2300,dlHigh:2400,ulLow:2300,ulHigh:2400,nrarfcnOffset:46e4,nrarfcnRange:[46e4,48e4],duplexType:"TDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:48,name:"CBRS",dlLow:3550,dlHigh:3700,ulLow:3550,ulHigh:3700,nrarfcnOffset:636667,nrarfcnRange:[636667,646666],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"},{band:79,name:"4.5GHz",dlLow:4400,dlHigh:5e3,ulLow:4400,ulHigh:5e3,nrarfcnOffset:693334,nrarfcnRange:[693334,733333],duplexType:"TDD"},{band:90,name:"TD 2600",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,538e3],duplexType:"TDD"},{band:257,name:"28 GHz",dlLow:26500,dlHigh:29500,ulLow:26500,ulHigh:29500,nrarfcnOffset:2054166,nrarfcnRange:[2054166,2104165],duplexType:"TDD"},{band:258,name:"26 GHz",dlLow:24250,dlHigh:27500,ulLow:24250,ulHigh:27500,nrarfcnOffset:2016667,nrarfcnRange:[2016667,2070832],duplexType:"TDD"},{band:259,name:"41 GHz",dlLow:39500,dlHigh:43500,ulLow:39500,ulHigh:43500,nrarfcnOffset:2270832,nrarfcnRange:[2270832,2337499],duplexType:"TDD"},{band:260,name:"39 GHz",dlLow:37e3,dlHigh:4e4,ulLow:37e3,ulHigh:4e4,nrarfcnOffset:2229166,nrarfcnRange:[2229166,2279165],duplexType:"TDD"},{band:261,name:"28 GHz",dlLow:27500,dlHigh:28350,ulLow:27500,ulHigh:28350,nrarfcnOffset:2070833,nrarfcnRange:[2070833,2084999],duplexType:"TDD"}],N=e=>{let n=[];for(let r of b)if(e>=r.earfcnRange[0]&&e<=r.earfcnRange[1]){let a,t;let l=r.dlLow+(e-r.earfcnOffset)*r.spacing;if("FDD"===r.duplexType){let n=e-r.earfcnOffset;a=e+18e3,t=r.ulLow+n*r.spacing}else a=e,t=l;n.push({...r,dlFrequency:l.toFixed(2),ulFrequency:t.toFixed(2),ulEarfcn:a})}return 0===n.length?null:{networkType:"LTE",earfcn:e,frequency:n[0].dlFrequency,possibleBands:n}},D=e=>{let n;if(e>=0&&e<=599999)n=0+(e-0)*.005;else if(e>=6e5&&e<=2016666)n=3e3+(e-6e5)*.015;else{if(!(e>=2016667)||!(e<=3279165))return null;n=24250.08+(e-2016667)*.06}let r=[];for(let n of v)e>=n.nrarfcnRange[0]&&e<=n.nrarfcnRange[1]&&r.push(n);return 0===r.length?null:{networkType:"NR",earfcn:e,frequency:n.toFixed(2),possibleBands:r}},T=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=parseInt(e);return isNaN(r)?{error:"Please enter a valid number"}:"lte"===n||null===n&&r>=0&&r<=68935?N(r):"nr"===n||null===n&&r>=123400?D(r):null};(0,t.useEffect)(()=>{if(window.localStorage)try{let e=localStorage.getItem("earfcnHistory");if(f("earfcnHistory"),e)try{let n=JSON.parse(e);console.log("Parsed history:",n),w(n)}catch(e){console.error("Error parsing history JSON:",e),w([])}}catch(e){console.error("Error accessing localStorage:",e),w([])}},[]),(0,t.useEffect)(()=>{if(console.log("History changed, saving to localStorage:",y),window.localStorage)try{if(y.length>0){let e=JSON.stringify(y);console.log("Serialized history:",e),localStorage.setItem("earfcnHistory",e)}else localStorage.removeItem("earfcnHistory");f("earfcnHistory")}catch(e){console.error("Error saving history to localStorage:",e)}},[y]);let H=e=>{w(n=>n.filter(n=>n.id!==e))};return(0,a.jsxs)(l.Zp,{className:"w-full",children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"E/ARFCN Calculator"}),(0,a.jsx)(l.BT,{children:"Calculate frequency information from E/ARFCN for LTE and NR-ARFCN for 5G"})]}),(0,a.jsxs)(l.Wu,{children:[(0,a.jsx)(o.tU,{defaultValue:"auto",value:h,onValueChange:e=>x(e),className:"mb-6",children:(0,a.jsxs)(o.j7,{className:"grid w-full grid-cols-3",children:[(0,a.jsx)(o.Xi,{value:"auto",children:"Auto-Detect"}),(0,a.jsx)(o.Xi,{value:"lte",children:"LTE (4G)"}),(0,a.jsx)(o.Xi,{value:"nr",children:"NR (5G)"})]})}),(0,a.jsxs)("div",{className:"flex space-x-4 mb-6",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(d.J,{htmlFor:"earfcn",className:"mb-2 block",children:"lte"===h?"E-ARFCN":"nr"===h?"NR-ARFCN":"E/ARFCN Value"}),(0,a.jsx)(s.p,{id:"earfcn",type:"number",placeholder:"Enter channel number",value:e,onChange:e=>n(e.target.value),className:"w-full"})]}),(0,a.jsx)("div",{className:"flex items-end",children:(0,a.jsx)(i.$,{onClick:()=>{if(!e){p("Please enter an E/ARFCN value"),g(null);return}try{let n=T(e,"auto"===h?null:h);if(!n||"error"in n)n&&"error"in n?p(n.error):p("Could not identify band for this E/ARFCN value"),g(null);else{g(n),p("");let e={...n,timestamp:new Date().toISOString(),id:Date.now().toString()};w(n=>[e,...n.slice(0,9)])}}catch(n){let e=n instanceof Error?n.message:"Unknown error";console.error("Calculation error:",n),p("Calculation error: "+e),g(null)}},children:"Calculate"})})]}),m&&(0,a.jsx)("div",{className:"p-3 mb-6 bg-red-50 border border-red-200 text-red-700 rounded",children:m}),r&&(0,a.jsxs)("div",{className:"p-4 border rounded-md bg-gray-50 dark:bg-gray-800",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold mb-3",children:"Result"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4 mb-8",children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Network Type"}),(0,a.jsx)("div",{className:"font-medium",children:r.networkType}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"LTE"===r.networkType?"EARFCN":"NR-ARFCN"}),(0,a.jsx)("div",{className:"font-medium",children:r.earfcn}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Frequency"}),(0,a.jsxs)("div",{className:"font-medium",children:[r.frequency," MHz"]})]}),(0,a.jsx)("h4",{className:"font-semibold mb-2",children:"Possible Operating Bands"}),(0,a.jsx)("div",{className:"space-y-4",children:r.possibleBands.map((e,n)=>(0,a.jsxs)("div",{className:"border-t pt-2 first:border-t-0 first:pt-0",children:[(0,a.jsxs)("div",{className:"font-semibold",children:["NR"===r.networkType?"n".concat(e.band):"Band ".concat(e.band)," ","(",e.name,")"]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4 mt-1 text-sm",children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Duplex Mode"}),(0,a.jsx)("div",{className:"font-semibold",children:e.duplexType}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Downlink Range"}),(0,a.jsxs)("div",{className:"font-semibold",children:[e.dlLow," - ",e.dlHigh," MHz"]}),"FDD"===e.duplexType&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink Range"}),(0,a.jsxs)("div",{className:"font-semibold",children:[e.ulLow," - ",e.ulHigh," MHz"]})]}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"LTE"===r.networkType?"EARFCN Range":"NR-ARFCN Range"}),(0,a.jsx)("div",{className:"font-semibold",children:"LTE"===r.networkType?"".concat(e.earfcnRange[0]," - ").concat(e.earfcnRange[1]):"".concat(e.nrarfcnRange[0]," - ").concat(e.nrarfcnRange[1])}),"LTE"===r.networkType&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Downlink Frequency"}),(0,a.jsxs)("div",{className:"font-semibold",children:[e.dlFrequency," MHz"]}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink Frequency"}),(0,a.jsxs)("div",{className:"font-semibold",children:[e.ulFrequency," MHz"]}),"FDD"===e.duplexType&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink EARFCN"}),(0,a.jsx)("div",{className:"font-semibold",children:e.ulEarfcn})]})]})]})]},n))}),(0,a.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Calculation method:"," ","NR"===r.networkType?"3GPP TS 38.104 Section 5.4.2.1":"3GPP TS 36.101 Section 5.7"]})]}),(0,a.jsxs)("div",{className:"mt-8",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Calculation History"}),y.length>0&&(0,a.jsxs)(i.$,{variant:"outline",size:"sm",onClick:()=>{w([])},className:"h-8",children:[(0,a.jsx)(c.A,{className:"h-4 w-4 mr-1"}),"Clear All"]})]}),0===y.length?(0,a.jsx)("div",{className:"text-center p-6 border rounded-md text-gray-500 dark:text-gray-400",children:"No calculation history yet. Enter an E/ARFCN value and click Calculate."}):(0,a.jsx)("div",{className:"space-y-2",children:y.map(e=>(0,a.jsxs)("div",{className:"p-3 border rounded-md flex justify-between items-start bg-gray-50 dark:bg-gray-800",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"font-semibold text-lg",children:e.earfcn}),(0,a.jsx)("span",{className:"mx-2 text-gray-400",children:"•"}),(0,a.jsxs)("span",{className:"text-sm",children:[e.frequency," MHz"]}),(0,a.jsx)("span",{className:"mx-2 text-gray-400",children:"•"}),(0,a.jsx)("span",{className:"text-sm",children:e.networkType})]}),e.possibleBands&&(0,a.jsxs)("div",{className:"text-sm text-gray-600 dark:text-gray-400 font-medium mt-1",children:["Bands:"," ",e.possibleBands.map(n=>"NR"===e.networkType?"n".concat(n.band):"".concat(n.band)).join(", ")]}),(0,a.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:e.timestamp?new Date(e.timestamp).toLocaleString():"No timestamp"})]}),(0,a.jsx)(i.$,{variant:"ghost",size:"sm",onClick:()=>H(e.id),className:"text-gray-500 h-8 w-8 p-0",children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},e.id))})]})]})]})}},42541:(e,n,r)=>{"use strict";r.d(n,{$:()=>o,r:()=>d});var a=r(20475),t=r(20107),l=r(61837),s=r(29395),i=r(22250);let d=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=t.forwardRef((e,n)=>{let{className:r,variant:t,size:s,asChild:o=!1,...c}=e,u=o?l.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(d({variant:t,size:s,className:r})),ref:n,...c})});o.displayName="Button"},72167:(e,n,r)=>{"use strict";r.d(n,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>s,aR:()=>i,wL:()=>u});var a=r(20475),t=r(20107),l=r(22250);let s=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...t})});s.displayName="Card";let i=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",r),...t})});i.displayName="CardHeader";let d=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("h3",{ref:n,className:(0,l.cn)("font-semibold leading-none tracking-tight",r),...t})});d.displayName="CardTitle";let o=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("p",{ref:n,className:(0,l.cn)("text-sm text-muted-foreground",r),...t})});o.displayName="CardDescription";let c=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("p-6 pt-0",r),...t})});c.displayName="CardContent";let u=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("flex items-center p-6 pt-0",r),...t})});u.displayName="CardFooter"},64219:(e,n,r)=>{"use strict";r.d(n,{p:()=>s});var a=r(20475),t=r(20107),l=r(22250);let s=t.forwardRef((e,n)=>{let{className:r,type:t,...s}=e;return(0,a.jsx)("input",{type:t,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:n,...s})});s.displayName="Input"},49153:(e,n,r)=>{"use strict";r.d(n,{J:()=>o});var a=r(20475),t=r(20107),l=r(21840),s=r(29395),i=r(22250);let d=(0,s.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)(l.b,{ref:n,className:(0,i.cn)(d(),r),...t})});o.displayName=l.b.displayName},37921:(e,n,r)=>{"use strict";r.d(n,{Xi:()=>o,av:()=>c,j7:()=>d,tU:()=>i});var a=r(20475),t=r(20107),l=r(93677),s=r(22250);let i=l.bL,d=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)(l.B8,{ref:n,className:(0,s.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",r),...t})});d.displayName=l.B8.displayName;let o=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)(l.l9,{ref:n,className:(0,s.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",r),...t})});o.displayName=l.l9.displayName;let c=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)(l.UC,{ref:n,className:(0,s.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...t})});c.displayName=l.UC.displayName},22250:(e,n,r)=>{"use strict";r.d(n,{cn:()=>l});var a=r(64901),t=r(868);function l(){for(var e=arguments.length,n=Array(e),r=0;r{"use strict";r.d(n,{A:()=>a});let a=(0,r(39997).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},94521:(e,n,r)=>{"use strict";function a(e,n,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a.defaultPrevented)return n?.(a)}}r.d(n,{m:()=>a})},45170:(e,n,r)=>{"use strict";r.d(n,{A:()=>s,q:()=>l});var a=r(20107),t=r(20475);function l(e,n){let r=a.createContext(n),l=e=>{let{children:n,...l}=e,s=a.useMemo(()=>l,Object.values(l));return(0,t.jsx)(r.Provider,{value:s,children:n})};return l.displayName=e+"Provider",[l,function(t){let l=a.useContext(r);if(l)return l;if(void 0!==n)return n;throw Error(`\`${t}\` must be used within \`${e}\``)}]}function s(e,n=[]){let r=[],l=()=>{let n=r.map(e=>a.createContext(e));return function(r){let t=r?.[e]||n;return a.useMemo(()=>({[`__scope${e}`]:{...r,[e]:t}}),[r,t])}};return l.scopeName=e,[function(n,l){let s=a.createContext(l),i=r.length;r=[...r,l];let d=n=>{let{scope:r,children:l,...d}=n,o=r?.[e]?.[i]||s,c=a.useMemo(()=>d,Object.values(d));return(0,t.jsx)(o.Provider,{value:c,children:l})};return d.displayName=n+"Provider",[d,function(r,t){let d=t?.[e]?.[i]||s,o=a.useContext(d);if(o)return o;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let t=r.reduce((n,{useScope:r,scopeName:a})=>{let t=r(e)[`__scope${a}`];return{...n,...t}},{});return a.useMemo(()=>({[`__scope${n.scopeName}`]:t}),[t])}};return r.scopeName=n.scopeName,r}(l,...n)]}},76056:(e,n,r)=>{"use strict";r.d(n,{jH:()=>l});var a=r(20107);r(20475);var t=a.createContext(void 0);function l(e){let n=a.useContext(t);return e||n||"ltr"}},72763:(e,n,r)=>{"use strict";r.d(n,{B:()=>d});var a,t=r(20107),l=r(54122),s=(a||(a=r.t(t,2)))["useId".toString()]||(()=>void 0),i=0;function d(e){let[n,r]=t.useState(s());return(0,l.N)(()=>{e||r(e=>e??String(i++))},[e]),e||(n?`radix-${n}`:"")}},21840:(e,n,r)=>{"use strict";r.d(n,{b:()=>i});var a=r(20107),t=r(34544),l=r(20475),s=a.forwardRef((e,n)=>(0,l.jsx)(t.sG.label,{...e,ref:n,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));s.displayName="Label";var i=s},54245:(e,n,r)=>{"use strict";r.d(n,{C:()=>s});var a=r(20107),t=r(64236),l=r(54122),s=e=>{let{present:n,children:r}=e,s=function(e){var n,r;let[t,s]=a.useState(),d=a.useRef({}),o=a.useRef(e),c=a.useRef("none"),[u,f]=(n=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,n)=>{let a=r[e][n];return null!=a?a:e},n));return a.useEffect(()=>{let e=i(d.current);c.current="mounted"===u?e:"none"},[u]),(0,l.N)(()=>{let n=d.current,r=o.current;if(r!==e){let a=c.current,t=i(n);e?f("MOUNT"):"none"===t||(null==n?void 0:n.display)==="none"?f("UNMOUNT"):r&&a!==t?f("ANIMATION_OUT"):f("UNMOUNT"),o.current=e}},[e,f]),(0,l.N)(()=>{if(t){var e;let n;let r=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,a=e=>{let a=i(d.current).includes(e.animationName);if(e.target===t&&a&&(f("ANIMATION_END"),!o.current)){let e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},l=e=>{e.target===t&&(c.current=i(d.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{r.clearTimeout(n),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback(e=>{e&&(d.current=getComputedStyle(e)),s(e)},[])}}(n),d="function"==typeof r?r({present:s.isPresent}):a.Children.only(r),o=(0,t.s)(s.ref,function(e){var n,r;let a=null===(n=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===n?void 0:n.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(t=(a=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?e.props.ref:e.props.ref||e.ref}(d));return"function"==typeof r||s.isPresent?a.cloneElement(d,{ref:o}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},34544:(e,n,r)=>{"use strict";r.d(n,{hO:()=>d,sG:()=>i});var a=r(20107),t=r(25642),l=r(61837),s=r(20475),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let r=a.forwardRef((e,r)=>{let{asChild:a,...t}=e,i=a?l.DX:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i,{...t,ref:r})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function d(e,n){e&&t.flushSync(()=>e.dispatchEvent(n))}},46774:(e,n,r)=>{"use strict";r.d(n,{c:()=>t});var a=r(20107);function t(e){let n=a.useRef(e);return a.useEffect(()=>{n.current=e}),a.useMemo(()=>(...e)=>n.current?.(...e),[])}},13061:(e,n,r)=>{"use strict";r.d(n,{i:()=>l});var a=r(20107),t=r(46774);function l({prop:e,defaultProp:n,onChange:r=()=>{}}){let[l,s]=function({defaultProp:e,onChange:n}){let r=a.useState(e),[l]=r,s=a.useRef(l),i=(0,t.c)(n);return a.useEffect(()=>{s.current!==l&&(i(l),s.current=l)},[l,s,i]),r}({defaultProp:n,onChange:r}),i=void 0!==e,d=i?e:l,o=(0,t.c)(r);return[d,a.useCallback(n=>{if(i){let r="function"==typeof n?n(e):n;r!==e&&o(r)}else s(n)},[i,e,s,o])]}},54122:(e,n,r)=>{"use strict";r.d(n,{N:()=>t});var a=r(20107),t=globalThis?.document?a.useLayoutEffect:()=>{}},29395:(e,n,r)=>{"use strict";r.d(n,{F:()=>l});let a=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,t=function(){for(var e,n,r=0,a="";rr=>{var l;if((null==n?void 0:n.variants)==null)return t(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:i}=n,d=Object.keys(s).map(e=>{let n=null==r?void 0:r[e],t=null==i?void 0:i[e];if(null===n)return null;let l=a(n)||a(t);return s[e][l]}),o=r&&Object.entries(r).reduce((e,n)=>{let[r,a]=n;return void 0===a||(e[r]=a),e},{});return t(e,d,null==n?void 0:null===(l=n.compoundVariants)||void 0===l?void 0:l.reduce((e,n)=>{let{class:r,className:a,...t}=n;return Object.entries(t).every(e=>{let[n,r]=e;return Array.isArray(r)?r.includes({...i,...o}[n]):({...i,...o})[n]===r})?[...e,r,a]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},e=>{var n=n=>e(e.s=n);e.O(0,[7780,3453,191,6035,7358],()=>n(33504)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-76fc91defa16e132.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-76fc91defa16e132.js new file mode 100644 index 0000000..588c6a5 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-76fc91defa16e132.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{33504:(e,a,n)=>{Promise.resolve().then(n.bind(n,14332))},14332:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>g});var l=n(20475),r=n(20107),s=n(72167),d=n(64219),t=n(42541),i=n(49153),o=n(37921),c=n(51873),f=n(58212);let u=e=>{if(window.localStorage)try{let a=localStorage.getItem(e);console.log("LocalStorage value for ".concat(e,":"),a?JSON.parse(a):"null")}catch(e){console.error("Error reading from localStorage:",e)}else console.log("localStorage not available")},g=()=>{let[e,a]=(0,r.useState)(""),[n,g]=(0,r.useState)(null),[m,p]=(0,r.useState)(""),[h,x]=(0,r.useState)("auto"),[y,w]=(0,r.useState)([]),b=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:4,name:"AWS-1",dlLow:2110,dlHigh:2155,ulLow:1710,ulHigh:1755,earfcnOffset:1950,earfcnRange:[1950,2399],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:12,name:"700 a",dlLow:729,dlHigh:746,ulLow:699,ulHigh:716,earfcnOffset:5010,earfcnRange:[5010,5179],spacing:.1,duplexType:"FDD"},{band:13,name:"700 c",dlLow:746,dlHigh:756,ulLow:777,ulHigh:787,earfcnOffset:5180,earfcnRange:[5180,5279],spacing:.1,duplexType:"FDD"},{band:14,name:"700 PS",dlLow:758,dlHigh:768,ulLow:788,ulHigh:798,earfcnOffset:5280,earfcnRange:[5280,5379],spacing:.1,duplexType:"FDD"},{band:17,name:"700 b",dlLow:734,dlHigh:746,ulLow:704,ulHigh:716,earfcnOffset:5730,earfcnRange:[5730,5849],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:25,name:"1900+",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,earfcnOffset:8040,earfcnRange:[8040,8689],spacing:.1,duplexType:"FDD"},{band:26,name:"850+",dlLow:859,dlHigh:894,ulLow:814,ulHigh:849,earfcnOffset:8690,earfcnRange:[8690,9039],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,earfcnOffset:66436,earfcnRange:[66436,67335],spacing:.1,duplexType:"FDD"},{band:71,name:"600",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,earfcnOffset:68586,earfcnRange:[68586,68935],spacing:.1,duplexType:"FDD"},{band:38,name:"TD 2600",dlLow:2570,dlHigh:2620,ulLow:2570,ulHigh:2620,earfcnOffset:37750,earfcnRange:[37750,38249],spacing:.1,duplexType:"TDD"},{band:40,name:"TD 2300",dlLow:2300,dlHigh:2400,ulLow:2300,ulHigh:2400,earfcnOffset:38650,earfcnRange:[38650,39649],spacing:.1,duplexType:"TDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"},{band:48,name:"CBRS",dlLow:3550,dlHigh:3700,ulLow:3550,ulHigh:3700,earfcnOffset:55240,earfcnRange:[55240,56739],spacing:.1,duplexType:"TDD"}],D=[{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,nrarfcnOffset:173800,nrarfcnRange:[173800,178800],duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,nrarfcnOffset:185e3,nrarfcnRange:[185e3,192e3],duplexType:"FDD"},{band:12,name:"700 a",dlLow:729,dlHigh:746,ulLow:699,ulHigh:716,nrarfcnOffset:145800,nrarfcnRange:[145800,149200],duplexType:"FDD"},{band:14,name:"700 PS",dlLow:758,dlHigh:768,ulLow:788,ulHigh:798,nrarfcnOffset:151600,nrarfcnRange:[151600,153600],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:71,name:"600",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,nrarfcnOffset:123400,nrarfcnRange:[123400,130400],duplexType:"FDD"},{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,nrarfcnOffset:386e3,nrarfcnRange:[386e3,398e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:25,name:"1900+",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,nrarfcnOffset:386e3,nrarfcnRange:[386e3,399e3],duplexType:"FDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,nrarfcnOffset:422e3,nrarfcnRange:[422e3,44e4],duplexType:"FDD"},{band:70,name:"AWS-4",dlLow:1995,dlHigh:2020,ulLow:1695,ulHigh:1710,nrarfcnOffset:399e3,nrarfcnRange:[399e3,404e3],duplexType:"FDD"},{band:34,name:"2000 TDD",dlLow:2010,dlHigh:2025,ulLow:2010,ulHigh:2025,nrarfcnOffset:402e3,nrarfcnRange:[402e3,405e3],duplexType:"TDD"},{band:38,name:"TD 2600",dlLow:2570,dlHigh:2620,ulLow:2570,ulHigh:2620,nrarfcnOffset:514e3,nrarfcnRange:[514e3,524e3],duplexType:"TDD"},{band:39,name:"IMT 1900 TDD",dlLow:1880,dlHigh:1920,ulLow:1880,ulHigh:1920,nrarfcnOffset:376e3,nrarfcnRange:[376e3,384e3],duplexType:"TDD"},{band:40,name:"TD 2300",dlLow:2300,dlHigh:2400,ulLow:2300,ulHigh:2400,nrarfcnOffset:46e4,nrarfcnRange:[46e4,48e4],duplexType:"TDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:48,name:"CBRS",dlLow:3550,dlHigh:3700,ulLow:3550,ulHigh:3700,nrarfcnOffset:636667,nrarfcnRange:[636667,646666],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"},{band:79,name:"4.5GHz",dlLow:4400,dlHigh:5e3,ulLow:4400,ulHigh:5e3,nrarfcnOffset:693334,nrarfcnRange:[693334,733333],duplexType:"TDD"},{band:90,name:"TD 2600",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,538e3],duplexType:"TDD"},{band:257,name:"28 GHz",dlLow:26500,dlHigh:29500,ulLow:26500,ulHigh:29500,nrarfcnOffset:2054166,nrarfcnRange:[2054166,2104165],duplexType:"TDD"},{band:258,name:"26 GHz",dlLow:24250,dlHigh:27500,ulLow:24250,ulHigh:27500,nrarfcnOffset:2016667,nrarfcnRange:[2016667,2070832],duplexType:"TDD"},{band:259,name:"41 GHz",dlLow:39500,dlHigh:43500,ulLow:39500,ulHigh:43500,nrarfcnOffset:2270832,nrarfcnRange:[2270832,2337499],duplexType:"TDD"},{band:260,name:"39 GHz",dlLow:37e3,dlHigh:4e4,ulLow:37e3,ulHigh:4e4,nrarfcnOffset:2229166,nrarfcnRange:[2229166,2279165],duplexType:"TDD"},{band:261,name:"28 GHz",dlLow:27500,dlHigh:28350,ulLow:27500,ulHigh:28350,nrarfcnOffset:2070833,nrarfcnRange:[2070833,2084999],duplexType:"TDD"}],H=e=>{let a=[];for(let n of b)if(e>=n.earfcnRange[0]&&e<=n.earfcnRange[1]){let l,r;let s=n.dlLow+(e-n.earfcnOffset)*n.spacing;if("FDD"===n.duplexType){let a=e-n.earfcnOffset;l=e+18e3,r=n.ulLow+a*n.spacing}else l=e,r=s;a.push({...n,dlFrequency:s.toFixed(2),ulFrequency:r.toFixed(2),ulEarfcn:l})}return 0===a.length?null:{networkType:"LTE",earfcn:e,frequency:a[0].dlFrequency,possibleBands:a}},N=e=>{let a;if(e>=0&&e<=599999)a=0+(e-0)*.005;else if(e>=6e5&&e<=2016666)a=3e3+(e-6e5)*.015;else{if(!(e>=2016667)||!(e<=3279165))return null;a=24250.08+(e-2016667)*.06}let n=[];for(let a of D)e>=a.nrarfcnRange[0]&&e<=a.nrarfcnRange[1]&&n.push(a);return 0===n.length?null:{networkType:"NR",earfcn:e,frequency:a.toFixed(2),possibleBands:n}},L=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=parseInt(e);return isNaN(n)?{error:"Please enter a valid number"}:"lte"===a||null===a&&n>=0&&n<=68935?H(n):"nr"===a||null===a&&n>=123400?N(n):null};(0,r.useEffect)(()=>{if(window.localStorage)try{let e=localStorage.getItem("earfcnHistory");if(u("earfcnHistory"),e)try{let a=JSON.parse(e);console.log("Parsed history:",a),w(a)}catch(e){console.error("Error parsing history JSON:",e),w([])}}catch(e){console.error("Error accessing localStorage:",e),w([])}},[]),(0,r.useEffect)(()=>{if(console.log("History changed, saving to localStorage:",y),window.localStorage)try{if(y.length>0){let e=JSON.stringify(y);console.log("Serialized history:",e),localStorage.setItem("earfcnHistory",e)}else localStorage.removeItem("earfcnHistory");u("earfcnHistory")}catch(e){console.error("Error saving history to localStorage:",e)}},[y]);let v=e=>{w(a=>a.filter(a=>a.id!==e))};return(0,l.jsxs)(s.Zp,{className:"w-full",children:[(0,l.jsxs)(s.aR,{children:[(0,l.jsx)(s.ZB,{children:"E/ARFCN Calculator"}),(0,l.jsx)(s.BT,{children:"Calculate frequency information from E/ARFCN for LTE and NR-ARFCN for 5G"})]}),(0,l.jsxs)(s.Wu,{children:[(0,l.jsx)(o.tU,{defaultValue:"auto",value:h,onValueChange:e=>x(e),className:"mb-6",children:(0,l.jsxs)(o.j7,{className:"grid w-full grid-cols-3",children:[(0,l.jsx)(o.Xi,{value:"auto",children:"Auto-Detect"}),(0,l.jsx)(o.Xi,{value:"lte",children:"LTE (4G)"}),(0,l.jsx)(o.Xi,{value:"nr",children:"NR (5G)"})]})}),(0,l.jsxs)("div",{className:"flex space-x-4 mb-6",children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)(i.J,{htmlFor:"earfcn",className:"mb-2 block",children:"lte"===h?"E-ARFCN":"nr"===h?"NR-ARFCN":"E/ARFCN Value"}),(0,l.jsx)(d.p,{id:"earfcn",type:"number",placeholder:"Enter channel number",value:e,onChange:e=>a(e.target.value),className:"w-full"})]}),(0,l.jsx)("div",{className:"flex items-end",children:(0,l.jsx)(t.$,{onClick:()=>{if(!e){p("Please enter an E/ARFCN value"),g(null);return}try{let a=L(e,"auto"===h?null:h);if(!a||"error"in a)a&&"error"in a?p(a.error):p("Could not identify band for this E/ARFCN value"),g(null);else{g(a),p("");let e={...a,timestamp:new Date().toISOString(),id:Date.now().toString()};w(a=>[e,...a.slice(0,9)])}}catch(a){let e=a instanceof Error?a.message:"Unknown error";console.error("Calculation error:",a),p("Calculation error: "+e),g(null)}},children:"Calculate"})})]}),m&&(0,l.jsx)("div",{className:"p-3 mb-6 bg-red-50 border border-red-200 text-red-700 rounded",children:m}),n&&(0,l.jsxs)("div",{className:"p-4 border rounded-md bg-gray-50 dark:bg-gray-800",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold mb-3",children:"Result"}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4 mb-8",children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Network Type"}),(0,l.jsx)("div",{className:"font-medium",children:n.networkType}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"LTE"===n.networkType?"EARFCN":"NR-ARFCN"}),(0,l.jsx)("div",{className:"font-medium",children:n.earfcn}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Frequency"}),(0,l.jsxs)("div",{className:"font-medium",children:[n.frequency," MHz"]})]}),(0,l.jsx)("h4",{className:"font-semibold mb-2",children:"Possible Operating Bands"}),(0,l.jsx)("div",{className:"space-y-4",children:n.possibleBands.map((e,a)=>(0,l.jsxs)("div",{className:"border-t pt-2 first:border-t-0 first:pt-0",children:[(0,l.jsxs)("div",{className:"font-semibold",children:["NR"===n.networkType?"n".concat(e.band):"Band ".concat(e.band)," ","(",e.name,")"]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4 mt-1 text-sm",children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Duplex Mode"}),(0,l.jsx)("div",{className:"font-semibold",children:e.duplexType}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Downlink Range"}),(0,l.jsxs)("div",{className:"font-semibold",children:[e.dlLow," - ",e.dlHigh," MHz"]}),"FDD"===e.duplexType&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink Range"}),(0,l.jsxs)("div",{className:"font-semibold",children:[e.ulLow," - ",e.ulHigh," MHz"]})]}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"LTE"===n.networkType?"EARFCN Range":"NR-ARFCN Range"}),(0,l.jsx)("div",{className:"font-semibold",children:"LTE"===n.networkType?"".concat(e.earfcnRange[0]," - ").concat(e.earfcnRange[1]):"".concat(e.nrarfcnRange[0]," - ").concat(e.nrarfcnRange[1])}),"LTE"===n.networkType&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Downlink Frequency"}),(0,l.jsxs)("div",{className:"font-semibold",children:[e.dlFrequency," MHz"]}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink Frequency"}),(0,l.jsxs)("div",{className:"font-semibold",children:[e.ulFrequency," MHz"]}),"FDD"===e.duplexType&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink EARFCN"}),(0,l.jsx)("div",{className:"font-semibold",children:e.ulEarfcn})]})]})]})]},a))}),(0,l.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Calculation method:"," ","NR"===n.networkType?"3GPP TS 38.104 Section 5.4.2.1":"3GPP TS 36.101 Section 5.7"]})]}),(0,l.jsxs)("div",{className:"mt-8",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Calculation History"}),y.length>0&&(0,l.jsxs)(t.$,{variant:"outline",size:"sm",onClick:()=>{w([])},className:"h-8",children:[(0,l.jsx)(c.A,{className:"h-4 w-4 mr-1"}),"Clear All"]})]}),0===y.length?(0,l.jsx)("div",{className:"text-center p-6 border rounded-md text-gray-500 dark:text-gray-400",children:"No calculation history yet. Enter an E/ARFCN value and click Calculate."}):(0,l.jsx)("div",{className:"space-y-2",children:y.map(e=>(0,l.jsxs)("div",{className:"p-3 border rounded-md flex justify-between items-start bg-gray-50 dark:bg-gray-800",children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("span",{className:"font-semibold text-lg",children:e.earfcn}),(0,l.jsx)("span",{className:"mx-2 text-gray-400",children:"•"}),(0,l.jsxs)("span",{className:"text-sm",children:[e.frequency," MHz"]}),(0,l.jsx)("span",{className:"mx-2 text-gray-400",children:"•"}),(0,l.jsx)("span",{className:"text-sm",children:e.networkType})]}),e.possibleBands&&(0,l.jsxs)("div",{className:"text-sm text-gray-600 dark:text-gray-400 font-medium mt-1",children:["Bands:"," ",e.possibleBands.map(a=>"NR"===e.networkType?"n".concat(a.band):"".concat(a.band)).join(", ")]}),(0,l.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:e.timestamp?new Date(e.timestamp).toLocaleString():"No timestamp"})]}),(0,l.jsx)(t.$,{variant:"ghost",size:"sm",onClick:()=>v(e.id),className:"text-gray-500 h-8 w-8 p-0",children:(0,l.jsx)(f.A,{className:"h-4 w-4"})})]},e.id))})]})]})]})}},42541:(e,a,n)=>{"use strict";n.d(a,{$:()=>o,r:()=>i});var l=n(20475),r=n(20107),s=n(61837),d=n(29395),t=n(22250);let i=(0,d.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=r.forwardRef((e,a)=>{let{className:n,variant:r,size:d,asChild:o=!1,...c}=e,f=o?s.DX:"button";return(0,l.jsx)(f,{className:(0,t.cn)(i({variant:r,size:d,className:n})),ref:a,...c})});o.displayName="Button"},72167:(e,a,n)=>{"use strict";n.d(a,{BT:()=>o,Wu:()=>c,ZB:()=>i,Zp:()=>d,aR:()=>t,wL:()=>f});var l=n(20475),r=n(20107),s=n(22250);let d=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{ref:a,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...r})});d.displayName="Card";let t=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{ref:a,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",n),...r})});t.displayName="CardHeader";let i=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("h3",{ref:a,className:(0,s.cn)("font-semibold leading-none tracking-tight",n),...r})});i.displayName="CardTitle";let o=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("p",{ref:a,className:(0,s.cn)("text-sm text-muted-foreground",n),...r})});o.displayName="CardDescription";let c=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{ref:a,className:(0,s.cn)("p-6 pt-0",n),...r})});c.displayName="CardContent";let f=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{ref:a,className:(0,s.cn)("flex items-center p-6 pt-0",n),...r})});f.displayName="CardFooter"},64219:(e,a,n)=>{"use strict";n.d(a,{p:()=>d});var l=n(20475),r=n(20107),s=n(22250);let d=r.forwardRef((e,a)=>{let{className:n,type:r,...d}=e;return(0,l.jsx)("input",{type:r,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:a,...d})});d.displayName="Input"},49153:(e,a,n)=>{"use strict";n.d(a,{J:()=>o});var l=n(20475),r=n(20107),s=n(21840),d=n(29395),t=n(22250);let i=(0,d.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)(s.b,{ref:a,className:(0,t.cn)(i(),n),...r})});o.displayName=s.b.displayName},37921:(e,a,n)=>{"use strict";n.d(a,{Xi:()=>o,av:()=>c,j7:()=>i,tU:()=>t});var l=n(20475),r=n(20107),s=n(93677),d=n(22250);let t=s.bL,i=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)(s.B8,{ref:a,className:(0,d.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",n),...r})});i.displayName=s.B8.displayName;let o=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)(s.l9,{ref:a,className:(0,d.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",n),...r})});o.displayName=s.l9.displayName;let c=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)(s.UC,{ref:a,className:(0,d.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...r})});c.displayName=s.UC.displayName},22250:(e,a,n)=>{"use strict";n.d(a,{cn:()=>s});var l=n(64901),r=n(868);function s(){for(var e=arguments.length,a=Array(e),n=0;n{var a=a=>e(e.s=a);e.O(0,[7780,3453,5755,191,6035,7358],()=>a(33504)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-b1970f3a251dc10f.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-b1970f3a251dc10f.js deleted file mode 100644 index 244d63e..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-b1970f3a251dc10f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{25240:(e,n,r)=>{Promise.resolve().then(r.bind(r,88596))},88596:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>g});var a=r(95155),t=r(12115),l=r(35007),s=r(9955),i=r(14085),d=r(15785),o=r(31641),c=r(45686),u=r(40767);let f=e=>{if(window.localStorage)try{let n=localStorage.getItem(e);console.log("LocalStorage value for ".concat(e,":"),n?JSON.parse(n):"null")}catch(e){console.error("Error reading from localStorage:",e)}else console.log("localStorage not available")},g=()=>{let[e,n]=(0,t.useState)(""),[r,g]=(0,t.useState)(null),[m,p]=(0,t.useState)(""),[h,x]=(0,t.useState)("auto"),[y,w]=(0,t.useState)([]),b=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:4,name:"AWS-1",dlLow:2110,dlHigh:2155,ulLow:1710,ulHigh:1755,earfcnOffset:1950,earfcnRange:[1950,2399],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:12,name:"700 a",dlLow:729,dlHigh:746,ulLow:699,ulHigh:716,earfcnOffset:5010,earfcnRange:[5010,5179],spacing:.1,duplexType:"FDD"},{band:13,name:"700 c",dlLow:746,dlHigh:756,ulLow:777,ulHigh:787,earfcnOffset:5180,earfcnRange:[5180,5279],spacing:.1,duplexType:"FDD"},{band:14,name:"700 PS",dlLow:758,dlHigh:768,ulLow:788,ulHigh:798,earfcnOffset:5280,earfcnRange:[5280,5379],spacing:.1,duplexType:"FDD"},{band:17,name:"700 b",dlLow:734,dlHigh:746,ulLow:704,ulHigh:716,earfcnOffset:5730,earfcnRange:[5730,5849],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:25,name:"1900+",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,earfcnOffset:8040,earfcnRange:[8040,8689],spacing:.1,duplexType:"FDD"},{band:26,name:"850+",dlLow:859,dlHigh:894,ulLow:814,ulHigh:849,earfcnOffset:8690,earfcnRange:[8690,9039],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,earfcnOffset:66436,earfcnRange:[66436,67335],spacing:.1,duplexType:"FDD"},{band:71,name:"600",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,earfcnOffset:68586,earfcnRange:[68586,68935],spacing:.1,duplexType:"FDD"},{band:38,name:"TD 2600",dlLow:2570,dlHigh:2620,ulLow:2570,ulHigh:2620,earfcnOffset:37750,earfcnRange:[37750,38249],spacing:.1,duplexType:"TDD"},{band:40,name:"TD 2300",dlLow:2300,dlHigh:2400,ulLow:2300,ulHigh:2400,earfcnOffset:38650,earfcnRange:[38650,39649],spacing:.1,duplexType:"TDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"},{band:48,name:"CBRS",dlLow:3550,dlHigh:3700,ulLow:3550,ulHigh:3700,earfcnOffset:55240,earfcnRange:[55240,56739],spacing:.1,duplexType:"TDD"}],v=[{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,nrarfcnOffset:173800,nrarfcnRange:[173800,178800],duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,nrarfcnOffset:185e3,nrarfcnRange:[185e3,192e3],duplexType:"FDD"},{band:12,name:"700 a",dlLow:729,dlHigh:746,ulLow:699,ulHigh:716,nrarfcnOffset:145800,nrarfcnRange:[145800,149200],duplexType:"FDD"},{band:14,name:"700 PS",dlLow:758,dlHigh:768,ulLow:788,ulHigh:798,nrarfcnOffset:151600,nrarfcnRange:[151600,153600],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:71,name:"600",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,nrarfcnOffset:123400,nrarfcnRange:[123400,130400],duplexType:"FDD"},{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,nrarfcnOffset:386e3,nrarfcnRange:[386e3,398e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:25,name:"1900+",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,nrarfcnOffset:386e3,nrarfcnRange:[386e3,399e3],duplexType:"FDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,nrarfcnOffset:422e3,nrarfcnRange:[422e3,44e4],duplexType:"FDD"},{band:70,name:"AWS-4",dlLow:1995,dlHigh:2020,ulLow:1695,ulHigh:1710,nrarfcnOffset:399e3,nrarfcnRange:[399e3,404e3],duplexType:"FDD"},{band:34,name:"2000 TDD",dlLow:2010,dlHigh:2025,ulLow:2010,ulHigh:2025,nrarfcnOffset:402e3,nrarfcnRange:[402e3,405e3],duplexType:"TDD"},{band:38,name:"TD 2600",dlLow:2570,dlHigh:2620,ulLow:2570,ulHigh:2620,nrarfcnOffset:514e3,nrarfcnRange:[514e3,524e3],duplexType:"TDD"},{band:39,name:"IMT 1900 TDD",dlLow:1880,dlHigh:1920,ulLow:1880,ulHigh:1920,nrarfcnOffset:376e3,nrarfcnRange:[376e3,384e3],duplexType:"TDD"},{band:40,name:"TD 2300",dlLow:2300,dlHigh:2400,ulLow:2300,ulHigh:2400,nrarfcnOffset:46e4,nrarfcnRange:[46e4,48e4],duplexType:"TDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:48,name:"CBRS",dlLow:3550,dlHigh:3700,ulLow:3550,ulHigh:3700,nrarfcnOffset:636667,nrarfcnRange:[636667,646666],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"},{band:79,name:"4.5GHz",dlLow:4400,dlHigh:5e3,ulLow:4400,ulHigh:5e3,nrarfcnOffset:693334,nrarfcnRange:[693334,733333],duplexType:"TDD"},{band:90,name:"TD 2600",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,538e3],duplexType:"TDD"},{band:257,name:"28 GHz",dlLow:26500,dlHigh:29500,ulLow:26500,ulHigh:29500,nrarfcnOffset:2054166,nrarfcnRange:[2054166,2104165],duplexType:"TDD"},{band:258,name:"26 GHz",dlLow:24250,dlHigh:27500,ulLow:24250,ulHigh:27500,nrarfcnOffset:2016667,nrarfcnRange:[2016667,2070832],duplexType:"TDD"},{band:259,name:"41 GHz",dlLow:39500,dlHigh:43500,ulLow:39500,ulHigh:43500,nrarfcnOffset:2270832,nrarfcnRange:[2270832,2337499],duplexType:"TDD"},{band:260,name:"39 GHz",dlLow:37e3,dlHigh:4e4,ulLow:37e3,ulHigh:4e4,nrarfcnOffset:2229166,nrarfcnRange:[2229166,2279165],duplexType:"TDD"},{band:261,name:"28 GHz",dlLow:27500,dlHigh:28350,ulLow:27500,ulHigh:28350,nrarfcnOffset:2070833,nrarfcnRange:[2070833,2084999],duplexType:"TDD"}],N=e=>{let n=[];for(let r of b)if(e>=r.earfcnRange[0]&&e<=r.earfcnRange[1]){let a,t;let l=r.dlLow+(e-r.earfcnOffset)*r.spacing;if("FDD"===r.duplexType){let n=e-r.earfcnOffset;a=e+18e3,t=r.ulLow+n*r.spacing}else a=e,t=l;n.push({...r,dlFrequency:l.toFixed(2),ulFrequency:t.toFixed(2),ulEarfcn:a})}return 0===n.length?null:{networkType:"LTE",earfcn:e,frequency:n[0].dlFrequency,possibleBands:n}},D=e=>{let n;if(e>=0&&e<=599999)n=0+(e-0)*.005;else if(e>=6e5&&e<=2016666)n=3e3+(e-6e5)*.015;else{if(!(e>=2016667)||!(e<=3279165))return null;n=24250.08+(e-2016667)*.06}let r=[];for(let n of v)e>=n.nrarfcnRange[0]&&e<=n.nrarfcnRange[1]&&r.push(n);return 0===r.length?null:{networkType:"NR",earfcn:e,frequency:n.toFixed(2),possibleBands:r}},L=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=parseInt(e);return isNaN(r)?{error:"Please enter a valid number"}:"lte"===n||null===n&&r>=0&&r<=68935?N(r):"nr"===n||null===n&&r>=123400?D(r):null};(0,t.useEffect)(()=>{if(window.localStorage)try{let e=localStorage.getItem("earfcnHistory");if(f("earfcnHistory"),e)try{let n=JSON.parse(e);console.log("Parsed history:",n),w(n)}catch(e){console.error("Error parsing history JSON:",e),w([])}}catch(e){console.error("Error accessing localStorage:",e),w([])}},[]),(0,t.useEffect)(()=>{if(console.log("History changed, saving to localStorage:",y),window.localStorage)try{if(y.length>0){let e=JSON.stringify(y);console.log("Serialized history:",e),localStorage.setItem("earfcnHistory",e)}else localStorage.removeItem("earfcnHistory");f("earfcnHistory")}catch(e){console.error("Error saving history to localStorage:",e)}},[y]);let T=e=>{w(n=>n.filter(n=>n.id!==e))};return(0,a.jsxs)(l.Zp,{className:"w-full",children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(l.ZB,{children:"E/ARFCN Calculator"}),(0,a.jsx)(l.BT,{children:"Calculate frequency information from E/ARFCN for LTE and NR-ARFCN for 5G"})]}),(0,a.jsxs)(l.Wu,{children:[(0,a.jsx)(o.tU,{defaultValue:"auto",value:h,onValueChange:e=>x(e),className:"mb-6",children:(0,a.jsxs)(o.j7,{className:"grid w-full grid-cols-3",children:[(0,a.jsx)(o.Xi,{value:"auto",children:"Auto-Detect"}),(0,a.jsx)(o.Xi,{value:"lte",children:"LTE (4G)"}),(0,a.jsx)(o.Xi,{value:"nr",children:"NR (5G)"})]})}),(0,a.jsxs)("div",{className:"flex space-x-4 mb-6",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(d.J,{htmlFor:"earfcn",className:"mb-2 block",children:"lte"===h?"E-ARFCN":"nr"===h?"NR-ARFCN":"E/ARFCN Value"}),(0,a.jsx)(s.p,{id:"earfcn",type:"number",placeholder:"Enter channel number",value:e,onChange:e=>n(e.target.value),className:"w-full"})]}),(0,a.jsx)("div",{className:"flex items-end",children:(0,a.jsx)(i.$,{onClick:()=>{if(!e){p("Please enter an E/ARFCN value"),g(null);return}try{let n=L(e,"auto"===h?null:h);if(!n||"error"in n)n&&"error"in n?p(n.error):p("Could not identify band for this E/ARFCN value"),g(null);else{g(n),p("");let e={...n,timestamp:new Date().toISOString(),id:Date.now().toString()};w(n=>[e,...n.slice(0,9)])}}catch(n){let e=n instanceof Error?n.message:"Unknown error";console.error("Calculation error:",n),p("Calculation error: "+e),g(null)}},children:"Calculate"})})]}),m&&(0,a.jsx)("div",{className:"p-3 mb-6 bg-red-50 border border-red-200 text-red-700 rounded",children:m}),r&&(0,a.jsxs)("div",{className:"p-4 border rounded-md bg-gray-50 dark:bg-gray-800",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold mb-3",children:"Result"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4 mb-8",children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Network Type"}),(0,a.jsx)("div",{className:"font-medium",children:r.networkType}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"LTE"===r.networkType?"EARFCN":"NR-ARFCN"}),(0,a.jsx)("div",{className:"font-medium",children:r.earfcn}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Frequency"}),(0,a.jsxs)("div",{className:"font-medium",children:[r.frequency," MHz"]})]}),(0,a.jsx)("h4",{className:"font-semibold mb-2",children:"Possible Operating Bands"}),(0,a.jsx)("div",{className:"space-y-4",children:r.possibleBands.map((e,n)=>(0,a.jsxs)("div",{className:"border-t pt-2 first:border-t-0 first:pt-0",children:[(0,a.jsxs)("div",{className:"font-semibold",children:["NR"===r.networkType?"n".concat(e.band):"Band ".concat(e.band)," ","(",e.name,")"]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4 mt-1 text-sm",children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Duplex Mode"}),(0,a.jsx)("div",{className:"font-semibold",children:e.duplexType}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Downlink Range"}),(0,a.jsxs)("div",{className:"font-semibold",children:[e.dlLow," - ",e.dlHigh," MHz"]}),"FDD"===e.duplexType&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink Range"}),(0,a.jsxs)("div",{className:"font-semibold",children:[e.ulLow," - ",e.ulHigh," MHz"]})]}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"LTE"===r.networkType?"EARFCN Range":"NR-ARFCN Range"}),(0,a.jsx)("div",{className:"font-semibold",children:"LTE"===r.networkType?"".concat(e.earfcnRange[0]," - ").concat(e.earfcnRange[1]):"".concat(e.nrarfcnRange[0]," - ").concat(e.nrarfcnRange[1])}),"LTE"===r.networkType&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Downlink Frequency"}),(0,a.jsxs)("div",{className:"font-semibold",children:[e.dlFrequency," MHz"]}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink Frequency"}),(0,a.jsxs)("div",{className:"font-semibold",children:[e.ulFrequency," MHz"]}),"FDD"===e.duplexType&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink EARFCN"}),(0,a.jsx)("div",{className:"font-semibold",children:e.ulEarfcn})]})]})]})]},n))}),(0,a.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Calculation method:"," ","NR"===r.networkType?"3GPP TS 38.104 Section 5.4.2.1":"3GPP TS 36.101 Section 5.7"]})]}),(0,a.jsxs)("div",{className:"mt-8",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Calculation History"}),y.length>0&&(0,a.jsxs)(i.$,{variant:"outline",size:"sm",onClick:()=>{w([])},className:"h-8",children:[(0,a.jsx)(c.A,{className:"h-4 w-4 mr-1"}),"Clear All"]})]}),0===y.length?(0,a.jsx)("div",{className:"text-center p-6 border rounded-md text-gray-500 dark:text-gray-400",children:"No calculation history yet. Enter an E/ARFCN value and click Calculate."}):(0,a.jsx)("div",{className:"space-y-2",children:y.map(e=>(0,a.jsxs)("div",{className:"p-3 border rounded-md flex justify-between items-start bg-gray-50 dark:bg-gray-800",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"font-semibold text-lg",children:e.earfcn}),(0,a.jsx)("span",{className:"mx-2 text-gray-400",children:"•"}),(0,a.jsxs)("span",{className:"text-sm",children:[e.frequency," MHz"]}),(0,a.jsx)("span",{className:"mx-2 text-gray-400",children:"•"}),(0,a.jsx)("span",{className:"text-sm",children:e.networkType})]}),e.possibleBands&&(0,a.jsxs)("div",{className:"text-sm text-gray-600 dark:text-gray-400 font-medium mt-1",children:["Bands:"," ",e.possibleBands.map(n=>"NR"===e.networkType?"n".concat(n.band):"".concat(n.band)).join(", ")]}),(0,a.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:e.timestamp?new Date(e.timestamp).toLocaleString():"No timestamp"})]}),(0,a.jsx)(i.$,{variant:"ghost",size:"sm",onClick:()=>T(e.id),className:"text-gray-500 h-8 w-8 p-0",children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})]},e.id))})]})]})]})}},14085:(e,n,r)=>{"use strict";r.d(n,{$:()=>o,r:()=>d});var a=r(95155),t=r(12115),l=r(12317),s=r(31027),i=r(29602);let d=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=t.forwardRef((e,n)=>{let{className:r,variant:t,size:s,asChild:o=!1,...c}=e,u=o?l.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(d({variant:t,size:s,className:r})),ref:n,...c})});o.displayName="Button"},35007:(e,n,r)=>{"use strict";r.d(n,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>s,aR:()=>i,wL:()=>u});var a=r(95155),t=r(12115),l=r(29602);let s=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...t})});s.displayName="Card";let i=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",r),...t})});i.displayName="CardHeader";let d=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("h3",{ref:n,className:(0,l.cn)("font-semibold leading-none tracking-tight",r),...t})});d.displayName="CardTitle";let o=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("p",{ref:n,className:(0,l.cn)("text-sm text-muted-foreground",r),...t})});o.displayName="CardDescription";let c=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("p-6 pt-0",r),...t})});c.displayName="CardContent";let u=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("flex items-center p-6 pt-0",r),...t})});u.displayName="CardFooter"},9955:(e,n,r)=>{"use strict";r.d(n,{p:()=>s});var a=r(95155),t=r(12115),l=r(29602);let s=t.forwardRef((e,n)=>{let{className:r,type:t,...s}=e;return(0,a.jsx)("input",{type:t,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:n,...s})});s.displayName="Input"},15785:(e,n,r)=>{"use strict";r.d(n,{J:()=>o});var a=r(95155),t=r(12115),l=r(46195),s=r(31027),i=r(29602);let d=(0,s.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)(l.b,{ref:n,className:(0,i.cn)(d(),r),...t})});o.displayName=l.b.displayName},31641:(e,n,r)=>{"use strict";r.d(n,{Xi:()=>o,av:()=>c,j7:()=>d,tU:()=>i});var a=r(95155),t=r(12115),l=r(58629),s=r(29602);let i=l.bL,d=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)(l.B8,{ref:n,className:(0,s.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",r),...t})});d.displayName=l.B8.displayName;let o=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)(l.l9,{ref:n,className:(0,s.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",r),...t})});o.displayName=l.l9.displayName;let c=t.forwardRef((e,n)=>{let{className:r,...t}=e;return(0,a.jsx)(l.UC,{ref:n,className:(0,s.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...t})});c.displayName=l.UC.displayName},29602:(e,n,r)=>{"use strict";r.d(n,{cn:()=>l});var a=r(43463),t=r(69795);function l(){for(var e=arguments.length,n=Array(e),r=0;r{"use strict";r.d(n,{A:()=>d});var a=r(12115);let t=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,n=Array(e),r=0;r!!e&&r.indexOf(e)===n).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)((e,n)=>{let{color:r="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:d,className:o="",children:c,iconNode:u,...f}=e;return(0,a.createElement)("svg",{ref:n,...s,width:t,height:t,stroke:r,strokeWidth:d?24*Number(i)/Number(t):i,className:l("lucide",o),...f},[...u.map(e=>{let[n,r]=e;return(0,a.createElement)(n,r)}),...Array.isArray(c)?c:[c]])}),d=(e,n)=>{let r=(0,a.forwardRef)((r,s)=>{let{className:d,...o}=r;return(0,a.createElement)(i,{ref:s,iconNode:n,className:l("lucide-".concat(t(e)),d),...o})});return r.displayName="".concat(e),r}},40767:(e,n,r)=>{"use strict";r.d(n,{A:()=>a});let a=(0,r(67401).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},93610:(e,n,r)=>{"use strict";function a(e,n,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a.defaultPrevented)return n?.(a)}}r.d(n,{m:()=>a})},18166:(e,n,r)=>{"use strict";r.d(n,{A:()=>s,q:()=>l});var a=r(12115),t=r(95155);function l(e,n){let r=a.createContext(n),l=e=>{let{children:n,...l}=e,s=a.useMemo(()=>l,Object.values(l));return(0,t.jsx)(r.Provider,{value:s,children:n})};return l.displayName=e+"Provider",[l,function(t){let l=a.useContext(r);if(l)return l;if(void 0!==n)return n;throw Error(`\`${t}\` must be used within \`${e}\``)}]}function s(e,n=[]){let r=[],l=()=>{let n=r.map(e=>a.createContext(e));return function(r){let t=r?.[e]||n;return a.useMemo(()=>({[`__scope${e}`]:{...r,[e]:t}}),[r,t])}};return l.scopeName=e,[function(n,l){let s=a.createContext(l),i=r.length;r=[...r,l];let d=n=>{let{scope:r,children:l,...d}=n,o=r?.[e]?.[i]||s,c=a.useMemo(()=>d,Object.values(d));return(0,t.jsx)(o.Provider,{value:c,children:l})};return d.displayName=n+"Provider",[d,function(r,t){let d=t?.[e]?.[i]||s,o=a.useContext(d);if(o)return o;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let t=r.reduce((n,{useScope:r,scopeName:a})=>{let t=r(e)[`__scope${a}`];return{...n,...t}},{});return a.useMemo(()=>({[`__scope${n.scopeName}`]:t}),[t])}};return r.scopeName=n.scopeName,r}(l,...n)]}},4256:(e,n,r)=>{"use strict";r.d(n,{jH:()=>l});var a=r(12115);r(95155);var t=a.createContext(void 0);function l(e){let n=a.useContext(t);return e||n||"ltr"}},67668:(e,n,r)=>{"use strict";r.d(n,{B:()=>d});var a,t=r(12115),l=r(46611),s=(a||(a=r.t(t,2)))[" useId ".trim().toString()]||(()=>void 0),i=0;function d(e){let[n,r]=t.useState(s());return(0,l.N)(()=>{e||r(e=>e??String(i++))},[e]),e||(n?`radix-${n}`:"")}},46195:(e,n,r)=>{"use strict";r.d(n,{b:()=>i});var a=r(12115),t=r(23360),l=r(95155),s=a.forwardRef((e,n)=>(0,l.jsx)(t.sG.label,{...e,ref:n,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));s.displayName="Label";var i=s},17028:(e,n,r)=>{"use strict";r.d(n,{C:()=>s});var a=r(12115),t=r(88068),l=r(46611),s=e=>{let{present:n,children:r}=e,s=function(e){var n,r;let[t,s]=a.useState(),d=a.useRef({}),o=a.useRef(e),c=a.useRef("none"),[u,f]=(n=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,n)=>{let a=r[e][n];return null!=a?a:e},n));return a.useEffect(()=>{let e=i(d.current);c.current="mounted"===u?e:"none"},[u]),(0,l.N)(()=>{let n=d.current,r=o.current;if(r!==e){let a=c.current,t=i(n);e?f("MOUNT"):"none"===t||(null==n?void 0:n.display)==="none"?f("UNMOUNT"):r&&a!==t?f("ANIMATION_OUT"):f("UNMOUNT"),o.current=e}},[e,f]),(0,l.N)(()=>{if(t){var e;let n;let r=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,a=e=>{let a=i(d.current).includes(e.animationName);if(e.target===t&&a&&(f("ANIMATION_END"),!o.current)){let e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},l=e=>{e.target===t&&(c.current=i(d.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{r.clearTimeout(n),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback(e=>{e&&(d.current=getComputedStyle(e)),s(e)},[])}}(n),d="function"==typeof r?r({present:s.isPresent}):a.Children.only(r),o=(0,t.s)(s.ref,function(e){var n,r;let a=null===(n=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===n?void 0:n.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(t=(a=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?e.props.ref:e.props.ref||e.ref}(d));return"function"==typeof r||s.isPresent?a.cloneElement(d,{ref:o}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},23360:(e,n,r)=>{"use strict";r.d(n,{hO:()=>d,sG:()=>i});var a=r(12115),t=r(47650),l=r(12317),s=r(95155),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let r=(0,l.TL)(`Primitive.${n}`),t=a.forwardRef((e,a)=>{let{asChild:t,...l}=e,i=t?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i,{...l,ref:a})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{});function d(e,n){e&&t.flushSync(()=>e.dispatchEvent(n))}},41524:(e,n,r)=>{"use strict";r.d(n,{c:()=>t});var a=r(12115);function t(e){let n=a.useRef(e);return a.useEffect(()=>{n.current=e}),a.useMemo(()=>(...e)=>n.current?.(...e),[])}},1488:(e,n,r)=>{"use strict";r.d(n,{i:()=>l});var a=r(12115),t=r(41524);function l({prop:e,defaultProp:n,onChange:r=()=>{}}){let[l,s]=function({defaultProp:e,onChange:n}){let r=a.useState(e),[l]=r,s=a.useRef(l),i=(0,t.c)(n);return a.useEffect(()=>{s.current!==l&&(i(l),s.current=l)},[l,s,i]),r}({defaultProp:n,onChange:r}),i=void 0!==e,d=i?e:l,o=(0,t.c)(r);return[d,a.useCallback(n=>{if(i){let r="function"==typeof n?n(e):n;r!==e&&o(r)}else s(n)},[i,e,s,o])]}},46611:(e,n,r)=>{"use strict";r.d(n,{N:()=>t});var a=r(12115),t=globalThis?.document?a.useLayoutEffect:()=>{}}},e=>{var n=n=>e(e.s=n);e.O(0,[1365,3740,8441,1517,7358],()=>n(25240)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-f544f8ea6da96f62.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-f544f8ea6da96f62.js new file mode 100644 index 0000000..588c6a5 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/freq-calculator/page-f544f8ea6da96f62.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{33504:(e,a,n)=>{Promise.resolve().then(n.bind(n,14332))},14332:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>g});var l=n(20475),r=n(20107),s=n(72167),d=n(64219),t=n(42541),i=n(49153),o=n(37921),c=n(51873),f=n(58212);let u=e=>{if(window.localStorage)try{let a=localStorage.getItem(e);console.log("LocalStorage value for ".concat(e,":"),a?JSON.parse(a):"null")}catch(e){console.error("Error reading from localStorage:",e)}else console.log("localStorage not available")},g=()=>{let[e,a]=(0,r.useState)(""),[n,g]=(0,r.useState)(null),[m,p]=(0,r.useState)(""),[h,x]=(0,r.useState)("auto"),[y,w]=(0,r.useState)([]),b=[{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,earfcnOffset:0,earfcnRange:[0,599],spacing:.1,duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,earfcnOffset:600,earfcnRange:[600,1199],spacing:.1,duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,earfcnOffset:1200,earfcnRange:[1200,1949],spacing:.1,duplexType:"FDD"},{band:4,name:"AWS-1",dlLow:2110,dlHigh:2155,ulLow:1710,ulHigh:1755,earfcnOffset:1950,earfcnRange:[1950,2399],spacing:.1,duplexType:"FDD"},{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,earfcnOffset:2400,earfcnRange:[2400,2649],spacing:.1,duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,earfcnOffset:2750,earfcnRange:[2750,3449],spacing:.1,duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,earfcnOffset:3450,earfcnRange:[3450,3799],spacing:.1,duplexType:"FDD"},{band:12,name:"700 a",dlLow:729,dlHigh:746,ulLow:699,ulHigh:716,earfcnOffset:5010,earfcnRange:[5010,5179],spacing:.1,duplexType:"FDD"},{band:13,name:"700 c",dlLow:746,dlHigh:756,ulLow:777,ulHigh:787,earfcnOffset:5180,earfcnRange:[5180,5279],spacing:.1,duplexType:"FDD"},{band:14,name:"700 PS",dlLow:758,dlHigh:768,ulLow:788,ulHigh:798,earfcnOffset:5280,earfcnRange:[5280,5379],spacing:.1,duplexType:"FDD"},{band:17,name:"700 b",dlLow:734,dlHigh:746,ulLow:704,ulHigh:716,earfcnOffset:5730,earfcnRange:[5730,5849],spacing:.1,duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,earfcnOffset:6150,earfcnRange:[6150,6449],spacing:.1,duplexType:"FDD"},{band:25,name:"1900+",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,earfcnOffset:8040,earfcnRange:[8040,8689],spacing:.1,duplexType:"FDD"},{band:26,name:"850+",dlLow:859,dlHigh:894,ulLow:814,ulHigh:849,earfcnOffset:8690,earfcnRange:[8690,9039],spacing:.1,duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,earfcnOffset:9210,earfcnRange:[9210,9659],spacing:.1,duplexType:"FDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,earfcnOffset:66436,earfcnRange:[66436,67335],spacing:.1,duplexType:"FDD"},{band:71,name:"600",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,earfcnOffset:68586,earfcnRange:[68586,68935],spacing:.1,duplexType:"FDD"},{band:38,name:"TD 2600",dlLow:2570,dlHigh:2620,ulLow:2570,ulHigh:2620,earfcnOffset:37750,earfcnRange:[37750,38249],spacing:.1,duplexType:"TDD"},{band:40,name:"TD 2300",dlLow:2300,dlHigh:2400,ulLow:2300,ulHigh:2400,earfcnOffset:38650,earfcnRange:[38650,39649],spacing:.1,duplexType:"TDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,earfcnOffset:39650,earfcnRange:[39650,41589],spacing:.1,duplexType:"TDD"},{band:48,name:"CBRS",dlLow:3550,dlHigh:3700,ulLow:3550,ulHigh:3700,earfcnOffset:55240,earfcnRange:[55240,56739],spacing:.1,duplexType:"TDD"}],D=[{band:5,name:"850",dlLow:869,dlHigh:894,ulLow:824,ulHigh:849,nrarfcnOffset:173800,nrarfcnRange:[173800,178800],duplexType:"FDD"},{band:8,name:"900",dlLow:925,dlHigh:960,ulLow:880,ulHigh:915,nrarfcnOffset:185e3,nrarfcnRange:[185e3,192e3],duplexType:"FDD"},{band:12,name:"700 a",dlLow:729,dlHigh:746,ulLow:699,ulHigh:716,nrarfcnOffset:145800,nrarfcnRange:[145800,149200],duplexType:"FDD"},{band:14,name:"700 PS",dlLow:758,dlHigh:768,ulLow:788,ulHigh:798,nrarfcnOffset:151600,nrarfcnRange:[151600,153600],duplexType:"FDD"},{band:20,name:"800 DD",dlLow:791,dlHigh:821,ulLow:832,ulHigh:862,nrarfcnOffset:158200,nrarfcnRange:[158200,164200],duplexType:"FDD"},{band:28,name:"700 APT",dlLow:758,dlHigh:803,ulLow:703,ulHigh:748,nrarfcnOffset:151600,nrarfcnRange:[151600,160600],duplexType:"FDD"},{band:71,name:"600",dlLow:617,dlHigh:652,ulLow:663,ulHigh:698,nrarfcnOffset:123400,nrarfcnRange:[123400,130400],duplexType:"FDD"},{band:1,name:"2100",dlLow:2110,dlHigh:2170,ulLow:1920,ulHigh:1980,nrarfcnOffset:422e3,nrarfcnRange:[422e3,434e3],duplexType:"FDD"},{band:2,name:"1900 PCS",dlLow:1930,dlHigh:1990,ulLow:1850,ulHigh:1910,nrarfcnOffset:386e3,nrarfcnRange:[386e3,398e3],duplexType:"FDD"},{band:3,name:"1800",dlLow:1805,dlHigh:1880,ulLow:1710,ulHigh:1785,nrarfcnOffset:361e3,nrarfcnRange:[361e3,376e3],duplexType:"FDD"},{band:7,name:"2600",dlLow:2620,dlHigh:2690,ulLow:2500,ulHigh:2570,nrarfcnOffset:524e3,nrarfcnRange:[524e3,538e3],duplexType:"FDD"},{band:25,name:"1900+",dlLow:1930,dlHigh:1995,ulLow:1850,ulHigh:1915,nrarfcnOffset:386e3,nrarfcnRange:[386e3,399e3],duplexType:"FDD"},{band:66,name:"AWS-3",dlLow:2110,dlHigh:2200,ulLow:1710,ulHigh:1780,nrarfcnOffset:422e3,nrarfcnRange:[422e3,44e4],duplexType:"FDD"},{band:70,name:"AWS-4",dlLow:1995,dlHigh:2020,ulLow:1695,ulHigh:1710,nrarfcnOffset:399e3,nrarfcnRange:[399e3,404e3],duplexType:"FDD"},{band:34,name:"2000 TDD",dlLow:2010,dlHigh:2025,ulLow:2010,ulHigh:2025,nrarfcnOffset:402e3,nrarfcnRange:[402e3,405e3],duplexType:"TDD"},{band:38,name:"TD 2600",dlLow:2570,dlHigh:2620,ulLow:2570,ulHigh:2620,nrarfcnOffset:514e3,nrarfcnRange:[514e3,524e3],duplexType:"TDD"},{band:39,name:"IMT 1900 TDD",dlLow:1880,dlHigh:1920,ulLow:1880,ulHigh:1920,nrarfcnOffset:376e3,nrarfcnRange:[376e3,384e3],duplexType:"TDD"},{band:40,name:"TD 2300",dlLow:2300,dlHigh:2400,ulLow:2300,ulHigh:2400,nrarfcnOffset:46e4,nrarfcnRange:[46e4,48e4],duplexType:"TDD"},{band:41,name:"TD 2500",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,537999],duplexType:"TDD"},{band:48,name:"CBRS",dlLow:3550,dlHigh:3700,ulLow:3550,ulHigh:3700,nrarfcnOffset:636667,nrarfcnRange:[636667,646666],duplexType:"TDD"},{band:77,name:"C-Band",dlLow:3300,dlHigh:4200,ulLow:3300,ulHigh:4200,nrarfcnOffset:62e4,nrarfcnRange:[62e4,68e4],duplexType:"TDD"},{band:78,name:"C-Band (3.5GHz)",dlLow:3300,dlHigh:3800,ulLow:3300,ulHigh:3800,nrarfcnOffset:62e4,nrarfcnRange:[62e4,653333],duplexType:"TDD"},{band:79,name:"4.5GHz",dlLow:4400,dlHigh:5e3,ulLow:4400,ulHigh:5e3,nrarfcnOffset:693334,nrarfcnRange:[693334,733333],duplexType:"TDD"},{band:90,name:"TD 2600",dlLow:2496,dlHigh:2690,ulLow:2496,ulHigh:2690,nrarfcnOffset:499200,nrarfcnRange:[499200,538e3],duplexType:"TDD"},{band:257,name:"28 GHz",dlLow:26500,dlHigh:29500,ulLow:26500,ulHigh:29500,nrarfcnOffset:2054166,nrarfcnRange:[2054166,2104165],duplexType:"TDD"},{band:258,name:"26 GHz",dlLow:24250,dlHigh:27500,ulLow:24250,ulHigh:27500,nrarfcnOffset:2016667,nrarfcnRange:[2016667,2070832],duplexType:"TDD"},{band:259,name:"41 GHz",dlLow:39500,dlHigh:43500,ulLow:39500,ulHigh:43500,nrarfcnOffset:2270832,nrarfcnRange:[2270832,2337499],duplexType:"TDD"},{band:260,name:"39 GHz",dlLow:37e3,dlHigh:4e4,ulLow:37e3,ulHigh:4e4,nrarfcnOffset:2229166,nrarfcnRange:[2229166,2279165],duplexType:"TDD"},{band:261,name:"28 GHz",dlLow:27500,dlHigh:28350,ulLow:27500,ulHigh:28350,nrarfcnOffset:2070833,nrarfcnRange:[2070833,2084999],duplexType:"TDD"}],H=e=>{let a=[];for(let n of b)if(e>=n.earfcnRange[0]&&e<=n.earfcnRange[1]){let l,r;let s=n.dlLow+(e-n.earfcnOffset)*n.spacing;if("FDD"===n.duplexType){let a=e-n.earfcnOffset;l=e+18e3,r=n.ulLow+a*n.spacing}else l=e,r=s;a.push({...n,dlFrequency:s.toFixed(2),ulFrequency:r.toFixed(2),ulEarfcn:l})}return 0===a.length?null:{networkType:"LTE",earfcn:e,frequency:a[0].dlFrequency,possibleBands:a}},N=e=>{let a;if(e>=0&&e<=599999)a=0+(e-0)*.005;else if(e>=6e5&&e<=2016666)a=3e3+(e-6e5)*.015;else{if(!(e>=2016667)||!(e<=3279165))return null;a=24250.08+(e-2016667)*.06}let n=[];for(let a of D)e>=a.nrarfcnRange[0]&&e<=a.nrarfcnRange[1]&&n.push(a);return 0===n.length?null:{networkType:"NR",earfcn:e,frequency:a.toFixed(2),possibleBands:n}},L=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=parseInt(e);return isNaN(n)?{error:"Please enter a valid number"}:"lte"===a||null===a&&n>=0&&n<=68935?H(n):"nr"===a||null===a&&n>=123400?N(n):null};(0,r.useEffect)(()=>{if(window.localStorage)try{let e=localStorage.getItem("earfcnHistory");if(u("earfcnHistory"),e)try{let a=JSON.parse(e);console.log("Parsed history:",a),w(a)}catch(e){console.error("Error parsing history JSON:",e),w([])}}catch(e){console.error("Error accessing localStorage:",e),w([])}},[]),(0,r.useEffect)(()=>{if(console.log("History changed, saving to localStorage:",y),window.localStorage)try{if(y.length>0){let e=JSON.stringify(y);console.log("Serialized history:",e),localStorage.setItem("earfcnHistory",e)}else localStorage.removeItem("earfcnHistory");u("earfcnHistory")}catch(e){console.error("Error saving history to localStorage:",e)}},[y]);let v=e=>{w(a=>a.filter(a=>a.id!==e))};return(0,l.jsxs)(s.Zp,{className:"w-full",children:[(0,l.jsxs)(s.aR,{children:[(0,l.jsx)(s.ZB,{children:"E/ARFCN Calculator"}),(0,l.jsx)(s.BT,{children:"Calculate frequency information from E/ARFCN for LTE and NR-ARFCN for 5G"})]}),(0,l.jsxs)(s.Wu,{children:[(0,l.jsx)(o.tU,{defaultValue:"auto",value:h,onValueChange:e=>x(e),className:"mb-6",children:(0,l.jsxs)(o.j7,{className:"grid w-full grid-cols-3",children:[(0,l.jsx)(o.Xi,{value:"auto",children:"Auto-Detect"}),(0,l.jsx)(o.Xi,{value:"lte",children:"LTE (4G)"}),(0,l.jsx)(o.Xi,{value:"nr",children:"NR (5G)"})]})}),(0,l.jsxs)("div",{className:"flex space-x-4 mb-6",children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)(i.J,{htmlFor:"earfcn",className:"mb-2 block",children:"lte"===h?"E-ARFCN":"nr"===h?"NR-ARFCN":"E/ARFCN Value"}),(0,l.jsx)(d.p,{id:"earfcn",type:"number",placeholder:"Enter channel number",value:e,onChange:e=>a(e.target.value),className:"w-full"})]}),(0,l.jsx)("div",{className:"flex items-end",children:(0,l.jsx)(t.$,{onClick:()=>{if(!e){p("Please enter an E/ARFCN value"),g(null);return}try{let a=L(e,"auto"===h?null:h);if(!a||"error"in a)a&&"error"in a?p(a.error):p("Could not identify band for this E/ARFCN value"),g(null);else{g(a),p("");let e={...a,timestamp:new Date().toISOString(),id:Date.now().toString()};w(a=>[e,...a.slice(0,9)])}}catch(a){let e=a instanceof Error?a.message:"Unknown error";console.error("Calculation error:",a),p("Calculation error: "+e),g(null)}},children:"Calculate"})})]}),m&&(0,l.jsx)("div",{className:"p-3 mb-6 bg-red-50 border border-red-200 text-red-700 rounded",children:m}),n&&(0,l.jsxs)("div",{className:"p-4 border rounded-md bg-gray-50 dark:bg-gray-800",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold mb-3",children:"Result"}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4 mb-8",children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Network Type"}),(0,l.jsx)("div",{className:"font-medium",children:n.networkType}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"LTE"===n.networkType?"EARFCN":"NR-ARFCN"}),(0,l.jsx)("div",{className:"font-medium",children:n.earfcn}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Frequency"}),(0,l.jsxs)("div",{className:"font-medium",children:[n.frequency," MHz"]})]}),(0,l.jsx)("h4",{className:"font-semibold mb-2",children:"Possible Operating Bands"}),(0,l.jsx)("div",{className:"space-y-4",children:n.possibleBands.map((e,a)=>(0,l.jsxs)("div",{className:"border-t pt-2 first:border-t-0 first:pt-0",children:[(0,l.jsxs)("div",{className:"font-semibold",children:["NR"===n.networkType?"n".concat(e.band):"Band ".concat(e.band)," ","(",e.name,")"]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4 mt-1 text-sm",children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Duplex Mode"}),(0,l.jsx)("div",{className:"font-semibold",children:e.duplexType}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Downlink Range"}),(0,l.jsxs)("div",{className:"font-semibold",children:[e.dlLow," - ",e.dlHigh," MHz"]}),"FDD"===e.duplexType&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink Range"}),(0,l.jsxs)("div",{className:"font-semibold",children:[e.ulLow," - ",e.ulHigh," MHz"]})]}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"LTE"===n.networkType?"EARFCN Range":"NR-ARFCN Range"}),(0,l.jsx)("div",{className:"font-semibold",children:"LTE"===n.networkType?"".concat(e.earfcnRange[0]," - ").concat(e.earfcnRange[1]):"".concat(e.nrarfcnRange[0]," - ").concat(e.nrarfcnRange[1])}),"LTE"===n.networkType&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Downlink Frequency"}),(0,l.jsxs)("div",{className:"font-semibold",children:[e.dlFrequency," MHz"]}),(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink Frequency"}),(0,l.jsxs)("div",{className:"font-semibold",children:[e.ulFrequency," MHz"]}),"FDD"===e.duplexType&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:"Uplink EARFCN"}),(0,l.jsx)("div",{className:"font-semibold",children:e.ulEarfcn})]})]})]})]},a))}),(0,l.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Calculation method:"," ","NR"===n.networkType?"3GPP TS 38.104 Section 5.4.2.1":"3GPP TS 36.101 Section 5.7"]})]}),(0,l.jsxs)("div",{className:"mt-8",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Calculation History"}),y.length>0&&(0,l.jsxs)(t.$,{variant:"outline",size:"sm",onClick:()=>{w([])},className:"h-8",children:[(0,l.jsx)(c.A,{className:"h-4 w-4 mr-1"}),"Clear All"]})]}),0===y.length?(0,l.jsx)("div",{className:"text-center p-6 border rounded-md text-gray-500 dark:text-gray-400",children:"No calculation history yet. Enter an E/ARFCN value and click Calculate."}):(0,l.jsx)("div",{className:"space-y-2",children:y.map(e=>(0,l.jsxs)("div",{className:"p-3 border rounded-md flex justify-between items-start bg-gray-50 dark:bg-gray-800",children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("span",{className:"font-semibold text-lg",children:e.earfcn}),(0,l.jsx)("span",{className:"mx-2 text-gray-400",children:"•"}),(0,l.jsxs)("span",{className:"text-sm",children:[e.frequency," MHz"]}),(0,l.jsx)("span",{className:"mx-2 text-gray-400",children:"•"}),(0,l.jsx)("span",{className:"text-sm",children:e.networkType})]}),e.possibleBands&&(0,l.jsxs)("div",{className:"text-sm text-gray-600 dark:text-gray-400 font-medium mt-1",children:["Bands:"," ",e.possibleBands.map(a=>"NR"===e.networkType?"n".concat(a.band):"".concat(a.band)).join(", ")]}),(0,l.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:e.timestamp?new Date(e.timestamp).toLocaleString():"No timestamp"})]}),(0,l.jsx)(t.$,{variant:"ghost",size:"sm",onClick:()=>v(e.id),className:"text-gray-500 h-8 w-8 p-0",children:(0,l.jsx)(f.A,{className:"h-4 w-4"})})]},e.id))})]})]})]})}},42541:(e,a,n)=>{"use strict";n.d(a,{$:()=>o,r:()=>i});var l=n(20475),r=n(20107),s=n(61837),d=n(29395),t=n(22250);let i=(0,d.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=r.forwardRef((e,a)=>{let{className:n,variant:r,size:d,asChild:o=!1,...c}=e,f=o?s.DX:"button";return(0,l.jsx)(f,{className:(0,t.cn)(i({variant:r,size:d,className:n})),ref:a,...c})});o.displayName="Button"},72167:(e,a,n)=>{"use strict";n.d(a,{BT:()=>o,Wu:()=>c,ZB:()=>i,Zp:()=>d,aR:()=>t,wL:()=>f});var l=n(20475),r=n(20107),s=n(22250);let d=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{ref:a,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...r})});d.displayName="Card";let t=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{ref:a,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",n),...r})});t.displayName="CardHeader";let i=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("h3",{ref:a,className:(0,s.cn)("font-semibold leading-none tracking-tight",n),...r})});i.displayName="CardTitle";let o=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("p",{ref:a,className:(0,s.cn)("text-sm text-muted-foreground",n),...r})});o.displayName="CardDescription";let c=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{ref:a,className:(0,s.cn)("p-6 pt-0",n),...r})});c.displayName="CardContent";let f=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{ref:a,className:(0,s.cn)("flex items-center p-6 pt-0",n),...r})});f.displayName="CardFooter"},64219:(e,a,n)=>{"use strict";n.d(a,{p:()=>d});var l=n(20475),r=n(20107),s=n(22250);let d=r.forwardRef((e,a)=>{let{className:n,type:r,...d}=e;return(0,l.jsx)("input",{type:r,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:a,...d})});d.displayName="Input"},49153:(e,a,n)=>{"use strict";n.d(a,{J:()=>o});var l=n(20475),r=n(20107),s=n(21840),d=n(29395),t=n(22250);let i=(0,d.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)(s.b,{ref:a,className:(0,t.cn)(i(),n),...r})});o.displayName=s.b.displayName},37921:(e,a,n)=>{"use strict";n.d(a,{Xi:()=>o,av:()=>c,j7:()=>i,tU:()=>t});var l=n(20475),r=n(20107),s=n(93677),d=n(22250);let t=s.bL,i=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)(s.B8,{ref:a,className:(0,d.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",n),...r})});i.displayName=s.B8.displayName;let o=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)(s.l9,{ref:a,className:(0,d.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",n),...r})});o.displayName=s.l9.displayName;let c=r.forwardRef((e,a)=>{let{className:n,...r}=e;return(0,l.jsx)(s.UC,{ref:a,className:(0,d.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...r})});c.displayName=s.UC.displayName},22250:(e,a,n)=>{"use strict";n.d(a,{cn:()=>s});var l=n(64901),r=n(868);function s(){for(var e=arguments.length,a=Array(e),n=0;n{var a=a=>e(e.s=a);e.O(0,[7780,3453,5755,191,6035,7358],()=>a(33504)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-5758af6e2129c2c3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-5758af6e2129c2c3.js new file mode 100644 index 0000000..0a614c4 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-5758af6e2129c2c3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3376],{82064:(e,t,r)=>{Promise.resolve().then(r.bind(r,53302))},53302:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var a=r(20475),s=r(20107),n=r(72167),i=r(64219),l=r(49153),o=r(12607);let d=(0,r(39997).A)("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var c=r(21906),u=r(32857);let p=()=>{let[e,t]=(0,s.useState)(""),[r,p]=(0,s.useState)(""),[f,m]=(0,s.useState)(""),[v,h]=(0,s.useState)(!1),{toast:g}=(0,u.dj)();(0,s.useEffect)(()=>{b()},[]);let b=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),r=await e.json();t(r.start_time),p(r.end_time),m(r.interval.toString()),h(1===r.enabled)}catch(e){g({title:"Error",description:"Failed to fetch current status",variant:"destructive"})}},x=async t=>{try{if(t){if(!e||!r||!f){g({title:"Error",description:"Please fill in all fields",variant:"destructive"});return}let t=parseInt(f,10);if(isNaN(t)||t<=0){g({title:"Error",description:"Interval must be a positive number",variant:"destructive"});return}let a=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"start_time=".concat(encodeURIComponent(e),"&end_time=").concat(encodeURIComponent(r),"&interval=").concat(encodeURIComponent(f))}),s=await a.json();if(s.error){g({title:"Error",description:s.error,variant:"destructive"});return}g({title:"Success",description:"Keep-alive scheduling enabled"})}else{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"disable=true"});await e.json(),g({title:"Success",description:"Keep-alive scheduling disabled"})}h(t)}catch(e){g({title:"Error",description:"Failed to update keep-alive settings",variant:"destructive"})}};return(0,a.jsxs)(n.Zp,{children:[(0,a.jsxs)(n.aR,{children:[(0,a.jsx)(n.ZB,{children:"Keep Alive"}),(0,a.jsx)(n.BT,{children:"Ensure uninterrupted connectivity by preventing modem idle times with scheduled speed tests to keep your connection alive."})]}),(0,a.jsx)(n.Wu,{children:(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"start-time",children:"Start Time"}),(0,a.jsx)(i.p,{type:"time",id:"start-time",value:e,onChange:e=>t(e.target.value),disabled:v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"end-time",children:"End Time"}),(0,a.jsx)(i.p,{type:"time",id:"end-time",value:r,onChange:e=>p(e.target.value),disabled:v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"interval",children:"Interval (minutes)"}),(0,a.jsx)(i.p,{type:"number",id:"interval",min:1,value:f,onChange:e=>{m(e.target.value.replace(/[^0-9]/g,"").replace(/^0+/,""))},placeholder:"Enter minutes",disabled:v,className:"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"})]}),(0,a.jsxs)("div",{className:"lg:col-span-2 col-span-1 flex items-center gap-2",children:[(0,a.jsx)(o.A,{className:"h-4 w-4 text-red-600"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Please consider your data usage limits when setting the interval."})]})]})}),(0,a.jsx)(n.wL,{className:"border-t py-4",children:(0,a.jsxs)(c.l,{pressed:v,onPressedChange:x,disabled:!0,children:[(0,a.jsx)(d,{className:"h-4 w-4 mr-2"}),"Keep Alive is Under Consideration"]})})]})}},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l,wL:()=>u});var a=r(20475),s=r(20107),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});i.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...s})});o.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var a=r(20475),s=r(20107),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,type:s,...i}=e;return(0,a.jsx)("input",{type:s,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),n=r(21840),i=r(29395),l=r(22250);let o=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.b,{ref:t,className:(0,l.cn)(o(),r),...s})});d.displayName=n.b.displayName},21906:(e,t,r)=>{"use strict";r.d(t,{l:()=>p});var a=r(20475),s=r(20107),n=r(94521),i=r(13061),l=r(34544),o=s.forwardRef((e,t)=>{let{pressed:r,defaultPressed:s=!1,onPressedChange:o,...d}=e,[c=!1,u]=(0,i.i)({prop:r,onChange:o,defaultProp:s});return(0,a.jsx)(l.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:t,onClick:(0,n.m)(e.onClick,()=>{e.disabled||u(!c)})})});o.displayName="Toggle";var d=r(29395),c=r(22250);let u=(0,d.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),p=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,...i}=e;return(0,a.jsx)(o,{ref:t,className:(0,c.cn)(u({variant:s,size:n,className:r})),...i})});p.displayName=o.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var a=r(20107);let s=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=a.useState(d);return a.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var a=r(64901),s=r(868);function n(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>o});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...p}=e;return(0,a.createElement)("svg",{ref:t,...i,width:s,height:s,stroke:r,strokeWidth:o?24*Number(l)/Number(s):l,className:n("lucide",d),...p},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,a.forwardRef)((r,i)=>{let{className:o,...d}=r;return(0,a.createElement)(l,{ref:i,iconNode:t,className:n("lucide-".concat(s(e)),o),...d})});return r.displayName="".concat(e),r}},12607:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},94521:(e,t,r)=>{"use strict";function a(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a.defaultPrevented)return t?.(a)}}r.d(t,{m:()=>a})},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var a=r(20107),s=r(34544),n=r(20475),i=a.forwardRef((e,t)=>(0,n.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},34544:(e,t,r)=>{"use strict";r.d(t,{hO:()=>o,sG:()=>l});var a=r(20107),s=r(25642),n=r(61837),i=r(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=a.forwardRef((e,r)=>{let{asChild:a,...s}=e,l=a?n.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function o(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var a=r(20107);function s(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});var a=r(20107),s=r(46774);function n({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=a.useState(e),[n]=r,i=a.useRef(n),l=(0,s.c)(t);return a.useEffect(()=>{i.current!==n&&(l(n),i.current=n)},[n,i,l]),r}({defaultProp:t,onChange:r}),l=void 0!==e,o=l?e:n,d=(0,s.c)(r);return[o,a.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&d(r)}else i(t)},[l,e,i,d])]}},29395:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});let a=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,s=function(){for(var e,t,r=0,a="";rr=>{var n;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:l}=t,o=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],s=null==l?void 0:l[e];if(null===t)return null;let n=a(t)||a(s);return i[e][n]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return s(e,o,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:a,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...d}[t]):({...l,...d})[t]===r})?[...e,r,a]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,191,6035,7358],()=>t(82064)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-612392d5cbe5676d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-612392d5cbe5676d.js deleted file mode 100644 index 477344a..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-612392d5cbe5676d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3376],{89016:(e,t,r)=>{Promise.resolve().then(r.bind(r,96543))},96543:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var a=r(95155),s=r(12115),i=r(35007),n=r(9955),l=r(15785),d=r(23950);let o=(0,r(67401).A)("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var c=r(59162),u=r(20241);let p=()=>{let[e,t]=(0,s.useState)(""),[r,p]=(0,s.useState)(""),[f,m]=(0,s.useState)(""),[v,h]=(0,s.useState)(!1),{toast:g}=(0,u.dj)();(0,s.useEffect)(()=>{x()},[]);let x=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),r=await e.json();t(r.start_time),p(r.end_time),m(r.interval.toString()),h(1===r.enabled)}catch(e){g({title:"Error",description:"Failed to fetch current status",variant:"destructive"})}},b=async t=>{try{if(t){if(!e||!r||!f){g({title:"Error",description:"Please fill in all fields",variant:"destructive"});return}let t=parseInt(f,10);if(isNaN(t)||t<=0){g({title:"Error",description:"Interval must be a positive number",variant:"destructive"});return}let a=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"start_time=".concat(encodeURIComponent(e),"&end_time=").concat(encodeURIComponent(r),"&interval=").concat(encodeURIComponent(f))}),s=await a.json();if(s.error){g({title:"Error",description:s.error,variant:"destructive"});return}g({title:"Success",description:"Keep-alive scheduling enabled"})}else{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"disable=true"});await e.json(),g({title:"Success",description:"Keep-alive scheduling disabled"})}h(t)}catch(e){g({title:"Error",description:"Failed to update keep-alive settings",variant:"destructive"})}};return(0,a.jsxs)(i.Zp,{children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsx)(i.ZB,{children:"Keep Alive"}),(0,a.jsx)(i.BT,{children:"Ensure uninterrupted connectivity by preventing modem idle times with scheduled speed tests to keep your connection alive."})]}),(0,a.jsx)(i.Wu,{children:(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"start-time",children:"Start Time"}),(0,a.jsx)(n.p,{type:"time",id:"start-time",value:e,onChange:e=>t(e.target.value),disabled:v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"end-time",children:"End Time"}),(0,a.jsx)(n.p,{type:"time",id:"end-time",value:r,onChange:e=>p(e.target.value),disabled:v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"interval",children:"Interval (minutes)"}),(0,a.jsx)(n.p,{type:"number",id:"interval",min:1,value:f,onChange:e=>{m(e.target.value.replace(/[^0-9]/g,"").replace(/^0+/,""))},placeholder:"Enter minutes",disabled:v,className:"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"})]}),(0,a.jsxs)("div",{className:"lg:col-span-2 col-span-1 flex items-center gap-2",children:[(0,a.jsx)(d.A,{className:"h-4 w-4 text-red-600"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Please consider your data usage limits when setting the interval."})]})]})}),(0,a.jsx)(i.wL,{className:"border-t py-4",children:(0,a.jsxs)(c.l,{pressed:v,onPressedChange:b,disabled:!0,children:[(0,a.jsx)(o,{className:"h-4 w-4 mr-2"}),"Keep Alive is Under Consideration"]})})]})}},35007:(e,t,r)=>{"use strict";r.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>n,aR:()=>l,wL:()=>u});var a=r(95155),s=r(12115),i=r(29602);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",r),...s})});d.displayName="CardTitle";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})});o.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},9955:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(95155),s=r(12115),i=r(29602);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},15785:(e,t,r)=>{"use strict";r.d(t,{J:()=>o});var a=r(95155),s=r(12115),i=r(46195),n=r(31027),l=r(29602);let d=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(i.b,{ref:t,className:(0,l.cn)(d(),r),...s})});o.displayName=i.b.displayName},59162:(e,t,r)=>{"use strict";r.d(t,{l:()=>p});var a=r(95155),s=r(12115),i=r(93610),n=r(1488),l=r(23360),d=s.forwardRef((e,t)=>{let{pressed:r,defaultPressed:s=!1,onPressedChange:d,...o}=e,[c=!1,u]=(0,n.i)({prop:r,onChange:d,defaultProp:s});return(0,a.jsx)(l.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:(0,i.m)(e.onClick,()=>{e.disabled||u(!c)})})});d.displayName="Toggle";var o=r(31027),c=r(29602);let u=(0,o.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),p=s.forwardRef((e,t)=>{let{className:r,variant:s,size:i,...n}=e;return(0,a.jsx)(d,{ref:t,className:(0,c.cn)(u({variant:s,size:i,className:r})),...n})});p.displayName=d.displayName},20241:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var a=r(12115);let s=0,i=new Map,n=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],o={toasts:[]};function c(e){o=l(o,e),d.forEach(e=>{e(o)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=a.useState(o);return a.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var a=r(43463),s=r(69795);function i(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>d});var a=r(12115);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:d,className:o="",children:c,iconNode:u,...p}=e;return(0,a.createElement)("svg",{ref:t,...n,width:s,height:s,stroke:r,strokeWidth:d?24*Number(l)/Number(s):l,className:i("lucide",o),...p},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),d=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:d,...o}=r;return(0,a.createElement)(l,{ref:n,iconNode:t,className:i("lucide-".concat(s(e)),d),...o})});return r.displayName="".concat(e),r}},23950:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(67401).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},93610:(e,t,r)=>{"use strict";function a(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a.defaultPrevented)return t?.(a)}}r.d(t,{m:()=>a})},46195:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var a=r(12115),s=r(23360),i=r(95155),n=a.forwardRef((e,t)=>(0,i.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var l=n},23360:(e,t,r)=>{"use strict";r.d(t,{hO:()=>d,sG:()=>l});var a=r(12115),s=r(47650),i=r(12317),n=r(95155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),s=a.forwardRef((e,a)=>{let{asChild:s,...i}=e,l=s?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(l,{...i,ref:a})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function d(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}},41524:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var a=r(12115);function s(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var a=r(12115),s=r(41524);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,n]=function({defaultProp:e,onChange:t}){let r=a.useState(e),[i]=r,n=a.useRef(i),l=(0,s.c)(t);return a.useEffect(()=>{n.current!==i&&(l(i),n.current=i)},[i,n,l]),r}({defaultProp:t,onChange:r}),l=void 0!==e,d=l?e:i,o=(0,s.c)(r);return[d,a.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&o(r)}else n(t)},[l,e,n,o])]}}},e=>{var t=t=>e(e.s=t);e.O(0,[1365,8441,1517,7358],()=>t(89016)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-dba158bf59af2a41.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-dba158bf59af2a41.js new file mode 100644 index 0000000..0a614c4 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/keep-alive/page-dba158bf59af2a41.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3376],{82064:(e,t,r)=>{Promise.resolve().then(r.bind(r,53302))},53302:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var a=r(20475),s=r(20107),n=r(72167),i=r(64219),l=r(49153),o=r(12607);let d=(0,r(39997).A)("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var c=r(21906),u=r(32857);let p=()=>{let[e,t]=(0,s.useState)(""),[r,p]=(0,s.useState)(""),[f,m]=(0,s.useState)(""),[v,h]=(0,s.useState)(!1),{toast:g}=(0,u.dj)();(0,s.useEffect)(()=>{b()},[]);let b=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),r=await e.json();t(r.start_time),p(r.end_time),m(r.interval.toString()),h(1===r.enabled)}catch(e){g({title:"Error",description:"Failed to fetch current status",variant:"destructive"})}},x=async t=>{try{if(t){if(!e||!r||!f){g({title:"Error",description:"Please fill in all fields",variant:"destructive"});return}let t=parseInt(f,10);if(isNaN(t)||t<=0){g({title:"Error",description:"Interval must be a positive number",variant:"destructive"});return}let a=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"start_time=".concat(encodeURIComponent(e),"&end_time=").concat(encodeURIComponent(r),"&interval=").concat(encodeURIComponent(f))}),s=await a.json();if(s.error){g({title:"Error",description:s.error,variant:"destructive"});return}g({title:"Success",description:"Keep-alive scheduling enabled"})}else{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"disable=true"});await e.json(),g({title:"Success",description:"Keep-alive scheduling disabled"})}h(t)}catch(e){g({title:"Error",description:"Failed to update keep-alive settings",variant:"destructive"})}};return(0,a.jsxs)(n.Zp,{children:[(0,a.jsxs)(n.aR,{children:[(0,a.jsx)(n.ZB,{children:"Keep Alive"}),(0,a.jsx)(n.BT,{children:"Ensure uninterrupted connectivity by preventing modem idle times with scheduled speed tests to keep your connection alive."})]}),(0,a.jsx)(n.Wu,{children:(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"start-time",children:"Start Time"}),(0,a.jsx)(i.p,{type:"time",id:"start-time",value:e,onChange:e=>t(e.target.value),disabled:v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"end-time",children:"End Time"}),(0,a.jsx)(i.p,{type:"time",id:"end-time",value:r,onChange:e=>p(e.target.value),disabled:v})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(l.J,{htmlFor:"interval",children:"Interval (minutes)"}),(0,a.jsx)(i.p,{type:"number",id:"interval",min:1,value:f,onChange:e=>{m(e.target.value.replace(/[^0-9]/g,"").replace(/^0+/,""))},placeholder:"Enter minutes",disabled:v,className:"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"})]}),(0,a.jsxs)("div",{className:"lg:col-span-2 col-span-1 flex items-center gap-2",children:[(0,a.jsx)(o.A,{className:"h-4 w-4 text-red-600"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Please consider your data usage limits when setting the interval."})]})]})}),(0,a.jsx)(n.wL,{className:"border-t py-4",children:(0,a.jsxs)(c.l,{pressed:v,onPressedChange:x,disabled:!0,children:[(0,a.jsx)(d,{className:"h-4 w-4 mr-2"}),"Keep Alive is Under Consideration"]})})]})}},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l,wL:()=>u});var a=r(20475),s=r(20107),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});i.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...s})});o.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var a=r(20475),s=r(20107),n=r(22250);let i=s.forwardRef((e,t)=>{let{className:r,type:s,...i}=e;return(0,a.jsx)("input",{type:s,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var a=r(20475),s=r(20107),n=r(21840),i=r(29395),l=r(22250);let o=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.b,{ref:t,className:(0,l.cn)(o(),r),...s})});d.displayName=n.b.displayName},21906:(e,t,r)=>{"use strict";r.d(t,{l:()=>p});var a=r(20475),s=r(20107),n=r(94521),i=r(13061),l=r(34544),o=s.forwardRef((e,t)=>{let{pressed:r,defaultPressed:s=!1,onPressedChange:o,...d}=e,[c=!1,u]=(0,i.i)({prop:r,onChange:o,defaultProp:s});return(0,a.jsx)(l.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:t,onClick:(0,n.m)(e.onClick,()=>{e.disabled||u(!c)})})});o.displayName="Toggle";var d=r(29395),c=r(22250);let u=(0,d.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),p=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,...i}=e;return(0,a.jsx)(o,{ref:t,className:(0,c.cn)(u({variant:s,size:n,className:r})),...i})});p.displayName=o.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>u});var a=r(20107);let s=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=a.useState(d);return a.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var a=r(64901),s=r(868);function n(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>o});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...p}=e;return(0,a.createElement)("svg",{ref:t,...i,width:s,height:s,stroke:r,strokeWidth:o?24*Number(l)/Number(s):l,className:n("lucide",d),...p},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,a.forwardRef)((r,i)=>{let{className:o,...d}=r;return(0,a.createElement)(l,{ref:i,iconNode:t,className:n("lucide-".concat(s(e)),o),...d})});return r.displayName="".concat(e),r}},12607:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},94521:(e,t,r)=>{"use strict";function a(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a.defaultPrevented)return t?.(a)}}r.d(t,{m:()=>a})},21840:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var a=r(20107),s=r(34544),n=r(20475),i=a.forwardRef((e,t)=>(0,n.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},34544:(e,t,r)=>{"use strict";r.d(t,{hO:()=>o,sG:()=>l});var a=r(20107),s=r(25642),n=r(61837),i=r(20475),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=a.forwardRef((e,r)=>{let{asChild:a,...s}=e,l=a?n.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function o(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}},46774:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var a=r(20107);function s(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}},13061:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});var a=r(20107),s=r(46774);function n({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=a.useState(e),[n]=r,i=a.useRef(n),l=(0,s.c)(t);return a.useEffect(()=>{i.current!==n&&(l(n),i.current=n)},[n,i,l]),r}({defaultProp:t,onChange:r}),l=void 0!==e,o=l?e:n,d=(0,s.c)(r);return[o,a.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&d(r)}else i(t)},[l,e,i,d])]}},29395:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});let a=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,s=function(){for(var e,t,r=0,a="";rr=>{var n;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:l}=t,o=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],s=null==l?void 0:l[e];if(null===t)return null;let n=a(t)||a(s);return i[e][n]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return s(e,o,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:a,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...d}[t]):({...l,...d})[t]===r})?[...e,r,a]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},e=>{var t=t=>e(e.s=t);e.O(0,[7780,191,6035,7358],()=>t(82064)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js new file mode 100644 index 0000000..481b7c1 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3075],{43946:(e,a,r)=>{Promise.resolve().then(r.bind(r,31753))},31753:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>c});var t=r(20475);r(20107);var s=r(16118),l=r(9477),n=r.n(l);let c=e=>{let{children:a}=e,r=(0,s.usePathname)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,t.jsx)("h1",{className:"text-3xl font-semibold",children:"Experimental"})}),(0,t.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,t.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,t.jsx)(n(),{href:"/dashboard/experimental/quecwatch",className:"".concat("/dashboard/experimental/quecwatch/"===r?"font-semibold text-primary":"text-sm"),children:"QuecWatch"}),(0,t.jsx)(n(),{href:"/dashboard/experimental/quecprofiles",className:"".concat("/dashboard/experimental/quecprofiles/"===r?"font-semibold text-primary":"text-sm"),children:"QuecProfiles"}),(0,t.jsx)(n(),{href:"/dashboard/experimental/keep-alive",className:"".concat("/dashboard/experimental/keep-alive/"===r?"font-semibold text-primary":"text-sm"),children:"Keep Alive"}),(0,t.jsx)(n(),{href:"/dashboard/experimental/cell-scanner",className:"".concat("/dashboard/experimental/cell-scanner/"===r?"font-semibold text-primary":"text-sm"),children:"Cell Scanner"}),(0,t.jsx)(n(),{href:"/dashboard/experimental/freq-calculator",className:"".concat("/dashboard/experimental/freq-calculator/"===r?"font-semibold text-primary":"text-sm"),children:"Frequency Calculator"})]}),a]})]})}},16118:(e,a,r)=>{"use strict";var t=r(65834);r.o(t,"usePathname")&&r.d(a,{usePathname:function(){return t.usePathname}}),r.o(t,"useRouter")&&r.d(a,{useRouter:function(){return t.useRouter}})}},e=>{var a=a=>e(e.s=a);e.O(0,[9477,191,6035,7358],()=>a(43946)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js deleted file mode 100644 index 4f87dbc..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3075],{45090:(e,a,r)=>{Promise.resolve().then(r.bind(r,76641))},76641:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>d});var s=r(95155);r(12115);var l=r(76046),t=r(48173),c=r.n(t);let d=e=>{let{children:a}=e,r=(0,l.usePathname)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,s.jsx)("h1",{className:"text-3xl font-semibold",children:"Experimental"})}),(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,s.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,s.jsx)(c(),{href:"/dashboard/experimental/quecwatch",className:"".concat("/dashboard/experimental/quecwatch/"===r?"font-semibold text-primary":"text-sm"),children:"QuecWatch"}),(0,s.jsx)(c(),{href:"/dashboard/experimental/quecprofiles",className:"".concat("/dashboard/experimental/quecprofiles/"===r?"font-semibold text-primary":"text-sm"),children:"QuecProfiles"}),(0,s.jsx)(c(),{href:"/dashboard/experimental/keep-alive",className:"".concat("/dashboard/experimental/keep-alive/"===r?"font-semibold text-primary":"text-sm"),children:"Keep Alive"}),(0,s.jsx)(c(),{href:"/dashboard/experimental/cell-scanner",className:"".concat("/dashboard/experimental/cell-scanner/"===r?"font-semibold text-primary":"text-sm"),children:"Cell Scanner"}),(0,s.jsx)(c(),{href:"/dashboard/experimental/freq-calculator",className:"".concat("/dashboard/experimental/freq-calculator/"===r?"font-semibold text-primary":"text-sm"),children:"Frequency Calculator"})]}),a]})]})}}},e=>{var a=a=>e(e.s=a);e.O(0,[1028,8441,1517,7358],()=>a(45090)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-6508e2a223029fa4.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-6508e2a223029fa4.js new file mode 100644 index 0000000..481b7c1 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-6508e2a223029fa4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3075],{43946:(e,a,r)=>{Promise.resolve().then(r.bind(r,31753))},31753:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>c});var t=r(20475);r(20107);var s=r(16118),l=r(9477),n=r.n(l);let c=e=>{let{children:a}=e,r=(0,s.usePathname)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,t.jsx)("h1",{className:"text-3xl font-semibold",children:"Experimental"})}),(0,t.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,t.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,t.jsx)(n(),{href:"/dashboard/experimental/quecwatch",className:"".concat("/dashboard/experimental/quecwatch/"===r?"font-semibold text-primary":"text-sm"),children:"QuecWatch"}),(0,t.jsx)(n(),{href:"/dashboard/experimental/quecprofiles",className:"".concat("/dashboard/experimental/quecprofiles/"===r?"font-semibold text-primary":"text-sm"),children:"QuecProfiles"}),(0,t.jsx)(n(),{href:"/dashboard/experimental/keep-alive",className:"".concat("/dashboard/experimental/keep-alive/"===r?"font-semibold text-primary":"text-sm"),children:"Keep Alive"}),(0,t.jsx)(n(),{href:"/dashboard/experimental/cell-scanner",className:"".concat("/dashboard/experimental/cell-scanner/"===r?"font-semibold text-primary":"text-sm"),children:"Cell Scanner"}),(0,t.jsx)(n(),{href:"/dashboard/experimental/freq-calculator",className:"".concat("/dashboard/experimental/freq-calculator/"===r?"font-semibold text-primary":"text-sm"),children:"Frequency Calculator"})]}),a]})]})}},16118:(e,a,r)=>{"use strict";var t=r(65834);r.o(t,"usePathname")&&r.d(a,{usePathname:function(){return t.usePathname}}),r.o(t,"useRouter")&&r.d(a,{useRouter:function(){return t.useRouter}})}},e=>{var a=a=>e(e.s=a);e.O(0,[9477,191,6035,7358],()=>a(43946)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-8c87b3bd05239a53.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-8c87b3bd05239a53.js new file mode 100644 index 0000000..f08864f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-8c87b3bd05239a53.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7040],{75267:(e,s,_)=>{Promise.resolve().then(_.bind(_,79824))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,3048,9824,191,6035,7358],()=>s(75267)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-a92b6b304ef59e93.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-a92b6b304ef59e93.js deleted file mode 100644 index 08bfdbb..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-a92b6b304ef59e93.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7040],{93931:(e,s,_)=>{Promise.resolve().then(_.bind(_,37123))}},e=>{var s=s=>e(e.s=s);e.O(0,[5105,1365,7401,9895,2019,9975,9710,7123,8441,1517,7358],()=>s(93931)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-d9c08fdd6716e62a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-d9c08fdd6716e62a.js new file mode 100644 index 0000000..3327a0e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-d9c08fdd6716e62a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7040],{75267:(e,s,_)=>{Promise.resolve().then(_.bind(_,79824))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,3048,9824,191,6035,7358],()=>s(75267)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-262b250c7e780fdd.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-262b250c7e780fdd.js new file mode 100644 index 0000000..a9fe4cd --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-262b250c7e780fdd.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9473],{61437:(e,s,a)=>{Promise.resolve().then(a.bind(a,33990))},33990:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>F});var t=a(20475),r=a(20107),i=a(32857),l=a(72167),n=a(55948),d=a(93557),c=a(35601),o=a(42541),m=a(17799),p=a(39997);let h=(0,p.A)("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]);var x=a(59166),u=a(97801),f=a(98969);let g=(0,p.A)("UserRoundPen",[["path",{d:"M2 21a8 8 0 0 1 10.821-7.487",key:"1c8h7z"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}]]);var j=a(52161);let N=(0,p.A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]]),y=(0,p.A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),b=(0,p.A)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);var v=a(25262);let w=(0,p.A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]),_=(0,p.A)("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]]);var P=a(51873),k=a(14389),C=a(49153),A=a(64219),E=a(36760),I=a(45934),T=a(49573),S=a(76554);let F=()=>{let{toast:e}=(0,i.dj)(),[s,a]=(0,r.useState)([]),[p,F]=(0,r.useState)(!0),[M,L]=(0,r.useState)(!1),[R,z]=(0,r.useState)("grid"),[J,D]=(0,r.useState)(!1),[q,V]=(0,r.useState)("create"),[O,G]=(0,r.useState)(null),[B,U]=(0,r.useState)(null),[$,Z]=(0,r.useState)(""),[W,X]=(0,r.useState)(!1),[H,Y]=(0,r.useState)({iccid:"",imei:""}),[K,Q]=(0,r.useState)({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),[ee,es]=(0,r.useState)(null);(0,r.useEffect)(()=>{et(),er(),ea();let e=setInterval(er,5e3);return()=>clearInterval(e)},[]);let ea=async()=>{X(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=9");if(!e.ok)throw Error("Failed to fetch device information");let s=await e.json();console.log("Device info response:",s);let a="",t="",r=s.find(e=>"AT+ICCID"===e.command);if(r&&"success"===r.status){let e=r.response.match(/\d{10,20}/);e&&(a=e[0])}let i=s.find(e=>"AT+CGSN"===e.command);if(i&&"success"===i.status){let e=i.response.match(/\d{15}/);e&&(t=e[0])}console.log("Extracted device info - ICCID:",a,"IMEI:",t),Y({iccid:a,imei:t}),Q(e=>({...e,iccid:a||e.iccid,imei:t||e.imei}))}catch(s){console.error("Error fetching device information:",s),e({title:"Info",description:"Could not auto-populate device information",variant:"default"})}finally{X(!1)}},et=async()=>{F(!0);try{let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();"success"===s.status&&Array.isArray(s.profiles)?(console.log("Fetched profiles:",s.profiles),a(s.profiles)):(console.error("Invalid profile data structure:",s),a([]))}else console.error("Failed to fetch profiles:",e.statusText),a([])}catch(s){console.error("Error fetching profiles:",s),a([]),e({title:"Error",description:"Failed to load profiles. Please try again.",variant:"destructive"})}finally{F(!1)}},er=async()=>{try{let s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(s.ok){let a=await s.json();U(a),"idle"===a.status||a.status===$||a.message.includes("already applied")||a.message.includes("Profile already correctly applied")||"applying"!==a.status||(e({title:"Profile: ".concat(a.profile),description:a.message,variant:"error"===a.status?"destructive":"default"}),Z(a.status))}}catch(e){}},ei=e=>{let{id:s,value:a}=e.target;if("ttl"===s){let e=parseInt(a);if(""===a||isNaN(e)||e<0){Q({...K,ttl:"0"});return}if(e>255){Q({...K,ttl:"255"});return}}Q({...K,[s]:a})},el=(e,s)=>{Q({...K,[e]:s})},en=e=>{let s=e.trim(),a=s.indexOf("{");a>0&&(s=s.substring(a));let t=0,r=s.length;for(let e=0;e{L(!0),es(null);try{let s;if(!K.name||!K.iccid||!K.apn){es("Profile name, ICCID, and APN are required"),L(!1);return}if(K.ttl&&(0>parseInt(K.ttl)||parseInt(K.ttl)>255)){es("TTL must be between 0 and 255"),L(!1);return}let a={name:K.name,iccid:K.iccid,imei:K.imei||"",apn:K.apn,pdp_type:K.pdp_type,lte_bands:K.lte_bands,sa_nr5g_bands:K.sa_nr5g_bands||"",nsa_nr5g_bands:K.nsa_nr5g_bands||"",network_type:K.network_type,ttl:K.ttl||"0",paused:"0"},t=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_create.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),r=await t.text();try{s=en(r)}catch(e){es("Invalid response format from server"),L(!1);return}"success"===s.status?(D(!1),Q({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile created successfully",variant:"default"}),await et(),await er()):es(s.message||"Failed to create profile")}catch(e){es("An unexpected error occurred")}finally{L(!1)}},ec=async()=>{L(!0),es(null);try{let s;if(!K.name||!K.iccid||!K.apn){es("Profile name, ICCID, and APN are required"),L(!1);return}if(K.ttl&&(0>parseInt(K.ttl)||parseInt(K.ttl)>255)){es("TTL must be between 0 and 255"),L(!1);return}let a={name:K.name,iccid:K.iccid,imei:K.imei||"",apn:K.apn,pdp_type:K.pdp_type,lte_bands:K.lte_bands,sa_nr5g_bands:K.sa_nr5g_bands||"",nsa_nr5g_bands:K.nsa_nr5g_bands||"",network_type:K.network_type,ttl:K.ttl||"0",paused:K.paused||"0"};console.log("Sending update request with data:",a);let t=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_edit.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),r=await t.text();try{s=en(r)}catch(e){es("Invalid response format from server"),L(!1);return}"success"===s.status?(D(!1),Q({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile updated successfully",variant:"default"}),await et()):es(s.message||"Failed to update profile")}catch(e){es("An unexpected error occurred")}finally{L(!1)}},eo=async(s,a)=>{try{let t;if(!window.confirm('Are you sure you want to delete profile "'.concat(a,'"?')))return;let r=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_delete.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s})}),i=await r.text();try{t=en(i)}catch(s){e({title:"Error",description:"Failed to parse server response",variant:"destructive"});return}"success"===t.status?(e({title:"Profile Deleted",description:'Profile "'.concat(a,'" has been deleted successfully'),variant:"default"}),await et(),await er()):e({title:"Error",description:t.message||"Failed to delete profile",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while deleting the profile",variant:"destructive"})}},em=async(s,a,t)=>{try{let a;let r="1"===t?"0":"1",i=await fetch("/cgi-bin/quecmanager/profiles/toggle_pause.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s,paused:r})}),l=await i.text();try{a=en(l)}catch(s){e({title:"Error",description:"Invalid response format from server",variant:"destructive"});return}"success"===a.status?(e({title:"1"===r?"Profile Paused":"Profile Resumed",description:a.message,variant:"default"}),await et(),await er()):e({title:"Error",description:a.message||"Failed to update profile status",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while updating the profile",variant:"destructive"})}},ep=e=>{V("edit"),Q({name:e.name,iccid:e.iccid,imei:e.imei||"",apn:e.apn,pdp_type:e.pdp_type,lte_bands:e.lte_bands,sa_nr5g_bands:e.sa_nr5g_bands||"",nsa_nr5g_bands:e.nsa_nr5g_bands||"",network_type:e.network_type,ttl:e.ttl||"0",paused:e.paused||"0"}),G(e),es(null),D(!0)},eh=e=>{switch(e){case"AUTO":return"AUTO";case"LTE":return"4G LTE";case"NR5G":return"5G SA";case"LTE:NR5G":return"NR5G-NSA";default:return e}};return(0,t.jsx)("div",{children:(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"QuecProfiles"}),(0,t.jsx)(l.BT,{children:"Configure personalized profiles for your SIM cards to manage connectivity settings and network preferences."})]}),(0,t.jsxs)(l.Wu,{className:"grid gap-y-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(d.lG,{open:J,onOpenChange:D,children:[(0,t.jsx)(d.zM,{asChild:!0,children:(0,t.jsxs)(o.$,{onClick:()=>{V("create"),es(null),Q({name:"",iccid:H.iccid||"",imei:H.imei||"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),D(!0)},children:[(0,t.jsx)(g,{className:"w-4 h-4"}),"Add New Profile"]})}),(0,t.jsxs)(d.Cf,{children:[(0,t.jsxs)(d.c7,{children:[(0,t.jsx)(d.L3,{children:"create"===q?"Add New Profile":"Edit Profile"}),(0,t.jsx)(d.rr,{children:"create"===q?"Create a new profile for your SIM card to manage connectivity settings and network preferences.":"Update the settings for this profile."})]}),ee&&(0,t.jsxs)(T.Fc,{variant:"destructive",className:"my-2",children:[(0,t.jsx)(m.A,{className:"h-4 w-4"}),(0,t.jsx)(T.XL,{children:"Error"}),(0,t.jsx)(T.TN,{children:ee})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-5 gap-x-4 py-4",children:[(0,t.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"name",children:"Profile Name"}),(0,t.jsx)(A.p,{id:"name",placeholder:"My Network Profile",value:K.name,onChange:ei,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"iccid",children:"ICCID"}),(0,t.jsx)(A.p,{id:"iccid",placeholder:"SIM ICCID",value:K.iccid,onChange:ei,disabled:"edit"===q,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"imei",children:"IMEI"}),(0,t.jsx)(A.p,{id:"imei",placeholder:"Preferred IMEI",value:K.imei,onChange:ei})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"apn",children:"APN"}),(0,t.jsx)(A.p,{id:"apn",placeholder:"internet",value:K.apn,onChange:ei,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"pdp_type",children:"APN PDP Type"}),(0,t.jsxs)(c.l6,{value:K.pdp_type,onValueChange:e=>el("pdp_type",e),children:[(0,t.jsx)(c.bq,{children:(0,t.jsx)(c.yv,{placeholder:"PDP Type"})}),(0,t.jsxs)(c.gC,{children:[(0,t.jsx)(c.eb,{value:"IP",children:"IPV4"}),(0,t.jsx)(c.eb,{value:"IPV6",children:"IPV6"}),(0,t.jsx)(c.eb,{value:"IPV4V6",children:"IPV4 & IPV6"})]})]})]}),(0,t.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"lte_bands",children:"LTE Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"lte_bands",placeholder:"1,3,7,20",value:K.lte_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of LTE bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"nsa_nr5g_bands",children:"NR5G-NSA Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"nsa_nr5g_bands",placeholder:"41,78",value:K.nsa_nr5g_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of NSA bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"sa_nr5g_bands",children:"NR5G-SA Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"sa_nr5g_bands",placeholder:"41,78",value:K.sa_nr5g_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of SA bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"network_type",children:"Network Type"}),(0,t.jsxs)(c.l6,{value:K.network_type,onValueChange:e=>el("network_type",e),children:[(0,t.jsx)(c.bq,{children:(0,t.jsx)(c.yv,{placeholder:"Network Type"})}),(0,t.jsxs)(c.gC,{children:[(0,t.jsx)(c.eb,{value:"LTE",children:"LTE Only"}),(0,t.jsx)(c.eb,{value:"NR5G",children:"NR5G Only"}),(0,t.jsx)(c.eb,{value:"LTE:NR5G",children:"NR5G-NSA w/ LTE"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"ttl",children:"TTL Value"}),(0,t.jsx)("div",{className:"grid gap-0.5",children:(0,t.jsx)(A.p,{id:"ttl",type:"number",min:"0",max:"255",placeholder:"0 (disabled)",value:K.ttl,onChange:ei})})]})]}),(0,t.jsx)(d.Es,{children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(o.$,{variant:"secondary",onClick:()=>D(!1),disabled:M,children:"Cancel"}),(0,t.jsx)(o.$,{onClick:"create"===q?ed:ec,disabled:M,children:M?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.A,{className:"h-4 w-4 animate-spin"}),"create"===q?"Creating...":"Updating..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.A,{className:"h-4 w-4"}),"create"===q?"Save Profile":"Update Profile"]})})]})})]})]}),(0,t.jsxs)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-md p-1",children:[(0,t.jsx)("button",{className:"p-1 rounded ".concat("grid"===R?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>z("grid"),children:(0,t.jsx)(N,{size:18})}),(0,t.jsx)("button",{className:"p-1 rounded ".concat("list"===R?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>z("list"),children:(0,t.jsx)(y,{size:18})})]})]}),"grid"===R&&(0,t.jsx)("div",{className:"grid gap-4",children:p?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"border rounded-lg p-4",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(E.E,{className:"h-5 w-40"}),(0,t.jsx)(E.E,{className:"h-4 w-20"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E.E,{className:"h-3 w-20"}),(0,t.jsx)(E.E,{className:"h-4 w-32"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E.E,{className:"h-3 w-20"}),(0,t.jsx)(E.E,{className:"h-4 w-32"})]})]})]})})}):s&&s.length>0?s.map((e,s)=>(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsx)(l.ZB,{className:"xl:text-xl font-bold tracking-wide",children:e.name}),(0,t.jsxs)(n.AM,{children:[(0,t.jsx)(n.Wv,{children:(0,t.jsx)(b,{className:"h-4 w-4"})}),(0,t.jsxs)(n.hl,{className:"grid gap-2 max-w-[180px]",children:[(0,t.jsx)(o.$,{size:"sm",variant:"outline",className:"p-1",onClick:()=>em(e.iccid,e.name,e.paused||"0"),children:"1"===e.paused?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.A,{className:"w-4 h-4 text-emerald-500"}),"Resume Profile"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w,{className:"w-4 h-4 text-orange-500"}),"Pause Profile"]})}),(0,t.jsxs)(o.$,{size:"sm",onClick:()=>ep(e),variant:"outline",children:[(0,t.jsx)(_,{className:"w-4 h-4"}),"Edit Profile"]}),(0,t.jsx)(S.w,{className:"w-full my-2"}),(0,t.jsxs)(o.$,{size:"sm",variant:"destructive",onClick:()=>eo(e.iccid,e.name),children:[(0,t.jsx)(P.A,{className:"w-4 h-4"}),"Delete Profile"]})]})]})]}),(0,t.jsxs)(l.BT,{className:"flex items-center",children:[(0,t.jsx)(I.E,{variant:"secondary",className:"text-xs",children:eh(e.network_type)}),"1"===e.paused&&(0,t.jsx)(I.E,{variant:"outline",className:"ml-2 bg-orange-500 hover:bg-orange-600",children:"Paused"})]})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"ICCID-".concat(s),className:"text-sm text-muted-foreground",children:"SIM ICCID"}),(0,t.jsx)("p",{id:"ICCID-".concat(s),className:"font-semibold",children:e.iccid})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"IMEI-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred IMEI"}),(0,t.jsx)("p",{id:"IMEI-".concat(s),className:"font-semibold",children:e.imei||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"APN-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN"}),(0,t.jsx)("p",{id:"APN-".concat(s),className:"font-semibold",children:e.apn})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"PDP-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN PDP Type"}),(0,t.jsx)("p",{id:"PDP-".concat(s),className:"font-semibold",children:e.pdp_type})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefTTl-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred TTL"}),(0,t.jsx)("p",{id:"prefTTL-".concat(s),className:"font-semibold",children:e.ttl||"0"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefLTEBands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred LTE Bands"}),(0,t.jsx)("p",{id:"prefLTEBands-".concat(s),className:"font-semibold",children:e.lte_bands||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefNRNSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,t.jsx)("p",{id:"prefNRNSABands-".concat(s),className:"font-semibold",children:e.nsa_nr5g_bands||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefNRSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-SA Bands"}),(0,t.jsx)("p",{id:"prefNRSABands-".concat(s),className:"font-semibold",children:e.sa_nr5g_bands||"-"})]})]})})]},s)):(0,t.jsxs)("div",{className:"text-center py-8 border rounded-lg",children:[(0,t.jsx)("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",children:(0,t.jsx)(g,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsx)("h3",{className:"font-medium text-lg mb-1",children:"No Profiles Found"}),(0,t.jsx)("p",{className:"text-muted-foreground mb-4",children:"Simplify network management with profiles that automatically apply your preferred settings."})]})}),"list"===R&&(0,t.jsx)("div",{className:"border rounded-md overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-muted/50",children:[(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Profile Name"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"ICCID"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"APN (PDP Type)"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Network Type"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"TTL"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Actions"})]})}),(0,t.jsx)("tbody",{children:p?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("tr",{className:"border-t",children:[(0,t.jsxs)("td",{className:"p-4",children:[(0,t.jsx)(E.E,{className:"h-5 w-32"}),(0,t.jsx)(E.E,{className:"h-3 w-24 mt-1"})]}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-40"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-28"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-20"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-10"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(E.E,{className:"h-8 w-8 rounded-md"}),(0,t.jsx)(E.E,{className:"h-8 w-8 rounded-md"})]})})]})}):s&&s.length>0?s.map((e,s)=>(0,t.jsxs)("tr",{className:"border-t hover:bg-muted/50 transition-colors",children:[(0,t.jsxs)("td",{className:"p-4",children:[(0,t.jsxs)("div",{className:"font-medium",children:[e.name,"1"===e.paused&&(0,t.jsx)(I.E,{variant:"outline",className:"ml-2 text-xs bg-amber-100 text-amber-700 border-amber-300",children:"Paused"})]}),(0,t.jsxs)("div",{className:"text-xs text-muted-foreground",children:["IMEI: ",e.imei||"Not specified"]})]}),(0,t.jsx)("td",{className:"p-4 font-mono text-sm",children:e.iccid}),(0,t.jsxs)("td",{className:"p-4",children:[e.apn," ",(0,t.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.pdp_type,")"]})]}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(I.E,{variant:"secondary",className:"text-xs",children:eh(e.network_type)})}),(0,t.jsx)("td",{className:"p-4",children:e.ttl&&parseInt(e.ttl)>0?(0,t.jsx)(I.E,{variant:"outline",className:"text-xs",children:e.ttl}):(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:"Off"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>ep(e),children:[(0,t.jsx)(_,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Edit"})]}),(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>em(e.iccid,e.name,e.paused||"0"),title:"1"===e.paused?"Resume Profile":"Pause Profile",children:["1"===e.paused?(0,t.jsx)(k.A,{className:"h-4 w-4 text-green-600"}):(0,t.jsx)(h,{className:"h-4 w-4 text-amber-600"}),(0,t.jsx)("span",{className:"sr-only",children:"1"===e.paused?"Resume":"Pause"})]}),(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>eo(e.iccid,e.name),children:[(0,t.jsx)(P.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})]},s)):(0,t.jsx)("tr",{className:"border-t",children:(0,t.jsx)("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:"No profiles found. Create one to get started."})})})]})}),(()=>{if(!B||"idle"===B.status)return B&&B.message&&B.message.includes("No profile exists")?(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"default",children:[(0,t.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,t.jsx)(T.XL,{children:"No Profile Found"}),(0,t.jsx)(T.TN,{className:"flex justify-between items-center",children:(0,t.jsx)("span",{children:"No profile exists for the current SIM card. Create a profile to configure your network settings."})})]}):null;if("paused"===B.status)return(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"default",children:[(0,t.jsx)(h,{className:"h-4 w-4",color:"orange"}),(0,t.jsx)(T.XL,{children:"Profile Paused"}),(0,t.jsx)(T.TN,{className:"flex justify-between items-center",children:(0,t.jsx)("span",{children:B.message||'Profile "'.concat(B.profile,'" is currently paused. Resume to apply settings.')})})]});let e=B.message,s="";return"error"===B.status?(s="Profile Issue",B.message.includes("missing the required APN setting")?(s="Missing APN Setting",e='Please edit profile "'.concat(B.profile,'" and add an APN to enable network connectivity.')):B.message.includes("Could not detect SIM card")?(s="SIM Card Not Detected",e="Please check that a SIM card is properly inserted in your device."):B.message.includes("Could not communicate with modem")&&(s="Modem Communication Error",e="Having trouble connecting to the cellular modem. Please check your device.")):"success"===B.status&&(B.message.includes("already applied")||B.message.includes("Profile already correctly applied"))?(s="Profile Active",e='Profile "'.concat(B.profile,'" is active and correctly applied')):"applying"===B.status?s="Applying Profile":"rebooting"===B.status?(s="Device Rebooting",e="Your device is restarting to apply configuration changes."):s="Success",(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"error"===B.status?"destructive":"default",children:["applying"===B.status?(0,t.jsx)(x.A,{className:"h-4 w-4 animate-spin"}):"error"===B.status?(0,t.jsx)(m.A,{className:"h-4 w-4",color:"orange"}):"rebooting"===B.status?(0,t.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,t.jsx)(f.A,{className:"h-4 w-4",color:"green"}),(0,t.jsx)(T.XL,{children:s}),(0,t.jsxs)(T.TN,{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{children:e}),"applying"===B.status&&(0,t.jsxs)("span",{className:"font-semibold",children:[B.progress,"%"]})]})]})})()]})]})})}},93557:(e,s,a)=>{"use strict";a.d(s,{Cf:()=>h,Es:()=>u,HM:()=>m,L3:()=>f,c7:()=>x,lG:()=>d,rr:()=>g,zM:()=>c});var t=a(20475),r=a(20107),i=a(60241),l=a(7197),n=a(22250);let d=i.bL,c=i.l9,o=i.ZL,m=i.bm,p=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.hJ,{ref:s,className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r})});p.displayName=i.hJ.displayName;let h=r.forwardRef((e,s)=>{let{className:a,children:r,...d}=e;return(0,t.jsxs)(o,{children:[(0,t.jsx)(p,{}),(0,t.jsxs)(i.UC,{ref:s,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...d,children:[r,(0,t.jsxs)(i.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(l.MKb,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});h.displayName=i.UC.displayName;let x=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...a})};x.displayName="DialogHeader";let u=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a})};u.displayName="DialogFooter";let f=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.hE,{ref:s,className:(0,n.cn)("text-lg font-semibold leading-none tracking-tight",a),...r})});f.displayName=i.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.VY,{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});g.displayName=i.VY.displayName},55948:(e,s,a)=>{"use strict";a.d(s,{AM:()=>n,Wv:()=>d,hl:()=>c});var t=a(20475),r=a(20107),i=a(21869),l=a(22250);let n=i.bL,d=i.l9;i.Mz;let c=r.forwardRef((e,s)=>{let{className:a,align:r="center",sideOffset:n=4,...d}=e;return(0,t.jsx)(i.ZL,{children:(0,t.jsx)(i.UC,{ref:s,align:r,sideOffset:n,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...d})})});c.displayName=i.UC.displayName},36760:(e,s,a)=>{"use strict";a.d(s,{E:()=>i});var t=a(20475),r=a(22250);function i(e){let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...a})}},17799:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},14389:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},25262:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,241,4736,2487,191,6035,7358],()=>s(61437)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-297321f02a1d8550.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-297321f02a1d8550.js deleted file mode 100644 index 3ac9ce0..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-297321f02a1d8550.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9473],{64213:(e,s,a)=>{Promise.resolve().then(a.bind(a,4161))},4161:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>F});var t=a(95155),r=a(12115),i=a(20241),l=a(35007),n=a(51124),d=a(7837),c=a(50745),o=a(14085),m=a(61594),p=a(67401);let h=(0,p.A)("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]);var x=a(14505),u=a(4834),f=a(26336);let g=(0,p.A)("UserRoundPen",[["path",{d:"M2 21a8 8 0 0 1 10.821-7.487",key:"1c8h7z"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}]]);var j=a(87780);let N=(0,p.A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]]),y=(0,p.A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),b=(0,p.A)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);var v=a(29191);let w=(0,p.A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]),_=(0,p.A)("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]]);var P=a(45686),k=a(40886),C=a(15785),A=a(9955),E=a(25488),I=a(39286),T=a(39677),S=a(89282);let F=()=>{let{toast:e}=(0,i.dj)(),[s,a]=(0,r.useState)([]),[p,F]=(0,r.useState)(!0),[M,L]=(0,r.useState)(!1),[R,z]=(0,r.useState)("grid"),[J,D]=(0,r.useState)(!1),[q,V]=(0,r.useState)("create"),[O,G]=(0,r.useState)(null),[B,U]=(0,r.useState)(null),[$,Z]=(0,r.useState)(""),[W,X]=(0,r.useState)(!1),[H,Y]=(0,r.useState)({iccid:"",imei:""}),[K,Q]=(0,r.useState)({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),[ee,es]=(0,r.useState)(null);(0,r.useEffect)(()=>{et(),er(),ea();let e=setInterval(er,5e3);return()=>clearInterval(e)},[]);let ea=async()=>{X(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=9");if(!e.ok)throw Error("Failed to fetch device information");let s=await e.json();console.log("Device info response:",s);let a="",t="",r=s.find(e=>"AT+ICCID"===e.command);if(r&&"success"===r.status){let e=r.response.match(/\d{10,20}/);e&&(a=e[0])}let i=s.find(e=>"AT+CGSN"===e.command);if(i&&"success"===i.status){let e=i.response.match(/\d{15}/);e&&(t=e[0])}console.log("Extracted device info - ICCID:",a,"IMEI:",t),Y({iccid:a,imei:t}),Q(e=>({...e,iccid:a||e.iccid,imei:t||e.imei}))}catch(s){console.error("Error fetching device information:",s),e({title:"Info",description:"Could not auto-populate device information",variant:"default"})}finally{X(!1)}},et=async()=>{F(!0);try{let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();"success"===s.status&&Array.isArray(s.profiles)?(console.log("Fetched profiles:",s.profiles),a(s.profiles)):(console.error("Invalid profile data structure:",s),a([]))}else console.error("Failed to fetch profiles:",e.statusText),a([])}catch(s){console.error("Error fetching profiles:",s),a([]),e({title:"Error",description:"Failed to load profiles. Please try again.",variant:"destructive"})}finally{F(!1)}},er=async()=>{try{let s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(s.ok){let a=await s.json();U(a),"idle"===a.status||a.status===$||a.message.includes("already applied")||a.message.includes("Profile already correctly applied")||"applying"!==a.status||(e({title:"Profile: ".concat(a.profile),description:a.message,variant:"error"===a.status?"destructive":"default"}),Z(a.status))}}catch(e){}},ei=e=>{let{id:s,value:a}=e.target;if("ttl"===s){let e=parseInt(a);if(""===a||isNaN(e)||e<0){Q({...K,ttl:"0"});return}if(e>255){Q({...K,ttl:"255"});return}}Q({...K,[s]:a})},el=(e,s)=>{Q({...K,[e]:s})},en=e=>{let s=e.trim(),a=s.indexOf("{");a>0&&(s=s.substring(a));let t=0,r=s.length;for(let e=0;e{L(!0),es(null);try{let s;if(!K.name||!K.iccid||!K.apn){es("Profile name, ICCID, and APN are required"),L(!1);return}if(K.ttl&&(0>parseInt(K.ttl)||parseInt(K.ttl)>255)){es("TTL must be between 0 and 255"),L(!1);return}let a={name:K.name,iccid:K.iccid,imei:K.imei||"",apn:K.apn,pdp_type:K.pdp_type,lte_bands:K.lte_bands,sa_nr5g_bands:K.sa_nr5g_bands||"",nsa_nr5g_bands:K.nsa_nr5g_bands||"",network_type:K.network_type,ttl:K.ttl||"0",paused:"0"},t=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_create.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),r=await t.text();try{s=en(r)}catch(e){es("Invalid response format from server"),L(!1);return}"success"===s.status?(D(!1),Q({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile created successfully",variant:"default"}),await et(),await er()):es(s.message||"Failed to create profile")}catch(e){es("An unexpected error occurred")}finally{L(!1)}},ec=async()=>{L(!0),es(null);try{let s;if(!K.name||!K.iccid||!K.apn){es("Profile name, ICCID, and APN are required"),L(!1);return}if(K.ttl&&(0>parseInt(K.ttl)||parseInt(K.ttl)>255)){es("TTL must be between 0 and 255"),L(!1);return}let a={name:K.name,iccid:K.iccid,imei:K.imei||"",apn:K.apn,pdp_type:K.pdp_type,lte_bands:K.lte_bands,sa_nr5g_bands:K.sa_nr5g_bands||"",nsa_nr5g_bands:K.nsa_nr5g_bands||"",network_type:K.network_type,ttl:K.ttl||"0",paused:K.paused||"0"};console.log("Sending update request with data:",a);let t=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_edit.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),r=await t.text();try{s=en(r)}catch(e){es("Invalid response format from server"),L(!1);return}"success"===s.status?(D(!1),Q({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile updated successfully",variant:"default"}),await et()):es(s.message||"Failed to update profile")}catch(e){es("An unexpected error occurred")}finally{L(!1)}},eo=async(s,a)=>{try{let t;if(!window.confirm('Are you sure you want to delete profile "'.concat(a,'"?')))return;let r=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_delete.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s})}),i=await r.text();try{t=en(i)}catch(s){e({title:"Error",description:"Failed to parse server response",variant:"destructive"});return}"success"===t.status?(e({title:"Profile Deleted",description:'Profile "'.concat(a,'" has been deleted successfully'),variant:"default"}),await et(),await er()):e({title:"Error",description:t.message||"Failed to delete profile",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while deleting the profile",variant:"destructive"})}},em=async(s,a,t)=>{try{let a;let r="1"===t?"0":"1",i=await fetch("/cgi-bin/quecmanager/profiles/toggle_pause.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s,paused:r})}),l=await i.text();try{a=en(l)}catch(s){e({title:"Error",description:"Invalid response format from server",variant:"destructive"});return}"success"===a.status?(e({title:"1"===r?"Profile Paused":"Profile Resumed",description:a.message,variant:"default"}),await et(),await er()):e({title:"Error",description:a.message||"Failed to update profile status",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while updating the profile",variant:"destructive"})}},ep=e=>{V("edit"),Q({name:e.name,iccid:e.iccid,imei:e.imei||"",apn:e.apn,pdp_type:e.pdp_type,lte_bands:e.lte_bands,sa_nr5g_bands:e.sa_nr5g_bands||"",nsa_nr5g_bands:e.nsa_nr5g_bands||"",network_type:e.network_type,ttl:e.ttl||"0",paused:e.paused||"0"}),G(e),es(null),D(!0)},eh=e=>{switch(e){case"AUTO":return"AUTO";case"LTE":return"4G LTE";case"NR5G":return"5G SA";case"LTE:NR5G":return"NR5G-NSA";default:return e}};return(0,t.jsx)("div",{children:(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"QuecProfiles"}),(0,t.jsx)(l.BT,{children:"Configure personalized profiles for your SIM cards to manage connectivity settings and network preferences."})]}),(0,t.jsxs)(l.Wu,{className:"grid gap-y-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(d.lG,{open:J,onOpenChange:D,children:[(0,t.jsx)(d.zM,{asChild:!0,children:(0,t.jsxs)(o.$,{onClick:()=>{V("create"),es(null),Q({name:"",iccid:H.iccid||"",imei:H.imei||"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),D(!0)},children:[(0,t.jsx)(g,{className:"w-4 h-4"}),"Add New Profile"]})}),(0,t.jsxs)(d.Cf,{children:[(0,t.jsxs)(d.c7,{children:[(0,t.jsx)(d.L3,{children:"create"===q?"Add New Profile":"Edit Profile"}),(0,t.jsx)(d.rr,{children:"create"===q?"Create a new profile for your SIM card to manage connectivity settings and network preferences.":"Update the settings for this profile."})]}),ee&&(0,t.jsxs)(T.Fc,{variant:"destructive",className:"my-2",children:[(0,t.jsx)(m.A,{className:"h-4 w-4"}),(0,t.jsx)(T.XL,{children:"Error"}),(0,t.jsx)(T.TN,{children:ee})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-5 gap-x-4 py-4",children:[(0,t.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"name",children:"Profile Name"}),(0,t.jsx)(A.p,{id:"name",placeholder:"My Network Profile",value:K.name,onChange:ei,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"iccid",children:"ICCID"}),(0,t.jsx)(A.p,{id:"iccid",placeholder:"SIM ICCID",value:K.iccid,onChange:ei,disabled:"edit"===q,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"imei",children:"IMEI"}),(0,t.jsx)(A.p,{id:"imei",placeholder:"Preferred IMEI",value:K.imei,onChange:ei})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"apn",children:"APN"}),(0,t.jsx)(A.p,{id:"apn",placeholder:"internet",value:K.apn,onChange:ei,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"pdp_type",children:"APN PDP Type"}),(0,t.jsxs)(c.l6,{value:K.pdp_type,onValueChange:e=>el("pdp_type",e),children:[(0,t.jsx)(c.bq,{children:(0,t.jsx)(c.yv,{placeholder:"PDP Type"})}),(0,t.jsxs)(c.gC,{children:[(0,t.jsx)(c.eb,{value:"IP",children:"IPV4"}),(0,t.jsx)(c.eb,{value:"IPV6",children:"IPV6"}),(0,t.jsx)(c.eb,{value:"IPV4V6",children:"IPV4 & IPV6"})]})]})]}),(0,t.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"lte_bands",children:"LTE Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"lte_bands",placeholder:"1,3,7,20",value:K.lte_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of LTE bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"nsa_nr5g_bands",children:"NR5G-NSA Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"nsa_nr5g_bands",placeholder:"41,78",value:K.nsa_nr5g_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of NSA bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"sa_nr5g_bands",children:"NR5G-SA Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"sa_nr5g_bands",placeholder:"41,78",value:K.sa_nr5g_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of SA bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"network_type",children:"Network Type"}),(0,t.jsxs)(c.l6,{value:K.network_type,onValueChange:e=>el("network_type",e),children:[(0,t.jsx)(c.bq,{children:(0,t.jsx)(c.yv,{placeholder:"Network Type"})}),(0,t.jsxs)(c.gC,{children:[(0,t.jsx)(c.eb,{value:"LTE",children:"LTE Only"}),(0,t.jsx)(c.eb,{value:"NR5G",children:"NR5G Only"}),(0,t.jsx)(c.eb,{value:"LTE:NR5G",children:"NR5G-NSA w/ LTE"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"ttl",children:"TTL Value"}),(0,t.jsx)("div",{className:"grid gap-0.5",children:(0,t.jsx)(A.p,{id:"ttl",type:"number",min:"0",max:"255",placeholder:"0 (disabled)",value:K.ttl,onChange:ei})})]})]}),(0,t.jsx)(d.Es,{children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(o.$,{variant:"secondary",onClick:()=>D(!1),disabled:M,children:"Cancel"}),(0,t.jsx)(o.$,{onClick:"create"===q?ed:ec,disabled:M,children:M?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.A,{className:"h-4 w-4 animate-spin"}),"create"===q?"Creating...":"Updating..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.A,{className:"h-4 w-4"}),"create"===q?"Save Profile":"Update Profile"]})})]})})]})]}),(0,t.jsxs)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-md p-1",children:[(0,t.jsx)("button",{className:"p-1 rounded ".concat("grid"===R?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>z("grid"),children:(0,t.jsx)(N,{size:18})}),(0,t.jsx)("button",{className:"p-1 rounded ".concat("list"===R?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>z("list"),children:(0,t.jsx)(y,{size:18})})]})]}),"grid"===R&&(0,t.jsx)("div",{className:"grid gap-4",children:p?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"border rounded-lg p-4",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(E.E,{className:"h-5 w-40"}),(0,t.jsx)(E.E,{className:"h-4 w-20"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E.E,{className:"h-3 w-20"}),(0,t.jsx)(E.E,{className:"h-4 w-32"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E.E,{className:"h-3 w-20"}),(0,t.jsx)(E.E,{className:"h-4 w-32"})]})]})]})})}):s&&s.length>0?s.map((e,s)=>(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsx)(l.ZB,{className:"xl:text-xl font-bold tracking-wide",children:e.name}),(0,t.jsxs)(n.AM,{children:[(0,t.jsx)(n.Wv,{children:(0,t.jsx)(b,{className:"h-4 w-4"})}),(0,t.jsxs)(n.hl,{className:"grid gap-2 max-w-[180px]",children:[(0,t.jsx)(o.$,{size:"sm",variant:"outline",className:"p-1",onClick:()=>em(e.iccid,e.name,e.paused||"0"),children:"1"===e.paused?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.A,{className:"w-4 h-4 text-emerald-500"}),"Resume Profile"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w,{className:"w-4 h-4 text-orange-500"}),"Pause Profile"]})}),(0,t.jsxs)(o.$,{size:"sm",onClick:()=>ep(e),variant:"outline",children:[(0,t.jsx)(_,{className:"w-4 h-4"}),"Edit Profile"]}),(0,t.jsx)(S.w,{className:"w-full my-2"}),(0,t.jsxs)(o.$,{size:"sm",variant:"destructive",onClick:()=>eo(e.iccid,e.name),children:[(0,t.jsx)(P.A,{className:"w-4 h-4"}),"Delete Profile"]})]})]})]}),(0,t.jsxs)(l.BT,{className:"flex items-center",children:[(0,t.jsx)(I.E,{variant:"secondary",className:"text-xs",children:eh(e.network_type)}),"1"===e.paused&&(0,t.jsx)(I.E,{variant:"outline",className:"ml-2 bg-orange-500 hover:bg-orange-600",children:"Paused"})]})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"ICCID-".concat(s),className:"text-sm text-muted-foreground",children:"SIM ICCID"}),(0,t.jsx)("p",{id:"ICCID-".concat(s),className:"font-semibold",children:e.iccid})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"IMEI-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred IMEI"}),(0,t.jsx)("p",{id:"IMEI-".concat(s),className:"font-semibold",children:e.imei||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"APN-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN"}),(0,t.jsx)("p",{id:"APN-".concat(s),className:"font-semibold",children:e.apn})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"PDP-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN PDP Type"}),(0,t.jsx)("p",{id:"PDP-".concat(s),className:"font-semibold",children:e.pdp_type})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefTTl-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred TTL"}),(0,t.jsx)("p",{id:"prefTTL-".concat(s),className:"font-semibold",children:e.ttl||"0"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefLTEBands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred LTE Bands"}),(0,t.jsx)("p",{id:"prefLTEBands-".concat(s),className:"font-semibold",children:e.lte_bands||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefNRNSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,t.jsx)("p",{id:"prefNRNSABands-".concat(s),className:"font-semibold",children:e.nsa_nr5g_bands||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefNRSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-SA Bands"}),(0,t.jsx)("p",{id:"prefNRSABands-".concat(s),className:"font-semibold",children:e.sa_nr5g_bands||"-"})]})]})})]},s)):(0,t.jsxs)("div",{className:"text-center py-8 border rounded-lg",children:[(0,t.jsx)("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",children:(0,t.jsx)(g,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsx)("h3",{className:"font-medium text-lg mb-1",children:"No Profiles Found"}),(0,t.jsx)("p",{className:"text-muted-foreground mb-4",children:"Simplify network management with profiles that automatically apply your preferred settings."})]})}),"list"===R&&(0,t.jsx)("div",{className:"border rounded-md overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-muted/50",children:[(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Profile Name"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"ICCID"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"APN (PDP Type)"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Network Type"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"TTL"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Actions"})]})}),(0,t.jsx)("tbody",{children:p?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("tr",{className:"border-t",children:[(0,t.jsxs)("td",{className:"p-4",children:[(0,t.jsx)(E.E,{className:"h-5 w-32"}),(0,t.jsx)(E.E,{className:"h-3 w-24 mt-1"})]}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-40"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-28"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-20"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-10"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(E.E,{className:"h-8 w-8 rounded-md"}),(0,t.jsx)(E.E,{className:"h-8 w-8 rounded-md"})]})})]})}):s&&s.length>0?s.map((e,s)=>(0,t.jsxs)("tr",{className:"border-t hover:bg-muted/50 transition-colors",children:[(0,t.jsxs)("td",{className:"p-4",children:[(0,t.jsxs)("div",{className:"font-medium",children:[e.name,"1"===e.paused&&(0,t.jsx)(I.E,{variant:"outline",className:"ml-2 text-xs bg-amber-100 text-amber-700 border-amber-300",children:"Paused"})]}),(0,t.jsxs)("div",{className:"text-xs text-muted-foreground",children:["IMEI: ",e.imei||"Not specified"]})]}),(0,t.jsx)("td",{className:"p-4 font-mono text-sm",children:e.iccid}),(0,t.jsxs)("td",{className:"p-4",children:[e.apn," ",(0,t.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.pdp_type,")"]})]}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(I.E,{variant:"secondary",className:"text-xs",children:eh(e.network_type)})}),(0,t.jsx)("td",{className:"p-4",children:e.ttl&&parseInt(e.ttl)>0?(0,t.jsx)(I.E,{variant:"outline",className:"text-xs",children:e.ttl}):(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:"Off"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>ep(e),children:[(0,t.jsx)(_,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Edit"})]}),(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>em(e.iccid,e.name,e.paused||"0"),title:"1"===e.paused?"Resume Profile":"Pause Profile",children:["1"===e.paused?(0,t.jsx)(k.A,{className:"h-4 w-4 text-green-600"}):(0,t.jsx)(h,{className:"h-4 w-4 text-amber-600"}),(0,t.jsx)("span",{className:"sr-only",children:"1"===e.paused?"Resume":"Pause"})]}),(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>eo(e.iccid,e.name),children:[(0,t.jsx)(P.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})]},s)):(0,t.jsx)("tr",{className:"border-t",children:(0,t.jsx)("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:"No profiles found. Create one to get started."})})})]})}),(()=>{if(!B||"idle"===B.status)return B&&B.message&&B.message.includes("No profile exists")?(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"default",children:[(0,t.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,t.jsx)(T.XL,{children:"No Profile Found"}),(0,t.jsx)(T.TN,{className:"flex justify-between items-center",children:(0,t.jsx)("span",{children:"No profile exists for the current SIM card. Create a profile to configure your network settings."})})]}):null;if("paused"===B.status)return(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"default",children:[(0,t.jsx)(h,{className:"h-4 w-4",color:"orange"}),(0,t.jsx)(T.XL,{children:"Profile Paused"}),(0,t.jsx)(T.TN,{className:"flex justify-between items-center",children:(0,t.jsx)("span",{children:B.message||'Profile "'.concat(B.profile,'" is currently paused. Resume to apply settings.')})})]});let e=B.message,s="";return"error"===B.status?(s="Profile Issue",B.message.includes("missing the required APN setting")?(s="Missing APN Setting",e='Please edit profile "'.concat(B.profile,'" and add an APN to enable network connectivity.')):B.message.includes("Could not detect SIM card")?(s="SIM Card Not Detected",e="Please check that a SIM card is properly inserted in your device."):B.message.includes("Could not communicate with modem")&&(s="Modem Communication Error",e="Having trouble connecting to the cellular modem. Please check your device.")):"success"===B.status&&(B.message.includes("already applied")||B.message.includes("Profile already correctly applied"))?(s="Profile Active",e='Profile "'.concat(B.profile,'" is active and correctly applied')):"applying"===B.status?s="Applying Profile":"rebooting"===B.status?(s="Device Rebooting",e="Your device is restarting to apply configuration changes."):s="Success",(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"error"===B.status?"destructive":"default",children:["applying"===B.status?(0,t.jsx)(x.A,{className:"h-4 w-4 animate-spin"}):"error"===B.status?(0,t.jsx)(m.A,{className:"h-4 w-4",color:"orange"}):"rebooting"===B.status?(0,t.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,t.jsx)(f.A,{className:"h-4 w-4",color:"green"}),(0,t.jsx)(T.XL,{children:s}),(0,t.jsxs)(T.TN,{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{children:e}),"applying"===B.status&&(0,t.jsxs)("span",{className:"font-semibold",children:[B.progress,"%"]})]})]})})()]})]})})}},7837:(e,s,a)=>{"use strict";a.d(s,{Cf:()=>h,Es:()=>u,HM:()=>m,L3:()=>f,c7:()=>x,lG:()=>d,rr:()=>g,zM:()=>c});var t=a(95155),r=a(12115),i=a(66217),l=a(87365),n=a(29602);let d=i.bL,c=i.l9,o=i.ZL,m=i.bm,p=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.hJ,{ref:s,className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r})});p.displayName=i.hJ.displayName;let h=r.forwardRef((e,s)=>{let{className:a,children:r,...d}=e;return(0,t.jsxs)(o,{children:[(0,t.jsx)(p,{}),(0,t.jsxs)(i.UC,{ref:s,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...d,children:[r,(0,t.jsxs)(i.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(l.MKb,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});h.displayName=i.UC.displayName;let x=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...a})};x.displayName="DialogHeader";let u=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a})};u.displayName="DialogFooter";let f=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.hE,{ref:s,className:(0,n.cn)("text-lg font-semibold leading-none tracking-tight",a),...r})});f.displayName=i.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.VY,{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});g.displayName=i.VY.displayName},51124:(e,s,a)=>{"use strict";a.d(s,{AM:()=>n,Wv:()=>d,hl:()=>c});var t=a(95155),r=a(12115),i=a(80532),l=a(29602);let n=i.bL,d=i.l9;i.Mz;let c=r.forwardRef((e,s)=>{let{className:a,align:r="center",sideOffset:n=4,...d}=e;return(0,t.jsx)(i.ZL,{children:(0,t.jsx)(i.UC,{ref:s,align:r,sideOffset:n,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...d})})});c.displayName=i.UC.displayName},25488:(e,s,a)=>{"use strict";a.d(s,{E:()=>i});var t=a(95155),r=a(29602);function i(e){let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...a})}},61594:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(67401).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},40886:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(67401).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},29191:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(67401).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])}},e=>{var s=s=>e(e.s=s);e.O(0,[5105,1365,7401,9895,2019,9975,4346,6586,8441,1517,7358],()=>s(64213)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-3fe35599356ee15c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-3fe35599356ee15c.js new file mode 100644 index 0000000..e3244d1 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-3fe35599356ee15c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9473],{61437:(e,s,t)=>{Promise.resolve().then(t.bind(t,22256))},22256:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>D});var a=t(20475),r=t(20107),n=t(32857),i=t(72167),d=t(48547),l=t(22250);let c=d.bL,o=d.l9;d.Mz;let m=r.forwardRef((e,s)=>{let{className:t,align:r="center",sideOffset:n=4,...i}=e;return(0,a.jsx)(d.ZL,{children:(0,a.jsx)(d.UC,{ref:s,align:r,sideOffset:n,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})})});m.displayName=d.UC.displayName;var p=t(93557),u=t(35601),f=t(42541),x=t(17799),h=t(61003),g=t(59166),N=t(97801),j=t(98969),y=t(10528),b=t(52161),v=t(46361),w=t(26780),_=t(32024),P=t(25262),T=t(57718),A=t(1870),C=t(51873),E=t(14389),I=t(49153),S=t(64219),k=t(36760),R=t(45934),F=t(49573),L=t(76554);let D=()=>{let{toast:e}=(0,n.dj)(),[s,t]=(0,r.useState)([]),[d,l]=(0,r.useState)(!0),[D,O]=(0,r.useState)(!1),[M,J]=(0,r.useState)("grid"),[z,V]=(0,r.useState)(!1),[q,B]=(0,r.useState)("create"),[G,U]=(0,r.useState)(null),[$,Z]=(0,r.useState)(null),[X,H]=(0,r.useState)(""),[W,Y]=(0,r.useState)({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),[Q,K]=(0,r.useState)(null);(0,r.useEffect)(()=>{ee(),es();let e=setInterval(es,5e3);return()=>clearInterval(e)},[]);let ee=async()=>{l(!0);try{let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();"success"===s.status&&Array.isArray(s.profiles)?(console.log("Fetched profiles:",s.profiles),t(s.profiles)):(console.error("Invalid profile data structure:",s),t([]))}else console.error("Failed to fetch profiles:",e.statusText),t([])}catch(s){console.error("Error fetching profiles:",s),t([]),e({title:"Error",description:"Failed to load profiles. Please try again.",variant:"destructive"})}finally{l(!1)}},es=async()=>{try{let s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(s.ok){let t=await s.json();Z(t),"idle"===t.status||t.status===X||t.message.includes("already applied")||t.message.includes("Profile already correctly applied")||"applying"!==t.status||(e({title:"Profile: ".concat(t.profile),description:t.message,variant:"error"===t.status?"destructive":"default"}),H(t.status))}}catch(e){}},et=e=>{let{id:s,value:t}=e.target;if("ttl"===s){let e=parseInt(t);if(""===t||isNaN(e)||e<0){Y({...W,ttl:"0"});return}if(e>255){Y({...W,ttl:"255"});return}}Y({...W,[s]:t})},ea=(e,s)=>{Y({...W,[e]:s})},er=e=>{let s=e.trim(),t=s.indexOf("{");t>0&&(s=s.substring(t));let a=0,r=s.length;for(let e=0;e{O(!0),K(null);try{let s;if(!W.name||!W.iccid||!W.apn){K("Profile name, ICCID, and APN are required"),O(!1);return}if(W.ttl&&(0>parseInt(W.ttl)||parseInt(W.ttl)>255)){K("TTL must be between 0 and 255"),O(!1);return}let t={name:W.name,iccid:W.iccid,imei:W.imei||"",apn:W.apn,pdp_type:W.pdp_type,lte_bands:W.lte_bands,sa_nr5g_bands:W.sa_nr5g_bands||"",nsa_nr5g_bands:W.nsa_nr5g_bands||"",network_type:W.network_type,ttl:W.ttl||"0",paused:"0"},a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_create.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=er(r)}catch(e){K("Invalid response format from server"),O(!1);return}"success"===s.status?(V(!1),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile created successfully",variant:"default"}),await ee(),await es()):K(s.message||"Failed to create profile")}catch(e){K("An unexpected error occurred")}finally{O(!1)}},ei=async()=>{O(!0),K(null);try{let s;if(!W.name||!W.iccid||!W.apn){K("Profile name, ICCID, and APN are required"),O(!1);return}if(W.ttl&&(0>parseInt(W.ttl)||parseInt(W.ttl)>255)){K("TTL must be between 0 and 255"),O(!1);return}let t={name:W.name,iccid:W.iccid,imei:W.imei||"",apn:W.apn,pdp_type:W.pdp_type,lte_bands:W.lte_bands,sa_nr5g_bands:W.sa_nr5g_bands||"",nsa_nr5g_bands:W.nsa_nr5g_bands||"",network_type:W.network_type,ttl:W.ttl||"0",paused:W.paused||"0"};console.log("Sending update request with data:",t);let a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_edit.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=er(r)}catch(e){K("Invalid response format from server"),O(!1);return}"success"===s.status?(V(!1),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile updated successfully",variant:"default"}),await ee()):K(s.message||"Failed to update profile")}catch(e){K("An unexpected error occurred")}finally{O(!1)}},ed=async(s,t)=>{try{let a;if(!window.confirm('Are you sure you want to delete profile "'.concat(t,'"?')))return;let r=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_delete.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s})}),n=await r.text();try{a=er(n)}catch(s){e({title:"Error",description:"Failed to parse server response",variant:"destructive"});return}"success"===a.status?(e({title:"Profile Deleted",description:'Profile "'.concat(t,'" has been deleted successfully'),variant:"default"}),await ee(),await es()):e({title:"Error",description:a.message||"Failed to delete profile",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while deleting the profile",variant:"destructive"})}},el=async(s,t,a)=>{try{let t;let r="1"===a?"0":"1",n=await fetch("/cgi-bin/quecmanager/profiles/toggle_pause.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s,paused:r})}),i=await n.text();try{t=er(i)}catch(s){e({title:"Error",description:"Invalid response format from server",variant:"destructive"});return}"success"===t.status?(e({title:"1"===r?"Profile Paused":"Profile Resumed",description:t.message,variant:"default"}),await ee(),await es()):e({title:"Error",description:t.message||"Failed to update profile status",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while updating the profile",variant:"destructive"})}},ec=e=>{B("edit"),Y({name:e.name,iccid:e.iccid,imei:e.imei||"",apn:e.apn,pdp_type:e.pdp_type,lte_bands:e.lte_bands,sa_nr5g_bands:e.sa_nr5g_bands||"",nsa_nr5g_bands:e.nsa_nr5g_bands||"",network_type:e.network_type,ttl:e.ttl||"0",paused:e.paused||"0"}),U(e),K(null),V(!0)},eo=e=>{switch(e){case"AUTO":return"AUTO";case"LTE":return"4G LTE";case"NR5G":return"5G SA";case"LTE:NR5G":return"NR5G-NSA";default:return e}};return(0,a.jsx)("div",{children:(0,a.jsxs)(i.Zp,{children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsx)(i.ZB,{children:"QuecProfiles"}),(0,a.jsx)(i.BT,{children:"Configure personalized profiles for your SIM cards to manage connectivity settings and network preferences."})]}),(0,a.jsxs)(i.Wu,{className:"grid gap-y-8",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)(p.lG,{open:z,onOpenChange:V,children:[(0,a.jsx)(p.zM,{asChild:!0,children:(0,a.jsxs)(f.$,{onClick:()=>{B("create"),K(null),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"})},children:[(0,a.jsx)(y.A,{className:"w-4 h-4"}),"Add New Profile"]})}),(0,a.jsxs)(p.Cf,{children:[(0,a.jsxs)(p.c7,{children:[(0,a.jsx)(p.L3,{children:"create"===q?"Add New Profile":"Edit Profile"}),(0,a.jsx)(p.rr,{children:"create"===q?"Create a new profile for your SIM card to manage connectivity settings and network preferences.":"Update the settings for this profile."})]}),Q&&(0,a.jsxs)(F.Fc,{variant:"destructive",className:"my-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4"}),(0,a.jsx)(F.XL,{children:"Error"}),(0,a.jsx)(F.TN,{children:Q})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-5 gap-x-4 py-4",children:[(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"name",children:"Profile Name"}),(0,a.jsx)(S.p,{id:"name",placeholder:"My Network Profile",value:W.name,onChange:et,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"iccid",children:"ICCID"}),(0,a.jsx)(S.p,{id:"iccid",placeholder:"SIM ICCID",value:W.iccid,onChange:et,disabled:"edit"===q,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"imei",children:"IMEI"}),(0,a.jsx)(S.p,{id:"imei",placeholder:"Preferred IMEI",value:W.imei,onChange:et})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"apn",children:"APN"}),(0,a.jsx)(S.p,{id:"apn",placeholder:"internet",value:W.apn,onChange:et,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"pdp_type",children:"APN PDP Type"}),(0,a.jsxs)(u.l6,{value:W.pdp_type,onValueChange:e=>ea("pdp_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"PDP Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"IP",children:"IPV4"}),(0,a.jsx)(u.eb,{value:"IPV6",children:"IPV6"}),(0,a.jsx)(u.eb,{value:"IPV4V6",children:"IPV4 & IPV6"})]})]})]}),(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"lte_bands",children:"LTE Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"lte_bands",placeholder:"1,3,7,20",value:W.lte_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of LTE bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"nsa_nr5g_bands",children:"NR5G-NSA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"nsa_nr5g_bands",placeholder:"41,78",value:W.nsa_nr5g_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of NSA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"sa_nr5g_bands",children:"NR5G-SA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"sa_nr5g_bands",placeholder:"41,78",value:W.sa_nr5g_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of SA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"network_type",children:"Network Type"}),(0,a.jsxs)(u.l6,{value:W.network_type,onValueChange:e=>ea("network_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"Network Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"LTE",children:"LTE Only"}),(0,a.jsx)(u.eb,{value:"NR5G",children:"NR5G Only"}),(0,a.jsx)(u.eb,{value:"LTE:NR5G",children:"NR5G-NSA w/ LTE"})]})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"ttl",children:"TTL Value"}),(0,a.jsx)("div",{className:"grid gap-0.5",children:(0,a.jsx)(S.p,{id:"ttl",type:"number",min:"0",max:"255",placeholder:"0 (disabled)",value:W.ttl,onChange:et})})]})]}),(0,a.jsx)(p.Es,{children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(f.$,{variant:"secondary",onClick:()=>V(!1),disabled:D,children:"Cancel"}),(0,a.jsx)(f.$,{onClick:"create"===q?en:ei,disabled:D,children:D?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}),"create"===q?"Creating...":"Updating..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.A,{className:"h-4 w-4"}),"create"===q?"Save Profile":"Update Profile"]})})]})})]})]}),(0,a.jsxs)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-md p-1",children:[(0,a.jsx)("button",{className:"p-1 rounded ".concat("grid"===M?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>J("grid"),children:(0,a.jsx)(v.A,{size:18})}),(0,a.jsx)("button",{className:"p-1 rounded ".concat("list"===M?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>J("list"),children:(0,a.jsx)(w.A,{size:18})})]})]}),"grid"===M&&(0,a.jsx)("div",{className:"grid gap-4",children:d?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"border rounded-lg p-4",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(k.E,{className:"h-5 w-40"}),(0,a.jsx)(k.E,{className:"h-4 w-20"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(k.E,{className:"h-3 w-20"}),(0,a.jsx)(k.E,{className:"h-4 w-32"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(k.E,{className:"h-3 w-20"}),(0,a.jsx)(k.E,{className:"h-4 w-32"})]})]})]})})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)(i.Zp,{children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)(i.ZB,{className:"xl:text-xl font-bold tracking-wide",children:e.name}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o,{children:(0,a.jsx)(_.A,{className:"h-4 w-4"})}),(0,a.jsxs)(m,{className:"grid gap-2 max-w-[180px]",children:[(0,a.jsx)(f.$,{size:"sm",variant:"outline",className:"p-1",onClick:()=>el(e.iccid,e.name,e.paused||"0"),children:"1"===e.paused?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.A,{className:"w-4 h-4 text-emerald-500"}),"Resume Profile"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.A,{className:"w-4 h-4 text-orange-500"}),"Pause Profile"]})}),(0,a.jsxs)(f.$,{size:"sm",onClick:()=>ec(e),variant:"outline",children:[(0,a.jsx)(A.A,{className:"w-4 h-4"}),"Edit Profile"]}),(0,a.jsx)(L.w,{className:"w-full my-2"}),(0,a.jsxs)(f.$,{size:"sm",variant:"destructive",onClick:()=>ed(e.iccid,e.name),children:[(0,a.jsx)(C.A,{className:"w-4 h-4"}),"Delete Profile"]})]})]})]}),(0,a.jsx)(i.BT,{className:"flex items-center",children:(0,a.jsx)(R.E,{variant:"secondary",className:"text-xs",children:eo(e.network_type)})})]}),(0,a.jsx)(i.Wu,{children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"ICCID-".concat(s),className:"text-sm text-muted-foreground",children:"SIM ICCID"}),(0,a.jsx)("p",{id:"ICCID-".concat(s),className:"font-semibold",children:e.iccid})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"IMEI-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred IMEI"}),(0,a.jsx)("p",{id:"IMEI-".concat(s),className:"font-semibold",children:e.imei||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"APN-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN"}),(0,a.jsx)("p",{id:"APN-".concat(s),className:"font-semibold",children:e.apn})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"PDP-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN PDP Type"}),(0,a.jsx)("p",{id:"PDP-".concat(s),className:"font-semibold",children:e.pdp_type})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefTTl-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred TTL"}),(0,a.jsx)("p",{id:"prefTTL-".concat(s),className:"font-semibold",children:e.ttl||"0"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefLTEBands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred LTE Bands"}),(0,a.jsx)("p",{id:"prefLTEBands-".concat(s),className:"font-semibold",children:e.lte_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefNRNSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,a.jsx)("p",{id:"prefNRNSABands-".concat(s),className:"font-semibold",children:e.nsa_nr5g_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefNRSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-SA Bands"}),(0,a.jsx)("p",{id:"prefNRSABands-".concat(s),className:"font-semibold",children:e.sa_nr5g_bands||"-"})]})]})})]},s)):(0,a.jsxs)("div",{className:"text-center py-8 border rounded-lg",children:[(0,a.jsx)("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",children:(0,a.jsx)(y.A,{className:"h-6 w-6 text-muted-foreground"})}),(0,a.jsx)("h3",{className:"font-medium text-lg mb-1",children:"No Profiles Found"}),(0,a.jsx)("p",{className:"text-muted-foreground mb-4",children:"Simplify network management with profiles that automatically apply your preferred settings."})]})}),"list"===M&&(0,a.jsx)("div",{className:"border rounded-md overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-muted/50",children:[(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Profile Name"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"ICCID"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"APN (PDP Type)"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Network Type"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"TTL"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Actions"})]})}),(0,a.jsx)("tbody",{children:d?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("tr",{className:"border-t",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsx)(k.E,{className:"h-5 w-32"}),(0,a.jsx)(k.E,{className:"h-3 w-24 mt-1"})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-40"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-28"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-20"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-10"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(k.E,{className:"h-8 w-8 rounded-md"}),(0,a.jsx)(k.E,{className:"h-8 w-8 rounded-md"})]})})]})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)("tr",{className:"border-t hover:bg-muted/50 transition-colors",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsxs)("div",{className:"font-medium",children:[e.name,"1"===e.paused&&(0,a.jsx)(R.E,{variant:"outline",className:"ml-2 text-xs bg-amber-100 text-amber-700 border-amber-300",children:"Paused"})]}),(0,a.jsxs)("div",{className:"text-xs text-muted-foreground",children:["IMEI: ",e.imei||"Not specified"]})]}),(0,a.jsx)("td",{className:"p-4 font-mono text-sm",children:e.iccid}),(0,a.jsxs)("td",{className:"p-4",children:[e.apn," ",(0,a.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.pdp_type,")"]})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(R.E,{variant:"secondary",className:"text-xs",children:eo(e.network_type)})}),(0,a.jsx)("td",{className:"p-4",children:e.ttl&&parseInt(e.ttl)>0?(0,a.jsx)(R.E,{variant:"outline",className:"text-xs",children:e.ttl}):(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"Off"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>ec(e),children:[(0,a.jsx)(A.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Edit"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>el(e.iccid,e.name,e.paused||"0"),title:"1"===e.paused?"Resume Profile":"Pause Profile",children:["1"===e.paused?(0,a.jsx)(E.A,{className:"h-4 w-4 text-green-600"}):(0,a.jsx)(h.A,{className:"h-4 w-4 text-amber-600"}),(0,a.jsx)("span",{className:"sr-only",children:"1"===e.paused?"Resume":"Pause"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>ed(e.iccid,e.name),children:[(0,a.jsx)(C.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})]},s)):(0,a.jsx)("tr",{className:"border-t",children:(0,a.jsx)("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:"No profiles found. Create one to get started."})})})]})}),(()=>{if(!$||"idle"===$.status)return $&&$.message&&$.message.includes("No profile exists")?(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(F.XL,{children:"No Profile Found"}),(0,a.jsx)(F.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:"No profile exists for the current SIM card. Create a profile to configure your network settings."})})]}):null;if("paused"===$.status)return(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(h.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(F.XL,{children:"Profile Paused"}),(0,a.jsx)(F.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:$.message||'Profile "'.concat($.profile,'" is currently paused. Resume to apply settings.')})})]});let e=$.message,s="";return"error"===$.status?(s="Profile Issue",$.message.includes("missing the required APN setting")?(s="Missing APN Setting",e='Please edit profile "'.concat($.profile,'" and add an APN to enable network connectivity.')):$.message.includes("Could not detect SIM card")?(s="SIM Card Not Detected",e="Please check that a SIM card is properly inserted in your device."):$.message.includes("Could not communicate with modem")&&(s="Modem Communication Error",e="Having trouble connecting to the cellular modem. Please check your device.")):"success"===$.status&&($.message.includes("already applied")||$.message.includes("Profile already correctly applied"))?(s="Profile Active",e='Profile "'.concat($.profile,'" is active and correctly applied')):"applying"===$.status?s="Applying Profile":"rebooting"===$.status?(s="Device Rebooting",e="Your device is restarting to apply configuration changes."):s="Success",(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"error"===$.status?"destructive":"default",children:["applying"===$.status?(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}):"error"===$.status?(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}):"rebooting"===$.status?(0,a.jsx)(N.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(j.A,{className:"h-4 w-4",color:"green"}),(0,a.jsx)(F.XL,{children:s}),(0,a.jsxs)(F.TN,{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{children:e}),"applying"===$.status&&(0,a.jsxs)("span",{className:"font-semibold",children:[$.progress,"%"]})]})]})})()]})]})})}},49573:(e,s,t)=>{"use strict";t.d(s,{Fc:()=>l,TN:()=>o,XL:()=>c});var a=t(20475),r=t(20107),n=t(29395),i=t(22250);let d=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=r.forwardRef((e,s)=>{let{className:t,variant:r,...n}=e;return(0,a.jsx)("div",{ref:s,role:"alert",className:(0,i.cn)(d({variant:r}),t),...n})});l.displayName="Alert";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h5",{ref:s,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",t),...r})});c.displayName="AlertTitle";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",t),...r})});o.displayName="AlertDescription"},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>d});var a=t(20475);t(20107);var r=t(29395),n=t(22250);let i=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){let{className:s,variant:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)(i({variant:t}),s),...r})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>c,r:()=>l});var a=t(20475),r=t(20107),n=t(61837),i=t(29395),d=t(22250);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:t,variant:r,size:i,asChild:c=!1,...o}=e,m=c?n.DX:"button";return(0,a.jsx)(m,{className:(0,d.cn)(l({variant:r,size:i,className:t})),ref:s,...o})});c.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>c,Wu:()=>o,ZB:()=>l,Zp:()=>i,aR:()=>d,wL:()=>m});var a=t(20475),r=t(20107),n=t(22250);let i=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...r})});i.displayName="Card";let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...r})});d.displayName="CardHeader";let l=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",t),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",t),...r})});m.displayName="CardFooter"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>u,Es:()=>x,HM:()=>m,L3:()=>h,c7:()=>f,lG:()=>l,rr:()=>g,zM:()=>c});var a=t(20475),r=t(20107),n=t(60241),i=t(7197),d=t(22250);let l=n.bL,c=n.l9,o=n.ZL,m=n.bm,p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hJ,{ref:s,className:(0,d.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})});p.displayName=n.hJ.displayName;let u=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(o,{children:[(0,a.jsx)(p,{}),(0,a.jsxs)(n.UC,{ref:s,className:(0,d.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...l,children:[r,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(i.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=n.UC.displayName;let f=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};f.displayName="DialogHeader";let x=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};x.displayName="DialogFooter";let h=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hE,{ref:s,className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});h.displayName=n.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.VY,{ref:s,className:(0,d.cn)("text-sm text-muted-foreground",t),...r})});g.displayName=n.VY.displayName},64219:(e,s,t)=>{"use strict";t.d(s,{p:()=>i});var a=t(20475),r=t(20107),n=t(22250);let i=r.forwardRef((e,s)=>{let{className:t,type:r,...i}=e;return(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...i})});i.displayName="Input"},49153:(e,s,t)=>{"use strict";t.d(s,{J:()=>c});var a=t(20475),r=t(20107),n=t(21840),i=t(29395),d=t(22250);let l=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.b,{ref:s,className:(0,d.cn)(l(),t),...r})});c.displayName=n.b.displayName},35601:(e,s,t)=>{"use strict";t.d(s,{TR:()=>x,bq:()=>m,eb:()=>h,gC:()=>f,l6:()=>l,s3:()=>c,yv:()=>o});var a=t(20475),r=t(20107),n=t(7197),i=t(95257),d=t(22250);let l=i.bL,c=i.YJ,o=i.WT,m=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(i.l9,{ref:s,className:(0,d.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...l,children:[r,(0,a.jsx)(i.In,{asChild:!0,children:(0,a.jsx)(n.TBE,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=i.l9.displayName;let p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.PP,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(n.Mtm,{})})});p.displayName=i.PP.displayName;let u=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.wn,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(n.D3D,{})})});u.displayName=i.wn.displayName;let f=r.forwardRef((e,s)=>{let{className:t,children:r,position:n="popper",...l}=e;return(0,a.jsx)(i.ZL,{children:(0,a.jsxs)(i.UC,{ref:s,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...l,children:[(0,a.jsx)(p,{}),(0,a.jsx)(i.LM,{className:(0,d.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(u,{})]})})});f.displayName=i.UC.displayName;let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.JU,{ref:s,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",t),...r})});x.displayName=i.JU.displayName;let h=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(i.q7,{ref:s,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(i.VF,{children:(0,a.jsx)(n.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(i.p4,{children:r})]})});h.displayName=i.q7.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.wv,{ref:s,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",t),...r})}).displayName=i.wv.displayName},76554:(e,s,t)=>{"use strict";t.d(s,{w:()=>d});var a=t(20475),r=t(20107),n=t(88853),i=t(22250);let d=r.forwardRef((e,s)=>{let{className:t,orientation:r="horizontal",decorative:d=!0,...l}=e;return(0,a.jsx)(n.b,{ref:s,decorative:d,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...l})});d.displayName=n.b.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>n});var a=t(20475),r=t(22250);function n(e){let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>p,oR:()=>m});var a=t(20107);let r=0,n=new Map,i=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},d=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},l=[],c={toasts:[]};function o(e){c=d(c,e),l.forEach(e=>{e(c)})}function m(e){let{...s}=e,t=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>o({type:"DISMISS_TOAST",toastId:t});return o({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||a()}}}),{id:t,dismiss:a,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function p(){let[e,s]=a.useState(c);return a.useEffect(()=>(l.push(s),()=>{let e=l.indexOf(s);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>n});var a=t(64901),r=t(868);function n(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,241,5766,191,6035,7358],()=>s(61437)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-4a6c191a1f38b382.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-4a6c191a1f38b382.js new file mode 100644 index 0000000..f274436 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-4a6c191a1f38b382.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9473],{61437:(e,s,t)=>{Promise.resolve().then(t.bind(t,22256))},22256:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>S});var a=t(20475),r=t(20107),n=t(32857),d=t(72167),i=t(48547),l=t(22250);let c=i.bL,o=i.l9;i.Mz;let m=r.forwardRef((e,s)=>{let{className:t,align:r="center",sideOffset:n=4,...d}=e;return(0,a.jsx)(i.ZL,{children:(0,a.jsx)(i.UC,{ref:s,align:r,sideOffset:n,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...d})})});m.displayName=i.UC.displayName;var p=t(93557),u=t(35601),f=t(42541),x=t(17799),h=t(59166),g=t(97801),N=t(98969),j=t(10528),y=t(52161),b=t(46361),v=t(26780),w=t(32024),_=t(1870),P=t(51873),T=t(49153),C=t(64219),E=t(36760),A=t(45934),I=t(49573);let S=()=>{let{toast:e}=(0,n.dj)(),[s,t]=(0,r.useState)([]),[i,l]=(0,r.useState)(!0),[S,k]=(0,r.useState)(!1),[R,F]=(0,r.useState)("grid"),[L,D]=(0,r.useState)(!1),[M,J]=(0,r.useState)("create"),[O,V]=(0,r.useState)(null),[z,q]=(0,r.useState)(null),[B,G]=(0,r.useState)(""),[U,Z]=(0,r.useState)({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0"}),[$,X]=(0,r.useState)(null);(0,r.useEffect)(()=>{H(),W();let e=setInterval(W,5e3);return()=>clearInterval(e)},[]);let H=async()=>{l(!0);try{let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();"success"===s.status&&Array.isArray(s.profiles)?(console.log("Fetched profiles:",s.profiles),t(s.profiles)):(console.error("Invalid profile data structure:",s),t([]))}else console.error("Failed to fetch profiles:",e.statusText),t([])}catch(s){console.error("Error fetching profiles:",s),t([]),e({title:"Error",description:"Failed to load profiles. Please try again.",variant:"destructive"})}finally{l(!1)}},W=async()=>{try{let s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(s.ok){let t=await s.json();q(t),"idle"===t.status||t.status===B||t.message.includes("already applied")||t.message.includes("Profile already correctly applied")||"applying"!==t.status||(e({title:"Profile: ".concat(t.profile),description:t.message,variant:"error"===t.status?"destructive":"default"}),G(t.status))}}catch(e){}},Y=e=>{let{id:s,value:t}=e.target;if("ttl"===s){let e=parseInt(t);if(""===t||isNaN(e)||e<0){Z({...U,ttl:"0"});return}if(e>255){Z({...U,ttl:"255"});return}}Z({...U,[s]:t})},Q=(e,s)=>{Z({...U,[e]:s})},K=e=>{let s=e.trim(),t=s.indexOf("{");t>0&&(s=s.substring(t));let a=0,r=s.length;for(let e=0;e{k(!0),X(null);try{let s;if(!U.name||!U.iccid||!U.apn){X("Profile name, ICCID, and APN are required"),k(!1);return}if(U.ttl&&(0>parseInt(U.ttl)||parseInt(U.ttl)>255)){X("TTL must be between 0 and 255"),k(!1);return}let t={name:U.name,iccid:U.iccid,imei:U.imei||"",apn:U.apn,pdp_type:U.pdp_type,lte_bands:U.lte_bands,sa_nr5g_bands:U.sa_nr5g_bands||"",nsa_nr5g_bands:U.nsa_nr5g_bands||"",network_type:U.network_type,ttl:U.ttl||"0"},a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_create.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=K(r)}catch(e){X("Invalid response format from server"),k(!1);return}"success"===s.status?(D(!1),Z({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0"}),e({title:"Success",description:"Profile created successfully",variant:"default"}),await H(),await W()):X(s.message||"Failed to create profile")}catch(e){X("An unexpected error occurred")}finally{k(!1)}},es=async()=>{k(!0),X(null);try{let s;if(!U.name||!U.iccid||!U.apn){X("Profile name, ICCID, and APN are required"),k(!1);return}if(U.ttl&&(0>parseInt(U.ttl)||parseInt(U.ttl)>255)){X("TTL must be between 0 and 255"),k(!1);return}let t={name:U.name,iccid:U.iccid,imei:U.imei||"",apn:U.apn,pdp_type:U.pdp_type,lte_bands:U.lte_bands,sa_nr5g_bands:U.sa_nr5g_bands||"",nsa_nr5g_bands:U.nsa_nr5g_bands||"",network_type:U.network_type,ttl:U.ttl||"0"};console.log("Sending update request with data:",t);let a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_edit.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=K(r)}catch(e){X("Invalid response format from server"),k(!1);return}"success"===s.status?(D(!1),Z({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0"}),e({title:"Success",description:"Profile updated successfully",variant:"default"}),await H()):X(s.message||"Failed to update profile")}catch(e){X("An unexpected error occurred")}finally{k(!1)}},et=async(s,t)=>{try{let a;if(!window.confirm('Are you sure you want to delete profile "'.concat(t,'"?')))return;let r=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_delete.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s})}),n=await r.text();try{a=K(n)}catch(s){e({title:"Error",description:"Failed to parse server response",variant:"destructive"});return}"success"===a.status?(e({title:"Profile Deleted",description:'Profile "'.concat(t,'" has been deleted successfully'),variant:"default"}),await H(),await W()):e({title:"Error",description:a.message||"Failed to delete profile",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while deleting the profile",variant:"destructive"})}},ea=e=>{J("edit"),Z({name:e.name,iccid:e.iccid,imei:e.imei||"",apn:e.apn,pdp_type:e.pdp_type,lte_bands:e.lte_bands,sa_nr5g_bands:e.sa_nr5g_bands||"",nsa_nr5g_bands:e.nsa_nr5g_bands||"",network_type:e.network_type,ttl:e.ttl||"0"}),V(e),X(null),D(!0)},er=e=>{switch(e){case"LTE":return"4G LTE";case"NR5G":return"5G SA";case"LTE:NR5G":return"NR5G-NSA w/ LTE";default:return e}};return(0,a.jsx)("div",{children:(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsx)(d.ZB,{children:"QuecProfiles"}),(0,a.jsx)(d.BT,{children:"Configure personalized profiles for your SIM cards to manage connectivity settings and network preferences."})]}),(0,a.jsxs)(d.Wu,{className:"grid gap-y-8",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)(p.lG,{open:L,onOpenChange:D,children:[(0,a.jsx)(p.zM,{asChild:!0,children:(0,a.jsxs)(f.$,{onClick:()=>{J("create"),X(null),Z({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0"})},children:[(0,a.jsx)(j.A,{className:"w-4 h-4"}),"Add New Profile"]})}),(0,a.jsxs)(p.Cf,{children:[(0,a.jsxs)(p.c7,{children:[(0,a.jsx)(p.L3,{children:"create"===M?"Add New Profile":"Edit Profile"}),(0,a.jsx)(p.rr,{children:"create"===M?"Create a new profile for your SIM card to manage connectivity settings and network preferences.":"Update the settings for this profile."})]}),$&&(0,a.jsxs)(I.Fc,{variant:"destructive",className:"my-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4"}),(0,a.jsx)(I.XL,{children:"Error"}),(0,a.jsx)(I.TN,{children:$})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-5 gap-x-4 py-4",children:[(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"name",children:"Profile Name"}),(0,a.jsx)(C.p,{id:"name",placeholder:"My Network Profile",value:U.name,onChange:Y,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"iccid",children:"ICCID"}),(0,a.jsx)(C.p,{id:"iccid",placeholder:"SIM ICCID",value:U.iccid,onChange:Y,disabled:"edit"===M,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"imei",children:"IMEI"}),(0,a.jsx)(C.p,{id:"imei",placeholder:"Preferred IMEI",value:U.imei,onChange:Y})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"apn",children:"APN"}),(0,a.jsx)(C.p,{id:"apn",placeholder:"internet",value:U.apn,onChange:Y,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"pdp_type",children:"APN PDP Type"}),(0,a.jsxs)(u.l6,{value:U.pdp_type,onValueChange:e=>Q("pdp_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"PDP Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"IP",children:"IPV4"}),(0,a.jsx)(u.eb,{value:"IPV6",children:"IPV6"}),(0,a.jsx)(u.eb,{value:"IPV4V6",children:"IPV4 & IPV6"})]})]})]}),(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"lte_bands",children:"LTE Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(C.p,{id:"lte_bands",placeholder:"1,3,7,20",value:U.lte_bands,onChange:Y}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of LTE bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"nsa_nr5g_bands",children:"NR5G-NSA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(C.p,{id:"nsa_nr5g_bands",placeholder:"41,78",value:U.nsa_nr5g_bands,onChange:Y}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of NSA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"sa_nr5g_bands",children:"NR5G-SA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(C.p,{id:"sa_nr5g_bands",placeholder:"41,78",value:U.sa_nr5g_bands,onChange:Y}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of SA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"network_type",children:"Network Type"}),(0,a.jsxs)(u.l6,{value:U.network_type,onValueChange:e=>Q("network_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"Network Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"LTE",children:"LTE Only"}),(0,a.jsx)(u.eb,{value:"NR5G",children:"NR5G Only"}),(0,a.jsx)(u.eb,{value:"LTE:NR5G",children:"NR5G-NSA w/ LTE"})]})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(T.J,{htmlFor:"ttl",children:"TTL Value"}),(0,a.jsx)("div",{className:"grid gap-0.5",children:(0,a.jsx)(C.p,{id:"ttl",type:"number",min:"0",max:"255",placeholder:"0 (disabled)",value:U.ttl,onChange:Y})})]})]}),(0,a.jsx)(p.Es,{children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(f.$,{variant:"secondary",onClick:()=>D(!1),disabled:S,children:"Cancel"}),(0,a.jsx)(f.$,{onClick:"create"===M?ee:es,disabled:S,children:S?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"h-4 w-4 animate-spin"}),"create"===M?"Creating...":"Updating..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.A,{className:"h-4 w-4"}),"create"===M?"Save Profile":"Update Profile"]})})]})})]})]}),(0,a.jsxs)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-md p-1",children:[(0,a.jsx)("button",{className:"p-1 rounded ".concat("grid"===R?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>F("grid"),children:(0,a.jsx)(b.A,{size:18})}),(0,a.jsx)("button",{className:"p-1 rounded ".concat("list"===R?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>F("list"),children:(0,a.jsx)(v.A,{size:18})})]})]}),"grid"===R&&(0,a.jsx)("div",{className:"grid gap-4",children:i?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"border rounded-lg p-4",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(E.E,{className:"h-5 w-40"}),(0,a.jsx)(E.E,{className:"h-4 w-20"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(E.E,{className:"h-3 w-20"}),(0,a.jsx)(E.E,{className:"h-4 w-32"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(E.E,{className:"h-3 w-20"}),(0,a.jsx)(E.E,{className:"h-4 w-32"})]})]})]})})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)(d.aR,{children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)(d.ZB,{className:"xl:text-xl font-bold tracking-wide",children:e.name}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o,{children:(0,a.jsx)(w.A,{className:"h-4 w-4"})}),(0,a.jsxs)(m,{className:"grid gap-2 max-w-[180px]",children:[(0,a.jsxs)(f.$,{size:"sm",onClick:()=>ea(e),children:[(0,a.jsx)(_.A,{className:"w-4 h-4"}),"Edit Profile"]}),(0,a.jsxs)(f.$,{size:"sm",variant:"destructive",onClick:()=>et(e.iccid,e.name),children:[(0,a.jsx)(P.A,{className:"w-4 h-4"}),"Delete Profile"]})]})]})]}),(0,a.jsx)(d.BT,{children:(0,a.jsx)(A.E,{variant:"secondary",className:"text-xs",children:er(e.network_type)})})]}),(0,a.jsx)(d.Wu,{children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(T.J,{htmlFor:"ICCID-".concat(s),className:"text-sm text-muted-foreground",children:"SIM ICCID"}),(0,a.jsx)("p",{id:"ICCID-".concat(s),className:"font-semibold",children:e.iccid})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(T.J,{htmlFor:"IMEI-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred IMEI"}),(0,a.jsx)("p",{id:"IMEI-".concat(s),className:"font-semibold",children:e.imei||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(T.J,{htmlFor:"APN-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN"}),(0,a.jsx)("p",{id:"APN-".concat(s),className:"font-semibold",children:e.apn})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(T.J,{htmlFor:"PDP-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN PDP Type"}),(0,a.jsx)("p",{id:"PDP-".concat(s),className:"font-semibold",children:e.pdp_type})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(T.J,{htmlFor:"prefTTl-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred TTL"}),(0,a.jsx)("p",{id:"prefTTL-".concat(s),className:"font-semibold",children:e.ttl||"0"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(T.J,{htmlFor:"prefLTEBands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred LTE Bands"}),(0,a.jsx)("p",{id:"prefLTEBands-".concat(s),className:"font-semibold",children:e.lte_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(T.J,{htmlFor:"prefNRNSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,a.jsx)("p",{id:"prefNRNSABands-".concat(s),className:"font-semibold",children:e.nsa_nr5g_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(T.J,{htmlFor:"prefNRSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,a.jsx)("p",{id:"prefNRSABands-".concat(s),className:"font-semibold",children:e.sa_nr5g_bands||"-"})]})]})})]},s)):(0,a.jsxs)("div",{className:"text-center py-8 border rounded-lg",children:[(0,a.jsx)("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",children:(0,a.jsx)(j.A,{className:"h-6 w-6 text-muted-foreground"})}),(0,a.jsx)("h3",{className:"font-medium text-lg mb-1",children:"No Profiles Found"}),(0,a.jsx)("p",{className:"text-muted-foreground mb-4",children:"Simplify network management with profiles that automatically apply your preferred settings."})]})}),"list"===R&&(0,a.jsx)("div",{className:"border rounded-md overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-muted/50",children:[(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Profile Name"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"ICCID"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"APN (PDP Type)"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Network Type"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"TTL"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Actions"})]})}),(0,a.jsx)("tbody",{children:i?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("tr",{className:"border-t",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsx)(E.E,{className:"h-5 w-32"}),(0,a.jsx)(E.E,{className:"h-3 w-24 mt-1"})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(E.E,{className:"h-5 w-40"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(E.E,{className:"h-5 w-28"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(E.E,{className:"h-5 w-20"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(E.E,{className:"h-5 w-10"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(E.E,{className:"h-8 w-8 rounded-md"}),(0,a.jsx)(E.E,{className:"h-8 w-8 rounded-md"})]})})]})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)("tr",{className:"border-t hover:bg-muted/50 transition-colors",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsx)("div",{className:"font-medium",children:e.name}),(0,a.jsxs)("div",{className:"text-xs text-muted-foreground",children:["IMEI: ",e.imei||"Not specified"]})]}),(0,a.jsx)("td",{className:"p-4 font-mono text-sm",children:e.iccid}),(0,a.jsxs)("td",{className:"p-4",children:[e.apn," ",(0,a.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.pdp_type,")"]})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(A.E,{variant:"secondary",className:"text-xs",children:er(e.network_type)})}),(0,a.jsx)("td",{className:"p-4",children:e.ttl&&parseInt(e.ttl)>0?(0,a.jsx)(A.E,{variant:"outline",className:"text-xs",children:e.ttl}):(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"Off"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>ea(e),children:[(0,a.jsx)(_.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Edit"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>et(e.iccid,e.name),children:[(0,a.jsx)(P.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})]},s)):(0,a.jsx)("tr",{className:"border-t",children:(0,a.jsx)("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:"No profiles found. Create one to get started."})})})]})}),(()=>{if(!z||"idle"===z.status)return z&&z.message&&z.message.includes("No profile exists")?(0,a.jsxs)(I.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(I.XL,{children:"No Profile Found"}),(0,a.jsx)(I.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:"No profile exists for the current SIM card. Create a profile to configure your network settings."})})]}):null;let e=z.message,s="";return"error"===z.status?(s="Profile Issue",z.message.includes("missing the required APN setting")?(s="Missing APN Setting",e='Please edit profile "'.concat(z.profile,'" and add an APN to enable network connectivity.')):z.message.includes("Could not detect SIM card")?(s="SIM Card Not Detected",e="Please check that a SIM card is properly inserted in your device."):z.message.includes("Could not communicate with modem")&&(s="Modem Communication Error",e="Having trouble connecting to the cellular modem. Please check your device.")):"success"===z.status&&(z.message.includes("already applied")||z.message.includes("Profile already correctly applied"))?(s="Profile Active",e='Profile "'.concat(z.profile,'" is active and correctly applied')):"applying"===z.status?s="Applying Profile":"rebooting"===z.status?(s="Device Rebooting",e="Your device is restarting to apply configuration changes."):s="Success",(0,a.jsxs)(I.Fc,{className:"mb-1",variant:"error"===z.status?"destructive":"default",children:["applying"===z.status?(0,a.jsx)(h.A,{className:"h-4 w-4 animate-spin"}):"error"===z.status?(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}):"rebooting"===z.status?(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(N.A,{className:"h-4 w-4",color:"green"}),(0,a.jsx)(I.XL,{children:s}),(0,a.jsxs)(I.TN,{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{children:e}),"applying"===z.status&&(0,a.jsxs)("span",{className:"font-semibold",children:[z.progress,"%"]})]})]})})()]})]})})}},49573:(e,s,t)=>{"use strict";t.d(s,{Fc:()=>l,TN:()=>o,XL:()=>c});var a=t(20475),r=t(20107),n=t(29395),d=t(22250);let i=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=r.forwardRef((e,s)=>{let{className:t,variant:r,...n}=e;return(0,a.jsx)("div",{ref:s,role:"alert",className:(0,d.cn)(i({variant:r}),t),...n})});l.displayName="Alert";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h5",{ref:s,className:(0,d.cn)("mb-1 font-medium leading-none tracking-tight",t),...r})});c.displayName="AlertTitle";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,d.cn)("text-sm [&_p]:leading-relaxed",t),...r})});o.displayName="AlertDescription"},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>i});var a=t(20475);t(20107);var r=t(29395),n=t(22250);let d=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:s,variant:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)(d({variant:t}),s),...r})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>c,r:()=>l});var a=t(20475),r=t(20107),n=t(61837),d=t(29395),i=t(22250);let l=(0,d.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:t,variant:r,size:d,asChild:c=!1,...o}=e,m=c?n.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(l({variant:r,size:d,className:t})),ref:s,...o})});c.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>c,Wu:()=>o,ZB:()=>l,Zp:()=>d,aR:()=>i,wL:()=>m});var a=t(20475),r=t(20107),n=t(22250);let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...r})});d.displayName="Card";let i=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...r})});i.displayName="CardHeader";let l=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",t),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",t),...r})});m.displayName="CardFooter"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>u,Es:()=>x,HM:()=>m,L3:()=>h,c7:()=>f,lG:()=>l,rr:()=>g,zM:()=>c});var a=t(20475),r=t(20107),n=t(60241),d=t(7197),i=t(22250);let l=n.bL,c=n.l9,o=n.ZL,m=n.bm,p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hJ,{ref:s,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})});p.displayName=n.hJ.displayName;let u=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(o,{children:[(0,a.jsx)(p,{}),(0,a.jsxs)(n.UC,{ref:s,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...l,children:[r,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(d.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=n.UC.displayName;let f=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};f.displayName="DialogHeader";let x=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};x.displayName="DialogFooter";let h=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hE,{ref:s,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});h.displayName=n.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.VY,{ref:s,className:(0,i.cn)("text-sm text-muted-foreground",t),...r})});g.displayName=n.VY.displayName},64219:(e,s,t)=>{"use strict";t.d(s,{p:()=>d});var a=t(20475),r=t(20107),n=t(22250);let d=r.forwardRef((e,s)=>{let{className:t,type:r,...d}=e;return(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...d})});d.displayName="Input"},49153:(e,s,t)=>{"use strict";t.d(s,{J:()=>c});var a=t(20475),r=t(20107),n=t(21840),d=t(29395),i=t(22250);let l=(0,d.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.b,{ref:s,className:(0,i.cn)(l(),t),...r})});c.displayName=n.b.displayName},35601:(e,s,t)=>{"use strict";t.d(s,{TR:()=>x,bq:()=>m,eb:()=>h,gC:()=>f,l6:()=>l,s3:()=>c,yv:()=>o});var a=t(20475),r=t(20107),n=t(7197),d=t(95257),i=t(22250);let l=d.bL,c=d.YJ,o=d.WT,m=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(d.l9,{ref:s,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...l,children:[r,(0,a.jsx)(d.In,{asChild:!0,children:(0,a.jsx)(n.TBE,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=d.l9.displayName;let p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(d.PP,{ref:s,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(n.Mtm,{})})});p.displayName=d.PP.displayName;let u=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(d.wn,{ref:s,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(n.D3D,{})})});u.displayName=d.wn.displayName;let f=r.forwardRef((e,s)=>{let{className:t,children:r,position:n="popper",...l}=e;return(0,a.jsx)(d.ZL,{children:(0,a.jsxs)(d.UC,{ref:s,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...l,children:[(0,a.jsx)(p,{}),(0,a.jsx)(d.LM,{className:(0,i.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(u,{})]})})});f.displayName=d.UC.displayName;let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(d.JU,{ref:s,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",t),...r})});x.displayName=d.JU.displayName;let h=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(d.q7,{ref:s,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(d.VF,{children:(0,a.jsx)(n.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(d.p4,{children:r})]})});h.displayName=d.q7.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(d.wv,{ref:s,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",t),...r})}).displayName=d.wv.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>n});var a=t(20475),r=t(22250);function n(e){let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>p,oR:()=>m});var a=t(20107);let r=0,n=new Map,d=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},i=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?d(t):e.toasts.forEach(e=>{d(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},l=[],c={toasts:[]};function o(e){c=i(c,e),l.forEach(e=>{e(c)})}function m(e){let{...s}=e,t=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>o({type:"DISMISS_TOAST",toastId:t});return o({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||a()}}}),{id:t,dismiss:a,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function p(){let[e,s]=a.useState(c);return a.useEffect(()=>(l.push(s),()=>{let e=l.indexOf(s);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>n});var a=t(64901),r=t(868);function n(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,6357,6810,3662,191,6035,7358],()=>s(61437)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-56d0dff104c9b5a6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-56d0dff104c9b5a6.js new file mode 100644 index 0000000..74cd823 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-56d0dff104c9b5a6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9473],{61437:(e,s,a)=>{Promise.resolve().then(a.bind(a,33990))},33990:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>F});var t=a(20475),r=a(20107),i=a(32857),l=a(72167),n=a(55948),d=a(93557),c=a(35601),o=a(42541),m=a(17799),p=a(39997);let h=(0,p.A)("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]);var x=a(59166),u=a(97801),f=a(98969);let g=(0,p.A)("UserRoundPen",[["path",{d:"M2 21a8 8 0 0 1 10.821-7.487",key:"1c8h7z"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}]]);var j=a(52161);let N=(0,p.A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]]),y=(0,p.A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),b=(0,p.A)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);var v=a(25262);let w=(0,p.A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]),_=(0,p.A)("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]]);var P=a(51873),k=a(14389),C=a(49153),A=a(64219),E=a(36760),I=a(45934),T=a(49573),S=a(76554);let F=()=>{let{toast:e}=(0,i.dj)(),[s,a]=(0,r.useState)([]),[p,F]=(0,r.useState)(!0),[M,L]=(0,r.useState)(!1),[R,z]=(0,r.useState)("grid"),[J,D]=(0,r.useState)(!1),[q,V]=(0,r.useState)("create"),[O,G]=(0,r.useState)(null),[B,U]=(0,r.useState)(null),[$,Z]=(0,r.useState)(""),[W,X]=(0,r.useState)(!1),[H,Y]=(0,r.useState)({iccid:"",imei:""}),[K,Q]=(0,r.useState)({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),[ee,es]=(0,r.useState)(null);(0,r.useEffect)(()=>{et(),er(),ea();let e=setInterval(er,5e3);return()=>clearInterval(e)},[]);let ea=async()=>{X(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=9");if(!e.ok)throw Error("Failed to fetch device information");let s=await e.json();console.log("Device info response:",s);let a="",t="",r=s.find(e=>"AT+ICCID"===e.command);if(r&&"success"===r.status){let e=r.response.match(/\d{10,20}/);e&&(a=e[0])}let i=s.find(e=>"AT+CGSN"===e.command);if(i&&"success"===i.status){let e=i.response.match(/\d{15}/);e&&(t=e[0])}console.log("Extracted device info - ICCID:",a,"IMEI:",t),Y({iccid:a,imei:t}),Q(e=>({...e,iccid:a||e.iccid,imei:t||e.imei}))}catch(s){console.error("Error fetching device information:",s),e({title:"Info",description:"Could not auto-populate device information",variant:"default"})}finally{X(!1)}},et=async()=>{F(!0);try{let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();"success"===s.status&&Array.isArray(s.profiles)?(console.log("Fetched profiles:",s.profiles),a(s.profiles)):(console.error("Invalid profile data structure:",s),a([]))}else console.error("Failed to fetch profiles:",e.statusText),a([])}catch(s){console.error("Error fetching profiles:",s),a([]),e({title:"Error",description:"Failed to load profiles. Please try again.",variant:"destructive"})}finally{F(!1)}},er=async()=>{try{let s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(s.ok){let a=await s.json();U(a),"idle"===a.status||a.status===$||a.message.includes("already applied")||a.message.includes("Profile already correctly applied")||"applying"!==a.status||(e({title:"Profile: ".concat(a.profile),description:a.message,variant:"error"===a.status?"destructive":"default"}),Z(a.status))}}catch(e){}},ei=e=>{let{id:s,value:a}=e.target;if("ttl"===s){let e=parseInt(a);if(""===a||isNaN(e)||e<0){Q({...K,ttl:"0"});return}if(e>255){Q({...K,ttl:"255"});return}}Q({...K,[s]:a})},el=(e,s)=>{Q({...K,[e]:s})},en=e=>{let s=e.trim(),a=s.indexOf("{");a>0&&(s=s.substring(a));let t=0,r=s.length;for(let e=0;e{L(!0),es(null);try{let s;if(!K.name||!K.iccid||!K.apn){es("Profile name, ICCID, and APN are required"),L(!1);return}if(K.ttl&&(0>parseInt(K.ttl)||parseInt(K.ttl)>255)){es("TTL must be between 0 and 255"),L(!1);return}let a={name:K.name,iccid:K.iccid,imei:K.imei||"",apn:K.apn,pdp_type:K.pdp_type,lte_bands:K.lte_bands,sa_nr5g_bands:K.sa_nr5g_bands||"",nsa_nr5g_bands:K.nsa_nr5g_bands||"",network_type:K.network_type,ttl:K.ttl||"0",paused:"0"},t=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_create.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),r=await t.text();try{s=en(r)}catch(e){es("Invalid response format from server"),L(!1);return}"success"===s.status?(D(!1),Q({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile created successfully",variant:"default"}),await et(),await er()):es(s.message||"Failed to create profile")}catch(e){es("An unexpected error occurred")}finally{L(!1)}},ec=async()=>{L(!0),es(null);try{let s;if(!K.name||!K.iccid||!K.apn){es("Profile name, ICCID, and APN are required"),L(!1);return}if(K.ttl&&(0>parseInt(K.ttl)||parseInt(K.ttl)>255)){es("TTL must be between 0 and 255"),L(!1);return}let a={name:K.name,iccid:K.iccid,imei:K.imei||"",apn:K.apn,pdp_type:K.pdp_type,lte_bands:K.lte_bands,sa_nr5g_bands:K.sa_nr5g_bands||"",nsa_nr5g_bands:K.nsa_nr5g_bands||"",network_type:K.network_type,ttl:K.ttl||"0",paused:K.paused||"0"};console.log("Sending update request with data:",a);let t=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_edit.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),r=await t.text();try{s=en(r)}catch(e){es("Invalid response format from server"),L(!1);return}"success"===s.status?(D(!1),Q({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile updated successfully",variant:"default"}),await et()):es(s.message||"Failed to update profile")}catch(e){es("An unexpected error occurred")}finally{L(!1)}},eo=async(s,a)=>{try{let t;if(!window.confirm('Are you sure you want to delete profile "'.concat(a,'"?')))return;let r=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_delete.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s})}),i=await r.text();try{t=en(i)}catch(s){e({title:"Error",description:"Failed to parse server response",variant:"destructive"});return}"success"===t.status?(e({title:"Profile Deleted",description:'Profile "'.concat(a,'" has been deleted successfully'),variant:"default"}),await et(),await er()):e({title:"Error",description:t.message||"Failed to delete profile",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while deleting the profile",variant:"destructive"})}},em=async(s,a,t)=>{try{let a;let r="1"===t?"0":"1",i=await fetch("/cgi-bin/quecmanager/profiles/toggle_pause.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s,paused:r})}),l=await i.text();try{a=en(l)}catch(s){e({title:"Error",description:"Invalid response format from server",variant:"destructive"});return}"success"===a.status?(e({title:"1"===r?"Profile Paused":"Profile Resumed",description:a.message,variant:"default"}),await et(),await er()):e({title:"Error",description:a.message||"Failed to update profile status",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while updating the profile",variant:"destructive"})}},ep=e=>{V("edit"),Q({name:e.name,iccid:e.iccid,imei:e.imei||"",apn:e.apn,pdp_type:e.pdp_type,lte_bands:e.lte_bands,sa_nr5g_bands:e.sa_nr5g_bands||"",nsa_nr5g_bands:e.nsa_nr5g_bands||"",network_type:e.network_type,ttl:e.ttl||"0",paused:e.paused||"0"}),G(e),es(null),D(!0)},eh=e=>{switch(e){case"AUTO":return"AUTO";case"LTE":return"4G LTE";case"NR5G":return"5G SA";case"LTE:NR5G":return"NR5G-NSA";default:return e}};return(0,t.jsx)("div",{children:(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{children:"QuecProfiles"}),(0,t.jsx)(l.BT,{children:"Configure personalized profiles for your SIM cards to manage connectivity settings and network preferences."})]}),(0,t.jsxs)(l.Wu,{className:"grid gap-y-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(d.lG,{open:J,onOpenChange:D,children:[(0,t.jsx)(d.zM,{asChild:!0,children:(0,t.jsxs)(o.$,{onClick:()=>{V("create"),es(null),Q({name:"",iccid:H.iccid||"",imei:H.imei||"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),D(!0)},children:[(0,t.jsx)(g,{className:"w-4 h-4"}),"Add New Profile"]})}),(0,t.jsxs)(d.Cf,{children:[(0,t.jsxs)(d.c7,{children:[(0,t.jsx)(d.L3,{children:"create"===q?"Add New Profile":"Edit Profile"}),(0,t.jsx)(d.rr,{children:"create"===q?"Create a new profile for your SIM card to manage connectivity settings and network preferences.":"Update the settings for this profile."})]}),ee&&(0,t.jsxs)(T.Fc,{variant:"destructive",className:"my-2",children:[(0,t.jsx)(m.A,{className:"h-4 w-4"}),(0,t.jsx)(T.XL,{children:"Error"}),(0,t.jsx)(T.TN,{children:ee})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-y-5 gap-x-4 py-4",children:[(0,t.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"name",children:"Profile Name"}),(0,t.jsx)(A.p,{id:"name",placeholder:"My Network Profile",value:K.name,onChange:ei,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"iccid",children:"ICCID"}),(0,t.jsx)(A.p,{id:"iccid",placeholder:"SIM ICCID",value:K.iccid,onChange:ei,disabled:"edit"===q,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"imei",children:"IMEI"}),(0,t.jsx)(A.p,{id:"imei",placeholder:"Preferred IMEI",value:K.imei,onChange:ei})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"apn",children:"APN"}),(0,t.jsx)(A.p,{id:"apn",placeholder:"internet",value:K.apn,onChange:ei,required:!0})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"pdp_type",children:"APN PDP Type"}),(0,t.jsxs)(c.l6,{value:K.pdp_type,onValueChange:e=>el("pdp_type",e),children:[(0,t.jsx)(c.bq,{children:(0,t.jsx)(c.yv,{placeholder:"PDP Type"})}),(0,t.jsxs)(c.gC,{children:[(0,t.jsx)(c.eb,{value:"IP",children:"IPV4"}),(0,t.jsx)(c.eb,{value:"IPV6",children:"IPV6"}),(0,t.jsx)(c.eb,{value:"IPV4V6",children:"IPV4 & IPV6"})]})]})]}),(0,t.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"lte_bands",children:"LTE Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"lte_bands",placeholder:"1,3,7,20",value:K.lte_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of LTE bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"nsa_nr5g_bands",children:"NR5G-NSA Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"nsa_nr5g_bands",placeholder:"41,78",value:K.nsa_nr5g_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of NSA bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"sa_nr5g_bands",children:"NR5G-SA Bands"}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(A.p,{id:"sa_nr5g_bands",placeholder:"41,78",value:K.sa_nr5g_bands,onChange:ei}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of SA bands."})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"network_type",children:"Network Type"}),(0,t.jsxs)(c.l6,{value:K.network_type,onValueChange:e=>el("network_type",e),children:[(0,t.jsx)(c.bq,{children:(0,t.jsx)(c.yv,{placeholder:"Network Type"})}),(0,t.jsxs)(c.gC,{children:[(0,t.jsx)(c.eb,{value:"LTE",children:"LTE Only"}),(0,t.jsx)(c.eb,{value:"NR5G",children:"NR5G Only"}),(0,t.jsx)(c.eb,{value:"LTE:NR5G",children:"NR5G-NSA w/ LTE"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)(C.J,{htmlFor:"ttl",children:"TTL Value"}),(0,t.jsx)("div",{className:"grid gap-0.5",children:(0,t.jsx)(A.p,{id:"ttl",type:"number",min:"0",max:"255",placeholder:"0 (disabled)",value:K.ttl,onChange:ei})})]})]}),(0,t.jsx)(d.Es,{children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(o.$,{variant:"secondary",onClick:()=>D(!1),disabled:M,children:"Cancel"}),(0,t.jsx)(o.$,{onClick:"create"===q?ed:ec,disabled:M,children:M?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.A,{className:"h-4 w-4 animate-spin"}),"create"===q?"Creating...":"Updating..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.A,{className:"h-4 w-4"}),"create"===q?"Save Profile":"Update Profile"]})})]})})]})]}),(0,t.jsxs)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-md p-1",children:[(0,t.jsx)("button",{className:"p-1 rounded ".concat("grid"===R?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>z("grid"),children:(0,t.jsx)(N,{size:18})}),(0,t.jsx)("button",{className:"p-1 rounded ".concat("list"===R?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>z("list"),children:(0,t.jsx)(y,{size:18})})]})]}),"grid"===R&&(0,t.jsx)("div",{className:"grid gap-4",children:p?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"border rounded-lg p-4",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(E.E,{className:"h-5 w-40"}),(0,t.jsx)(E.E,{className:"h-4 w-20"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E.E,{className:"h-3 w-20"}),(0,t.jsx)(E.E,{className:"h-4 w-32"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E.E,{className:"h-3 w-20"}),(0,t.jsx)(E.E,{className:"h-4 w-32"})]})]})]})})}):s&&s.length>0?s.map((e,s)=>(0,t.jsxs)(l.Zp,{children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsx)(l.ZB,{className:"xl:text-xl font-bold tracking-wide",children:e.name}),(0,t.jsxs)(n.AM,{children:[(0,t.jsx)(n.Wv,{children:(0,t.jsx)(b,{className:"h-4 w-4"})}),(0,t.jsxs)(n.hl,{className:"grid gap-2 max-w-[180px]",children:[(0,t.jsx)(o.$,{size:"sm",variant:"outline",className:"p-1",onClick:()=>em(e.iccid,e.name,e.paused||"0"),children:"1"===e.paused?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.A,{className:"w-4 h-4 text-emerald-500"}),"Resume Profile"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w,{className:"w-4 h-4 text-orange-500"}),"Pause Profile"]})}),(0,t.jsxs)(o.$,{size:"sm",onClick:()=>ep(e),variant:"outline",children:[(0,t.jsx)(_,{className:"w-4 h-4"}),"Edit Profile"]}),(0,t.jsx)(S.w,{className:"w-full my-2"}),(0,t.jsxs)(o.$,{size:"sm",variant:"destructive",onClick:()=>eo(e.iccid,e.name),children:[(0,t.jsx)(P.A,{className:"w-4 h-4"}),"Delete Profile"]})]})]})]}),(0,t.jsxs)(l.BT,{className:"flex items-center",children:[(0,t.jsx)(I.E,{variant:"secondary",className:"text-xs",children:eh(e.network_type)}),"1"===e.paused&&(0,t.jsx)(I.E,{variant:"outline",className:"ml-2 bg-orange-500 hover:bg-orange-600",children:"Paused"})]})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"ICCID-".concat(s),className:"text-sm text-muted-foreground",children:"SIM ICCID"}),(0,t.jsx)("p",{id:"ICCID-".concat(s),className:"font-semibold",children:e.iccid})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"IMEI-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred IMEI"}),(0,t.jsx)("p",{id:"IMEI-".concat(s),className:"font-semibold",children:e.imei||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"APN-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN"}),(0,t.jsx)("p",{id:"APN-".concat(s),className:"font-semibold",children:e.apn})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"PDP-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN PDP Type"}),(0,t.jsx)("p",{id:"PDP-".concat(s),className:"font-semibold",children:e.pdp_type})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefTTl-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred TTL"}),(0,t.jsx)("p",{id:"prefTTL-".concat(s),className:"font-semibold",children:e.ttl||"0"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefLTEBands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred LTE Bands"}),(0,t.jsx)("p",{id:"prefLTEBands-".concat(s),className:"font-semibold",children:e.lte_bands||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefNRNSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,t.jsx)("p",{id:"prefNRNSABands-".concat(s),className:"font-semibold",children:e.nsa_nr5g_bands||"-"})]}),(0,t.jsxs)("div",{className:"grid gap-0.5",children:[(0,t.jsx)(C.J,{htmlFor:"prefNRSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-SA Bands"}),(0,t.jsx)("p",{id:"prefNRSABands-".concat(s),className:"font-semibold",children:e.sa_nr5g_bands||"-"})]})]})})]},s)):(0,t.jsxs)("div",{className:"text-center py-8 border rounded-lg",children:[(0,t.jsx)("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",children:(0,t.jsx)(g,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsx)("h3",{className:"font-medium text-lg mb-1",children:"No Profiles Found"}),(0,t.jsx)("p",{className:"text-muted-foreground mb-4",children:"Simplify network management with profiles that automatically apply your preferred settings."})]})}),"list"===R&&(0,t.jsx)("div",{className:"border rounded-md overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-muted/50",children:[(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Profile Name"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"ICCID"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"APN (PDP Type)"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Network Type"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"TTL"}),(0,t.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Actions"})]})}),(0,t.jsx)("tbody",{children:p?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("tr",{className:"border-t",children:[(0,t.jsxs)("td",{className:"p-4",children:[(0,t.jsx)(E.E,{className:"h-5 w-32"}),(0,t.jsx)(E.E,{className:"h-3 w-24 mt-1"})]}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-40"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-28"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-20"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(E.E,{className:"h-5 w-10"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(E.E,{className:"h-8 w-8 rounded-md"}),(0,t.jsx)(E.E,{className:"h-8 w-8 rounded-md"})]})})]})}):s&&s.length>0?s.map((e,s)=>(0,t.jsxs)("tr",{className:"border-t hover:bg-muted/50 transition-colors",children:[(0,t.jsxs)("td",{className:"p-4",children:[(0,t.jsxs)("div",{className:"font-medium",children:[e.name,"1"===e.paused&&(0,t.jsx)(I.E,{variant:"outline",className:"ml-2 text-xs bg-amber-100 text-amber-700 border-amber-300",children:"Paused"})]}),(0,t.jsxs)("div",{className:"text-xs text-muted-foreground",children:["IMEI: ",e.imei||"Not specified"]})]}),(0,t.jsx)("td",{className:"p-4 font-mono text-sm",children:e.iccid}),(0,t.jsxs)("td",{className:"p-4",children:[e.apn," ",(0,t.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.pdp_type,")"]})]}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsx)(I.E,{variant:"secondary",className:"text-xs",children:eh(e.network_type)})}),(0,t.jsx)("td",{className:"p-4",children:e.ttl&&parseInt(e.ttl)>0?(0,t.jsx)(I.E,{variant:"outline",className:"text-xs",children:e.ttl}):(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:"Off"})}),(0,t.jsx)("td",{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>ep(e),children:[(0,t.jsx)(_,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Edit"})]}),(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>em(e.iccid,e.name,e.paused||"0"),title:"1"===e.paused?"Resume Profile":"Pause Profile",children:["1"===e.paused?(0,t.jsx)(k.A,{className:"h-4 w-4 text-green-600"}):(0,t.jsx)(h,{className:"h-4 w-4 text-amber-600"}),(0,t.jsx)("span",{className:"sr-only",children:"1"===e.paused?"Resume":"Pause"})]}),(0,t.jsxs)(o.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>eo(e.iccid,e.name),children:[(0,t.jsx)(P.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})]},s)):(0,t.jsx)("tr",{className:"border-t",children:(0,t.jsx)("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:"No profiles found. Create one to get started."})})})]})}),(()=>{if(!B||"idle"===B.status)return B&&B.message&&B.message.includes("No profile exists")?(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"default",children:[(0,t.jsx)(m.A,{className:"h-4 w-4",color:"orange"}),(0,t.jsx)(T.XL,{children:"No Profile Found"}),(0,t.jsx)(T.TN,{className:"flex justify-between items-center",children:(0,t.jsx)("span",{children:"No profile exists for the current SIM card. Create a profile to configure your network settings."})})]}):null;if("paused"===B.status)return(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"default",children:[(0,t.jsx)(h,{className:"h-4 w-4",color:"orange"}),(0,t.jsx)(T.XL,{children:"Profile Paused"}),(0,t.jsx)(T.TN,{className:"flex justify-between items-center",children:(0,t.jsx)("span",{children:B.message||'Profile "'.concat(B.profile,'" is currently paused. Resume to apply settings.')})})]});let e=B.message,s="";return"error"===B.status?(s="Profile Issue",B.message.includes("missing the required APN setting")?(s="Missing APN Setting",e='Please edit profile "'.concat(B.profile,'" and add an APN to enable network connectivity.')):B.message.includes("Could not detect SIM card")?(s="SIM Card Not Detected",e="Please check that a SIM card is properly inserted in your device."):B.message.includes("Could not communicate with modem")&&(s="Modem Communication Error",e="Having trouble connecting to the cellular modem. Please check your device.")):"success"===B.status&&(B.message.includes("already applied")||B.message.includes("Profile already correctly applied"))?(s="Profile Active",e='Profile "'.concat(B.profile,'" is active and correctly applied')):"applying"===B.status?s="Applying Profile":"rebooting"===B.status?(s="Device Rebooting",e="Your device is restarting to apply configuration changes."):s="Success",(0,t.jsxs)(T.Fc,{className:"mb-1",variant:"error"===B.status?"destructive":"default",children:["applying"===B.status?(0,t.jsx)(x.A,{className:"h-4 w-4 animate-spin"}):"error"===B.status?(0,t.jsx)(m.A,{className:"h-4 w-4",color:"orange"}):"rebooting"===B.status?(0,t.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,t.jsx)(f.A,{className:"h-4 w-4",color:"green"}),(0,t.jsx)(T.XL,{children:s}),(0,t.jsxs)(T.TN,{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{children:e}),"applying"===B.status&&(0,t.jsxs)("span",{className:"font-semibold",children:[B.progress,"%"]})]})]})})()]})]})})}},93557:(e,s,a)=>{"use strict";a.d(s,{Cf:()=>h,Es:()=>u,HM:()=>m,L3:()=>f,c7:()=>x,lG:()=>d,rr:()=>g,zM:()=>c});var t=a(20475),r=a(20107),i=a(60241),l=a(7197),n=a(22250);let d=i.bL,c=i.l9,o=i.ZL,m=i.bm,p=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.hJ,{ref:s,className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r})});p.displayName=i.hJ.displayName;let h=r.forwardRef((e,s)=>{let{className:a,children:r,...d}=e;return(0,t.jsxs)(o,{children:[(0,t.jsx)(p,{}),(0,t.jsxs)(i.UC,{ref:s,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...d,children:[r,(0,t.jsxs)(i.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(l.MKb,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});h.displayName=i.UC.displayName;let x=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...a})};x.displayName="DialogHeader";let u=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a})};u.displayName="DialogFooter";let f=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.hE,{ref:s,className:(0,n.cn)("text-lg font-semibold leading-none tracking-tight",a),...r})});f.displayName=i.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.VY,{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});g.displayName=i.VY.displayName},55948:(e,s,a)=>{"use strict";a.d(s,{AM:()=>n,Wv:()=>d,hl:()=>c});var t=a(20475),r=a(20107),i=a(21869),l=a(22250);let n=i.bL,d=i.l9;i.Mz;let c=r.forwardRef((e,s)=>{let{className:a,align:r="center",sideOffset:n=4,...d}=e;return(0,t.jsx)(i.ZL,{children:(0,t.jsx)(i.UC,{ref:s,align:r,sideOffset:n,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...d})})});c.displayName=i.UC.displayName},36760:(e,s,a)=>{"use strict";a.d(s,{E:()=>i});var t=a(20475),r=a(22250);function i(e){let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...a})}},17799:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(39997).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},14389:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(39997).A)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},25262:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(39997).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,7510,2487,191,6035,7358],()=>s(61437)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-70f54a2449254011.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-70f54a2449254011.js new file mode 100644 index 0000000..98fd31c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-70f54a2449254011.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9473],{61437:(e,s,t)=>{Promise.resolve().then(t.bind(t,22256))},22256:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>D});var a=t(20475),r=t(20107),n=t(32857),i=t(72167),d=t(48547),l=t(22250);let c=d.bL,o=d.l9;d.Mz;let m=r.forwardRef((e,s)=>{let{className:t,align:r="center",sideOffset:n=4,...i}=e;return(0,a.jsx)(d.ZL,{children:(0,a.jsx)(d.UC,{ref:s,align:r,sideOffset:n,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})})});m.displayName=d.UC.displayName;var p=t(93557),u=t(35601),f=t(42541),x=t(17799),h=t(61003),g=t(59166),N=t(97801),j=t(98969),y=t(10528),b=t(52161),v=t(46361),w=t(26780),_=t(32024),P=t(25262),T=t(57718),C=t(1870),A=t(51873),E=t(14389),I=t(49153),S=t(64219),k=t(36760),R=t(45934),F=t(49573),L=t(76554);let D=()=>{let{toast:e}=(0,n.dj)(),[s,t]=(0,r.useState)([]),[d,l]=(0,r.useState)(!0),[D,M]=(0,r.useState)(!1),[O,J]=(0,r.useState)("grid"),[z,V]=(0,r.useState)(!1),[q,B]=(0,r.useState)("create"),[G,U]=(0,r.useState)(null),[$,Z]=(0,r.useState)(null),[X,H]=(0,r.useState)(""),[W,Y]=(0,r.useState)({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),[Q,K]=(0,r.useState)(null);(0,r.useEffect)(()=>{ee(),es();let e=setInterval(es,5e3);return()=>clearInterval(e)},[]);let ee=async()=>{l(!0);try{let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();"success"===s.status&&Array.isArray(s.profiles)?(console.log("Fetched profiles:",s.profiles),t(s.profiles)):(console.error("Invalid profile data structure:",s),t([]))}else console.error("Failed to fetch profiles:",e.statusText),t([])}catch(s){console.error("Error fetching profiles:",s),t([]),e({title:"Error",description:"Failed to load profiles. Please try again.",variant:"destructive"})}finally{l(!1)}},es=async()=>{try{let s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(s.ok){let t=await s.json();Z(t),"idle"===t.status||t.status===X||t.message.includes("already applied")||t.message.includes("Profile already correctly applied")||"applying"!==t.status||(e({title:"Profile: ".concat(t.profile),description:t.message,variant:"error"===t.status?"destructive":"default"}),H(t.status))}}catch(e){}},et=e=>{let{id:s,value:t}=e.target;if("ttl"===s){let e=parseInt(t);if(""===t||isNaN(e)||e<0){Y({...W,ttl:"0"});return}if(e>255){Y({...W,ttl:"255"});return}}Y({...W,[s]:t})},ea=(e,s)=>{Y({...W,[e]:s})},er=e=>{let s=e.trim(),t=s.indexOf("{");t>0&&(s=s.substring(t));let a=0,r=s.length;for(let e=0;e{M(!0),K(null);try{let s;if(!W.name||!W.iccid||!W.apn){K("Profile name, ICCID, and APN are required"),M(!1);return}if(W.ttl&&(0>parseInt(W.ttl)||parseInt(W.ttl)>255)){K("TTL must be between 0 and 255"),M(!1);return}let t={name:W.name,iccid:W.iccid,imei:W.imei||"",apn:W.apn,pdp_type:W.pdp_type,lte_bands:W.lte_bands,sa_nr5g_bands:W.sa_nr5g_bands||"",nsa_nr5g_bands:W.nsa_nr5g_bands||"",network_type:W.network_type,ttl:W.ttl||"0",paused:"0"},a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_create.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=er(r)}catch(e){K("Invalid response format from server"),M(!1);return}"success"===s.status?(V(!1),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile created successfully",variant:"default"}),await ee(),await es()):K(s.message||"Failed to create profile")}catch(e){K("An unexpected error occurred")}finally{M(!1)}},ei=async()=>{M(!0),K(null);try{let s;if(!W.name||!W.iccid||!W.apn){K("Profile name, ICCID, and APN are required"),M(!1);return}if(W.ttl&&(0>parseInt(W.ttl)||parseInt(W.ttl)>255)){K("TTL must be between 0 and 255"),M(!1);return}let t={name:W.name,iccid:W.iccid,imei:W.imei||"",apn:W.apn,pdp_type:W.pdp_type,lte_bands:W.lte_bands,sa_nr5g_bands:W.sa_nr5g_bands||"",nsa_nr5g_bands:W.nsa_nr5g_bands||"",network_type:W.network_type,ttl:W.ttl||"0",paused:W.paused||"0"};console.log("Sending update request with data:",t);let a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_edit.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=er(r)}catch(e){K("Invalid response format from server"),M(!1);return}"success"===s.status?(V(!1),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile updated successfully",variant:"default"}),await ee()):K(s.message||"Failed to update profile")}catch(e){K("An unexpected error occurred")}finally{M(!1)}},ed=async(s,t)=>{try{let a;if(!window.confirm('Are you sure you want to delete profile "'.concat(t,'"?')))return;let r=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_delete.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s})}),n=await r.text();try{a=er(n)}catch(s){e({title:"Error",description:"Failed to parse server response",variant:"destructive"});return}"success"===a.status?(e({title:"Profile Deleted",description:'Profile "'.concat(t,'" has been deleted successfully'),variant:"default"}),await ee(),await es()):e({title:"Error",description:a.message||"Failed to delete profile",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while deleting the profile",variant:"destructive"})}},el=async(s,t,a)=>{try{let t;let r="1"===a?"0":"1",n=await fetch("/cgi-bin/quecmanager/profiles/toggle_pause.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s,paused:r})}),i=await n.text();try{t=er(i)}catch(s){e({title:"Error",description:"Invalid response format from server",variant:"destructive"});return}"success"===t.status?(e({title:"1"===r?"Profile Paused":"Profile Resumed",description:t.message,variant:"default"}),await ee(),await es()):e({title:"Error",description:t.message||"Failed to update profile status",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while updating the profile",variant:"destructive"})}},ec=e=>{B("edit"),Y({name:e.name,iccid:e.iccid,imei:e.imei||"",apn:e.apn,pdp_type:e.pdp_type,lte_bands:e.lte_bands,sa_nr5g_bands:e.sa_nr5g_bands||"",nsa_nr5g_bands:e.nsa_nr5g_bands||"",network_type:e.network_type,ttl:e.ttl||"0",paused:e.paused||"0"}),U(e),K(null),V(!0)},eo=e=>{switch(e){case"LTE":return"4G LTE";case"NR5G":return"5G SA";case"LTE:NR5G":return"NR5G-NSA w/ LTE";default:return e}};return(0,a.jsx)("div",{children:(0,a.jsxs)(i.Zp,{children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsx)(i.ZB,{children:"QuecProfiles"}),(0,a.jsx)(i.BT,{children:"Configure personalized profiles for your SIM cards to manage connectivity settings and network preferences."})]}),(0,a.jsxs)(i.Wu,{className:"grid gap-y-8",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)(p.lG,{open:z,onOpenChange:V,children:[(0,a.jsx)(p.zM,{asChild:!0,children:(0,a.jsxs)(f.$,{onClick:()=>{B("create"),K(null),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"})},children:[(0,a.jsx)(y.A,{className:"w-4 h-4"}),"Add New Profile"]})}),(0,a.jsxs)(p.Cf,{children:[(0,a.jsxs)(p.c7,{children:[(0,a.jsx)(p.L3,{children:"create"===q?"Add New Profile":"Edit Profile"}),(0,a.jsx)(p.rr,{children:"create"===q?"Create a new profile for your SIM card to manage connectivity settings and network preferences.":"Update the settings for this profile."})]}),Q&&(0,a.jsxs)(F.Fc,{variant:"destructive",className:"my-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4"}),(0,a.jsx)(F.XL,{children:"Error"}),(0,a.jsx)(F.TN,{children:Q})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-5 gap-x-4 py-4",children:[(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"name",children:"Profile Name"}),(0,a.jsx)(S.p,{id:"name",placeholder:"My Network Profile",value:W.name,onChange:et,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"iccid",children:"ICCID"}),(0,a.jsx)(S.p,{id:"iccid",placeholder:"SIM ICCID",value:W.iccid,onChange:et,disabled:"edit"===q,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"imei",children:"IMEI"}),(0,a.jsx)(S.p,{id:"imei",placeholder:"Preferred IMEI",value:W.imei,onChange:et})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"apn",children:"APN"}),(0,a.jsx)(S.p,{id:"apn",placeholder:"internet",value:W.apn,onChange:et,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"pdp_type",children:"APN PDP Type"}),(0,a.jsxs)(u.l6,{value:W.pdp_type,onValueChange:e=>ea("pdp_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"PDP Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"IP",children:"IPV4"}),(0,a.jsx)(u.eb,{value:"IPV6",children:"IPV6"}),(0,a.jsx)(u.eb,{value:"IPV4V6",children:"IPV4 & IPV6"})]})]})]}),(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"lte_bands",children:"LTE Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"lte_bands",placeholder:"1,3,7,20",value:W.lte_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of LTE bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"nsa_nr5g_bands",children:"NR5G-NSA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"nsa_nr5g_bands",placeholder:"41,78",value:W.nsa_nr5g_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of NSA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"sa_nr5g_bands",children:"NR5G-SA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"sa_nr5g_bands",placeholder:"41,78",value:W.sa_nr5g_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of SA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"network_type",children:"Network Type"}),(0,a.jsxs)(u.l6,{value:W.network_type,onValueChange:e=>ea("network_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"Network Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"LTE",children:"LTE Only"}),(0,a.jsx)(u.eb,{value:"NR5G",children:"NR5G Only"}),(0,a.jsx)(u.eb,{value:"LTE:NR5G",children:"NR5G-NSA w/ LTE"})]})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"ttl",children:"TTL Value"}),(0,a.jsx)("div",{className:"grid gap-0.5",children:(0,a.jsx)(S.p,{id:"ttl",type:"number",min:"0",max:"255",placeholder:"0 (disabled)",value:W.ttl,onChange:et})})]})]}),(0,a.jsx)(p.Es,{children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(f.$,{variant:"secondary",onClick:()=>V(!1),disabled:D,children:"Cancel"}),(0,a.jsx)(f.$,{onClick:"create"===q?en:ei,disabled:D,children:D?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}),"create"===q?"Creating...":"Updating..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.A,{className:"h-4 w-4"}),"create"===q?"Save Profile":"Update Profile"]})})]})})]})]}),(0,a.jsxs)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-md p-1",children:[(0,a.jsx)("button",{className:"p-1 rounded ".concat("grid"===O?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>J("grid"),children:(0,a.jsx)(v.A,{size:18})}),(0,a.jsx)("button",{className:"p-1 rounded ".concat("list"===O?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>J("list"),children:(0,a.jsx)(w.A,{size:18})})]})]}),"grid"===O&&(0,a.jsx)("div",{className:"grid gap-4",children:d?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"border rounded-lg p-4",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(k.E,{className:"h-5 w-40"}),(0,a.jsx)(k.E,{className:"h-4 w-20"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(k.E,{className:"h-3 w-20"}),(0,a.jsx)(k.E,{className:"h-4 w-32"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(k.E,{className:"h-3 w-20"}),(0,a.jsx)(k.E,{className:"h-4 w-32"})]})]})]})})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)(i.Zp,{children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)(i.ZB,{className:"xl:text-xl font-bold tracking-wide",children:e.name}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o,{children:(0,a.jsx)(_.A,{className:"h-4 w-4"})}),(0,a.jsxs)(m,{className:"grid gap-2 max-w-[180px]",children:[(0,a.jsx)(f.$,{size:"sm",variant:"outline",className:"p-1",onClick:()=>el(e.iccid,e.name,e.paused||"0"),children:"1"===e.paused?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.A,{className:"w-4 h-4 text-emerald-500"}),"Resume Profile"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.A,{className:"w-4 h-4 text-orange-500"}),"Pause Profile"]})}),(0,a.jsxs)(f.$,{size:"sm",onClick:()=>ec(e),variant:"outline",children:[(0,a.jsx)(C.A,{className:"w-4 h-4"}),"Edit Profile"]}),(0,a.jsx)(L.w,{className:"w-full my-2"}),(0,a.jsxs)(f.$,{size:"sm",variant:"destructive",onClick:()=>ed(e.iccid,e.name),children:[(0,a.jsx)(A.A,{className:"w-4 h-4"}),"Delete Profile"]})]})]})]}),(0,a.jsx)(i.BT,{className:"flex items-center",children:(0,a.jsx)(R.E,{variant:"secondary",className:"text-xs",children:eo(e.network_type)})})]}),(0,a.jsx)(i.Wu,{children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"ICCID-".concat(s),className:"text-sm text-muted-foreground",children:"SIM ICCID"}),(0,a.jsx)("p",{id:"ICCID-".concat(s),className:"font-semibold",children:e.iccid})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"IMEI-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred IMEI"}),(0,a.jsx)("p",{id:"IMEI-".concat(s),className:"font-semibold",children:e.imei||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"APN-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN"}),(0,a.jsx)("p",{id:"APN-".concat(s),className:"font-semibold",children:e.apn})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"PDP-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN PDP Type"}),(0,a.jsx)("p",{id:"PDP-".concat(s),className:"font-semibold",children:e.pdp_type})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefTTl-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred TTL"}),(0,a.jsx)("p",{id:"prefTTL-".concat(s),className:"font-semibold",children:e.ttl||"0"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefLTEBands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred LTE Bands"}),(0,a.jsx)("p",{id:"prefLTEBands-".concat(s),className:"font-semibold",children:e.lte_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefNRNSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,a.jsx)("p",{id:"prefNRNSABands-".concat(s),className:"font-semibold",children:e.nsa_nr5g_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefNRSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-SA Bands"}),(0,a.jsx)("p",{id:"prefNRSABands-".concat(s),className:"font-semibold",children:e.sa_nr5g_bands||"-"})]})]})})]},s)):(0,a.jsxs)("div",{className:"text-center py-8 border rounded-lg",children:[(0,a.jsx)("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",children:(0,a.jsx)(y.A,{className:"h-6 w-6 text-muted-foreground"})}),(0,a.jsx)("h3",{className:"font-medium text-lg mb-1",children:"No Profiles Found"}),(0,a.jsx)("p",{className:"text-muted-foreground mb-4",children:"Simplify network management with profiles that automatically apply your preferred settings."})]})}),"list"===O&&(0,a.jsx)("div",{className:"border rounded-md overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-muted/50",children:[(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Profile Name"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"ICCID"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"APN (PDP Type)"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Network Type"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"TTL"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Actions"})]})}),(0,a.jsx)("tbody",{children:d?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("tr",{className:"border-t",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsx)(k.E,{className:"h-5 w-32"}),(0,a.jsx)(k.E,{className:"h-3 w-24 mt-1"})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-40"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-28"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-20"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-10"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(k.E,{className:"h-8 w-8 rounded-md"}),(0,a.jsx)(k.E,{className:"h-8 w-8 rounded-md"})]})})]})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)("tr",{className:"border-t hover:bg-muted/50 transition-colors",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsxs)("div",{className:"font-medium",children:[e.name,"1"===e.paused&&(0,a.jsx)(R.E,{variant:"outline",className:"ml-2 text-xs bg-amber-100 text-amber-700 border-amber-300",children:"Paused"})]}),(0,a.jsxs)("div",{className:"text-xs text-muted-foreground",children:["IMEI: ",e.imei||"Not specified"]})]}),(0,a.jsx)("td",{className:"p-4 font-mono text-sm",children:e.iccid}),(0,a.jsxs)("td",{className:"p-4",children:[e.apn," ",(0,a.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.pdp_type,")"]})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(R.E,{variant:"secondary",className:"text-xs",children:eo(e.network_type)})}),(0,a.jsx)("td",{className:"p-4",children:e.ttl&&parseInt(e.ttl)>0?(0,a.jsx)(R.E,{variant:"outline",className:"text-xs",children:e.ttl}):(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"Off"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>ec(e),children:[(0,a.jsx)(C.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Edit"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>el(e.iccid,e.name,e.paused||"0"),title:"1"===e.paused?"Resume Profile":"Pause Profile",children:["1"===e.paused?(0,a.jsx)(E.A,{className:"h-4 w-4 text-green-600"}):(0,a.jsx)(h.A,{className:"h-4 w-4 text-amber-600"}),(0,a.jsx)("span",{className:"sr-only",children:"1"===e.paused?"Resume":"Pause"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>ed(e.iccid,e.name),children:[(0,a.jsx)(A.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})]},s)):(0,a.jsx)("tr",{className:"border-t",children:(0,a.jsx)("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:"No profiles found. Create one to get started."})})})]})}),(()=>{if(!$||"idle"===$.status)return $&&$.message&&$.message.includes("No profile exists")?(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(F.XL,{children:"No Profile Found"}),(0,a.jsx)(F.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:"No profile exists for the current SIM card. Create a profile to configure your network settings."})})]}):null;if("paused"===$.status)return(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(h.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(F.XL,{children:"Profile Paused"}),(0,a.jsx)(F.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:$.message||'Profile "'.concat($.profile,'" is currently paused. Resume to apply settings.')})})]});let e=$.message,s="";return"error"===$.status?(s="Profile Issue",$.message.includes("missing the required APN setting")?(s="Missing APN Setting",e='Please edit profile "'.concat($.profile,'" and add an APN to enable network connectivity.')):$.message.includes("Could not detect SIM card")?(s="SIM Card Not Detected",e="Please check that a SIM card is properly inserted in your device."):$.message.includes("Could not communicate with modem")&&(s="Modem Communication Error",e="Having trouble connecting to the cellular modem. Please check your device.")):"success"===$.status&&($.message.includes("already applied")||$.message.includes("Profile already correctly applied"))?(s="Profile Active",e='Profile "'.concat($.profile,'" is active and correctly applied')):"applying"===$.status?s="Applying Profile":"rebooting"===$.status?(s="Device Rebooting",e="Your device is restarting to apply configuration changes."):s="Success",(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"error"===$.status?"destructive":"default",children:["applying"===$.status?(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}):"error"===$.status?(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}):"rebooting"===$.status?(0,a.jsx)(N.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(j.A,{className:"h-4 w-4",color:"green"}),(0,a.jsx)(F.XL,{children:s}),(0,a.jsxs)(F.TN,{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{children:e}),"applying"===$.status&&(0,a.jsxs)("span",{className:"font-semibold",children:[$.progress,"%"]})]})]})})()]})]})})}},49573:(e,s,t)=>{"use strict";t.d(s,{Fc:()=>l,TN:()=>o,XL:()=>c});var a=t(20475),r=t(20107),n=t(29395),i=t(22250);let d=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=r.forwardRef((e,s)=>{let{className:t,variant:r,...n}=e;return(0,a.jsx)("div",{ref:s,role:"alert",className:(0,i.cn)(d({variant:r}),t),...n})});l.displayName="Alert";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h5",{ref:s,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",t),...r})});c.displayName="AlertTitle";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",t),...r})});o.displayName="AlertDescription"},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>d});var a=t(20475);t(20107);var r=t(29395),n=t(22250);let i=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){let{className:s,variant:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)(i({variant:t}),s),...r})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>c,r:()=>l});var a=t(20475),r=t(20107),n=t(61837),i=t(29395),d=t(22250);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:t,variant:r,size:i,asChild:c=!1,...o}=e,m=c?n.DX:"button";return(0,a.jsx)(m,{className:(0,d.cn)(l({variant:r,size:i,className:t})),ref:s,...o})});c.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>c,Wu:()=>o,ZB:()=>l,Zp:()=>i,aR:()=>d,wL:()=>m});var a=t(20475),r=t(20107),n=t(22250);let i=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...r})});i.displayName="Card";let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...r})});d.displayName="CardHeader";let l=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",t),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",t),...r})});m.displayName="CardFooter"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>u,Es:()=>x,HM:()=>m,L3:()=>h,c7:()=>f,lG:()=>l,rr:()=>g,zM:()=>c});var a=t(20475),r=t(20107),n=t(60241),i=t(7197),d=t(22250);let l=n.bL,c=n.l9,o=n.ZL,m=n.bm,p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hJ,{ref:s,className:(0,d.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})});p.displayName=n.hJ.displayName;let u=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(o,{children:[(0,a.jsx)(p,{}),(0,a.jsxs)(n.UC,{ref:s,className:(0,d.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...l,children:[r,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(i.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=n.UC.displayName;let f=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};f.displayName="DialogHeader";let x=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};x.displayName="DialogFooter";let h=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hE,{ref:s,className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});h.displayName=n.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.VY,{ref:s,className:(0,d.cn)("text-sm text-muted-foreground",t),...r})});g.displayName=n.VY.displayName},64219:(e,s,t)=>{"use strict";t.d(s,{p:()=>i});var a=t(20475),r=t(20107),n=t(22250);let i=r.forwardRef((e,s)=>{let{className:t,type:r,...i}=e;return(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...i})});i.displayName="Input"},49153:(e,s,t)=>{"use strict";t.d(s,{J:()=>c});var a=t(20475),r=t(20107),n=t(21840),i=t(29395),d=t(22250);let l=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.b,{ref:s,className:(0,d.cn)(l(),t),...r})});c.displayName=n.b.displayName},35601:(e,s,t)=>{"use strict";t.d(s,{TR:()=>x,bq:()=>m,eb:()=>h,gC:()=>f,l6:()=>l,s3:()=>c,yv:()=>o});var a=t(20475),r=t(20107),n=t(7197),i=t(95257),d=t(22250);let l=i.bL,c=i.YJ,o=i.WT,m=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(i.l9,{ref:s,className:(0,d.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...l,children:[r,(0,a.jsx)(i.In,{asChild:!0,children:(0,a.jsx)(n.TBE,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=i.l9.displayName;let p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.PP,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(n.Mtm,{})})});p.displayName=i.PP.displayName;let u=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.wn,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(n.D3D,{})})});u.displayName=i.wn.displayName;let f=r.forwardRef((e,s)=>{let{className:t,children:r,position:n="popper",...l}=e;return(0,a.jsx)(i.ZL,{children:(0,a.jsxs)(i.UC,{ref:s,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...l,children:[(0,a.jsx)(p,{}),(0,a.jsx)(i.LM,{className:(0,d.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(u,{})]})})});f.displayName=i.UC.displayName;let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.JU,{ref:s,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",t),...r})});x.displayName=i.JU.displayName;let h=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(i.q7,{ref:s,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(i.VF,{children:(0,a.jsx)(n.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(i.p4,{children:r})]})});h.displayName=i.q7.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.wv,{ref:s,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",t),...r})}).displayName=i.wv.displayName},76554:(e,s,t)=>{"use strict";t.d(s,{w:()=>d});var a=t(20475),r=t(20107),n=t(88853),i=t(22250);let d=r.forwardRef((e,s)=>{let{className:t,orientation:r="horizontal",decorative:d=!0,...l}=e;return(0,a.jsx)(n.b,{ref:s,decorative:d,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...l})});d.displayName=n.b.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>n});var a=t(20475),r=t(22250);function n(e){let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>p,oR:()=>m});var a=t(20107);let r=0,n=new Map,i=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},d=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},l=[],c={toasts:[]};function o(e){c=d(c,e),l.forEach(e=>{e(c)})}function m(e){let{...s}=e,t=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>o({type:"DISMISS_TOAST",toastId:t});return o({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||a()}}}),{id:t,dismiss:a,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function p(){let[e,s]=a.useState(c);return a.useEffect(()=>(l.push(s),()=>{let e=l.indexOf(s);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>n});var a=t(64901),r=t(868);function n(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,241,5766,191,6035,7358],()=>s(61437)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-77aa5d022b2bc981.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-77aa5d022b2bc981.js new file mode 100644 index 0000000..78d6ff8 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-77aa5d022b2bc981.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9473],{61437:(e,s,t)=>{Promise.resolve().then(t.bind(t,22256))},22256:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>D});var a=t(20475),r=t(20107),n=t(32857),i=t(72167),d=t(48547),l=t(22250);let c=d.bL,o=d.l9;d.Mz;let m=r.forwardRef((e,s)=>{let{className:t,align:r="center",sideOffset:n=4,...i}=e;return(0,a.jsx)(d.ZL,{children:(0,a.jsx)(d.UC,{ref:s,align:r,sideOffset:n,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})})});m.displayName=d.UC.displayName;var p=t(93557),u=t(35601),f=t(42541),x=t(17799),h=t(61003),g=t(59166),N=t(97801),j=t(98969),y=t(10528),b=t(52161),v=t(46361),w=t(26780),_=t(32024),P=t(25262),T=t(57718),C=t(1870),A=t(51873),E=t(14389),I=t(49153),S=t(64219),k=t(36760),R=t(45934),F=t(49573),L=t(76554);let D=()=>{let{toast:e}=(0,n.dj)(),[s,t]=(0,r.useState)([]),[d,l]=(0,r.useState)(!0),[D,M]=(0,r.useState)(!1),[O,J]=(0,r.useState)("grid"),[z,V]=(0,r.useState)(!1),[q,B]=(0,r.useState)("create"),[G,U]=(0,r.useState)(null),[$,Z]=(0,r.useState)(null),[X,H]=(0,r.useState)(""),[W,Y]=(0,r.useState)({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),[Q,K]=(0,r.useState)(null);(0,r.useEffect)(()=>{ee(),es();let e=setInterval(es,5e3);return()=>clearInterval(e)},[]);let ee=async()=>{l(!0);try{let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();"success"===s.status&&Array.isArray(s.profiles)?(console.log("Fetched profiles:",s.profiles),t(s.profiles)):(console.error("Invalid profile data structure:",s),t([]))}else console.error("Failed to fetch profiles:",e.statusText),t([])}catch(s){console.error("Error fetching profiles:",s),t([]),e({title:"Error",description:"Failed to load profiles. Please try again.",variant:"destructive"})}finally{l(!1)}},es=async()=>{try{let s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(s.ok){let t=await s.json();Z(t),"idle"===t.status||t.status===X||t.message.includes("already applied")||t.message.includes("Profile already correctly applied")||"applying"!==t.status||(e({title:"Profile: ".concat(t.profile),description:t.message,variant:"error"===t.status?"destructive":"default"}),H(t.status))}}catch(e){}},et=e=>{let{id:s,value:t}=e.target;if("ttl"===s){let e=parseInt(t);if(""===t||isNaN(e)||e<0){Y({...W,ttl:"0"});return}if(e>255){Y({...W,ttl:"255"});return}}Y({...W,[s]:t})},ea=(e,s)=>{Y({...W,[e]:s})},er=e=>{let s=e.trim(),t=s.indexOf("{");t>0&&(s=s.substring(t));let a=0,r=s.length;for(let e=0;e{M(!0),K(null);try{let s;if(!W.name||!W.iccid||!W.apn){K("Profile name, ICCID, and APN are required"),M(!1);return}if(W.ttl&&(0>parseInt(W.ttl)||parseInt(W.ttl)>255)){K("TTL must be between 0 and 255"),M(!1);return}let t={name:W.name,iccid:W.iccid,imei:W.imei||"",apn:W.apn,pdp_type:W.pdp_type,lte_bands:W.lte_bands,sa_nr5g_bands:W.sa_nr5g_bands||"",nsa_nr5g_bands:W.nsa_nr5g_bands||"",network_type:W.network_type,ttl:W.ttl||"0",paused:"0"},a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_create.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=er(r)}catch(e){K("Invalid response format from server"),M(!1);return}"success"===s.status?(V(!1),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile created successfully",variant:"default"}),await ee(),await es()):K(s.message||"Failed to create profile")}catch(e){K("An unexpected error occurred")}finally{M(!1)}},ei=async()=>{M(!0),K(null);try{let s;if(!W.name||!W.iccid||!W.apn){K("Profile name, ICCID, and APN are required"),M(!1);return}if(W.ttl&&(0>parseInt(W.ttl)||parseInt(W.ttl)>255)){K("TTL must be between 0 and 255"),M(!1);return}let t={name:W.name,iccid:W.iccid,imei:W.imei||"",apn:W.apn,pdp_type:W.pdp_type,lte_bands:W.lte_bands,sa_nr5g_bands:W.sa_nr5g_bands||"",nsa_nr5g_bands:W.nsa_nr5g_bands||"",network_type:W.network_type,ttl:W.ttl||"0",paused:W.paused||"0"};console.log("Sending update request with data:",t);let a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_edit.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=er(r)}catch(e){K("Invalid response format from server"),M(!1);return}"success"===s.status?(V(!1),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile updated successfully",variant:"default"}),await ee()):K(s.message||"Failed to update profile")}catch(e){K("An unexpected error occurred")}finally{M(!1)}},ed=async(s,t)=>{try{let a;if(!window.confirm('Are you sure you want to delete profile "'.concat(t,'"?')))return;let r=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_delete.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s})}),n=await r.text();try{a=er(n)}catch(s){e({title:"Error",description:"Failed to parse server response",variant:"destructive"});return}"success"===a.status?(e({title:"Profile Deleted",description:'Profile "'.concat(t,'" has been deleted successfully'),variant:"default"}),await ee(),await es()):e({title:"Error",description:a.message||"Failed to delete profile",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while deleting the profile",variant:"destructive"})}},el=async(s,t,a)=>{try{let t;let r="1"===a?"0":"1",n=await fetch("/cgi-bin/quecmanager/profiles/toggle_pause.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s,paused:r})}),i=await n.text();try{t=er(i)}catch(s){e({title:"Error",description:"Invalid response format from server",variant:"destructive"});return}"success"===t.status?(e({title:"1"===r?"Profile Paused":"Profile Resumed",description:t.message,variant:"default"}),await ee(),await es()):e({title:"Error",description:t.message||"Failed to update profile status",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while updating the profile",variant:"destructive"})}},ec=e=>{B("edit"),Y({name:e.name,iccid:e.iccid,imei:e.imei||"",apn:e.apn,pdp_type:e.pdp_type,lte_bands:e.lte_bands,sa_nr5g_bands:e.sa_nr5g_bands||"",nsa_nr5g_bands:e.nsa_nr5g_bands||"",network_type:e.network_type,ttl:e.ttl||"0",paused:e.paused||"0"}),U(e),K(null),V(!0)},eo=e=>{switch(e){case"LTE":return"4G LTE";case"NR5G":return"5G SA";case"LTE:NR5G":return"NR5G-NSA w/ LTE";default:return e}};return(0,a.jsx)("div",{children:(0,a.jsxs)(i.Zp,{children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsx)(i.ZB,{children:"QuecProfiles"}),(0,a.jsx)(i.BT,{children:"Configure personalized profiles for your SIM cards to manage connectivity settings and network preferences."})]}),(0,a.jsxs)(i.Wu,{className:"grid gap-y-8",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)(p.lG,{open:z,onOpenChange:V,children:[(0,a.jsx)(p.zM,{asChild:!0,children:(0,a.jsxs)(f.$,{onClick:()=>{B("create"),K(null),Y({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"})},children:[(0,a.jsx)(y.A,{className:"w-4 h-4"}),"Add New Profile"]})}),(0,a.jsxs)(p.Cf,{children:[(0,a.jsxs)(p.c7,{children:[(0,a.jsx)(p.L3,{children:"create"===q?"Add New Profile":"Edit Profile"}),(0,a.jsx)(p.rr,{children:"create"===q?"Create a new profile for your SIM card to manage connectivity settings and network preferences.":"Update the settings for this profile."})]}),Q&&(0,a.jsxs)(F.Fc,{variant:"destructive",className:"my-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4"}),(0,a.jsx)(F.XL,{children:"Error"}),(0,a.jsx)(F.TN,{children:Q})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-5 gap-x-4 py-4",children:[(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"name",children:"Profile Name"}),(0,a.jsx)(S.p,{id:"name",placeholder:"My Network Profile",value:W.name,onChange:et,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"iccid",children:"ICCID"}),(0,a.jsx)(S.p,{id:"iccid",placeholder:"SIM ICCID",value:W.iccid,onChange:et,disabled:"edit"===q,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"imei",children:"IMEI"}),(0,a.jsx)(S.p,{id:"imei",placeholder:"Preferred IMEI",value:W.imei,onChange:et})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"apn",children:"APN"}),(0,a.jsx)(S.p,{id:"apn",placeholder:"internet",value:W.apn,onChange:et,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"pdp_type",children:"APN PDP Type"}),(0,a.jsxs)(u.l6,{value:W.pdp_type,onValueChange:e=>ea("pdp_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"PDP Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"IP",children:"IPV4"}),(0,a.jsx)(u.eb,{value:"IPV6",children:"IPV6"}),(0,a.jsx)(u.eb,{value:"IPV4V6",children:"IPV4 & IPV6"})]})]})]}),(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"lte_bands",children:"LTE Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"lte_bands",placeholder:"1,3,7,20",value:W.lte_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of LTE bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"nsa_nr5g_bands",children:"NR5G-NSA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"nsa_nr5g_bands",placeholder:"41,78",value:W.nsa_nr5g_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of NSA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"sa_nr5g_bands",children:"NR5G-SA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"sa_nr5g_bands",placeholder:"41,78",value:W.sa_nr5g_bands,onChange:et}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of SA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"network_type",children:"Network Type"}),(0,a.jsxs)(u.l6,{value:W.network_type,onValueChange:e=>ea("network_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"Network Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"LTE",children:"LTE Only"}),(0,a.jsx)(u.eb,{value:"NR5G",children:"NR5G Only"}),(0,a.jsx)(u.eb,{value:"LTE:NR5G",children:"NR5G-NSA w/ LTE"})]})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"ttl",children:"TTL Value"}),(0,a.jsx)("div",{className:"grid gap-0.5",children:(0,a.jsx)(S.p,{id:"ttl",type:"number",min:"0",max:"255",placeholder:"0 (disabled)",value:W.ttl,onChange:et})})]})]}),(0,a.jsx)(p.Es,{children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(f.$,{variant:"secondary",onClick:()=>V(!1),disabled:D,children:"Cancel"}),(0,a.jsx)(f.$,{onClick:"create"===q?en:ei,disabled:D,children:D?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}),"create"===q?"Creating...":"Updating..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.A,{className:"h-4 w-4"}),"create"===q?"Save Profile":"Update Profile"]})})]})})]})]}),(0,a.jsxs)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-md p-1",children:[(0,a.jsx)("button",{className:"p-1 rounded ".concat("grid"===O?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>J("grid"),children:(0,a.jsx)(v.A,{size:18})}),(0,a.jsx)("button",{className:"p-1 rounded ".concat("list"===O?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>J("list"),children:(0,a.jsx)(w.A,{size:18})})]})]}),"grid"===O&&(0,a.jsx)("div",{className:"grid gap-4",children:d?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"border rounded-lg p-4",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(k.E,{className:"h-5 w-40"}),(0,a.jsx)(k.E,{className:"h-4 w-20"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(k.E,{className:"h-3 w-20"}),(0,a.jsx)(k.E,{className:"h-4 w-32"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(k.E,{className:"h-3 w-20"}),(0,a.jsx)(k.E,{className:"h-4 w-32"})]})]})]})})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)(i.Zp,{children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)(i.ZB,{className:"xl:text-xl font-bold tracking-wide",children:e.name}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o,{children:(0,a.jsx)(_.A,{className:"h-4 w-4"})}),(0,a.jsxs)(m,{className:"grid gap-2 max-w-[180px]",children:[(0,a.jsx)(f.$,{size:"sm",variant:"outline",className:"p-1",onClick:()=>el(e.iccid,e.name,e.paused||"0"),children:"1"===e.paused?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.A,{className:"w-4 h-4 text-emerald-500"}),"Resume Profile"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.A,{className:"w-4 h-4 text-orange-500"}),"Pause Profile"]})}),(0,a.jsxs)(f.$,{size:"sm",onClick:()=>ec(e),variant:"outline",children:[(0,a.jsx)(C.A,{className:"w-4 h-4"}),"Edit Profile"]}),(0,a.jsx)(L.w,{className:"w-full my-2"}),(0,a.jsxs)(f.$,{size:"sm",variant:"destructive",onClick:()=>ed(e.iccid,e.name),children:[(0,a.jsx)(A.A,{className:"w-4 h-4"}),"Delete Profile"]})]})]})]}),(0,a.jsx)(i.BT,{className:"flex items-center",children:(0,a.jsx)(R.E,{variant:"secondary",className:"text-xs",children:eo(e.network_type)})})]}),(0,a.jsx)(i.Wu,{children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"ICCID-".concat(s),className:"text-sm text-muted-foreground",children:"SIM ICCID"}),(0,a.jsx)("p",{id:"ICCID-".concat(s),className:"font-semibold",children:e.iccid})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"IMEI-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred IMEI"}),(0,a.jsx)("p",{id:"IMEI-".concat(s),className:"font-semibold",children:e.imei||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"APN-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN"}),(0,a.jsx)("p",{id:"APN-".concat(s),className:"font-semibold",children:e.apn})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"PDP-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN PDP Type"}),(0,a.jsx)("p",{id:"PDP-".concat(s),className:"font-semibold",children:e.pdp_type})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefTTl-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred TTL"}),(0,a.jsx)("p",{id:"prefTTL-".concat(s),className:"font-semibold",children:e.ttl||"0"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefLTEBands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred LTE Bands"}),(0,a.jsx)("p",{id:"prefLTEBands-".concat(s),className:"font-semibold",children:e.lte_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefNRNSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,a.jsx)("p",{id:"prefNRNSABands-".concat(s),className:"font-semibold",children:e.nsa_nr5g_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefNRSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-SA Bands"}),(0,a.jsx)("p",{id:"prefNRSABands-".concat(s),className:"font-semibold",children:e.sa_nr5g_bands||"-"})]})]})})]},s)):(0,a.jsxs)("div",{className:"text-center py-8 border rounded-lg",children:[(0,a.jsx)("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",children:(0,a.jsx)(y.A,{className:"h-6 w-6 text-muted-foreground"})}),(0,a.jsx)("h3",{className:"font-medium text-lg mb-1",children:"No Profiles Found"}),(0,a.jsx)("p",{className:"text-muted-foreground mb-4",children:"Simplify network management with profiles that automatically apply your preferred settings."})]})}),"list"===O&&(0,a.jsx)("div",{className:"border rounded-md overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-muted/50",children:[(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Profile Name"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"ICCID"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"APN (PDP Type)"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Network Type"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"TTL"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Actions"})]})}),(0,a.jsx)("tbody",{children:d?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("tr",{className:"border-t",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsx)(k.E,{className:"h-5 w-32"}),(0,a.jsx)(k.E,{className:"h-3 w-24 mt-1"})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-40"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-28"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-20"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-10"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(k.E,{className:"h-8 w-8 rounded-md"}),(0,a.jsx)(k.E,{className:"h-8 w-8 rounded-md"})]})})]})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)("tr",{className:"border-t hover:bg-muted/50 transition-colors",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsxs)("div",{className:"font-medium",children:[e.name,"1"===e.paused&&(0,a.jsx)(R.E,{variant:"outline",className:"ml-2 text-xs bg-amber-100 text-amber-700 border-amber-300",children:"Paused"})]}),(0,a.jsxs)("div",{className:"text-xs text-muted-foreground",children:["IMEI: ",e.imei||"Not specified"]})]}),(0,a.jsx)("td",{className:"p-4 font-mono text-sm",children:e.iccid}),(0,a.jsxs)("td",{className:"p-4",children:[e.apn," ",(0,a.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.pdp_type,")"]})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(R.E,{variant:"secondary",className:"text-xs",children:eo(e.network_type)})}),(0,a.jsx)("td",{className:"p-4",children:e.ttl&&parseInt(e.ttl)>0?(0,a.jsx)(R.E,{variant:"outline",className:"text-xs",children:e.ttl}):(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"Off"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>ec(e),children:[(0,a.jsx)(C.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Edit"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>el(e.iccid,e.name,e.paused||"0"),title:"1"===e.paused?"Resume Profile":"Pause Profile",children:["1"===e.paused?(0,a.jsx)(E.A,{className:"h-4 w-4 text-green-600"}):(0,a.jsx)(h.A,{className:"h-4 w-4 text-amber-600"}),(0,a.jsx)("span",{className:"sr-only",children:"1"===e.paused?"Resume":"Pause"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>ed(e.iccid,e.name),children:[(0,a.jsx)(A.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})]},s)):(0,a.jsx)("tr",{className:"border-t",children:(0,a.jsx)("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:"No profiles found. Create one to get started."})})})]})}),(()=>{if(!$||"idle"===$.status)return $&&$.message&&$.message.includes("No profile exists")?(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(F.XL,{children:"No Profile Found"}),(0,a.jsx)(F.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:"No profile exists for the current SIM card. Create a profile to configure your network settings."})})]}):null;if("paused"===$.status)return(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(h.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(F.XL,{children:"Profile Paused"}),(0,a.jsx)(F.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:$.message||'Profile "'.concat($.profile,'" is currently paused. Resume to apply settings.')})})]});let e=$.message,s="";return"error"===$.status?(s="Profile Issue",$.message.includes("missing the required APN setting")?(s="Missing APN Setting",e='Please edit profile "'.concat($.profile,'" and add an APN to enable network connectivity.')):$.message.includes("Could not detect SIM card")?(s="SIM Card Not Detected",e="Please check that a SIM card is properly inserted in your device."):$.message.includes("Could not communicate with modem")&&(s="Modem Communication Error",e="Having trouble connecting to the cellular modem. Please check your device.")):"success"===$.status&&($.message.includes("already applied")||$.message.includes("Profile already correctly applied"))?(s="Profile Active",e='Profile "'.concat($.profile,'" is active and correctly applied')):"applying"===$.status?s="Applying Profile":"rebooting"===$.status?(s="Device Rebooting",e="Your device is restarting to apply configuration changes."):s="Success",(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"error"===$.status?"destructive":"default",children:["applying"===$.status?(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}):"error"===$.status?(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}):"rebooting"===$.status?(0,a.jsx)(N.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(j.A,{className:"h-4 w-4",color:"green"}),(0,a.jsx)(F.XL,{children:s}),(0,a.jsxs)(F.TN,{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{children:e}),"applying"===$.status&&(0,a.jsxs)("span",{className:"font-semibold",children:[$.progress,"%"]})]})]})})()]})]})})}},49573:(e,s,t)=>{"use strict";t.d(s,{Fc:()=>l,TN:()=>o,XL:()=>c});var a=t(20475),r=t(20107),n=t(29395),i=t(22250);let d=(0,n.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=r.forwardRef((e,s)=>{let{className:t,variant:r,...n}=e;return(0,a.jsx)("div",{ref:s,role:"alert",className:(0,i.cn)(d({variant:r}),t),...n})});l.displayName="Alert";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h5",{ref:s,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",t),...r})});c.displayName="AlertTitle";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",t),...r})});o.displayName="AlertDescription"},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>d});var a=t(20475);t(20107);var r=t(29395),n=t(22250);let i=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){let{className:s,variant:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)(i({variant:t}),s),...r})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>c,r:()=>l});var a=t(20475),r=t(20107),n=t(61837),i=t(29395),d=t(22250);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:t,variant:r,size:i,asChild:c=!1,...o}=e,m=c?n.DX:"button";return(0,a.jsx)(m,{className:(0,d.cn)(l({variant:r,size:i,className:t})),ref:s,...o})});c.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>c,Wu:()=>o,ZB:()=>l,Zp:()=>i,aR:()=>d,wL:()=>m});var a=t(20475),r=t(20107),n=t(22250);let i=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...r})});i.displayName="Card";let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...r})});d.displayName="CardHeader";let l=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",t),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",t),...r})});m.displayName="CardFooter"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>u,Es:()=>x,HM:()=>m,L3:()=>h,c7:()=>f,lG:()=>l,rr:()=>g,zM:()=>c});var a=t(20475),r=t(20107),n=t(60241),i=t(7197),d=t(22250);let l=n.bL,c=n.l9,o=n.ZL,m=n.bm,p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hJ,{ref:s,className:(0,d.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})});p.displayName=n.hJ.displayName;let u=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(o,{children:[(0,a.jsx)(p,{}),(0,a.jsxs)(n.UC,{ref:s,className:(0,d.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...l,children:[r,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(i.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=n.UC.displayName;let f=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};f.displayName="DialogHeader";let x=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};x.displayName="DialogFooter";let h=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hE,{ref:s,className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});h.displayName=n.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.VY,{ref:s,className:(0,d.cn)("text-sm text-muted-foreground",t),...r})});g.displayName=n.VY.displayName},64219:(e,s,t)=>{"use strict";t.d(s,{p:()=>i});var a=t(20475),r=t(20107),n=t(22250);let i=r.forwardRef((e,s)=>{let{className:t,type:r,...i}=e;return(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...i})});i.displayName="Input"},49153:(e,s,t)=>{"use strict";t.d(s,{J:()=>c});var a=t(20475),r=t(20107),n=t(21840),i=t(29395),d=t(22250);let l=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.b,{ref:s,className:(0,d.cn)(l(),t),...r})});c.displayName=n.b.displayName},35601:(e,s,t)=>{"use strict";t.d(s,{TR:()=>x,bq:()=>m,eb:()=>h,gC:()=>f,l6:()=>l,s3:()=>c,yv:()=>o});var a=t(20475),r=t(20107),n=t(7197),i=t(95257),d=t(22250);let l=i.bL,c=i.YJ,o=i.WT,m=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(i.l9,{ref:s,className:(0,d.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...l,children:[r,(0,a.jsx)(i.In,{asChild:!0,children:(0,a.jsx)(n.TBE,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=i.l9.displayName;let p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.PP,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(n.Mtm,{})})});p.displayName=i.PP.displayName;let u=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.wn,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(n.D3D,{})})});u.displayName=i.wn.displayName;let f=r.forwardRef((e,s)=>{let{className:t,children:r,position:n="popper",...l}=e;return(0,a.jsx)(i.ZL,{children:(0,a.jsxs)(i.UC,{ref:s,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...l,children:[(0,a.jsx)(p,{}),(0,a.jsx)(i.LM,{className:(0,d.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(u,{})]})})});f.displayName=i.UC.displayName;let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.JU,{ref:s,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",t),...r})});x.displayName=i.JU.displayName;let h=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(i.q7,{ref:s,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(i.VF,{children:(0,a.jsx)(n.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(i.p4,{children:r})]})});h.displayName=i.q7.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.wv,{ref:s,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",t),...r})}).displayName=i.wv.displayName},76554:(e,s,t)=>{"use strict";t.d(s,{w:()=>d});var a=t(20475),r=t(20107),n=t(88853),i=t(22250);let d=r.forwardRef((e,s)=>{let{className:t,orientation:r="horizontal",decorative:d=!0,...l}=e;return(0,a.jsx)(n.b,{ref:s,decorative:d,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...l})});d.displayName=n.b.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>n});var a=t(20475),r=t(22250);function n(e){let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>p,oR:()=>m});var a=t(20107);let r=0,n=new Map,i=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},d=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},l=[],c={toasts:[]};function o(e){c=d(c,e),l.forEach(e=>{e(c)})}function m(e){let{...s}=e,t=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>o({type:"DISMISS_TOAST",toastId:t});return o({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||a()}}}),{id:t,dismiss:a,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function p(){let[e,s]=a.useState(c);return a.useEffect(()=>(l.push(s),()=>{let e=l.indexOf(s);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>n});var a=t(64901),r=t(868);function n(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,6357,6810,5766,191,6035,7358],()=>s(61437)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-ee8aa6e77dc40009.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-ee8aa6e77dc40009.js new file mode 100644 index 0000000..697e469 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecprofiles/page-ee8aa6e77dc40009.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9473],{61437:(e,s,t)=>{Promise.resolve().then(t.bind(t,22256))},22256:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>L});var a=t(20475),r=t(20107),i=t(32857),n=t(72167),d=t(48547),l=t(22250);let c=d.bL,o=d.l9;d.Mz;let m=r.forwardRef((e,s)=>{let{className:t,align:r="center",sideOffset:i=4,...n}=e;return(0,a.jsx)(d.ZL,{children:(0,a.jsx)(d.UC,{ref:s,align:r,sideOffset:i,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})})});m.displayName=d.UC.displayName;var p=t(93557),u=t(35601),f=t(42541),x=t(17799),h=t(61003),g=t(59166),N=t(97801),j=t(98969),y=t(10528),b=t(52161),v=t(46361),w=t(26780),_=t(32024),P=t(25262),C=t(57718),T=t(1870),A=t(51873),E=t(14389),I=t(49153),S=t(64219),k=t(36760),R=t(45934),F=t(49573),D=t(76554);let L=()=>{let{toast:e}=(0,i.dj)(),[s,t]=(0,r.useState)([]),[d,l]=(0,r.useState)(!0),[L,M]=(0,r.useState)(!1),[O,J]=(0,r.useState)("grid"),[z,V]=(0,r.useState)(!1),[q,B]=(0,r.useState)("create"),[G,U]=(0,r.useState)(null),[$,Z]=(0,r.useState)(null),[X,H]=(0,r.useState)(""),[W,Y]=(0,r.useState)(!1),[Q,K]=(0,r.useState)({iccid:"",imei:""}),[ee,es]=(0,r.useState)({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),[et,ea]=(0,r.useState)(null);(0,r.useEffect)(()=>{ei(),en(),er();let e=setInterval(en,5e3);return()=>clearInterval(e)},[]);let er=async()=>{Y(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=9");if(!e.ok)throw Error("Failed to fetch device information");let s=await e.json();console.log("Device info response:",s);let t="",a="",r=s.find(e=>"AT+ICCID"===e.command);if(r&&"success"===r.status){let e=r.response.match(/\d{10,20}/);e&&(t=e[0])}let i=s.find(e=>"AT+CGSN"===e.command);if(i&&"success"===i.status){let e=i.response.match(/\d{15}/);e&&(a=e[0])}console.log("Extracted device info - ICCID:",t,"IMEI:",a),K({iccid:t,imei:a}),es(e=>({...e,iccid:t||e.iccid,imei:a||e.imei}))}catch(s){console.error("Error fetching device information:",s),e({title:"Info",description:"Could not auto-populate device information",variant:"default"})}finally{Y(!1)}},ei=async()=>{l(!0);try{let e=await fetch("/cgi-bin/quecmanager/profiles/list_profiles.sh");if(e.ok){let s=await e.json();"success"===s.status&&Array.isArray(s.profiles)?(console.log("Fetched profiles:",s.profiles),t(s.profiles)):(console.error("Invalid profile data structure:",s),t([]))}else console.error("Failed to fetch profiles:",e.statusText),t([])}catch(s){console.error("Error fetching profiles:",s),t([]),e({title:"Error",description:"Failed to load profiles. Please try again.",variant:"destructive"})}finally{l(!1)}},en=async()=>{try{let s=await fetch("/cgi-bin/quecmanager/profiles/check_status.sh");if(s.ok){let t=await s.json();Z(t),"idle"===t.status||t.status===X||t.message.includes("already applied")||t.message.includes("Profile already correctly applied")||"applying"!==t.status||(e({title:"Profile: ".concat(t.profile),description:t.message,variant:"error"===t.status?"destructive":"default"}),H(t.status))}}catch(e){}},ed=e=>{let{id:s,value:t}=e.target;if("ttl"===s){let e=parseInt(t);if(""===t||isNaN(e)||e<0){es({...ee,ttl:"0"});return}if(e>255){es({...ee,ttl:"255"});return}}es({...ee,[s]:t})},el=(e,s)=>{es({...ee,[e]:s})},ec=e=>{let s=e.trim(),t=s.indexOf("{");t>0&&(s=s.substring(t));let a=0,r=s.length;for(let e=0;e{M(!0),ea(null);try{let s;if(!ee.name||!ee.iccid||!ee.apn){ea("Profile name, ICCID, and APN are required"),M(!1);return}if(ee.ttl&&(0>parseInt(ee.ttl)||parseInt(ee.ttl)>255)){ea("TTL must be between 0 and 255"),M(!1);return}let t={name:ee.name,iccid:ee.iccid,imei:ee.imei||"",apn:ee.apn,pdp_type:ee.pdp_type,lte_bands:ee.lte_bands,sa_nr5g_bands:ee.sa_nr5g_bands||"",nsa_nr5g_bands:ee.nsa_nr5g_bands||"",network_type:ee.network_type,ttl:ee.ttl||"0",paused:"0"},a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_create.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=ec(r)}catch(e){ea("Invalid response format from server"),M(!1);return}"success"===s.status?(V(!1),es({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile created successfully",variant:"default"}),await ei(),await en()):ea(s.message||"Failed to create profile")}catch(e){ea("An unexpected error occurred")}finally{M(!1)}},em=async()=>{M(!0),ea(null);try{let s;if(!ee.name||!ee.iccid||!ee.apn){ea("Profile name, ICCID, and APN are required"),M(!1);return}if(ee.ttl&&(0>parseInt(ee.ttl)||parseInt(ee.ttl)>255)){ea("TTL must be between 0 and 255"),M(!1);return}let t={name:ee.name,iccid:ee.iccid,imei:ee.imei||"",apn:ee.apn,pdp_type:ee.pdp_type,lte_bands:ee.lte_bands,sa_nr5g_bands:ee.sa_nr5g_bands||"",nsa_nr5g_bands:ee.nsa_nr5g_bands||"",network_type:ee.network_type,ttl:ee.ttl||"0",paused:ee.paused||"0"};console.log("Sending update request with data:",t);let a=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_edit.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await a.text();try{s=ec(r)}catch(e){ea("Invalid response format from server"),M(!1);return}"success"===s.status?(V(!1),es({name:"",iccid:"",imei:"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),e({title:"Success",description:"Profile updated successfully",variant:"default"}),await ei()):ea(s.message||"Failed to update profile")}catch(e){ea("An unexpected error occurred")}finally{M(!1)}},ep=async(s,t)=>{try{let a;if(!window.confirm('Are you sure you want to delete profile "'.concat(t,'"?')))return;let r=await fetch("/cgi-bin/quecmanager/profiles/quec_profile_delete.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s})}),i=await r.text();try{a=ec(i)}catch(s){e({title:"Error",description:"Failed to parse server response",variant:"destructive"});return}"success"===a.status?(e({title:"Profile Deleted",description:'Profile "'.concat(t,'" has been deleted successfully'),variant:"default"}),await ei(),await en()):e({title:"Error",description:a.message||"Failed to delete profile",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while deleting the profile",variant:"destructive"})}},eu=async(s,t,a)=>{try{let t;let r="1"===a?"0":"1",i=await fetch("/cgi-bin/quecmanager/profiles/toggle_pause.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({iccid:s,paused:r})}),n=await i.text();try{t=ec(n)}catch(s){e({title:"Error",description:"Invalid response format from server",variant:"destructive"});return}"success"===t.status?(e({title:"1"===r?"Profile Paused":"Profile Resumed",description:t.message,variant:"default"}),await ei(),await en()):e({title:"Error",description:t.message||"Failed to update profile status",variant:"destructive"})}catch(s){e({title:"Error",description:"An unexpected error occurred while updating the profile",variant:"destructive"})}},ef=e=>{B("edit"),es({name:e.name,iccid:e.iccid,imei:e.imei||"",apn:e.apn,pdp_type:e.pdp_type,lte_bands:e.lte_bands,sa_nr5g_bands:e.sa_nr5g_bands||"",nsa_nr5g_bands:e.nsa_nr5g_bands||"",network_type:e.network_type,ttl:e.ttl||"0",paused:e.paused||"0"}),U(e),ea(null),V(!0)},ex=e=>{switch(e){case"AUTO":return"AUTO";case"LTE":return"4G LTE";case"NR5G":return"5G SA";case"LTE:NR5G":return"NR5G-NSA";default:return e}};return(0,a.jsx)("div",{children:(0,a.jsxs)(n.Zp,{children:[(0,a.jsxs)(n.aR,{children:[(0,a.jsx)(n.ZB,{children:"QuecProfiles"}),(0,a.jsx)(n.BT,{children:"Configure personalized profiles for your SIM cards to manage connectivity settings and network preferences."})]}),(0,a.jsxs)(n.Wu,{className:"grid gap-y-8",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)(p.lG,{open:z,onOpenChange:V,children:[(0,a.jsx)(p.zM,{asChild:!0,children:(0,a.jsxs)(f.$,{onClick:()=>{B("create"),ea(null),es({name:"",iccid:Q.iccid||"",imei:Q.imei||"",apn:"",pdp_type:"IPV4V6",lte_bands:"",sa_nr5g_bands:"",nsa_nr5g_bands:"",network_type:"LTE",ttl:"0",paused:"0"}),V(!0)},children:[(0,a.jsx)(y.A,{className:"w-4 h-4"}),"Add New Profile"]})}),(0,a.jsxs)(p.Cf,{children:[(0,a.jsxs)(p.c7,{children:[(0,a.jsx)(p.L3,{children:"create"===q?"Add New Profile":"Edit Profile"}),(0,a.jsx)(p.rr,{children:"create"===q?"Create a new profile for your SIM card to manage connectivity settings and network preferences.":"Update the settings for this profile."})]}),et&&(0,a.jsxs)(F.Fc,{variant:"destructive",className:"my-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4"}),(0,a.jsx)(F.XL,{children:"Error"}),(0,a.jsx)(F.TN,{children:et})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-5 gap-x-4 py-4",children:[(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"name",children:"Profile Name"}),(0,a.jsx)(S.p,{id:"name",placeholder:"My Network Profile",value:ee.name,onChange:ed,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"iccid",children:"ICCID"}),(0,a.jsx)(S.p,{id:"iccid",placeholder:"SIM ICCID",value:ee.iccid,onChange:ed,disabled:"edit"===q,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"imei",children:"IMEI"}),(0,a.jsx)(S.p,{id:"imei",placeholder:"Preferred IMEI",value:ee.imei,onChange:ed})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"apn",children:"APN"}),(0,a.jsx)(S.p,{id:"apn",placeholder:"internet",value:ee.apn,onChange:ed,required:!0})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"pdp_type",children:"APN PDP Type"}),(0,a.jsxs)(u.l6,{value:ee.pdp_type,onValueChange:e=>el("pdp_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"PDP Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"IP",children:"IPV4"}),(0,a.jsx)(u.eb,{value:"IPV6",children:"IPV6"}),(0,a.jsx)(u.eb,{value:"IPV4V6",children:"IPV4 & IPV6"})]})]})]}),(0,a.jsxs)("div",{className:"col-span-2 grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"lte_bands",children:"LTE Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"lte_bands",placeholder:"1,3,7,20",value:ee.lte_bands,onChange:ed}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of LTE bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"nsa_nr5g_bands",children:"NR5G-NSA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"nsa_nr5g_bands",placeholder:"41,78",value:ee.nsa_nr5g_bands,onChange:ed}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of NSA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"sa_nr5g_bands",children:"NR5G-SA Bands"}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(S.p,{id:"sa_nr5g_bands",placeholder:"41,78",value:ee.sa_nr5g_bands,onChange:ed}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Comma-separated list of SA bands."})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"network_type",children:"Network Type"}),(0,a.jsxs)(u.l6,{value:ee.network_type,onValueChange:e=>el("network_type",e),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"Network Type"})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"LTE",children:"LTE Only"}),(0,a.jsx)(u.eb,{value:"NR5G",children:"NR5G Only"}),(0,a.jsx)(u.eb,{value:"LTE:NR5G",children:"NR5G-NSA w/ LTE"})]})]})]}),(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(I.J,{htmlFor:"ttl",children:"TTL Value"}),(0,a.jsx)("div",{className:"grid gap-0.5",children:(0,a.jsx)(S.p,{id:"ttl",type:"number",min:"0",max:"255",placeholder:"0 (disabled)",value:ee.ttl,onChange:ed})})]})]}),(0,a.jsx)(p.Es,{children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(f.$,{variant:"secondary",onClick:()=>V(!1),disabled:L,children:"Cancel"}),(0,a.jsx)(f.$,{onClick:"create"===q?eo:em,disabled:L,children:L?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}),"create"===q?"Creating...":"Updating..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.A,{className:"h-4 w-4"}),"create"===q?"Save Profile":"Update Profile"]})})]})})]})]}),(0,a.jsxs)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-md p-1",children:[(0,a.jsx)("button",{className:"p-1 rounded ".concat("grid"===O?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>J("grid"),children:(0,a.jsx)(v.A,{size:18})}),(0,a.jsx)("button",{className:"p-1 rounded ".concat("list"===O?"bg-white dark:bg-gray-700 shadow-sm":""),onClick:()=>J("list"),children:(0,a.jsx)(w.A,{size:18})})]})]}),"grid"===O&&(0,a.jsx)("div",{className:"grid gap-4",children:d?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"border rounded-lg p-4",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(k.E,{className:"h-5 w-40"}),(0,a.jsx)(k.E,{className:"h-4 w-20"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(k.E,{className:"h-3 w-20"}),(0,a.jsx)(k.E,{className:"h-4 w-32"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(k.E,{className:"h-3 w-20"}),(0,a.jsx)(k.E,{className:"h-4 w-32"})]})]})]})})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)(n.Zp,{children:[(0,a.jsxs)(n.aR,{children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)(n.ZB,{className:"xl:text-xl font-bold tracking-wide",children:e.name}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o,{children:(0,a.jsx)(_.A,{className:"h-4 w-4"})}),(0,a.jsxs)(m,{className:"grid gap-2 max-w-[180px]",children:[(0,a.jsx)(f.$,{size:"sm",variant:"outline",className:"p-1",onClick:()=>eu(e.iccid,e.name,e.paused||"0"),children:"1"===e.paused?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.A,{className:"w-4 h-4 text-emerald-500"}),"Resume Profile"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.A,{className:"w-4 h-4 text-orange-500"}),"Pause Profile"]})}),(0,a.jsxs)(f.$,{size:"sm",onClick:()=>ef(e),variant:"outline",children:[(0,a.jsx)(T.A,{className:"w-4 h-4"}),"Edit Profile"]}),(0,a.jsx)(D.w,{className:"w-full my-2"}),(0,a.jsxs)(f.$,{size:"sm",variant:"destructive",onClick:()=>ep(e.iccid,e.name),children:[(0,a.jsx)(A.A,{className:"w-4 h-4"}),"Delete Profile"]})]})]})]}),(0,a.jsxs)(n.BT,{className:"flex items-center",children:[(0,a.jsx)(R.E,{variant:"secondary",className:"text-xs",children:ex(e.network_type)}),"1"===e.paused&&(0,a.jsx)(R.E,{variant:"outline",className:"ml-2 bg-orange-500 hover:bg-orange-600",children:"Paused"})]})]}),(0,a.jsx)(n.Wu,{children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"ICCID-".concat(s),className:"text-sm text-muted-foreground",children:"SIM ICCID"}),(0,a.jsx)("p",{id:"ICCID-".concat(s),className:"font-semibold",children:e.iccid})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"IMEI-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred IMEI"}),(0,a.jsx)("p",{id:"IMEI-".concat(s),className:"font-semibold",children:e.imei||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"APN-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN"}),(0,a.jsx)("p",{id:"APN-".concat(s),className:"font-semibold",children:e.apn})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"PDP-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred APN PDP Type"}),(0,a.jsx)("p",{id:"PDP-".concat(s),className:"font-semibold",children:e.pdp_type})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefTTl-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred TTL"}),(0,a.jsx)("p",{id:"prefTTL-".concat(s),className:"font-semibold",children:e.ttl||"0"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefLTEBands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred LTE Bands"}),(0,a.jsx)("p",{id:"prefLTEBands-".concat(s),className:"font-semibold",children:e.lte_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefNRNSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-NSA Bands"}),(0,a.jsx)("p",{id:"prefNRNSABands-".concat(s),className:"font-semibold",children:e.nsa_nr5g_bands||"-"})]}),(0,a.jsxs)("div",{className:"grid gap-0.5",children:[(0,a.jsx)(I.J,{htmlFor:"prefNRSABands-".concat(s),className:"text-sm text-muted-foreground",children:"Preferred NR5G-SA Bands"}),(0,a.jsx)("p",{id:"prefNRSABands-".concat(s),className:"font-semibold",children:e.sa_nr5g_bands||"-"})]})]})})]},s)):(0,a.jsxs)("div",{className:"text-center py-8 border rounded-lg",children:[(0,a.jsx)("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",children:(0,a.jsx)(y.A,{className:"h-6 w-6 text-muted-foreground"})}),(0,a.jsx)("h3",{className:"font-medium text-lg mb-1",children:"No Profiles Found"}),(0,a.jsx)("p",{className:"text-muted-foreground mb-4",children:"Simplify network management with profiles that automatically apply your preferred settings."})]})}),"list"===O&&(0,a.jsx)("div",{className:"border rounded-md overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-muted/50",children:[(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Profile Name"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"ICCID"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"APN (PDP Type)"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Network Type"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"TTL"}),(0,a.jsx)("th",{className:"h-10 px-4 text-left align-middle font-medium text-muted-foreground",children:"Actions"})]})}),(0,a.jsx)("tbody",{children:d?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("tr",{className:"border-t",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsx)(k.E,{className:"h-5 w-32"}),(0,a.jsx)(k.E,{className:"h-3 w-24 mt-1"})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-40"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-28"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-20"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(k.E,{className:"h-5 w-10"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(k.E,{className:"h-8 w-8 rounded-md"}),(0,a.jsx)(k.E,{className:"h-8 w-8 rounded-md"})]})})]})}):s&&s.length>0?s.map((e,s)=>(0,a.jsxs)("tr",{className:"border-t hover:bg-muted/50 transition-colors",children:[(0,a.jsxs)("td",{className:"p-4",children:[(0,a.jsxs)("div",{className:"font-medium",children:[e.name,"1"===e.paused&&(0,a.jsx)(R.E,{variant:"outline",className:"ml-2 text-xs bg-amber-100 text-amber-700 border-amber-300",children:"Paused"})]}),(0,a.jsxs)("div",{className:"text-xs text-muted-foreground",children:["IMEI: ",e.imei||"Not specified"]})]}),(0,a.jsx)("td",{className:"p-4 font-mono text-sm",children:e.iccid}),(0,a.jsxs)("td",{className:"p-4",children:[e.apn," ",(0,a.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.pdp_type,")"]})]}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsx)(R.E,{variant:"secondary",className:"text-xs",children:ex(e.network_type)})}),(0,a.jsx)("td",{className:"p-4",children:e.ttl&&parseInt(e.ttl)>0?(0,a.jsx)(R.E,{variant:"outline",className:"text-xs",children:e.ttl}):(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"Off"})}),(0,a.jsx)("td",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>ef(e),children:[(0,a.jsx)(T.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Edit"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>eu(e.iccid,e.name,e.paused||"0"),title:"1"===e.paused?"Resume Profile":"Pause Profile",children:["1"===e.paused?(0,a.jsx)(E.A,{className:"h-4 w-4 text-green-600"}):(0,a.jsx)(h.A,{className:"h-4 w-4 text-amber-600"}),(0,a.jsx)("span",{className:"sr-only",children:"1"===e.paused?"Resume":"Pause"})]}),(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>ep(e.iccid,e.name),children:[(0,a.jsx)(A.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})]},s)):(0,a.jsx)("tr",{className:"border-t",children:(0,a.jsx)("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:"No profiles found. Create one to get started."})})})]})}),(()=>{if(!$||"idle"===$.status)return $&&$.message&&$.message.includes("No profile exists")?(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(F.XL,{children:"No Profile Found"}),(0,a.jsx)(F.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:"No profile exists for the current SIM card. Create a profile to configure your network settings."})})]}):null;if("paused"===$.status)return(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"default",children:[(0,a.jsx)(h.A,{className:"h-4 w-4",color:"orange"}),(0,a.jsx)(F.XL,{children:"Profile Paused"}),(0,a.jsx)(F.TN,{className:"flex justify-between items-center",children:(0,a.jsx)("span",{children:$.message||'Profile "'.concat($.profile,'" is currently paused. Resume to apply settings.')})})]});let e=$.message,s="";return"error"===$.status?(s="Profile Issue",$.message.includes("missing the required APN setting")?(s="Missing APN Setting",e='Please edit profile "'.concat($.profile,'" and add an APN to enable network connectivity.')):$.message.includes("Could not detect SIM card")?(s="SIM Card Not Detected",e="Please check that a SIM card is properly inserted in your device."):$.message.includes("Could not communicate with modem")&&(s="Modem Communication Error",e="Having trouble connecting to the cellular modem. Please check your device.")):"success"===$.status&&($.message.includes("already applied")||$.message.includes("Profile already correctly applied"))?(s="Profile Active",e='Profile "'.concat($.profile,'" is active and correctly applied')):"applying"===$.status?s="Applying Profile":"rebooting"===$.status?(s="Device Rebooting",e="Your device is restarting to apply configuration changes."):s="Success",(0,a.jsxs)(F.Fc,{className:"mb-1",variant:"error"===$.status?"destructive":"default",children:["applying"===$.status?(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin"}):"error"===$.status?(0,a.jsx)(x.A,{className:"h-4 w-4",color:"orange"}):"rebooting"===$.status?(0,a.jsx)(N.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(j.A,{className:"h-4 w-4",color:"green"}),(0,a.jsx)(F.XL,{children:s}),(0,a.jsxs)(F.TN,{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{children:e}),"applying"===$.status&&(0,a.jsxs)("span",{className:"font-semibold",children:[$.progress,"%"]})]})]})})()]})]})})}},49573:(e,s,t)=>{"use strict";t.d(s,{Fc:()=>l,TN:()=>o,XL:()=>c});var a=t(20475),r=t(20107),i=t(29395),n=t(22250);let d=(0,i.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=r.forwardRef((e,s)=>{let{className:t,variant:r,...i}=e;return(0,a.jsx)("div",{ref:s,role:"alert",className:(0,n.cn)(d({variant:r}),t),...i})});l.displayName="Alert";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h5",{ref:s,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",t),...r})});c.displayName="AlertTitle";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",t),...r})});o.displayName="AlertDescription"},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>d});var a=t(20475);t(20107);var r=t(29395),i=t(22250);let n=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){let{className:s,variant:t,...r}=e;return(0,a.jsx)("div",{className:(0,i.cn)(n({variant:t}),s),...r})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>c,r:()=>l});var a=t(20475),r=t(20107),i=t(61837),n=t(29395),d=t(22250);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:t,variant:r,size:n,asChild:c=!1,...o}=e,m=c?i.DX:"button";return(0,a.jsx)(m,{className:(0,d.cn)(l({variant:r,size:n,className:t})),ref:s,...o})});c.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>c,Wu:()=>o,ZB:()=>l,Zp:()=>n,aR:()=>d,wL:()=>m});var a=t(20475),r=t(20107),i=t(22250);let n=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...r})});n.displayName="Card";let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",t),...r})});d.displayName="CardHeader";let l=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h3",{ref:s,className:(0,i.cn)("font-semibold leading-none tracking-tight",t),...r})});l.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("p",{ref:s,className:(0,i.cn)("text-sm text-muted-foreground",t),...r})});c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,i.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,i.cn)("flex items-center p-6 pt-0",t),...r})});m.displayName="CardFooter"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>u,Es:()=>x,HM:()=>m,L3:()=>h,c7:()=>f,lG:()=>l,rr:()=>g,zM:()=>c});var a=t(20475),r=t(20107),i=t(60241),n=t(7197),d=t(22250);let l=i.bL,c=i.l9,o=i.ZL,m=i.bm,p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.hJ,{ref:s,className:(0,d.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})});p.displayName=i.hJ.displayName;let u=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(o,{children:[(0,a.jsx)(p,{}),(0,a.jsxs)(i.UC,{ref:s,className:(0,d.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...l,children:[r,(0,a.jsxs)(i.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(n.MKb,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=i.UC.displayName;let f=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};f.displayName="DialogHeader";let x=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};x.displayName="DialogFooter";let h=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.hE,{ref:s,className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});h.displayName=i.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.VY,{ref:s,className:(0,d.cn)("text-sm text-muted-foreground",t),...r})});g.displayName=i.VY.displayName},64219:(e,s,t)=>{"use strict";t.d(s,{p:()=>n});var a=t(20475),r=t(20107),i=t(22250);let n=r.forwardRef((e,s)=>{let{className:t,type:r,...n}=e;return(0,a.jsx)("input",{type:r,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...n})});n.displayName="Input"},49153:(e,s,t)=>{"use strict";t.d(s,{J:()=>c});var a=t(20475),r=t(20107),i=t(21840),n=t(29395),d=t(22250);let l=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.b,{ref:s,className:(0,d.cn)(l(),t),...r})});c.displayName=i.b.displayName},35601:(e,s,t)=>{"use strict";t.d(s,{TR:()=>x,bq:()=>m,eb:()=>h,gC:()=>f,l6:()=>l,s3:()=>c,yv:()=>o});var a=t(20475),r=t(20107),i=t(7197),n=t(95257),d=t(22250);let l=n.bL,c=n.YJ,o=n.WT,m=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(n.l9,{ref:s,className:(0,d.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...l,children:[r,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(i.TBE,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=n.l9.displayName;let p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.PP,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(i.Mtm,{})})});p.displayName=n.PP.displayName;let u=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.wn,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(i.D3D,{})})});u.displayName=n.wn.displayName;let f=r.forwardRef((e,s)=>{let{className:t,children:r,position:i="popper",...l}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:s,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:i,...l,children:[(0,a.jsx)(p,{}),(0,a.jsx)(n.LM,{className:(0,d.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(u,{})]})})});f.displayName=n.UC.displayName;let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.JU,{ref:s,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",t),...r})});x.displayName=n.JU.displayName;let h=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(n.q7,{ref:s,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(i.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:r})]})});h.displayName=n.q7.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.wv,{ref:s,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",t),...r})}).displayName=n.wv.displayName},76554:(e,s,t)=>{"use strict";t.d(s,{w:()=>d});var a=t(20475),r=t(20107),i=t(88853),n=t(22250);let d=r.forwardRef((e,s)=>{let{className:t,orientation:r="horizontal",decorative:d=!0,...l}=e;return(0,a.jsx)(i.b,{ref:s,decorative:d,orientation:r,className:(0,n.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...l})});d.displayName=i.b.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>i});var a=t(20475),r=t(22250);function i(e){let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>p,oR:()=>m});var a=t(20107);let r=0,i=new Map,n=e=>{if(i.has(e))return;let s=setTimeout(()=>{i.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,s)},d=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?n(t):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},l=[],c={toasts:[]};function o(e){c=d(c,e),l.forEach(e=>{e(c)})}function m(e){let{...s}=e,t=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>o({type:"DISMISS_TOAST",toastId:t});return o({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||a()}}}),{id:t,dismiss:a,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function p(){let[e,s]=a.useState(c);return a.useEffect(()=>(l.push(s),()=>{let e=l.indexOf(s);e>-1&&l.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>i});var a=t(64901),r=t(868);function i(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,241,5766,191,6035,7358],()=>s(61437)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-0e589df1091f659d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-0e589df1091f659d.js new file mode 100644 index 0000000..3b7976c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-0e589df1091f659d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6010],{30076:(e,s,_)=>{Promise.resolve().then(_.bind(_,79824))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,7563,9464,3494,3048,9824,191,6035,7358],()=>s(30076)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-2778658dc79ef969.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-2778658dc79ef969.js new file mode 100644 index 0000000..963730e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-2778658dc79ef969.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6010],{30076:(e,s,_)=>{Promise.resolve().then(_.bind(_,79824))}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,7780,8885,3746,9464,3494,3048,9824,191,6035,7358],()=>s(30076)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-73c728da722206c7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-73c728da722206c7.js new file mode 100644 index 0000000..7b87ad8 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-73c728da722206c7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6010],{30076:(e,t,r)=>{Promise.resolve().then(r.bind(r,79824))},79824:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var a=r(20475),s=r(20107),i=r(72167),n=r(35601),l=r(85014),o=r(42541),c=r(18861),d=r(49153),u=r(64219),m=r(59166),h=r(39997);let p=(0,h.A)("ShieldX",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]),f=(0,h.A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var x=r(12607);let g=(0,h.A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),v=(0,h.A)("ScanEye",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),b=(0,h.A)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);var j=r(32857);let y=()=>{let{toast:e}=(0,j.dj)(),[t,r]=(0,s.useState)({pingTarget:"8.8.8.8",pingInterval:60,pingFailures:3,maxRetries:5,connectionRefresh:!1,autoSimFailover:!1,simFailoverSchedule:30}),[h,y]=(0,s.useState)("loading"),[w,N]=(0,s.useState)(!1),[k,S]=(0,s.useState)(null),[R,C]=(0,s.useState)(null),[F,T]=(0,s.useState)(0),E=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/fetch-quecwatch.sh");if(!e.ok)throw Error("Network response was not ok");let t=await e.json();if("active"===t.status){if(t.config){let e={pingTarget:t.config.pingTarget||"8.8.8.8",pingInterval:t.config.pingInterval||60,pingFailures:t.config.pingFailures||3,maxRetries:t.config.maxRetries||5,connectionRefresh:!!t.config.connectionRefresh,autoSimFailover:!!t.config.autoSimFailover,simFailoverSchedule:t.config.simFailoverSchedule||30};r(e),void 0!==t.config.currentRetries?(T(t.config.currentRetries),t.config.currentRetries>=e.maxRetries?y("maxRetries"):y("active")):y("active"),C(t.lastActivity||null)}else y("active")}else"inactive"===t.status?y("inactive"):(y("error"),S(t.message||"Unknown error occurred"))}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:"Failed to fetch QuecWatch configuration",variant:"destructive"})}};(0,s.useEffect)(()=>{E()},[]),(0,s.useEffect)(()=>{if("active"===h||"maxRetries"===h){let e=setInterval(E,5e3);return()=>clearInterval(e)}},[h]);let A=async()=>{N(!0);try{let t=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/reset-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let r=await t.json();if("success"===r.status)e({title:"QuecWatch Reset",description:"Counter reset and service restarted successfully"}),y("active"),T(0),setTimeout(E,1e3);else throw Error(r.message||"Failed to reset retry counter")}catch(t){e({title:"Error",description:t instanceof Error?t.message:"Failed to reset retry counter",variant:"destructive"})}finally{N(!1)}},I=async()=>{N(!0),S(null);try{let r=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/enable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pingTarget:t.pingTarget,pingInterval:t.pingInterval,pingFailures:t.pingFailures,maxRetries:t.maxRetries,connectionRefresh:t.connectionRefresh,autoSimFailover:t.autoSimFailover,simFailoverSchedule:t.simFailoverSchedule})});if(!r.ok)throw Error("Network response was not ok");let a=await r.json();if("success"===a.status)y("active"),e({title:"QuecWatch Enabled",description:"QuecWatch enabled successfully"}),await E();else throw Error(a.message||"Failed to enable QuecWatch")}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:t instanceof Error?t.message:"Failed to enable QuecWatch",variant:"destructive"})}finally{N(!1)}},M=async()=>{N(!0),S(null);try{let t=await fetch("/cgi-bin/quecmanager/experimental/quecwatch/disable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let r=await t.json();if("success"===r.status)y("inactive"),e({title:"QuecWatch Disabled",description:"QuecWatch disabled successfully",variant:"default"});else throw Error(r.message||"Failed to disable QuecWatch")}catch(t){y("error"),S(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:t instanceof Error?t.message:"Failed to disable QuecWatch",variant:"destructive"})}finally{N(!1)}};return(0,a.jsxs)(i.Zp,{children:[(0,a.jsxs)(i.aR,{children:[(0,a.jsx)(i.ZB,{children:"QuecWatch"}),(0,a.jsx)(i.BT,{children:"An intelligent watchdog service for Quectel-AP modems that ensures network reliability through automated monitoring, connection management, and SIM failover capabilities."})]}),(0,a.jsx)(i.Wu,{children:(0,a.jsxs)("div",{className:"grid gap-8",children:[(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,a.jsx)(d.J,{children:"QuecWatch Status"}),(0,a.jsx)("div",{className:"flex items-center space-x-1",children:"loading"===h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{className:"animate-spin text-primary size-4"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:"Loading..."})]}):"inactive"===h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p,{className:"text-rose-500 size-4"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:"Inactive"})]}):"active"===h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f,{className:"text-green-500 size-4"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:"Active"})]}):"maxRetries"===h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.A,{className:"text-yellow-500 size-4"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:"Maximum Retries Exhausted"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p,{className:"text-amber-500 size-4"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:"Error"})]})})]}),(0,a.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,a.jsx)(d.J,{children:"Remaining Retries"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[("active"===h||"maxRetries"===h)&&(0,a.jsx)(l.TooltipProvider,{children:(0,a.jsxs)(l.m_,{children:[(0,a.jsx)(l.k$,{children:(0,a.jsx)(o.$,{variant:"outline",size:"icon",className:"h-6 w-6",onClick:A,disabled:w,children:(0,a.jsx)(g,{className:"h-4 w-4"})})}),(0,a.jsx)(l.ZI,{children:(0,a.jsx)("p",{children:"Reset the retry counter"})})]})}),(0,a.jsxs)("p",{className:"text-muted-foreground text-sm",children:[F," / ",t.maxRetries]})]})]})]}),(0,a.jsxs)("div",{className:"grid grid-flow-row lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(d.J,{htmlFor:"ping",children:"Ping Target"}),(0,a.jsx)(u.p,{id:"ping",placeholder:"8.8.8.8",value:t.pingTarget,disabled:"active"===h||"maxRetries"===h,onChange:e=>r(t=>({...t,pingTarget:e.target.value}))})]}),(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(d.J,{htmlFor:"ping-interval",children:"Ping Interval"}),(0,a.jsxs)(n.l6,{value:t.pingInterval.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>r(t=>({...t,pingInterval:parseInt(e)})),children:[(0,a.jsx)(n.bq,{id:"ping-interval",children:(0,a.jsx)(n.yv,{placeholder:"Select Ping Interval"})}),(0,a.jsx)(n.gC,{children:[5,10,15,30,60,120,300,600,1800,3600].map(e=>(0,a.jsx)(n.eb,{value:e.toString(),children:e>=3600?"".concat(e/3600," hour").concat(e>3600?"s":""):e>=60?"".concat(e/60," minute").concat(e>=120?"s":""):"".concat(e," second").concat(1!==e?"s":"")},e))})]})]}),(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(d.J,{htmlFor:"ping-failure",children:"Ping Failures"}),(0,a.jsxs)(n.l6,{value:t.pingFailures.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>r(t=>({...t,pingFailures:parseInt(e)})),children:[(0,a.jsx)(n.bq,{id:"ping-failure",children:(0,a.jsx)(n.yv,{placeholder:"Select Ping Failures"})}),(0,a.jsx)(n.gC,{children:[1,3,5,10].map(e=>(0,a.jsxs)(n.eb,{value:e.toString(),children:[e," failure",1!==e?"s":""]},e))})]})]}),(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(d.J,{htmlFor:"max-retries",children:"Max Retries"}),(0,a.jsxs)(n.l6,{value:t.maxRetries.toString(),disabled:"active"===h||"maxRetries"===h,onValueChange:e=>r(t=>({...t,maxRetries:parseInt(e)})),children:[(0,a.jsx)(n.bq,{id:"max-retries",children:(0,a.jsx)(n.yv,{placeholder:"Select Max Retries"})}),(0,a.jsx)(n.gC,{children:[1,3,5,10,15,20].map(e=>(0,a.jsx)(n.eb,{value:e.toString(),children:e},e))})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[(0,a.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,a.jsx)(d.J,{className:"text-base",children:"Connection Refresh"}),(0,a.jsx)(d.J,{className:"text-sm font-normal text-muted-foreground",children:"Toggle the connection refresh for the modem to first attempt reconnecting to the network before restarting."})]}),(0,a.jsx)(c.d,{checked:t.connectionRefresh,disabled:"active"===h||"maxRetries"===h,onCheckedChange:e=>r(t=>({...t,connectionRefresh:e}))})]}),(0,a.jsxs)("div",{className:" rounded-lg border p-4 grid gap-y-6",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,a.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,a.jsx)(d.J,{className:"text-base",children:"Auto SIM Failover"}),(0,a.jsx)(d.J,{className:"text-sm font-normal text-muted-foreground",children:"Auto SIM Failover will automatically switch to the next available SIM card when the current SIM card fails to connect to the network."})]}),(0,a.jsx)(c.d,{checked:t.autoSimFailover,disabled:"active"===h||"maxRetries"===h,onCheckedChange:e=>r(t=>({...t,autoSimFailover:e}))})]}),(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(d.J,{htmlFor:"sim-failover",children:"Schedule SIM Checking"}),(0,a.jsxs)(n.l6,{value:t.simFailoverSchedule.toString(),disabled:"active"===h||"maxRetries"===h||!t.autoSimFailover,onValueChange:e=>r(t=>({...t,simFailoverSchedule:parseInt(e)})),children:[(0,a.jsx)(n.bq,{id:"sim-failover",className:"max-w-xs",children:(0,a.jsx)(n.yv,{placeholder:"Select SIM Checking Interval"})}),(0,a.jsxs)(n.gC,{children:[(0,a.jsx)(n.eb,{value:"0",children:"Disabled"}),(0,a.jsx)(n.eb,{value:"1",children:"1 Minute"}),(0,a.jsx)(n.eb,{value:"5",children:"5 Minutes"}),(0,a.jsx)(n.eb,{value:"30",children:"30 Minutes"}),(0,a.jsx)(n.eb,{value:"60",children:"1 Hour"}),(0,a.jsx)(n.eb,{value:"360",children:"6 Hours"}),(0,a.jsx)(n.eb,{value:"720",children:"12 Hours"}),(0,a.jsx)(n.eb,{value:"1440",children:"24 Hours"})]})]})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border p-4",children:[(0,a.jsx)(d.J,{className:"text-base",children:"Last Activity"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:R||"No recent activity"})]}),k&&(0,a.jsx)("div",{className:"text-red-500 text-sm",children:k})]})}),(0,a.jsxs)(i.wL,{className:"flex gap-4 border-t py-4",children:[("inactive"===h||"error"===h)&&(0,a.jsx)(o.$,{onClick:I,disabled:w||!t.pingTarget,children:w?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{className:"h-4 w-4 animate-spin"}),"Enabling..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{className:"w-4 h-4"}),"Enable QuecWatch"]})}),("active"===h||"maxRetries"===h)&&(0,a.jsx)(o.$,{variant:"destructive",onClick:M,disabled:w,children:w?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{className:"h-4 w-4 animate-spin"}),"Disabling..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{className:"w-4 h-4"}),"Disable QuecWatch"]})})]})]})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>c,r:()=>o});var a=r(20475),s=r(20107),i=r(61837),n=r(29395),l=r(22250);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:c=!1,...d}=e,u=c?i.DX:"button";return(0,a.jsx)(u,{className:(0,l.cn)(o({variant:s,size:n,className:r})),ref:t,...d})});c.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>o,Zp:()=>n,aR:()=>l,wL:()=>u});var a=r(20475),s=r(20107),i=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});n.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",r),...s})});o.displayName="CardTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})});c.displayName="CardDescription";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...s})});d.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},64219:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(20475),s=r(20107),i=r(22250);let n=s.forwardRef((e,t)=>{let{className:r,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})});n.displayName="Input"},49153:(e,t,r)=>{"use strict";r.d(t,{J:()=>c});var a=r(20475),s=r(20107),i=r(21840),n=r(29395),l=r(22250);let o=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(i.b,{ref:t,className:(0,l.cn)(o(),r),...s})});c.displayName=i.b.displayName},35601:(e,t,r)=>{"use strict";r.d(t,{TR:()=>f,bq:()=>u,eb:()=>x,gC:()=>p,l6:()=>o,s3:()=>c,yv:()=>d});var a=r(20475),s=r(20107),i=r(7197),n=r(95257),l=r(22250);let o=n.bL,c=n.YJ,d=n.WT,u=s.forwardRef((e,t)=>{let{className:r,children:s,...o}=e;return(0,a.jsxs)(n.l9,{ref:t,className:(0,l.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...o,children:[s,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(i.TBE,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=n.l9.displayName;let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.PP,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(i.Mtm,{})})});m.displayName=n.PP.displayName;let h=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wn,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(i.D3D,{})})});h.displayName=n.wn.displayName;let p=s.forwardRef((e,t)=>{let{className:r,children:s,position:i="popper",...o}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:t,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:i,...o,children:[(0,a.jsx)(m,{}),(0,a.jsx)(n.LM,{className:(0,l.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(h,{})]})})});p.displayName=n.UC.displayName;let f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",r),...s})});f.displayName=n.JU.displayName;let x=s.forwardRef((e,t)=>{let{className:r,children:s,...o}=e;return(0,a.jsxs)(n.q7,{ref:t,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(i.Srz,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:s})]})});x.displayName=n.q7.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",r),...s})}).displayName=n.wv.displayName},18861:(e,t,r)=>{"use strict";r.d(t,{d:()=>l});var a=r(20475),s=r(20107),i=r(80982),n=r(22250);let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(i.bL,{className:(0,n.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...s,ref:t,children:(0,a.jsx)(i.zi,{className:(0,n.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});l.displayName=i.bL.displayName},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>l,ZI:()=>d,k$:()=>c,m_:()=>o});var a=r(20475),s=r(20107),i=r(43048),n=r(22250);let l=i.Kq,o=i.bL,c=i.l9,d=s.forwardRef((e,t)=>{let{className:r,sideOffset:s=4,...l}=e;return(0,a.jsx)(i.UC,{ref:t,sideOffset:s,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})});d.displayName=i.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>m,oR:()=>u});var a=r(20107);let s=0,i=new Map,n=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],c={toasts:[]};function d(e){c=l(c,e),o.forEach(e=>{e(c)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>d({type:"DISMISS_TOAST",toastId:r});return d({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function m(){let[e,t]=a.useState(c);return a.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var a=r(64901),s=r(868);function i(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{A:()=>o});var a=r(20107);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...n,width:s,height:s,stroke:r,strokeWidth:o?24*Number(l)/Number(s):l,className:i("lucide",c),...m},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),o=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:o,...c}=r;return(0,a.createElement)(l,{ref:n,iconNode:t,className:i("lucide-".concat(s(e)),o),...c})});return r.displayName="".concat(e),r}},59166:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},12607:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},80982:(e,t,r)=>{"use strict";r.d(t,{bL:()=>w,zi:()=>N});var a=r(20107),s=r(94521),i=r(64236),n=r(45170),l=r(13061),o=r(65163),c=r(63620),d=r(34544),u=r(20475),m="Switch",[h,p]=(0,n.A)(m),[f,x]=h(m),g=a.forwardRef((e,t)=>{let{__scopeSwitch:r,name:n,checked:o,defaultChecked:c,required:m,disabled:h,value:p="on",onCheckedChange:x,form:g,...v}=e,[b,w]=a.useState(null),N=(0,i.s)(t,e=>w(e)),k=a.useRef(!1),S=!b||g||!!b.closest("form"),[R=!1,C]=(0,l.i)({prop:o,defaultProp:c,onChange:x});return(0,u.jsxs)(f,{scope:r,checked:R,disabled:h,children:[(0,u.jsx)(d.sG.button,{type:"button",role:"switch","aria-checked":R,"aria-required":m,"data-state":y(R),"data-disabled":h?"":void 0,disabled:h,value:p,...v,ref:N,onClick:(0,s.m)(e.onClick,e=>{C(e=>!e),S&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),S&&(0,u.jsx)(j,{control:b,bubbles:!k.current,name:n,value:p,checked:R,required:m,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});g.displayName=m;var v="SwitchThumb",b=a.forwardRef((e,t)=>{let{__scopeSwitch:r,...a}=e,s=x(v,r);return(0,u.jsx)(d.sG.span,{"data-state":y(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})});b.displayName=v;var j=e=>{let{control:t,checked:r,bubbles:s=!0,...i}=e,n=a.useRef(null),l=(0,o.Z)(r),d=(0,c.X)(t);return a.useEffect(()=>{let e=n.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let a=new Event("click",{bubbles:s});t.call(e,r),e.dispatchEvent(a)}},[l,r,s]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:n,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return e?"checked":"unchecked"}var w=g,N=b}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,6810,3048,191,6035,7358],()=>t(30076)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-c8fec59c49351f2d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-c8fec59c49351f2d.js deleted file mode 100644 index 4cd3fdf..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-c8fec59c49351f2d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6010],{68228:(e,s,_)=>{Promise.resolve().then(_.bind(_,37123))}},e=>{var s=s=>e(e.s=s);e.O(0,[5105,1365,7401,9895,2019,9975,9710,7123,8441,1517,7358],()=>s(68228)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-16c8acbb6ca6b376.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-16c8acbb6ca6b376.js new file mode 100644 index 0000000..72bfb98 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-16c8acbb6ca6b376.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,88954))},88954:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eJ});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Realtime LTE/5G Signal performance"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"The tabs show the combined average value for LTE and 5G metrics."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"The higher the value, the better the signal quality."})]})]})},E=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):E(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},A=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.available)})]})]})})]})},T={ms:{label:"ms",color:"hsl(var(--chart-4))"}},I=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=I(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:I()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:T,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),B=t(93557),D=t(97801),L=t(14389),G=t(98969),z=t(17799),_=t(92776),P=t.n(_),F=t(7197),O=t(74043),q=t(22250);let H=n.createContext(null);function Z(){let e=n.useContext(H);if(!e)throw Error("useCarousel must be used within a ");return e}let Q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(H.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});Q.displayName="Carousel";let W=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=Z();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});W.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=Z();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem";let J=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=Z();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});J.displayName="CarouselPrevious";let V=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=Z();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},Y=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(Q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(W,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Current bands connected."})})]})}),(0,l.jsxs)(Q,{className:"lg:hidden w-full max-w-xs",children:[(0,l.jsx)(W,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,l.jsx)(J,{}),(0,l.jsx)(V,{})]})]})},X=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},ee=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},es=(e,s)=>{var t,l,n,r;switch((null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},el=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},en=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},ei=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e),i=i.filter(e=>-140!==e&&-37625!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},ea=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},eo=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ed=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ec=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eu=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},em=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},ex=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-37625!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eh=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ef=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eg=(e,s)=>{if("LTE"===s||"NR5G-SA"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&l.length?[...s,...l]:s.length?s:l.length?l:["Unknown"]}if("NR5G-SA"===s){let e=t.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var l;return[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[12]]}}return["Unknown"]},ej=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},eN=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},ew=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eb=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,o,d,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:X(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=p[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:es(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:et(p[13].response)||"No Signal",modemTemperature:el(p[11].response)||"Unknown",accessTechnology:ee(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:en(p[13].response,et(p[13].response))||"Unknown",connectedBands:er(p[13].response)||"Unknown",signalStrength:ei(p[14].response)||"Unknown",mimoLayers:ew(p[14].response)||"Unknown"},cellularInfo:{cellId:ea(p[10].response,et(p[13].response))||"Unknown",trackingAreaCode:eo(p[10].response,et(p[13].response))||"Unknown",physicalCellId:ed(p[13].response,et(p[13].response)),earfcn:ec(p[13].response),mcc:eu(p[10].response,et(p[13].response))||"Unknown",mnc:em(p[10].response,et(p[13].response))||"Unknown",signalQuality:ex(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=ep(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:ep(p[13].response)||["Unknown"],earfcn:eh(p[13].response),bandwidth:ef(p[13].response)||["Unknown"],pci:eg(p[13].response,et(p[13].response))||["Unknown"],rsrp:ev(p[13].response,et(p[13].response),p[10].response),rsrq:ej(p[13].response,et(p[13].response),p[10].response)||["Unknown"],sinr:eN(p[13].response,et(p[13].response),p[10].response)||["Unknown"]}};s(h)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ey=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eS=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ek=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eS((u||0)+(m||0))),l(eS((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eE=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eC=t(80159),eA=t(71602);let eR=e=>{let{shouldScaleBackground:s=!0,...t}=e;return(0,l.jsx)(eA._s.Root,{shouldScaleBackground:s,...t})};eR.displayName="Drawer";let eT=eA._s.Trigger,eI=eA._s.Portal;eA._s.Close;let eM=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Overlay,{ref:s,className:(0,q.cn)("fixed inset-0 z-50 bg-black/80",t),...n})});eM.displayName=eA._s.Overlay.displayName;let eU=n.forwardRef((e,s)=>{let{className:t,children:n,...r}=e;return(0,l.jsxs)(eI,{children:[(0,l.jsx)(eM,{}),(0,l.jsxs)(eA._s.Content,{ref:s,className:(0,q.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...r,children:[(0,l.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),n]})]})});eU.displayName="DrawerContent",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Title,{ref:s,className:(0,q.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})}).displayName=eA._s.Title.displayName,n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Description,{ref:s,className:(0,q.cn)("text-sm text-muted-foreground",t),...n})}).displayName=eA._s.Description.displayName;var eB=t(12607),eD=t(25262),eL=t(8782),eG=t(10964),ez=t(89463),e_=t(90304),eP=t(622),eF=t(20633),eO=t(7778),eq=t(99312),eH=t(92823),eZ=t(71834);let eQ=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let[e,s]=(0,n.useState)(null),[t,r]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),[u,m]=(0,n.useState)(!1),[x,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[g,v]=(0,n.useState)(0),[j,N]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),y=(0,n.useRef)(null),S=(0,n.useRef)(null),k=(0,n.useCallback)(()=>{s(null),r(null),c(null),m(!1),p(!1),f(!1),v(0),y.current=null},[]),E=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),s=await e.json();if(s.enabled){let e=new Date,t=60*e.getHours()+e.getMinutes(),[l,n]=s.start_time.split(":").map(Number),[r,i]=s.end_time.split(":").map(Number);b(t>=60*l+n&&t<=60*r+i)}else b(!1)}catch(e){console.error("Failed to check keep-alive schedule:",e),b(!1)}},[]);(0,n.useEffect)(()=>{E();let e=setInterval(E,6e4);return()=>clearInterval(e)},[E]),(0,n.useEffect)(()=>{if(u&&!x){N(!0);let e=setTimeout(()=>{N(!1)},1e4);return()=>clearTimeout(e)}},[u,x]),(0,n.useEffect)(()=>()=>{S.current&&S.current.abort()},[]);let C=(0,n.useCallback)(async()=>{if(!j&&!w)try{if(k(),f(!0),S.current&&S.current.abort(),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");A()}catch(e){console.error("Speedtest start error:",e),c(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),f(!1)}},[j,w,k]),A=(0,n.useCallback)(()=>{S.current=new AbortController,o(!1),p(!0),f(!1);try{fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_stream.sh",{method:"GET",signal:S.current.signal}).then(async e=>{var l;if(!e.ok)throw Error("Network response was not ok");o(!0);let n=null===(l=e.body)||void 0===l?void 0:l.getReader(),i=new TextDecoder;if(!n)throw Error("Unable to get reader from response body");let a="";for(;;){let{done:e,value:l}=await n.read();if(e)break;let o=i.decode(l,{stream:!0}),d=(a+=o).split("\n\n");for(let e of(a=d.pop()||"",d))if(e.startsWith("data: "))try{let l=JSON.parse(e.replace("data: ","").trim());switch(l.type){case"ping":r("ping"),v(l.ping.progress);break;case"download":case"upload":"ping"!==t&&r(l.type);break;case"result":m(!0),p(!1),n.cancel()}y.current=l,s(l)}catch(e){console.error("Parsing error:",e)}}}).catch(e=>{"AbortError"!==e.name&&(console.error("Fetch error:",e),c("Connection failed: ".concat(e instanceof Error?e.message:String(e))),p(!1))})}catch(e){console.error("Failed to initialize fetch:",e),c("Failed to connect to speedtest stream"),p(!1)}},[t]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(eR,{children:[(0,l.jsx)(eT,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eZ.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(L.A,{className:"size-32 ".concat(w?"text-gray-400 cursor-not-allowed":"text-primary cursor-pointer"," z-10"),onClick:C})]})}),(0,l.jsx)(eU,{children:(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm p-6 py-12",children:(()=>{var s,n,r,a,o,c,m,x,p,f,v;if(d)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eB.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("p",{className:"underline cursor-pointer ml-2",onClick:C,children:"Please try again."})]})]});if(h)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eD.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===t)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==e?void 0:e.ping)?"Latency: ".concat(e.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(e.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(u)return(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(ez.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.download.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(m=null==e?void 0:null===(a=e.download.latency)||void 0===a?void 0:null===(r=a.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==m?m:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eP.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.upload.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(x=null==e?void 0:null===(c=e.upload.latency)||void 0===c?void 0:null===(o=c.iqm)||void 0===o?void 0:o.toFixed(2))&&void 0!==x?x:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"mt-4 grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(p=null==e?void 0:e.ping.latency.toFixed(2))&&void 0!==p?p:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eF.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(f=null==e?void 0:e.ping.jitter.toFixed(2))&&void 0!==f?f:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eO.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.isp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.internalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.externalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.name})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.location})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.country})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.host})]}),(null==e?void 0:e.result.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eq.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:e.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]});if(!t||!e)return null;let j=e[t],N="download"===t;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[N?(0,l.jsx)(ez.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eP.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",N?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eW(j.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eH.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eQ(j.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(j.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(v=null===(n=j.latency)||void 0===n?void 0:null===(s=n.iqm)||void 0===s?void 0:s.toFixed(2))&&void 0!==v?v:"N/A"," ms"]})]})]})})]})})()})})]}),(0,l.jsx)(i.BT,{children:w?"Speedtest is disabled during keep-alive schedule.":j?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})},eJ=()=>{let{toast:e}=(0,r.dj)(),{data:s,isLoading:t,refresh:i}=eb(),{dataConnectionState:a,isStateLoading:o,refresh:c}=ey(),{isRunningDiagnostics:u,runDiagnosticsData:m,startDiagnostics:x}=eE(),{bytesSent:g,bytesReceived:v,refresh:j}=ek(),N=async()=>{try{let s=await fetch("/cgi-bin/settings/force-rerun.sh"),t=await s.json();if("success"===t.status)e({title:"Data Refreshed",description:"Data and scripts has been refreshed successfully"});else if("info"===t.status)e({title:"Data Refreshed",description:"Data refreshed successfully, but no scripts to restart."});else throw Error("Failed to restart scripts")}catch(s){console.error("Error rerunning scripts:",s),e({variant:"destructive",title:"Script Restart Failed",description:"Failed to restart the required scripts"})}},w=async()=>{try{var t;let l=null==s?void 0:null===(t=s.simCard)||void 0===t?void 0:t.slot,n=encodeURIComponent("Slot 1"===l?"AT+QUIMSLOT=1":"AT+QUIMSLOT=2"),r=await fetch("/cgi-bin/at_command.sh?command=".concat(n));if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let i=await r.json();if(i.error)throw Error(i.error);e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{let e=encodeURIComponent("AT+COPS=0;+COPS=2"),s=await fetch("/cgi-bin/at_command.sh?command=".concat(e));if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let t=await s.json();if(t.error)throw Error(t.error)},3e3),setTimeout(b,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:"Failed to change the SIM slot"})}},b=(0,n.useCallback)(async()=>{try{await Promise.all([i(),c(),j()]),await N()}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[i,c,j]),[y,S]=(0,n.useState)([]),E=async()=>{try{await x()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{m&&console.log("Diagnostics data updated:",m)},[m]),(0,n.useEffect)(()=>{if(s&&s.currentBands){var e;let t=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,t)=>{var l,n,r,i,a,o,d;return{id:e,bandNumber:(null===(l=s.currentBands.bandNumber)||void 0===l?void 0:l[t])||"N/A",earfcn:(null===(n=s.currentBands.earfcn)||void 0===n?void 0:n[t])||"N/A",bandwidth:(null===(r=s.currentBands.bandwidth)||void 0===r?void 0:r[t])||"N/A",pci:(null===(i=s.currentBands.pci)||void 0===i?void 0:i[t])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[t])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[t])||"N/A",sinr:(null===(d=s.currentBands.sinr)||void 0===d?void 0:d[t])||"N/A"}});t&&S(t)}},[s]),(0,l.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:b,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==s?void 0:s.simCard.state)==="Not Inserted"&&(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(eC.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eC.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{variant:"secondary",onClick:w,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(B.HM,{asChild:!0,children:(0,l.jsx)(U.$,{children:"Close"})})]})]})]}),(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{variant:"secondary",onClick:E,children:[(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(B.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==m?void 0:m.netRegistration)==="Registered"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==m?void 0:m.simState)==="READY"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==m?void 0:m.manualAPN)==="Enabled"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==m?void 0:m.wanIP)==="Connected"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==m?void 0:m.cellSignal)==="Good"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==m?void 0:m.modemTemp)==="Normal"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==m?void 0:m.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(z.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==m?void 0:m.netReject})]})]})]})]}),u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(P(),{color:"#6D28D9"})}),(0,l.jsx)(B.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(C,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eK,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:s,isLoading:t}),(0,l.jsx)(p,{data:s,isLoading:t,dataConnectionState:a,connectionStateLoading:o}),(0,l.jsx)(h,{data:s,isLoading:t,bytesSent:g,bytesReceived:v}),(0,l.jsx)(f,{data:s,isLoading:t})]})]}),(0,l.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)(Y,{bands:y,isLoading:t})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,6357,1074,4458,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-213968b49adc5e63.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-213968b49adc5e63.js new file mode 100644 index 0000000..05236e9 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-213968b49adc5e63.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,88954))},88954:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eJ});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Realtime LTE/5G Signal performance"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"The tabs show the combined average value for LTE and 5G metrics."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"The higher the value, the better the signal quality."})]})]})},E=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):E(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},A=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.available)})]})]})})]})},T={ms:{label:"ms",color:"hsl(var(--chart-4))"}},I=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=I(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:I()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:T,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),B=t(93557),D=t(97801),L=t(14389),G=t(98969),z=t(17799),_=t(92776),P=t.n(_),F=t(7197),O=t(74043),q=t(22250);let H=n.createContext(null);function Z(){let e=n.useContext(H);if(!e)throw Error("useCarousel must be used within a ");return e}let Q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(H.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});Q.displayName="Carousel";let W=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=Z();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});W.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=Z();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem";let J=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=Z();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});J.displayName="CarouselPrevious";let V=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=Z();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},Y=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(Q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(W,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Current bands connected."})})]})}),(0,l.jsxs)(Q,{className:"lg:hidden w-full max-w-xs",children:[(0,l.jsx)(W,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,l.jsx)(J,{}),(0,l.jsx)(V,{})]})]})},X=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},ee=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},es=(e,s)=>{var t,l,n,r;switch((null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},el=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},en=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},ei=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e),i=i.filter(e=>-140!==e&&-37625!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},ea=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},eo=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ed=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ec=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eu=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},em=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},ex=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-37625!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eh=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ef=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eg=(e,s)=>{if("LTE"===s||"NR5G-SA"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&l.length?[...s,...l]:s.length?s:l.length?l:["Unknown"]}if("NR5G-SA"===s){let e=t.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var l;return[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[12]]}}return["Unknown"]},ej=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},eN=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},ew=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eb=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,o,d,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:X(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=p[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:es(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:et(p[13].response)||"No Signal",modemTemperature:el(p[11].response)||"Unknown",accessTechnology:ee(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:en(p[13].response,et(p[13].response))||"Unknown",connectedBands:er(p[13].response)||"Unknown",signalStrength:ei(p[14].response)||"Unknown",mimoLayers:ew(p[14].response)||"Unknown"},cellularInfo:{cellId:ea(p[10].response,et(p[13].response))||"Unknown",trackingAreaCode:eo(p[10].response,et(p[13].response))||"Unknown",physicalCellId:ed(p[13].response,et(p[13].response)),earfcn:ec(p[13].response),mcc:eu(p[10].response,et(p[13].response))||"Unknown",mnc:em(p[10].response,et(p[13].response))||"Unknown",signalQuality:ex(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=ep(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:ep(p[13].response)||["Unknown"],earfcn:eh(p[13].response),bandwidth:ef(p[13].response)||["Unknown"],pci:eg(p[13].response,et(p[13].response))||["Unknown"],rsrp:ev(p[13].response,et(p[13].response),p[10].response),rsrq:ej(p[13].response,et(p[13].response),p[10].response)||["Unknown"],sinr:eN(p[13].response,et(p[13].response),p[10].response)||["Unknown"]}};s(h)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ey=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eS=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ek=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eS((u||0)+(m||0))),l(eS((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eE=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eC=t(80159),eA=t(71602);let eR=e=>{let{shouldScaleBackground:s=!0,...t}=e;return(0,l.jsx)(eA._s.Root,{shouldScaleBackground:s,...t})};eR.displayName="Drawer";let eT=eA._s.Trigger,eI=eA._s.Portal;eA._s.Close;let eM=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Overlay,{ref:s,className:(0,q.cn)("fixed inset-0 z-50 bg-black/80",t),...n})});eM.displayName=eA._s.Overlay.displayName;let eU=n.forwardRef((e,s)=>{let{className:t,children:n,...r}=e;return(0,l.jsxs)(eI,{children:[(0,l.jsx)(eM,{}),(0,l.jsxs)(eA._s.Content,{ref:s,className:(0,q.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...r,children:[(0,l.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),n]})]})});eU.displayName="DrawerContent",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Title,{ref:s,className:(0,q.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})}).displayName=eA._s.Title.displayName,n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Description,{ref:s,className:(0,q.cn)("text-sm text-muted-foreground",t),...n})}).displayName=eA._s.Description.displayName;var eB=t(12607),eD=t(25262),eL=t(8782),eG=t(10964),ez=t(89463),e_=t(90304),eP=t(622),eF=t(20633),eO=t(7778),eq=t(99312),eH=t(92823),eZ=t(71834);let eQ=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let[e,s]=(0,n.useState)(null),[t,r]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),[u,m]=(0,n.useState)(!1),[x,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[g,v]=(0,n.useState)(0),[j,N]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),y=(0,n.useRef)(null),S=(0,n.useRef)(null),k=(0,n.useCallback)(()=>{s(null),r(null),c(null),m(!1),p(!1),f(!1),v(0),y.current=null},[]),E=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),s=await e.json();if(s.enabled){let e=new Date,t=60*e.getHours()+e.getMinutes(),[l,n]=s.start_time.split(":").map(Number),[r,i]=s.end_time.split(":").map(Number);b(t>=60*l+n&&t<=60*r+i)}else b(!1)}catch(e){console.error("Failed to check keep-alive schedule:",e),b(!1)}},[]);(0,n.useEffect)(()=>{E();let e=setInterval(E,6e4);return()=>clearInterval(e)},[E]),(0,n.useEffect)(()=>{if(u&&!x){N(!0);let e=setTimeout(()=>{N(!1)},1e4);return()=>clearTimeout(e)}},[u,x]),(0,n.useEffect)(()=>()=>{S.current&&S.current.abort()},[]);let C=(0,n.useCallback)(async()=>{if(!j&&!w)try{if(k(),f(!0),S.current&&S.current.abort(),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");A()}catch(e){console.error("Speedtest start error:",e),c(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),f(!1)}},[j,w,k]),A=(0,n.useCallback)(()=>{S.current=new AbortController,o(!1),p(!0),f(!1);try{fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_stream.sh",{method:"GET",signal:S.current.signal}).then(async e=>{var l;if(!e.ok)throw Error("Network response was not ok");o(!0);let n=null===(l=e.body)||void 0===l?void 0:l.getReader(),i=new TextDecoder;if(!n)throw Error("Unable to get reader from response body");let a="";for(;;){let{done:e,value:l}=await n.read();if(e)break;let o=i.decode(l,{stream:!0}),d=(a+=o).split("\n\n");for(let e of(a=d.pop()||"",d))if(e.startsWith("data: "))try{let l=JSON.parse(e.replace("data: ","").trim());switch(l.type){case"ping":r("ping"),v(l.ping.progress);break;case"download":case"upload":"ping"!==t&&r(l.type);break;case"result":m(!0),p(!1),n.cancel()}y.current=l,s(l)}catch(e){console.error("Parsing error:",e)}}}).catch(e=>{"AbortError"!==e.name&&(console.error("Fetch error:",e),c("Connection failed: ".concat(e instanceof Error?e.message:String(e))),p(!1))})}catch(e){console.error("Failed to initialize fetch:",e),c("Failed to connect to speedtest stream"),p(!1)}},[t]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(eR,{children:[(0,l.jsx)(eT,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eZ.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(L.A,{className:"size-32 ".concat(w?"text-gray-400 cursor-not-allowed":"text-primary cursor-pointer"," z-10"),onClick:C})]})}),(0,l.jsx)(eU,{children:(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm p-6 py-12",children:(()=>{var s,n,r,a,o,c,m,x,p,f,v;if(d)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eB.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("p",{className:"underline cursor-pointer ml-2",onClick:C,children:"Please try again."})]})]});if(h)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eD.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===t)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==e?void 0:e.ping)?"Latency: ".concat(e.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(e.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(u)return(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(ez.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.download.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(m=null==e?void 0:null===(a=e.download.latency)||void 0===a?void 0:null===(r=a.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==m?m:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eP.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.upload.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(x=null==e?void 0:null===(c=e.upload.latency)||void 0===c?void 0:null===(o=c.iqm)||void 0===o?void 0:o.toFixed(2))&&void 0!==x?x:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"mt-4 grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(p=null==e?void 0:e.ping.latency.toFixed(2))&&void 0!==p?p:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eF.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(f=null==e?void 0:e.ping.jitter.toFixed(2))&&void 0!==f?f:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eO.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.isp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.internalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.externalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.name})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.location})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.country})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.host})]}),(null==e?void 0:e.result.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eq.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:e.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]});if(!t||!e)return null;let j=e[t],N="download"===t;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[N?(0,l.jsx)(ez.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eP.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",N?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eW(j.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eH.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eQ(j.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(j.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(v=null===(n=j.latency)||void 0===n?void 0:null===(s=n.iqm)||void 0===s?void 0:s.toFixed(2))&&void 0!==v?v:"N/A"," ms"]})]})]})})]})})()})})]}),(0,l.jsx)(i.BT,{children:w?"Speedtest is disabled during keep-alive schedule.":j?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})},eJ=()=>{let{toast:e}=(0,r.dj)(),{data:s,isLoading:t,refresh:i}=eb(),{dataConnectionState:a,isStateLoading:o,refresh:c}=ey(),{isRunningDiagnostics:u,runDiagnosticsData:m,startDiagnostics:x}=eE(),{bytesSent:g,bytesReceived:v,refresh:j}=ek(),N=async()=>{try{var t;let l=null==s?void 0:null===(t=s.simCard)||void 0===t?void 0:t.slot,n=encodeURIComponent("Slot 1"===l?"AT+QUIMSLOT=1":"AT+QUIMSLOT=2"),r=await fetch("/cgi-bin/at_command.sh?command=".concat(n));if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let i=await r.json();if(i.error)throw Error(i.error);e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{let e=encodeURIComponent("AT+COPS=0;+COPS=2"),s=await fetch("/cgi-bin/at_command.sh?command=".concat(e));if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let t=await s.json();if(t.error)throw Error(t.error)},3e3),setTimeout(w,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:"Failed to change the SIM slot"})}},w=(0,n.useCallback)(async()=>{try{await Promise.all([i(),c(),j()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[i,c,j]),[b,y]=(0,n.useState)([]),S=async()=>{try{await x()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{m&&console.log("Diagnostics data updated:",m)},[m]),(0,n.useEffect)(()=>{if(s&&s.currentBands){var e;let t=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,t)=>{var l,n,r,i,a,o,d;return{id:e,bandNumber:(null===(l=s.currentBands.bandNumber)||void 0===l?void 0:l[t])||"N/A",earfcn:(null===(n=s.currentBands.earfcn)||void 0===n?void 0:n[t])||"N/A",bandwidth:(null===(r=s.currentBands.bandwidth)||void 0===r?void 0:r[t])||"N/A",pci:(null===(i=s.currentBands.pci)||void 0===i?void 0:i[t])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[t])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[t])||"N/A",sinr:(null===(d=s.currentBands.sinr)||void 0===d?void 0:d[t])||"N/A"}});t&&y(t)}},[s]),(0,l.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:w,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==s?void 0:s.simCard.state)==="Not Inserted"&&(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(eC.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eC.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{variant:"secondary",onClick:N,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(B.HM,{asChild:!0,children:(0,l.jsx)(U.$,{children:"Close"})})]})]})]}),(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{variant:"secondary",onClick:S,children:[(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(B.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==m?void 0:m.netRegistration)==="Registered"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==m?void 0:m.simState)==="READY"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==m?void 0:m.manualAPN)==="Enabled"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==m?void 0:m.wanIP)==="Connected"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==m?void 0:m.cellSignal)==="Good"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==m?void 0:m.modemTemp)==="Normal"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==m?void 0:m.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(z.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==m?void 0:m.netReject})]})]})]})]}),u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(P(),{color:"#6D28D9"})}),(0,l.jsx)(B.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(C,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eK,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:s,isLoading:t}),(0,l.jsx)(p,{data:s,isLoading:t,dataConnectionState:a,connectionStateLoading:o}),(0,l.jsx)(h,{data:s,isLoading:t,bytesSent:g,bytesReceived:v}),(0,l.jsx)(f,{data:s,isLoading:t})]})]}),(0,l.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)(Y,{bands:b,isLoading:t})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,4458,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-3544159e39f4ea7a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-3544159e39f4ea7a.js new file mode 100644 index 0000000..16eb253 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-3544159e39f4ea7a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,88954))},88954:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eJ});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},E=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},A=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):E(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},C=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.available)})]})]})})]})},T={ms:{label:"ms",color:"hsl(var(--chart-4))"}},I=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=I(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:I()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:T,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),B=t(93557),D=t(97801),L=t(14389),z=t(98969),G=t(17799),_=t(92776),P=t.n(_),F=t(7197),O=t(74043),q=t(22250);let H=n.createContext(null);function Z(){let e=n.useContext(H);if(!e)throw Error("useCarousel must be used within a ");return e}let Q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(H.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});Q.displayName="Carousel";let W=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=Z();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});W.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=Z();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem";let J=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=Z();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});J.displayName="CarouselPrevious";let V=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=Z();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},Y=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(Q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(W,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Current bands connected."})})]})}),(0,l.jsxs)(Q,{className:"lg:hidden w-full max-w-xs",children:[(0,l.jsx)(W,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,l.jsx)(J,{}),(0,l.jsx)(V,{})]})]})},X=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},ee=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},es=(e,s)=>{var t,l,n,r;switch((null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},el=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},en=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},ei=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e),i=i.filter(e=>-140!==e&&-37625!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},ea=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},eo=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ed=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ec=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eu=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},em=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},ex=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l);console.log("LTE SINR Array:",i),console.log("NR5G SINR Array:",a);let o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eh=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ef=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eg=(e,s)=>{if("LTE"===s||"NR5G-SA"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&l.length?[...s,...l]:s.length?s:l.length?l:["Unknown"]}if("NR5G-SA"===s){let e=t.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var l;return[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[12]]}}return["Unknown"]},ej=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},eN=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},ew=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eb=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,o,d,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:X(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=p[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:es(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:et(p[13].response)||"No Signal",modemTemperature:el(p[11].response)||"Unknown",accessTechnology:ee(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:en(p[13].response,et(p[13].response))||"Unknown",connectedBands:er(p[13].response)||"Unknown",signalStrength:ei(p[14].response)||"Unknown",mimoLayers:ew(p[14].response)||"Unknown"},cellularInfo:{cellId:ea(p[10].response,et(p[13].response))||"Unknown",trackingAreaCode:eo(p[10].response,et(p[13].response))||"Unknown",physicalCellId:ed(p[13].response,et(p[13].response)),earfcn:ec(p[13].response),mcc:eu(p[10].response,et(p[13].response))||"Unknown",mnc:em(p[10].response,et(p[13].response))||"Unknown",signalQuality:ex(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=ep(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:ep(p[13].response)||["Unknown"],earfcn:eh(p[13].response),bandwidth:ef(p[13].response)||["Unknown"],pci:eg(p[13].response,et(p[13].response))||["Unknown"],rsrp:ev(p[13].response,et(p[13].response),p[10].response),rsrq:ej(p[13].response,et(p[13].response),p[10].response)||["Unknown"],sinr:eN(p[13].response,et(p[13].response),p[10].response)||["Unknown"]}};s(h),console.log("Processed home data:",h)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ey=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eS=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ek=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eS((u||0)+(m||0))),l(eS((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eE=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eA=t(80159),eC=t(71602);let eR=e=>{let{shouldScaleBackground:s=!0,...t}=e;return(0,l.jsx)(eC._s.Root,{shouldScaleBackground:s,...t})};eR.displayName="Drawer";let eT=eC._s.Trigger,eI=eC._s.Portal;eC._s.Close;let eM=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Overlay,{ref:s,className:(0,q.cn)("fixed inset-0 z-50 bg-black/80",t),...n})});eM.displayName=eC._s.Overlay.displayName;let eU=n.forwardRef((e,s)=>{let{className:t,children:n,...r}=e;return(0,l.jsxs)(eI,{children:[(0,l.jsx)(eM,{}),(0,l.jsxs)(eC._s.Content,{ref:s,className:(0,q.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...r,children:[(0,l.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),n]})]})});eU.displayName="DrawerContent",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Title,{ref:s,className:(0,q.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})}).displayName=eC._s.Title.displayName,n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Description,{ref:s,className:(0,q.cn)("text-sm text-muted-foreground",t),...n})}).displayName=eC._s.Description.displayName;var eB=t(12607),eD=t(25262),eL=t(8782),ez=t(10964),eG=t(89463),e_=t(90304),eP=t(622),eF=t(20633),eO=t(7778),eq=t(99312),eH=t(92823),eZ=t(71834);let eQ=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let[e,s]=(0,n.useState)(null),[t,r]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),[u,m]=(0,n.useState)(!1),[x,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[g,v]=(0,n.useState)(0),[j,N]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),y=(0,n.useRef)(null),S=(0,n.useRef)(null),k=(0,n.useCallback)(()=>{s(null),r(null),c(null),m(!1),p(!1),f(!1),v(0),y.current=null},[]),E=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),s=await e.json();if(s.enabled){let e=new Date,t=60*e.getHours()+e.getMinutes(),[l,n]=s.start_time.split(":").map(Number),[r,i]=s.end_time.split(":").map(Number);b(t>=60*l+n&&t<=60*r+i)}else b(!1)}catch(e){console.error("Failed to check keep-alive schedule:",e),b(!1)}},[]);(0,n.useEffect)(()=>{E();let e=setInterval(E,6e4);return()=>clearInterval(e)},[E]),(0,n.useEffect)(()=>{if(u&&!x){N(!0);let e=setTimeout(()=>{N(!1)},1e4);return()=>clearTimeout(e)}},[u,x]),(0,n.useEffect)(()=>()=>{S.current&&S.current.abort()},[]);let A=(0,n.useCallback)(async()=>{if(!j&&!w)try{if(k(),f(!0),S.current&&S.current.abort(),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");C()}catch(e){console.error("Speedtest start error:",e),c(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),f(!1)}},[j,w,k]),C=(0,n.useCallback)(()=>{S.current=new AbortController,o(!1),p(!0),f(!1);try{fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_stream.sh",{method:"GET",signal:S.current.signal}).then(async e=>{var l;if(!e.ok)throw Error("Network response was not ok");o(!0);let n=null===(l=e.body)||void 0===l?void 0:l.getReader(),i=new TextDecoder;if(!n)throw Error("Unable to get reader from response body");let a="";for(;;){let{done:e,value:l}=await n.read();if(e)break;let o=i.decode(l,{stream:!0}),d=(a+=o).split("\n\n");for(let e of(a=d.pop()||"",d))if(e.startsWith("data: "))try{let l=JSON.parse(e.replace("data: ","").trim());switch(l.type){case"ping":r("ping"),v(l.ping.progress);break;case"download":case"upload":"ping"!==t&&r(l.type);break;case"result":m(!0),p(!1),n.cancel()}y.current=l,s(l)}catch(e){console.error("Parsing error:",e)}}}).catch(e=>{"AbortError"!==e.name&&(console.error("Fetch error:",e),c("Connection failed: ".concat(e instanceof Error?e.message:String(e))),p(!1))})}catch(e){console.error("Failed to initialize fetch:",e),c("Failed to connect to speedtest stream"),p(!1)}},[t]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(eR,{children:[(0,l.jsx)(eT,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eZ.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(L.A,{className:"size-32 ".concat(w?"text-gray-400 cursor-not-allowed":"text-primary cursor-pointer"," z-10"),onClick:A})]})}),(0,l.jsx)(eU,{children:(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm p-6 py-12",children:(()=>{var s,n,r,a,o,c,m,x,p,f,v;if(d)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eB.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("p",{className:"underline cursor-pointer ml-2",onClick:A,children:"Please try again."})]})]});if(h)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eD.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===t)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==e?void 0:e.ping)?"Latency: ".concat(e.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(e.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(u)return(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(ez.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eG.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.download.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(m=null==e?void 0:null===(a=e.download.latency)||void 0===a?void 0:null===(r=a.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==m?m:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eP.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.upload.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(x=null==e?void 0:null===(c=e.upload.latency)||void 0===c?void 0:null===(o=c.iqm)||void 0===o?void 0:o.toFixed(2))&&void 0!==x?x:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"mt-4 grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(p=null==e?void 0:e.ping.latency.toFixed(2))&&void 0!==p?p:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eF.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(f=null==e?void 0:e.ping.jitter.toFixed(2))&&void 0!==f?f:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eO.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.isp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.internalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.externalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.name})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.location})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.country})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.host})]}),(null==e?void 0:e.result.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eq.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:e.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]});if(!t||!e)return null;let j=e[t],N="download"===t;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[N?(0,l.jsx)(eG.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eP.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",N?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eW(j.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eH.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eQ(j.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ez.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(j.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(v=null===(n=j.latency)||void 0===n?void 0:null===(s=n.iqm)||void 0===s?void 0:s.toFixed(2))&&void 0!==v?v:"N/A"," ms"]})]})]})})]})})()})})]}),(0,l.jsx)(i.BT,{children:w?"Speedtest is disabled during keep-alive schedule.":j?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})},eJ=()=>{let{toast:e}=(0,r.dj)(),{data:s,isLoading:t,refresh:i}=eb(),{dataConnectionState:a,isStateLoading:o,refresh:c}=ey(),{isRunningDiagnostics:u,runDiagnosticsData:m,startDiagnostics:x}=eE(),{bytesSent:g,bytesReceived:v,refresh:j}=ek(),N=async()=>{try{var t;let l=null==s?void 0:null===(t=s.simCard)||void 0===t?void 0:t.slot,n=encodeURIComponent("Slot 1"===l?"AT+QUIMSLOT=1":"AT+QUIMSLOT=2"),r=await fetch("/cgi-bin/at_command.sh?command=".concat(n));if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let i=await r.json();if(i.error)throw Error(i.error);e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{let e=encodeURIComponent("AT+COPS=0;+COPS=2"),s=await fetch("/cgi-bin/at_command.sh?command=".concat(e));if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let t=await s.json();if(t.error)throw Error(t.error)},3e3),setTimeout(w,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:"Failed to change the SIM slot"})}},w=(0,n.useCallback)(async()=>{try{await Promise.all([i(),c(),j()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[i,c,j]),[b,y]=(0,n.useState)([]),S=async()=>{try{await x()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{m&&console.log("Diagnostics data updated:",m)},[m]),(0,n.useEffect)(()=>{if(s&&s.currentBands){var e;let t=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,t)=>{var l,n,r,i,a,o,d;return{id:e,bandNumber:(null===(l=s.currentBands.bandNumber)||void 0===l?void 0:l[t])||"N/A",earfcn:(null===(n=s.currentBands.earfcn)||void 0===n?void 0:n[t])||"N/A",bandwidth:(null===(r=s.currentBands.bandwidth)||void 0===r?void 0:r[t])||"N/A",pci:(null===(i=s.currentBands.pci)||void 0===i?void 0:i[t])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[t])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[t])||"N/A",sinr:(null===(d=s.currentBands.sinr)||void 0===d?void 0:d[t])||"N/A"}});t&&y(t)}},[s]),(0,l.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:w,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==s?void 0:s.simCard.state)==="Not Inserted"&&(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(eA.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eA.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{variant:"secondary",onClick:N,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(B.HM,{asChild:!0,children:(0,l.jsx)(U.$,{children:"Close"})})]})]})]}),(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{variant:"secondary",onClick:S,children:[(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(B.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==m?void 0:m.netRegistration)==="Registered"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==m?void 0:m.simState)==="READY"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==m?void 0:m.manualAPN)==="Enabled"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==m?void 0:m.wanIP)==="Connected"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==m?void 0:m.cellSignal)==="Good"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==m?void 0:m.modemTemp)==="Normal"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==m?void 0:m.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(z.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==m?void 0:m.netReject})]})]})]})]}),u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(P(),{color:"#6D28D9"})}),(0,l.jsx)(B.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(A,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eK,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:s,isLoading:t}),(0,l.jsx)(p,{data:s,isLoading:t,dataConnectionState:a,connectionStateLoading:o}),(0,l.jsx)(h,{data:s,isLoading:t,bytesSent:g,bytesReceived:v}),(0,l.jsx)(f,{data:s,isLoading:t})]})]}),(0,l.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)(Y,{bands:b,isLoading:t})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,4458,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-4ff1af92bcccebab.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-4ff1af92bcccebab.js new file mode 100644 index 0000000..eadb4f4 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-4ff1af92bcccebab.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,88954))},88954:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eV});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},k=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},S=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:k(t.rsrp[s].output),rsrq:k(t.rsrq[s].output),sinr:k(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},E=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},A=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):E(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},C=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.available)})]})]})})]})},T={ms:{label:"ms",color:"hsl(var(--chart-4))"}},I=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),U=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=I(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:I()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:T,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var M=t(42541),B=t(93557),D=t(97801),L=t(14389),z=t(98969),G=t(17799),_=t(92776),P=t.n(_),F=t(7197),O=t(74043),q=t(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let Q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});Q.displayName="Carousel";let W=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=H();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});W.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem";let J=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=H();return(0,l.jsxs)(M.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});J.displayName="CarouselPrevious";let V=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=H();return(0,l.jsxs)(M.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},Y=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(Q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(W,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Current bands connected."})})]})}),(0,l.jsxs)(Q,{className:"lg:hidden w-full max-w-xs",children:[(0,l.jsx)(W,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,l.jsx)(J,{}),(0,l.jsx)(V,{})]})]})},X=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},ee=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},es=(e,s)=>{var t,l,n,r;switch((null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},el=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},en=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},ei=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},ea=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},eo=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ed=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ec=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eu=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},em=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},ex=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eh=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ef=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eg=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&l.length?[...s,...l]:s.length?s:l.length?l:["Unknown"]}if("NR5G-SA"===s){let e=t.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var l;return[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[12]]}}return["Unknown"]},ej=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},eN=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},ew=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eb=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,o,d,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:X(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=p[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:es(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:et(p[13].response)||"No Signal",modemTemperature:el(p[11].response)||"Unknown",accessTechnology:ee(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:en(p[13].response,et(p[13].response))||"Unknown",connectedBands:er(p[13].response)||"Unknown",signalStrength:ei(p[14].response)||"Unknown",mimoLayers:ew(p[14].response)||"Unknown"},cellularInfo:{cellId:ea(p[10].response,et(p[13].response))||"Unknown",trackingAreaCode:eo(p[10].response,et(p[13].response))||"Unknown",physicalCellId:ed(p[13].response,et(p[13].response)),earfcn:ec(p[13].response),mcc:eu(p[10].response,et(p[13].response))||"Unknown",mnc:em(p[10].response,et(p[13].response))||"Unknown",signalQuality:ex(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=ep(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:ep(p[13].response)||["Unknown"],earfcn:eh(p[13].response),bandwidth:ef(p[13].response)||["Unknown"],pci:eg(p[13].response,et(p[13].response))||["Unknown"],rsrp:ev(p[13].response,et(p[13].response),p[10].response),rsrq:ej(p[13].response,et(p[13].response),p[10].response)||["Unknown"],sinr:eN(p[13].response,et(p[13].response),p[10].response)||["Unknown"]}};s(h),console.log("Processed home data:",h)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ey=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},ek=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},eS=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(ek((u||0)+(m||0))),l(ek((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eE=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eA=t(80159),eC=t(71602);let eR=e=>{let{shouldScaleBackground:s=!0,...t}=e;return(0,l.jsx)(eC._s.Root,{shouldScaleBackground:s,...t})};eR.displayName="Drawer";let eT=eC._s.Trigger,eI=eC._s.Portal;eC._s.Close;let eU=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Overlay,{ref:s,className:(0,q.cn)("fixed inset-0 z-50 bg-black/80",t),...n})});eU.displayName=eC._s.Overlay.displayName;let eM=n.forwardRef((e,s)=>{let{className:t,children:n,...r}=e;return(0,l.jsxs)(eI,{children:[(0,l.jsx)(eU,{}),(0,l.jsxs)(eC._s.Content,{ref:s,className:(0,q.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...r,children:[(0,l.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),n]})]})});eM.displayName="DrawerContent",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Title,{ref:s,className:(0,q.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})}).displayName=eC._s.Title.displayName,n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Description,{ref:s,className:(0,q.cn)("text-sm text-muted-foreground",t),...n})}).displayName=eC._s.Description.displayName;var eB=t(12607),eD=t(25262),eL=t(8782),ez=t(10964),eG=t(89463),e_=t(90304),eP=t(622),eF=t(20633),eO=t(7778),eq=t(99312),eZ=t(92823),eH=t(71834);let eQ=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let[e,s]=(0,n.useState)(null),[t,r]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),[u,m]=(0,n.useState)(!1),[x,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[g,v]=(0,n.useState)(0),[j,N]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),y=(0,n.useRef)(null),k=(0,n.useRef)(null),S=(0,n.useCallback)(()=>{s(null),r(null),c(null),m(!1),p(!1),f(!1),v(0),y.current=null},[]),E=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),s=await e.json();if(s.enabled){let e=new Date,t=60*e.getHours()+e.getMinutes(),[l,n]=s.start_time.split(":").map(Number),[r,i]=s.end_time.split(":").map(Number);b(t>=60*l+n&&t<=60*r+i)}else b(!1)}catch(e){console.error("Failed to check keep-alive schedule:",e),b(!1)}},[]);(0,n.useEffect)(()=>{E();let e=setInterval(E,6e4);return()=>clearInterval(e)},[E]),(0,n.useEffect)(()=>{if(u&&!x){N(!0);let e=setTimeout(()=>{N(!1)},1e4);return()=>clearTimeout(e)}},[u,x]),(0,n.useEffect)(()=>()=>{k.current&&k.current.abort()},[]);let A=(0,n.useCallback)(async()=>{if(!j&&!w)try{if(S(),f(!0),k.current&&k.current.abort(),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");C()}catch(e){console.error("Speedtest start error:",e),c(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),f(!1)}},[j,w,S]),C=(0,n.useCallback)(()=>{k.current=new AbortController,o(!1),p(!0),f(!1);try{fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_stream.sh",{method:"GET",signal:k.current.signal}).then(async e=>{var l;if(!e.ok)throw Error("Network response was not ok");o(!0);let n=null===(l=e.body)||void 0===l?void 0:l.getReader(),i=new TextDecoder;if(!n)throw Error("Unable to get reader from response body");let a="";for(;;){let{done:e,value:l}=await n.read();if(e)break;let o=i.decode(l,{stream:!0}),d=(a+=o).split("\n\n");for(let e of(a=d.pop()||"",d))if(e.startsWith("data: "))try{let l=JSON.parse(e.replace("data: ","").trim());switch(l.type){case"ping":r("ping"),v(l.ping.progress);break;case"download":case"upload":"ping"!==t&&r(l.type);break;case"result":m(!0),p(!1),n.cancel()}y.current=l,s(l)}catch(e){console.error("Parsing error:",e)}}}).catch(e=>{"AbortError"!==e.name&&(console.error("Fetch error:",e),c("Connection failed: ".concat(e instanceof Error?e.message:String(e))),p(!1))})}catch(e){console.error("Failed to initialize fetch:",e),c("Failed to connect to speedtest stream"),p(!1)}},[t]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(eR,{children:[(0,l.jsx)(eT,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eH.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(L.A,{className:"size-32 ".concat(w?"text-gray-400 cursor-not-allowed":"text-primary cursor-pointer"," z-10"),onClick:A})]})}),(0,l.jsx)(eM,{children:(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm p-6 py-12",children:(()=>{var s,n,r,a,o,c,m,x,p,f,v;if(d)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eB.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("p",{className:"underline cursor-pointer ml-2",onClick:A,children:"Please try again."})]})]});if(h)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eD.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===t)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==e?void 0:e.ping)?"Latency: ".concat(e.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(e.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(u)return(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(ez.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eG.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.download.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(m=null==e?void 0:null===(a=e.download.latency)||void 0===a?void 0:null===(r=a.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==m?m:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eP.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.upload.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(x=null==e?void 0:null===(c=e.upload.latency)||void 0===c?void 0:null===(o=c.iqm)||void 0===o?void 0:o.toFixed(2))&&void 0!==x?x:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"mt-4 grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(p=null==e?void 0:e.ping.latency.toFixed(2))&&void 0!==p?p:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eF.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(f=null==e?void 0:e.ping.jitter.toFixed(2))&&void 0!==f?f:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eO.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.isp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.internalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.externalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.name})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.location})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.country})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.host})]}),(null==e?void 0:e.result.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eq.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:e.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]});if(!t||!e)return null;let j=e[t],N="download"===t;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[N?(0,l.jsx)(eG.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eP.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",N?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eW(j.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eZ.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eQ(j.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ez.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(j.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(v=null===(n=j.latency)||void 0===n?void 0:null===(s=n.iqm)||void 0===s?void 0:s.toFixed(2))&&void 0!==v?v:"N/A"," ms"]})]})]})})]})})()})})]}),(0,l.jsx)(i.BT,{children:w?"Speedtest is disabled during keep-alive schedule.":j?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eJ=t(88926);let eV=()=>{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(!1),{data:i,isLoading:a,refresh:o}=eb(),{dataConnectionState:c,isStateLoading:u,refresh:m}=ey(),{isRunningDiagnostics:x,runDiagnosticsData:g,startDiagnostics:v}=eE(),{bytesSent:j,bytesReceived:N,refresh:w}=eS(),b=async()=>{try{var s,t;let l=await (0,eJ.a)("AT+QUIMSLOT?"),n=null===(s=l.response)||void 0===s?void 0:s.raw_output.split("\n")[1].split(":")[1].trim(),r=await (0,eJ.a)("1"===n?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===r.status||(null===(t=r.response)||void 0===t?void 0:t.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eJ.a)("AT+COPS=2"),setTimeout(async()=>{let s=await (0,eJ.a)("AT+COPS=0");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(y,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},y=(0,n.useCallback)(async()=>{try{await Promise.all([o(),m(),w()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[o,m,w]),[k,E]=(0,n.useState)([]),C=async()=>{try{await v()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{g&&console.log("Diagnostics data updated:",g)},[g]),(0,n.useEffect)(()=>{if(i&&i.currentBands){var e;let s=null===(e=i.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,a,o,d;return{id:e,bandNumber:(null===(t=i.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=i.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=i.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=i.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(a=i.currentBands.rsrp)||void 0===a?void 0:a[s])||"N/A",rsrq:(null===(o=i.currentBands.rsrq)||void 0===o?void 0:o[s])||"N/A",sinr:(null===(d=i.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&E(s)}},[i]),(0,n.useEffect)(()=>{a||(null==i?void 0:i.simCard.state)!=="Not Inserted"||t(!0)},[i,a]),(0,l.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(M.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:y,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==i?void 0:i.simCard.state)==="Not Inserted"&&(0,l.jsxs)(B.lG,{open:s,onOpenChange:t,children:[(0,l.jsx)(B.zM,{asChild:!0,children:(0,l.jsxs)(M.$,{variant:"destructive",children:[(0,l.jsx)(eA.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eA.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(M.$,{onClick:b,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(B.HM,{asChild:!0,children:(0,l.jsx)(M.$,{variant:"secondary",onClick:()=>t(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(M.$,{variant:"secondary",onClick:C,children:[(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!x&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(B.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==g?void 0:g.netRegistration)==="Registered"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==g?void 0:g.simState)==="READY"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==g?void 0:g.manualAPN)==="Enabled"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==g?void 0:g.wanIP)==="Connected"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==g?void 0:g.cellSignal)==="Good"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==g?void 0:g.modemTemp)==="Normal"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==g?void 0:g.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(z.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==g?void 0:g.netReject})]})]})]})]}),x&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(P(),{color:"#6D28D9"})}),(0,l.jsx)(B.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(S,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(A,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eK,{}),(0,l.jsx)(U,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:i,isLoading:a}),(0,l.jsx)(p,{data:i,isLoading:a,dataConnectionState:c,connectionStateLoading:u}),(0,l.jsx)(h,{data:i,isLoading:a,bytesSent:j,bytesReceived:N}),(0,l.jsx)(f,{data:i,isLoading:a})]})]}),(0,l.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)(Y,{bands:k,isLoading:a})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let o=await a.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(s&&(null===(l=o.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,4458,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-74ed933afbf15b37.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-74ed933afbf15b37.js new file mode 100644 index 0000000..3ec86dc --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-74ed933afbf15b37.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,42988))},42988:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eH});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),d=t(45934);let o=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(d.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var v=t(1307),g=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},A=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},S=()=>{let[e,s]=(0,n.useState)(()=>{let e=new Date;return Array.from({length:5},(s,t)=>({time:new Date(e.getTime()-(4-t)*3e3).toISOString(),rsrp:0,rsrq:0,sinr:0}))}),[t,r]=(0,n.useState)("rsrp"),[d,o]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e;let t=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!t.ok)throw Error("Failed to fetch signal metrics");try{e=await t.json()}catch(e){throw console.error("Error parsing JSON:",e),Error("Failed to parse signal metrics data")}let l=Math.min(e.rsrp.length,e.rsrq.length,e.sinr.length);if(0===l)throw Error("No signal metrics data available");let n=Array.from({length:l},(s,t)=>({time:e.rsrp[t].datetime,rsrp:A(e.rsrp[t].output),rsrq:A(e.rsrq[t].output),sinr:A(e.sinr[t].output)}));s(n),u(null)}catch(t){console.error("Error fetching metrics:",t),u(t instanceof Error?t.message:"An unknown error occurred");let e=new Date().toISOString();s(s=>{let t=[...s];return t.length>=20&&t.shift(),t.push({time:e,rsrp:0,rsrq:0,sinr:0}),t})}finally{o(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),d?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(v.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(v.II,{content:(0,l.jsx)(v.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},C=e=>"".concat(Math.round(e/1048576)," MB"),k=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.available)})]})]})})]})},E={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),I=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,o]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();o(e=>null===e||m?l.latency:(n(e,l.latency,e=>o(e)),e));let r=T(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:T()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(d.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(v.at,{config:E,children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(v.II,{cursor:!1,content:(0,l.jsx)(v.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var R=t(42541),M=t(93557),D=t(97801),P=t(14389),U=t(98969),B=t(17799),G=t(92776),L=t.n(G),z=t(7197),_=t(74043),O=t(22250);let F=n.createContext(null);function W(){let e=n.useContext(F);if(!e)throw Error("useCarousel must be used within a ");return e}let q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:d,children:o,...c}=e,[u,m]=(0,_.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),v=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),g=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[g,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return v(m),m.on("reInit",v),m.on("select",v),()=>{null==m||m.off("select",v)}},[m,v]),(0,l.jsx)(F.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,O.cn)("relative",d),role:"region","aria-roledescription":"carousel",...c,children:o})})});q.displayName="Carousel";let Z=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=W();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,O.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Z.displayName="CarouselContent";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=W();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,O.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});Q.displayName="CarouselItem",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:d,canScrollPrev:o}=W();return(0,l.jsxs)(R.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!o,onClick:d,...i,children:[(0,l.jsx)(z.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:d,canScrollNext:o}=W();return(0,l.jsxs)(R.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!o,onClick:d,...i,children:[(0,l.jsx)(z.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let H=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:o,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(d.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(o)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(o)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[o," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:t.includes("NR5G")?"NR-SNR":"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},$=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)(H,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Z,{children:(0,l.jsx)(Q,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsx)(i.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,l.jsx)(H,{...e},e.id))})}),(0,l.jsx)(q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Z,{children:null==s?void 0:s.map(e=>(0,l.jsx)(Q,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},K=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},V=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},J=(e,s)=>{var t,l,n,r;switch(Number(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||Number(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},Y=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},X=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},ee=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},es=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},et=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},el=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},en=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},er=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ei=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},ea=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},ed=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},eo=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),d=r(i),o=r(a);return i.length&&a.length?"".concat(Math.round((d+o)/2),"%"):i.length?"".concat(Math.round(d),"%"):a.length?"".concat(Math.round(o),"%"):"Unknown%"},ec=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eu=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},em=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},ex=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ep=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[9]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>4){let e=s[4].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},eh=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[10]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>6){let e=s[6].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ef=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){let s=t.split("\n").find(e=>e.includes("NR5G-SA")),n="Unknown";if(s){var l;let e=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[11];if("-32768"===e)n="-";else{let s=parseInt(e);n=isNaN(s)?e||"Unknown":Math.round(s/100).toString()}}return[n,...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>11){let e=s[11];if("-32768"===e)return"-";let t=e.match(/-?\d+/);if(t){let e=parseInt(t[0]);return isNaN(e)?t[0]:Math.round(e/100).toString()}}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>5){let e=s[5].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(","),t=s.length>11?s[11]:"Unknown";if("Unknown"!==t&&"-"!==t){if("-32768"===t)return"-";let e=parseInt(t);if(!isNaN(e))return Math.round(e/100).toString()}return t})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ev=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eg=e=>{try{let s=e.split(".");if(s.length<8)return e;let t=s.map(e=>{let s=parseInt(e,10);return isNaN(s)?"00":s.toString(16).padStart(2,"0")}),l=[];for(let e=0;ee.replace(/^0+/,"")||"0"),r=[],i=[];for(let e=0;e0&&(i.length>r.length&&(r=[...i]),i=[]);if(i.length>r.length&&(r=[...i]),r.length>=2){let e=[];for(let s=0;s{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),[a,d]=(0,n.useState)(0),o=(0,n.useCallback)(async e=>{console.error("Error fetching home data:",e),a<2?(console.log("Attempting automatic recovery (attempt ".concat(a+1,"/2)...")),await new Promise(e=>setTimeout(e,2e3)),d(e=>e+1),c()):(console.error("Max retry attempts reached. Please refresh manually."),i(e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-",bandwidth:"Unknown"},cellularInfo:{cellId:"-",trackingAreaCode:"-",physicalCellId:"-",earfcn:"-",mcc:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-",rawCarrierPrimaryDNS:"-",rawCarrierSecondaryDNS:"-"},timeAdvance:{lteTimeAdvance:"-",nrTimeAdvance:"-"}}))},[a]),c=(0,n.useCallback)(async()=>{try{var e,t,n,r,a,c,u,m,x,p,h,f,v,g,j,N;let l=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1");if(!l.ok)throw Error("API returned status ".concat(l.status));let o=await l.json();console.log(o);let w=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),b={simCard:{slot:(null===(e=o[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:o[6].response.match("READY")?"Inserted":"Not Inserted",provider:K(o[2].response)||"Unknown",phoneNumber:(null===(n=o[1].response.split("\n")[1])||void 0===n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:o[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(r=o[4].response.split("\n")[1])||void 0===r?void 0:r.split(":")[1].trim())||"Unknown",imei:o[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(c=o[7].response.split("\n")[1])||void 0===c?void 0:null===(a=c.split(":")[1])||void 0===a?void 0:a.split(",")[2].replace(/"/g,"").trim())||(null===(m=o[12].response.split("\n")[1])||void 0===m?void 0:null===(u=m.split(":")[1])||void 0===u?void 0:u.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:J(o[8].response,o[16].response)||"Unknown",functionalityState:(null===(x=o[9].response.split("\n")[1])||void 0===x?void 0:x.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:Y(o[13].response)||"No Signal",modemTemperature:X(o[11].response)||"Unknown",accessTechnology:V(o[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(p=o[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===p?void 0:p.length)>1?"Multi":"Inactive",bandwidth:ee(o[13].response,Y(o[13].response))||"Unknown",connectedBands:es(o[13].response)||"Unknown",signalStrength:et(o[14].response)||"Unknown",mimoLayers:ev(o[14].response)||"Unknown"},cellularInfo:{cellId:el(o[10].response,Y(o[13].response))||"Unknown",trackingAreaCode:en(o[10].response,Y(o[13].response))||"Unknown",physicalCellId:er(o[13].response,Y(o[13].response)),earfcn:ei(o[13].response),mcc:ea(o[10].response,Y(o[13].response))||"Unknown",mnc:ed(o[10].response,Y(o[13].response))||"Unknown",signalQuality:eo(o[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(N=null===(h=ec(o[13].response))||void 0===h?void 0:h.length)&&void 0!==N?N:0},(e,s)=>s+1)||[1],bandNumber:ec(o[13].response)||["Unknown"],earfcn:eu(o[13].response),bandwidth:em(o[13].response)||["Unknown"],pci:ex(o[13].response,Y(o[13].response))||["Unknown"],rsrp:ep(o[13].response,Y(o[13].response),o[10].response),rsrq:eh(o[13].response,Y(o[13].response),o[10].response)||["Unknown"],sinr:ef(o[13].response,Y(o[13].response),o[10].response)||["Unknown"]},networkAddressing:{publicIPv4:w.ok?(await w.json()).public_ip||"-":"Can't fetch public IP",cellularIPv4:(()=>{var e;let s=o[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV4"')),t=s&&(null===(e=s.match(/"IPV4","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0.0.0.0"===t?"-":t})(),cellularIPv6:(()=>{var e;let s=o[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV6"')),t=s&&(null===(e=s.match(/"IPV6","([^"]+)"/))||void 0===e?void 0:e[1])||"-",l=t?t.replace(/::/g,":"):"-";return"::"===l||"0:0:0:0:0:0:0:0"===l?"-":l})(),carrierPrimaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";let d=a[a.length-2].replace(/"/g,"").trim(),c=d.match(/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/),u=d.split(".").length>4;if(c)return d;if(u)return eg(d);return d.replace(/:{3,}/g,"::")}catch(e){return console.error("Error extracting primary DNS:",e),"-"}})(),carrierSecondaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";let d=a[a.length-2].replace(/"/g,"").trim(),c=d.match(/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/),u=d.split(".").length>4;if(c)return d;if(u)return eg(d);return d.replace(/:{3,}/g,"::")}catch(e){return console.error("Error extracting primary DNS:",e),"-"}})(),rawCarrierPrimaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";return a[a.length-2].replace(/"/g,"").trim()||"-"}catch(e){return console.error("Error extracting raw primary DNS:",e),"-"}})(),rawCarrierSecondaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<1)return"-";return a[a.length-1].replace(/"/g,"").trim()||"-"}catch(e){return console.error("Error extracting raw secondary DNS:",e),"-"}})()},timeAdvance:{lteTimeAdvance:(null===(v=o[21].response.split("\n")[1])||void 0===v?void 0:null===(f=v.split(":")[1])||void 0===f?void 0:f.split(",")[2].trim())||"Unknown",nrTimeAdvance:(null===(j=o[22].response.split("\n")[1])||void 0===j?void 0:null===(g=j.split(":")[1])||void 0===g?void 0:g.split(",")[2].trim())||"Unknown"}};s(b),d(0),s(b),i(null),console.log("Processed home data:",b)}catch(e){console.error("Error fetching home data:",e),o(e instanceof Error?e:Error(String(e)))}finally{l(!1)}},[o]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await c()}finally{s&&l(!1)}})(),e=setInterval(()=>{c()},15e3),()=>{s=!1,clearInterval(e)}},[c]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await c(),l(!1)},[c])}},eN=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},ew=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},eb=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),d=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),o=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!d||!o){console.error("Missing required data in response");return}let[c,u]=d.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=o.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(ew((u||0)+(m||0))),l(ew((c||0)+(x||0)))},d=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{d();let e=setInterval(d,12e3);return()=>clearInterval(e)},[d]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{d()},[d])}},ey=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},d=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),d=[];i&&(d=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let o=[];if(a&&(o=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),d=d.filter(e=>-32768!==e),o=o.filter(e=>-32768!==e),d=d.filter(e=>-140!==e),o=o.filter(e=>-140!==e),d.length>0){let e=d.reduce((e,s)=>e+s,0)/d.length;if(o.length>0){let s=o.reduce((e,s)=>e+s,0)/o.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(o.length>0)return o.reduce((e,s)=>e+s,0)/o.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},o=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),d=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),o=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==d?"".concat(d):null,"0"!==o?"".concat(o):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:d(s[6].response),modemTemp:o(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eA=t(80159),eS=t(12607),eC=t(25262),ek=t(8782),eE=t(10964),eT=t(89463),eI=t(90304),eR=t(622),eM=t(20633),eD=t(7778),eP=t(99312),eU=t(91994),eB=t(92823),eG=t(71834);let eL=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),[g,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),A=(0,n.useRef)(null),S=(0,n.useRef)(null),C=(0,n.useCallback)(()=>{t(null),o(null),u(null),x(!1),h(!1),v(!1),j(0),S.current=null,A.current&&(clearInterval(A.current),A.current=null)},[]);(0,n.useEffect)(()=>{if(m&&!p){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,p]),(0,n.useEffect)(()=>()=>{A.current&&clearInterval(A.current)},[]);let k=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){p&&(u("Test ended unexpectedly"),h(!1)),A.current&&(clearInterval(A.current),A.current=null);return}if(s.type)try{switch(s.type){case"ping":o("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&o(s.type);break;case"result":if(s.download&&s.upload&&s.ping){S.current=s,t(s),x(!0),h(!1),A.current&&(clearInterval(A.current),A.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(S.current=s,t(s))}catch(e){console.error("Error polling speedtest status:",e),p&&(u("Failed to get speedtest status"),h(!1),A.current&&(clearInterval(A.current),A.current=null))}},[a,p]),E=(0,n.useCallback)(async()=>{if(!N)try{if(C(),v(!0),h(!0),y(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");A.current=setInterval(k,300),v(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),v(!1),h(!1)}},[N,C,k]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(M.lG,{open:b,onOpenChange:y,children:[(0,l.jsx)(M.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eG.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(P.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{N||(e.preventDefault(),E())}})]})}),(0,l.jsxs)(M.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,l.jsx)(M.c7,{children:(0,l.jsxs)(M.L3,{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2"})," Network Speedtest",m&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2",children:"Complete"}),p&&!m&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,t,n,r,d,o,u,x,h,v,j,N,w,b,y,A,S,k,T,I,R,M,D,P,U,B;if(c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eS.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{C(),E()},children:"Please try again."})]})]});if(f||p&&!s)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eT.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:ez(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eI.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(o=s.download)||void 0===o?void 0:null===(d=o.latency)||void 0===d?void 0:null===(r=d.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eR.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:ez(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eI.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(v=s.upload)||void 0===v?void 0:null===(h=v.latency)||void 0===h?void 0:null===(x=h.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==D?D:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(P=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==P?P:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eM.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(U=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==U?U:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:s.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(A=s.interface)||void 0===A?void 0:A.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(S=s.server)||void 0===S?void 0:S.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(k=s.server)||void 0===k?void 0:k.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(T=s.server)||void 0===T?void 0:T.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(I=s.server)||void 0===I?void 0:I.host)||"N/A"})]}),(null===(R=s.result)||void 0===R?void 0:R.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eP.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eS.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{C(),E()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eU.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let G=s[a],L="download"===a;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[L?(0,l.jsx)(eT.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eR.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",L?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:ez(G.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eB.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eL(G.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(G.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ek.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(B=null===(t=G.latency)||void 0===t?void 0:null===(e=t.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==B?B:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(M.Es,{className:"flex justify-between items-center",children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(R.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(C(),E())},variant:"outline",disabled:N,children:[(0,l.jsx)(eU.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(R.$,{onClick:()=>y(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:p?(0,l.jsx)(R.$,{onClick:()=>{C(),y(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(R.$,{onClick:()=>y(!1),children:"Close"})})})]})]}),(0,l.jsx)(i.BT,{children:N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eO=t(88926),eF=t(85014);let eW=e=>{let{data:s,isLoading:t}=e;return(0,l.jsx)(i.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,l.jsx)("div",{className:"flex items-center gap-x-2",children:(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv4})})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{children:null==s?void 0:s.networkAddressing.carrierPrimaryDNS}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)("p",{children:null==s?void 0:s.networkAddressing.rawCarrierPrimaryDNS})})]})})})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{children:null==s?void 0:s.networkAddressing.carrierSecondaryDNS}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)("p",{children:null==s?void 0:s.networkAddressing.rawCarrierSecondaryDNS})})]})})})]})]})})};var eq=t(99015),eZ=t(13624);let eQ=e=>{let{lteTimeAdvance:s="0",nrTimeAdvance:t="0",isLoading:n=!1,networkType:r="Unknown"}=e,d=s&&"Unknown"!==s&&"-"!==s&&parseInt(s,10)||0,o=t&&"Unknown"!==t&&"-"!==t&&parseInt(t,10)||0,c=d>0?(e=>((e<0||e>1282)&&(console.warn("Invalid LTE TA value: ".concat(e,", using 0 instead")),e=0),1/3072e4*(16*e)*3e8/2/1e3))(d):0,u=o>0?(e=>(e<0&&(console.warn("Invalid negative NTA value: ".concat(e,", using 0 instead")),e=0),3e8*e*(1/196608e4)/2/1e3))(o):0,m=e=>0===e?"-":"".concat(e.toFixed(2)," km");return(0,l.jsxs)(i.Zp,{className:"overflow-hidden",children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Distance to Cell Tower"})}),(0,l.jsx)(i.Wu,{children:n?(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"LTE"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"})})]})})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"NR5G"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"})})]})})]})]})]}):(0,l.jsxs)("div",{className:"space-y-3",children:[d>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"LTE"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2",children:m(c)}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsxs)("p",{className:"max-w-xs text-xs mr-2",children:["LTE TA ",d]})})]})})]})]}),o>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"NR5G"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2",children:m(u)}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsxs)("p",{className:"max-w-xs text-xs mr-2",children:["NTA ",o]})})]})})]})]}),!d&&!o&&(0,l.jsx)("div",{className:"h-16 flex items-center justify-center",children:(0,l.jsx)("p",{className:"text-muted-foreground text-sm",children:"No timing advance data available"})})]})})]})},eH=()=>{var e,s,t;let{toast:i}=(0,r.dj)(),[a,d]=(0,n.useState)(!1),{data:c,isLoading:u,refresh:m}=ej(),{dataConnectionState:x,isStateLoading:v,refresh:g}=eN(),{isRunningDiagnostics:j,runDiagnosticsData:N,startDiagnostics:w}=ey(),{bytesSent:b,bytesReceived:y,refresh:A}=eb(),C=async()=>{try{var e,s;let t=await (0,eO.a)("AT+QUIMSLOT?"),l=null===(e=t.response)||void 0===e?void 0:e.raw_output.split("\n")[1].split(":")[1].trim(),n=await (0,eO.a)("1"===l?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===n.status||(null===(s=n.response)||void 0===s?void 0:s.status)==="error")throw Error("Failed to change SIM slot");i({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eO.a)("AT+COPS=2"),setTimeout(async()=>{let e=await (0,eO.a)("AT+COPS=0");if("error"===e.status)throw Error("Failed to reconnect to the network");i({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(E,3e3)}catch(e){console.error("Error changing SIM slot:",e),i({variant:"destructive",title:"SIM Slot Change Failed",description:e instanceof Error?e.message:"Failed to change the SIM slot"})}},E=(0,n.useCallback)(async()=>{try{await Promise.all([m(),g(),A()])}catch(e){console.error("Error refreshing data:",e),i({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[m,g,A]),[T,G]=(0,n.useState)([]),z=async()=>{try{await w()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{N&&console.log("Diagnostics data updated:",N)},[N]),(0,n.useEffect)(()=>{if(c&&c.currentBands){var e;let s=null===(e=c.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,i,a,d;return{id:e,bandNumber:(null===(t=c.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=c.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=c.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=c.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(i=c.currentBands.rsrp)||void 0===i?void 0:i[s])||"N/A",rsrq:(null===(a=c.currentBands.rsrq)||void 0===a?void 0:a[s])||"N/A",sinr:(null===(d=c.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&G(s)}},[c]),(0,n.useEffect)(()=>{u||(null==c?void 0:c.simCard.state)!=="Not Inserted"||d(!0)},[c,u]),(0,l.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(R.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:E,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==c?void 0:c.simCard.state)==="Not Inserted"&&(0,l.jsxs)(M.lG,{open:a,onOpenChange:d,children:[(0,l.jsx)(M.zM,{asChild:!0,children:(0,l.jsxs)(R.$,{variant:"destructive",children:[(0,l.jsx)(eA.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eA.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(R.$,{onClick:C,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(M.HM,{asChild:!0,children:(0,l.jsx)(R.$,{variant:"secondary",onClick:()=>d(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(M.lG,{children:[(0,l.jsx)(M.zM,{children:(0,l.jsxs)(R.$,{onClick:z,children:[(0,l.jsx)(P.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!j&&(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(M.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==N?void 0:N.netRegistration)==="Registered"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==N?void 0:N.simState)==="READY"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==N?void 0:N.manualAPN)==="Enabled"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==N?void 0:N.wanIP)==="Connected"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==N?void 0:N.cellSignal)==="Good"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==N?void 0:N.modemTemp)==="Normal"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==N?void 0:N.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(U.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(B.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==N?void 0:N.netReject})]})]})]})]}),j&&(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(L(),{color:"#6D28D9"})}),(0,l.jsx)(M.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(S,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(eQ,{lteTimeAdvance:null==c?void 0:null===(e=c.timeAdvance)||void 0===e?void 0:e.lteTimeAdvance,nrTimeAdvance:null==c?void 0:null===(s=c.timeAdvance)||void 0===s?void 0:s.nrTimeAdvance,isLoading:u,networkType:null==c?void 0:null===(t=c.connection)||void 0===t?void 0:t.networkType}),(0,l.jsx)(k,{}),(0,l.jsx)(e_,{}),(0,l.jsx)(I,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(o,{data:c,isLoading:u}),(0,l.jsx)(p,{data:c,isLoading:u,dataConnectionState:x,connectionStateLoading:v}),(0,l.jsx)(h,{data:c,isLoading:u,bytesSent:b,bytesReceived:y}),(0,l.jsx)(f,{data:c,isLoading:u})]})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,l.jsx)("div",{children:(0,l.jsx)(eW,{data:c,isLoading:u})})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)("div",{children:(0,l.jsx)($,{bands:T,isLoading:u})})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>o,r:()=>d});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let d=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:o=!1,...c}=e,u=o?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(d({variant:n,size:i,className:t})),ref:s,...c})});o.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});d.displayName="CardTitle";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});o.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),d=t(22250);let o={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:o,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:o},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,d.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:o}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(o).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:o=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:v,nameKey:g,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(o||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",p),children:i}):null},[m,x,r,o,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,d.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(g||e.name||e.dataKey||"value"),n=f(N,e,t),r=v||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,d.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,d.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,d.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:o}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,d.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(o,e,s);return(0,l.jsxs)("div",{className:(0,d.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>d,rr:()=>v,zM:()=>o});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let d=r.bL,o=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...d}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...d,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let v=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});v.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},85014:(e,s,t)=>{"use strict";t.d(s,{TooltipProvider:()=>a,ZI:()=>c,k$:()=>o,m_:()=>d});var l=t(20475),n=t(20107),r=t(43048),i=t(22250);let a=r.Kq,d=r.bL,o=r.l9,c=n.forwardRef((e,s)=>{let{className:t,sideOffset:n=4,...a}=e;return(0,l.jsx)(r.UC,{ref:s,sideOffset:n,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})});c.displayName=r.UC.displayName},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},d=[],o={toasts:[]};function c(e){o=a(o,e),d.forEach(e=>{e(o)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(o);return l.useEffect(()=>(d.push(s),()=>{let e=d.indexOf(s);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let d=await a.json();if(d.error)throw Error("AT queue error: ".concat(d.error));if(s&&(null===(l=d.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return d}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,3746,9464,3048,1074,3095,9563,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-7c194f64db41f470.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-7c194f64db41f470.js new file mode 100644 index 0000000..098911f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-7c194f64db41f470.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,l)=>{Promise.resolve().then(l.bind(l,77501))},77501:(e,s,l)=>{"use strict";l.r(s),l.d(s,{default:()=>eZ});var t=l(20475),n=l(20107),r=l(32857),i=l(72167),a=l(36760),o=l(45934);let d=e=>{let{data:s,isLoading:l}=e;return(0,t.jsxs)(i.Zp,{children:[(0,t.jsxs)(i.aR,{children:[(0,t.jsx)(i.ZB,{children:"Sim Card"}),(0,t.jsx)(i.BT,{children:"Sim card information"})]}),(0,t.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Sim Card Slot in Use"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Sim Card State"}),l?(0,t.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,t.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Provider"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Phone Number"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"IMSI"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"ICCID"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"IMEI"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:l,dataConnectionState:n,connectionStateLoading:r}=e;return(0,t.jsxs)(i.Zp,{children:[(0,t.jsxs)(i.aR,{children:[(0,t.jsx)(i.ZB,{children:"Connection"}),(0,t.jsx)(i.BT,{children:"Connection information"})]}),(0,t.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"APN"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Operator State"}),l?(0,t.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,t.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Functionality State"}),l?(0,t.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,t.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Data Connection State"}),r?(0,t.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,t.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Network Type"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Modem Temperature"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Access Technology"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:l,bytesSent:n,bytesReceived:r}=e;return(0,t.jsxs)(i.Zp,{children:[(0,t.jsxs)(i.aR,{children:[(0,t.jsx)(i.ZB,{children:"Data Transmission"}),(0,t.jsx)(i.BT,{children:"Data transmission information"})]}),(0,t.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Carrier Aggregation"}),l?(0,t.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,t.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bandwidth"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Connected Bands"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Signal Strength"}),l?(0,t.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,t.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"MIMO Layers"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bytes Sent"}),(0,t.jsx)("p",{className:"font-bold",children:n})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bytes Received"}),(0,t.jsx)("p",{className:"font-bold",children:r})]})]})]})},v=e=>{let{data:s,isLoading:l}=e;return(0,t.jsxs)(i.Zp,{children:[(0,t.jsxs)(i.aR,{children:[(0,t.jsx)(i.ZB,{children:"Cellular Information"}),(0,t.jsx)(i.BT,{children:"Cellular network information"})]}),(0,t.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Cell ID"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"TAC"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Physical Cell IDs"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Mobile Country Code"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Mobile Network Code"}),l?(0,t.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Antenna Signal Quality"}),l?(0,t.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,t.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var f=l(1307),g=l(53134),j=l(94005),N=l(4538),w=l(41797),b=l(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),l=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&l.push(...s.map(Number))});let t=l.filter(e=>-140!==e&&-32768!==e);return 0===t.length?0:Math.round(t.reduce((e,s)=>e+s,0)/t.length)},A=()=>{let[e,s]=(0,n.useState)([]),[l,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let l=await e.json(),t=Math.min(l.rsrp.length,l.rsrq.length,l.sinr.length),n=Array.from({length:t},(e,s)=>({time:l.rsrp[s].datetime,rsrp:S(l.rsrp[s].output),rsrq:S(l.rsrq[s].output),sinr:S(l.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,t.jsx)(i.Zp,{children:(0,t.jsxs)(i.aR,{children:[(0,t.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,t.jsx)(i.BT,{children:c})]})}):(0,t.jsxs)(i.Zp,{children:[(0,t.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,t.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,t.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,t.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,t.jsxs)("button",{"data-active":l===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,t.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,t.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,t.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,t.jsx)(f.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,t.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,t.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,t.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,t.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,t.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,t.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,t.jsx)(j.d,{vertical:!1}),(0,t.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,t.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(l)}),(0,t.jsx)(f.II,{content:(0,t.jsx)(f.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,t.jsx)(b.G,{dataKey:l,type:"monotone",stroke:"var(--color-".concat(l,")"),fill:"url(#fill".concat(l.charAt(0).toUpperCase()+l.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(l)})]})})}),(0,t.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,t.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,t.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},k=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let l=parseInt(s[1],10);return l>=1e3?"".concat(l/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(l).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[l,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,t.jsxs)(i.Zp,{children:[(0,t.jsx)(i.aR,{children:(0,t.jsx)(i.ZB,{children:"Ethernet"})}),(0,t.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,t.jsx)("div",{className:"text-red-500",children:o})})]}):(0,t.jsxs)(i.Zp,{children:[(0,t.jsx)(i.aR,{children:(0,t.jsx)(i.ZB,{children:"Ethernet"})}),(0,t.jsx)(i.Wu,{children:(0,t.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,t.jsx)("span",{className:"text-base font-bold",children:l?(0,t.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,t.jsx)("span",{className:"text-base font-bold",children:l?(0,t.jsx)(a.E,{className:"h-8 w-full"}):k(e.link_speed)})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,t.jsx)("span",{className:"text-base font-bold",children:l?(0,t.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},E=e=>"".concat(Math.round(e/1048576)," MB"),I=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[l,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),l&&r(!1)}catch(e){console.error("Failed to fetch memory information"),l&&r(!1)}};e();let t=setInterval(e,2e3);return()=>clearInterval(t)},[l]),(0,t.jsxs)(i.Zp,{children:[(0,t.jsx)(i.aR,{children:(0,t.jsx)(i.ZB,{children:"Memory"})}),(0,t.jsx)(i.Wu,{children:(0,t.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),l?(0,t.jsx)(a.E,{className:"h-6 w-24"}):(0,t.jsx)("span",{className:"text-base font-bold",children:E(e.total)})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),l?(0,t.jsx)(a.E,{className:"h-6 w-24"}):(0,t.jsx)("span",{className:"text-base font-bold",children:E(e.used)})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),l?(0,t.jsx)(a.E,{className:"h-6 w-24"}):(0,t.jsx)("span",{className:"text-base font-bold",children:E(e.available)})]})]})})]})},R={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),l=(0,n.useRef)(e);(0,n.useEffect)(()=>{l.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();d(e=>null===e||m?t.latency:(n(e,t.latency,e=>d(e)),e));let r=T(),i=l.current,a={time:r,ms:t.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:T()}));else if(e.length<5){let l=Array(5-e.length).fill(null).map((s,l)=>({...a,index:e.length+l+1}));s=[...e,...l]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,l)=>{let t=performance.now(),n=s-e,r=s=>{let i=Math.min((s-t)/1500,1);l(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};t();let r=setInterval(t,5e3);return()=>clearInterval(r)},[]),(0,t.jsxs)(i.Zp,{children:[(0,t.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,t.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,t.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,t.jsx)(i.Wu,{children:c?(0,t.jsx)(a.E,{className:"h-[200px] w-full"}):(0,t.jsx)(f.at,{config:R,children:(0,t.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,t.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,t.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,t.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,t.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,t.jsx)(f.II,{cursor:!1,content:(0,t.jsx)(f.Nt,{labelFormatter:(s,l)=>{let t=e.find(e=>e.index===s);return t?"".concat(t.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,t.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var B=l(42541),D=l(93557),L=l(97801),U=l(14389),z=l(98969),G=l(17799),P=l(92776),_=l.n(P),F=l(7197),q=l(74043),O=l(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let Q=n.forwardRef((e,s)=>{let{orientation:l="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,q.A)({...r,axis:"horizontal"===l?"x":"y"},a),[x,p]=n.useState(!1),[h,v]=n.useState(!1),f=n.useCallback(e=>{e&&(p(e.canScrollPrev()),v(e.canScrollNext()))},[]),g=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[g,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return f(m),m.on("reInit",f),m.on("select",f),()=>{null==m||m.off("select",f)}},[m,f]),(0,t.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:l||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,t.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,O.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});Q.displayName="Carousel";let W=n.forwardRef((e,s)=>{let{className:l,...n}=e,{carouselRef:r,orientation:i}=H();return(0,t.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:s,className:(0,O.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",l),...n})})});W.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:l,...n}=e,{orientation:r}=H();return(0,t.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,O.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",l),...n})});K.displayName="CarouselItem",n.forwardRef((e,s)=>{let{className:l,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=H();return(0,t.jsxs)(B.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",l),disabled:!d,onClick:o,...i,children:[(0,t.jsx)(F.A60,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",n.forwardRef((e,s)=>{let{className:l,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=H();return(0,t.jsxs)(B.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",l),disabled:!d,onClick:o,...i,children:[(0,t.jsx)(F.flY,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:l,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,t.jsx)(i.Zp,{className:"p-8",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,t.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,t.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[l.replace("LTE BAND ","B").replace("NR5G BAND ","N"),l.includes("NR5G")&&(0,t.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,t.jsx)("p",{children:n})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,t.jsx)("p",{children:r})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,t.jsx)("p",{children:a})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,t.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,t.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,t.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},V=e=>{let{bands:s,isLoading:l}=e;return l?(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"hidden lg:block w-full",children:(0,t.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,t.jsx)($,{...e},e.id)),(0,t.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,t.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,t.jsx)(Q,{className:"lg:hidden w-full max-w-xs",children:(0,t.jsx)(W,{children:(0,t.jsx)(K,{children:(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(i.Zp,{children:(0,t.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Band"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Bandwidth"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"PCI"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRP"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRQ"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"SINR"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"hidden lg:block w-full",children:(0,t.jsx)(i.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,t.jsx)($,{...e},e.id))})}),(0,t.jsx)(Q,{className:"lg:hidden w-full max-w-xs",children:(0,t.jsx)(W,{children:null==s?void 0:s.map(e=>(0,t.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(i.Zp,{children:(0,t.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Band"}),(0,t.jsx)("p",{children:e.bandNumber})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),(0,t.jsx)("p",{children:e.earfcn})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Bandwidth"}),(0,t.jsx)("p",{children:e.bandwidth})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"PCI"}),(0,t.jsx)("p",{children:e.pci})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRP"}),(0,t.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRQ"}),(0,t.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"SINR"}),(0,t.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},J=e=>{try{var s,l;return(null==e?void 0:null===(l=e.split("\n")[1])||void 0===l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},Y=e=>{try{var s,l;return(null==e?void 0:null===(l=e.split("\n")[1])||void 0===l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},X=(e,s)=>{var l,t,n,r;switch(Number(null===(t=e.split("\n")[1])||void 0===t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim())||Number(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},ee=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),l=null==s?void 0:s.some(e=>e.includes("LTE")),t=null==s?void 0:s.some(e=>e.includes("NR5G"));return l&&t?"NR5G-NSA":l?"LTE":t?"NR5G-SA":"No Signal"},es=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var l;let t=e.split("\n").find(e=>e.includes(s));return parseInt(null==t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[1].replace(/"/g,"").trim())}),l=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(l),"\xb0C")},el=(e,s)=>{var l;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&t?c[t]||"Unknown":[t?c[t]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&t)return r.length?[u[t],...r.map(e=>u[e])].join(", "):u[t]||"Unknown";if("NR5G-NSA"===s&&t)return n.length||r.length?n.length&&!r.length?[c[t],...n.map(e=>c[e])].join(", "):[c[t],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[t]||"Unknown";return"Unknown"},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},en=e=>{var s,l;let t=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(t&&(r=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,l=Math.max(0,Math.min(100,(e+125)/50*100)),t=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((l+t)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},er=(e,s)=>{var l,t,n,r;return"NR5G-SA"===s||"LTE"===s?null===(t=e.split("\n")[1])||void 0===t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},ei=(e,s)=>{var l,t,n,r,i,a;return"NR5G-SA"===s?null===(t=e.split("\n")[1])||void 0===t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ea=(e,s)=>{var l,t;if("LTE"===s||"NR5G-NSA"===s){let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[t,...n].join(", "):[t,...n,...r].join(", "):t}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...l].join(", "):s}},eo=e=>{var s;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!l||t.length||n.length)?l&&t.length&&!n.length?[l,...t].join(", "):l&&!t.length&&n.length?[l,...n].join(", "):l&&t.length&&n.length?[l,...t,...n].join(", "):"Unknown":l},ed=(e,s)=>{var l,t,n,r;return"LTE"===s||"NR5G-SA"===s?null===(t=e.split("\n")[1])||void 0===t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},ec=(e,s)=>{var l,t,n,r;return"LTE"===s||"NR5G-SA"===s?null===(t=e.split("\n")[1])||void 0===t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},eu=e=>{let s=e.split("\n"),l=s.find(e=>e.includes("LTE")),t=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(l),a=n(t),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},em=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),l=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&l.length?[...s,...l].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):l.length?l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},ex=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),l=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&l.length?[...s,...l].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):l.length?l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),l=e.split("\n").filter(e=>e.includes("NR5G BAND")),t=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=l.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return t.length&&n.length?[...t,...n]:t.length?t:n.length?n:["Unknown"]},eh=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),l=[],t=s.find(e=>e.includes("PCC"));if(t){let e=t.split(":")[1].split(",")[4].trim();l.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");l.push(s.length>5?s[5].trim():"Unknown")}return l.length>0?l:["Unknown"]}if("LTE"===s){var l;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[5].trim():"Unknown";let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE BAND"));return t.length?[s,...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),l=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ev=(e,s,l)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),t=l.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&t.length?[...s,...t]:s.length?s:t.length?t:["Unknown"]}if("NR5G-SA"===s){let e=l.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var t;return[null==e?void 0:null===(t=e.split(":")[1])||void 0===t?void 0:t.split(",")[9]]}}return["Unknown"]},ef=(e,s,l)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var t;let e=l.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(t=e.split(":")[1])||void 0===t?void 0:t.split(",")[10]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),t=l.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},eg=(e,s,l)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){let e=l.split("\n").find(e=>e.includes("NR5G-SA"));if(!e)return["Unknown"];{var t;let s=[null==e?void 0:null===(t=e.split(":")[1])||void 0===t?void 0:t.split(",")[11]];return"-32768"===s[0]?["-"]:s}}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),t=l.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},ej=e=>{var s,l;let t=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(l=r.split(":")[1])||void 0===l?void 0:l.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!t.includes(e)),a=a.filter(e=>!t.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eN=()=>{let[e,s]=(0,n.useState)(null),[l,t]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,l,t,n,r,a,o,d,c,u,m,x,p,h,v,f,g,j,N,w,b;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),y=await i.json();console.log(y);let S=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),A={simCard:{slot:(null===(e=y[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:y[6].response.match("READY")?"Inserted":"Not Inserted",provider:J(y[2].response)||"Unknown",phoneNumber:(null===(t=y[1].response.split("\n")[1])||void 0===t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:y[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=y[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:y[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=y[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=y[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:X(y[8].response,y[16].response)||"Unknown",functionalityState:(null===(c=y[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:ee(y[13].response)||"No Signal",modemTemperature:es(y[11].response)||"Unknown",accessTechnology:Y(y[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=y[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:el(y[13].response,ee(y[13].response))||"Unknown",connectedBands:et(y[13].response)||"Unknown",signalStrength:en(y[14].response)||"Unknown",mimoLayers:ej(y[14].response)||"Unknown"},cellularInfo:{cellId:er(y[10].response,ee(y[13].response))||"Unknown",trackingAreaCode:ei(y[10].response,ee(y[13].response))||"Unknown",physicalCellId:ea(y[13].response,ee(y[13].response)),earfcn:eo(y[13].response),mcc:ed(y[10].response,ee(y[13].response))||"Unknown",mnc:ec(y[10].response,ee(y[13].response))||"Unknown",signalQuality:eu(y[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(b=null===(m=em(y[13].response))||void 0===m?void 0:m.length)&&void 0!==b?b:0},(e,s)=>s+1)||[1],bandNumber:em(y[13].response)||["Unknown"],earfcn:ex(y[13].response),bandwidth:ep(y[13].response)||["Unknown"],pci:eh(y[13].response,ee(y[13].response))||["Unknown"],rsrp:ev(y[13].response,ee(y[13].response),y[10].response),rsrq:ef(y[13].response,ee(y[13].response),y[10].response)||["Unknown"],sinr:eg(y[13].response,ee(y[13].response),y[10].response)||["Unknown"]},networkAddressing:{publicIPv4:S.ok&&(await S.json()).public_ip||"-",cellularIPv4:(null===(x=y[20].response.split("\n")[1])||void 0===x?void 0:x.split(":")[1].split(",")[3].replace(/"/g,"").trim())||"-",cellularIPv6:(null===(p=y[20].response.split("\n")[1])||void 0===p?void 0:p.split(":")[1].split(",").length)===5?null===(h=y[20].response.split("\n")[1])||void 0===h?void 0:h.split(":")[1].split(",")[4].replace(/"/g,"").trim():"-",carrierPrimaryDNS:(null===(v=y[20].response.split("\n")[1])||void 0===v?void 0:v.split(":")[1].split(",").length)===5?null===(f=y[20].response.split("\n")[1])||void 0===f?void 0:f.split(":")[1].split(",")[4].replace(/"/g,"").trim():null===(g=y[20].response.split("\n")[1])||void 0===g?void 0:g.split(":")[1].split(",").slice(-2)[0].replace(/"/g,"").trim(),carrierSecondaryDNS:(null===(j=y[20].response.split("\n")[1])||void 0===j?void 0:j.split(":")[1].split(",").length)===5?null===(N=y[20].response.split("\n")[1])||void 0===N?void 0:N.split(":")[1].split(",").slice(-1)[0].replace(/"/g,"").trim():null===(w=y[20].response.split("\n")[1])||void 0===w?void 0:w.split(":")[1].split(",").slice(-1)[0].replace(/"/g,"").trim()}};s(A),console.log("Processed home data:",A)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-"},cellularInfo:{cellId:"-",trackingAreaCode:"-",physicalCellId:"-",earfcn:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-"}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&t(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:l,error:r,refresh:(0,n.useCallback)(async()=>{t(!0),await a(),t(!1)},[a])}},ew=()=>{let[e,s]=(0,n.useState)("Unknown"),[l,t]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{t(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),l=await e.json();s("ACTIVE"===l.connection?"Connected":"Disconnected"),t(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),t(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:l}},eb=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ey=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[l,t]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var l,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(l=a.find(e=>e.includes("+QGDCNT:")))||void 0===l?void 0:l.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eb((u||0)+(m||0))),t(eb((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:l,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eS=()=>{let[e,s]=(0,n.useState)(!1),[l,t]=(0,n.useState)(null),r=(e,s)=>{var l,t,n,r;let i=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var l,t,n,r;return(null===(t=e.split("\n")[1])||void 0===t?void 0:null===(l=t.split(":")[1])||void 0===l?void 0:l.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,l,t,n;let r=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,l,t,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(l=i.split(":")[1])||void 0===l?void 0:null===(s=l.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(t=n.split(","))||void 0===t?void 0:t.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,l,t,n,r,i;let a=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:l,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let l={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return t(l),l}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eA=l(80159),ek=l(12607),eC=l(25262),eE=l(8782),eI=l(10964),eR=l(89463),eT=l(90304),eM=l(622),eB=l(20633),eD=l(7778),eL=l(99312),eU=l(91994),ez=l(92823),eG=l(71834);let eP=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],l=e,t=0;for(;l>=1024&&t{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],l=8*e,t=0;for(;l>=1e3&&t{let{toast:e}=(0,r.dj)(),[s,l]=(0,n.useState)(null),[a,d]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),[v,f]=(0,n.useState)(!1),[g,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),S=(0,n.useRef)(null),A=(0,n.useRef)(null),k=(0,n.useCallback)(()=>{l(null),d(null),u(null),x(!1),h(!1),f(!1),j(0),A.current=null,S.current&&(clearInterval(S.current),S.current=null)},[]);(0,n.useEffect)(()=>{if(m&&!p){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,p]),(0,n.useEffect)(()=>()=>{S.current&&clearInterval(S.current)},[]);let C=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){p&&(u("Test ended unexpectedly"),h(!1)),S.current&&(clearInterval(S.current),S.current=null);return}if(s.type)try{switch(s.type){case"ping":d("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&d(s.type);break;case"result":if(s.download&&s.upload&&s.ping){A.current=s,l(s),x(!0),h(!1),S.current&&(clearInterval(S.current),S.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(A.current=s,l(s))}catch(e){console.error("Error polling speedtest status:",e),p&&(u("Failed to get speedtest status"),h(!1),S.current&&(clearInterval(S.current),S.current=null))}},[a,p]),E=(0,n.useCallback)(async()=>{if(!N)try{if(k(),f(!0),h(!0),y(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");S.current=setInterval(C,300),f(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),f(!1),h(!1)}},[N,k,C]);return(0,t.jsxs)(i.Zp,{children:[(0,t.jsx)(i.aR,{children:(0,t.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,t.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,t.jsxs)(D.lG,{open:b,onOpenChange:y,children:[(0,t.jsx)(D.zM,{asChild:!0,children:(0,t.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,t.jsx)(eG.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,t.jsx)(U.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{N||(e.preventDefault(),E())}})]})}),(0,t.jsxs)(D.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,t.jsx)(D.c7,{children:(0,t.jsxs)(D.L3,{className:"flex items-center",children:[(0,t.jsx)(eI.A,{className:"mr-2"})," Network Speedtest",m&&(0,t.jsx)(o.E,{variant:"outline",className:"ml-2",children:"Complete"}),p&&!m&&(0,t.jsx)(o.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,t.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,l,n,r,o,d,u,x,h,f,j,N,w,b,y,S,A,C,I,R,T,M,B,D,L,U;if(c)return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,t.jsx)(ek.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,t.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,t.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{k(),E()},children:"Please try again."})]})]});if(v||p&&!s)return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,t.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,t.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,t.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,t.jsx)(eE.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,t.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,t.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,t.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,t.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,t.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,t.jsxs)(i.Zp,{children:[(0,t.jsx)(i.aR,{children:(0,t.jsxs)(i.ZB,{className:"flex items-center",children:[(0,t.jsx)(eI.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,t.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,t.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,t.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(eR.A,{className:"text-green-600 lg:size-6 size-4"}),(0,t.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,t.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,t.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,t.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,t.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,t.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(d=s.download)||void 0===d?void 0:null===(o=d.latency)||void 0===o?void 0:null===(r=o.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,t.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(eM.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,t.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,t.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,t.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,t.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,t.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,t.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(B=null===(f=s.upload)||void 0===f?void 0:null===(h=f.latency)||void 0===h?void 0:null===(x=h.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==B?B:"N/A"," ","ms"]})]})]})]})}),(0,t.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,t.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,t.jsx)(eE.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,t.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,t.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==D?D:"N/A"," ms"]})]}),(0,t.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,t.jsx)(eB.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,t.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,t.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(L=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==L?L:"N/A"," ms"]})]})]})]}),(0,t.jsxs)(i.Zp,{children:[(0,t.jsx)(i.aR,{children:(0,t.jsxs)(i.ZB,{className:"flex items-center",children:[(0,t.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,t.jsx)(i.Wu,{children:(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,t.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,t.jsx)("p",{children:s.isp||"N/A"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,t.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,t.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,t.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,t.jsx)("p",{children:(null===(S=s.interface)||void 0===S?void 0:S.externalIp)||"N/A"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,t.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,t.jsx)("p",{children:(null===(A=s.server)||void 0===A?void 0:A.name)||"N/A"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,t.jsx)("p",{className:"font-medium",children:"Location:"}),(0,t.jsx)("p",{children:(null===(C=s.server)||void 0===C?void 0:C.location)||"N/A"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,t.jsx)("p",{className:"font-medium",children:"Country:"}),(0,t.jsx)("p",{children:(null===(I=s.server)||void 0===I?void 0:I.country)||"N/A"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,t.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,t.jsx)("p",{children:(null===(R=s.server)||void 0===R?void 0:R.host)||"N/A"})]}),(null===(T=s.result)||void 0===T?void 0:T.url)&&(0,t.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,t.jsx)(eL.A,{className:"text-blue-600 size-4"}),(0,t.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,t.jsx)(ek.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,t.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,t.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,t.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{k(),E()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,t.jsx)(eU.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,t.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let z=s[a],G="download"===a;return(0,t.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,t.jsx)(i.aR,{children:(0,t.jsxs)(i.ZB,{className:"flex items-center",children:[G?(0,t.jsx)(eR.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,t.jsx)(eM.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,t.jsxs)("p",{className:"ml-2",children:["Testing ",G?"Download":"Upload"," Speed"]})]})}),(0,t.jsx)(i.Wu,{children:(0,t.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,t.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:e_(z.bandwidth)})})}),(0,t.jsx)(i.wL,{children:(0,t.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(ez.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,t.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eP(z.bytes)})]}),(0,t.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(eI.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,t.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(z.elapsed/1e3).toFixed(2)," sec"]})]}),(0,t.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(eE.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,t.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(U=null===(l=z.latency)||void 0===l?void 0:null===(e=l.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==U?U:"N/A"," ms"]})]})]})})]})})()}),(0,t.jsx)(D.Es,{className:"flex justify-between items-center",children:m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{children:(0,t.jsxs)(B.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(k(),E())},variant:"outline",disabled:N,children:[(0,t.jsx)(eU.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,t.jsx)(B.$,{onClick:()=>y(!1),children:"Close"})]}):(0,t.jsx)(t.Fragment,{children:p?(0,t.jsx)(B.$,{onClick:()=>{k(),y(!1)},variant:"destructive",children:"Cancel Test"}):(0,t.jsx)(B.$,{onClick:()=>y(!1),children:"Close"})})})]})]}),(0,t.jsx)(i.BT,{children:N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eq=l(88926);let eO=e=>{let{data:s,isLoading:l}=e;return(0,t.jsx)(i.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,t.jsxs)("div",{className:"grid md:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,t.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,t.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,t.jsx)("p",{children:l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,t.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,t.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,t.jsx)("p",{children:l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv4})]}),(0,t.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,t.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,t.jsx)("p",{children:l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,t.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,t.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,t.jsx)("p",{children:l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierPrimaryDNS})]}),(0,t.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,t.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,t.jsx)("p",{children:l?(0,t.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierSecondaryDNS})]})]})})},eZ=()=>{let{toast:e}=(0,r.dj)(),[s,l]=(0,n.useState)(!1),{data:i,isLoading:a,refresh:o}=eN(),{dataConnectionState:c,isStateLoading:u,refresh:m}=ew(),{isRunningDiagnostics:x,runDiagnosticsData:f,startDiagnostics:g}=eS(),{bytesSent:j,bytesReceived:N,refresh:w}=ey(),b=async()=>{try{var s,l;let t=await (0,eq.a)("AT+QUIMSLOT?"),n=null===(s=t.response)||void 0===s?void 0:s.raw_output.split("\n")[1].split(":")[1].trim(),r=await (0,eq.a)("1"===n?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===r.status||(null===(l=r.response)||void 0===l?void 0:l.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eq.a)("AT+COPS=2"),setTimeout(async()=>{let s=await (0,eq.a)("AT+COPS=0");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(y,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},y=(0,n.useCallback)(async()=>{try{await Promise.all([o(),m(),w()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[o,m,w]),[S,k]=(0,n.useState)([]),E=async()=>{try{await g()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{f&&console.log("Diagnostics data updated:",f)},[f]),(0,n.useEffect)(()=>{if(i&&i.currentBands){var e;let s=null===(e=i.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var l,t,n,r,a,o,d;return{id:e,bandNumber:(null===(l=i.currentBands.bandNumber)||void 0===l?void 0:l[s])||"N/A",earfcn:(null===(t=i.currentBands.earfcn)||void 0===t?void 0:t[s])||"N/A",bandwidth:(null===(n=i.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=i.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(a=i.currentBands.rsrp)||void 0===a?void 0:a[s])||"N/A",rsrq:(null===(o=i.currentBands.rsrq)||void 0===o?void 0:o[s])||"N/A",sinr:(null===(d=i.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&k(s)}},[i]),(0,n.useEffect)(()=>{a||(null==i?void 0:i.simCard.state)!=="Not Inserted"||l(!0)},[i,a]),(0,t.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,t.jsx)(B.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:y,children:(0,t.jsx)(L.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==i?void 0:i.simCard.state)==="Not Inserted"&&(0,t.jsxs)(D.lG,{open:s,onOpenChange:l,children:[(0,t.jsx)(D.zM,{asChild:!0,children:(0,t.jsxs)(B.$,{variant:"destructive",children:[(0,t.jsx)(eA.fU4,{className:"xl:size-6 size-5"}),(0,t.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,t.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(D.c7,{children:(0,t.jsx)(D.L3,{children:"No SIM Detected"})}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)(eA.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,t.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,t.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,t.jsx)(B.$,{onClick:b,className:"mr-2",children:"Change SIM Slot"}),(0,t.jsx)(D.HM,{asChild:!0,children:(0,t.jsx)(B.$,{variant:"secondary",onClick:()=>l(!1),children:"Close"})})]})]})]}),(0,t.jsxs)(D.lG,{children:[(0,t.jsx)(D.zM,{children:(0,t.jsxs)(B.$,{onClick:E,children:[(0,t.jsx)(U.A,{className:"xl:size-6 size-5"}),(0,t.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!x&&(0,t.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(D.c7,{children:(0,t.jsx)(D.L3,{children:"Diagnostics Result"})}),(0,t.jsx)(D.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==f?void 0:f.netRegistration)==="Registered"?(0,t.jsx)(z.A,{className:"text-green-500"}):(0,t.jsx)(G.A,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==f?void 0:f.simState)==="READY"?(0,t.jsx)(z.A,{className:"text-green-500"}):(0,t.jsx)(G.A,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==f?void 0:f.manualAPN)==="Enabled"?(0,t.jsx)(z.A,{className:"text-green-500"}):(0,t.jsx)(G.A,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==f?void 0:f.wanIP)==="Connected"?(0,t.jsx)(z.A,{className:"text-green-500"}):(0,t.jsx)(G.A,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==f?void 0:f.cellSignal)==="Good"?(0,t.jsx)(z.A,{className:"text-green-500"}):(0,t.jsx)(G.A,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==f?void 0:f.modemTemp)==="Normal"?(0,t.jsx)(z.A,{className:"text-green-500"}):(0,t.jsx)(G.A,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==f?void 0:f.netReject)==="None"?(0,t.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,t.jsx)(z.A,{className:"text-green-500"}),(0,t.jsx)("span",{children:"None"})]}):(0,t.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,t.jsx)(G.A,{className:"text-red-500"}),(0,t.jsx)("span",{children:null==f?void 0:f.netReject})]})]})]})]}),x&&(0,t.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(D.c7,{children:(0,t.jsx)(D.L3,{children:"Running Diagnostics"})}),(0,t.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,t.jsx)(_(),{color:"#6D28D9"})}),(0,t.jsx)(D.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,t.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,t.jsx)("div",{children:(0,t.jsx)(A,{})}),(0,t.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,t.jsx)(C,{}),(0,t.jsx)(I,{}),(0,t.jsx)(eF,{}),(0,t.jsx)(M,{})]})]}),(0,t.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,t.jsx)(d,{data:i,isLoading:a}),(0,t.jsx)(p,{data:i,isLoading:a,dataConnectionState:c,connectionStateLoading:u}),(0,t.jsx)(h,{data:i,isLoading:a,bytesSent:j,bytesReceived:N}),(0,t.jsx)(v,{data:i,isLoading:a})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,t.jsx)("div",{children:(0,t.jsx)(eO,{data:i,isLoading:a})})]}),(0,t.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,t.jsx)("div",{children:(0,t.jsx)(V,{bands:S,isLoading:a})})]})]})}},45934:(e,s,l)=>{"use strict";l.d(s,{E:()=>a});var t=l(20475);l(20107);var n=l(29395),r=l(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:l,...n}=e;return(0,t.jsx)("div",{className:(0,r.cn)(i({variant:l}),s),...n})}},42541:(e,s,l)=>{"use strict";l.d(s,{$:()=>d,r:()=>o});var t=l(20475),n=l(20107),r=l(61837),i=l(29395),a=l(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:l,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,t.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:l})),ref:s,...c})});d.displayName="Button"},72167:(e,s,l)=>{"use strict";l.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var t=l(20475),n=l(20107),r=l(22250);let i=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",l),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",l),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",l),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",l),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",l),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",l),...n})});u.displayName="CardFooter"},1307:(e,s,l)=>{"use strict";l.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var t=l(20475),n=l(20107),r=l(81155),i=l(58601),a=l(58736),o=l(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:l,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(l||m.replace(/:/g,""));return(0,t.jsx)(c.Provider,{value:{config:d},children:(0,t.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,t.jsx)(x,{id:p,config:d}),(0,t.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:l}=e,n=Object.entries(l).filter(e=>{let[s,l]=e;return l.theme||l.color});return n.length?(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[l,t]=e;return"\n".concat(t," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[t,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[l])||n.color;return r?" --color-".concat(t,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:l,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:f,nameKey:g,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,l="".concat(j||s.dataKey||s.name||"value"),n=v(N,s,l),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,t.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,t.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!l||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,t.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,t.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let l="".concat(g||e.name||e.dataKey||"value"),n=v(N,e,l),r=f||e.payload.fill||e.color;return(0,t.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,t.jsxs)(t.Fragment,{children:[(null==n?void 0:n.icon)?(0,t.jsx)(n.icon,{}):!c&&(0,t.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,t.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,t.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,t.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,t.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function v(e,s,l){if("object"!=typeof s||null===s)return;let t="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=l;return l in s&&"string"==typeof s[l]?n=s[l]:t&&l in t&&"string"==typeof t[l]&&(n=t[l]),n in e?e[n]:e[l]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:l,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,t.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",l),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),l=v(d,e,s);return(0,t.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==l?void 0:l.icon)&&!n?(0,t.jsx)(l.icon,{}):(0,t.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==l?void 0:l.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,l)=>{"use strict";l.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>v,c7:()=>p,lG:()=>o,rr:()=>f,zM:()=>d});var t=l(20475),n=l(20107),r=l(60241),i=l(7197),a=l(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",l),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:l,children:n,...o}=e;return(0,t.jsxs)(c,{children:[(0,t.jsx)(m,{}),(0,t.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",l),...o,children:[n,(0,t.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(i.MKb,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...l}=e;return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...l})};p.displayName="DialogHeader";let h=e=>{let{className:s,...l}=e;return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...l})};h.displayName="DialogFooter";let v=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",l),...n})});v.displayName=r.hE.displayName;let f=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",l),...n})});f.displayName=r.VY.displayName},36760:(e,s,l)=>{"use strict";l.d(s,{E:()=>r});var t=l(20475),n=l(22250);function r(e){let{className:s,...l}=e;return(0,t.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...l})}},32857:(e,s,l)=>{"use strict";l.d(s,{dj:()=>m,oR:()=>u});var t=l(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:l}=s;return l?i(l):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===l||void 0===l?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,l=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>c({type:"DISMISS_TOAST",toastId:l});return c({type:"ADD_TOAST",toast:{...s,id:l,open:!0,onOpenChange:e=>{e||t()}}}),{id:l,dismiss:t,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:l}})}}function m(){let[e,s]=t.useState(d);return t.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,l)=>{"use strict";l.d(s,{cn:()=>r});var t=l(64901),n=l(868);function r(){for(var e=arguments.length,s=Array(e),l=0;l{"use strict";l.d(s,{a:()=>t});let t=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var t;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(l));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*l+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let o=await a.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(s&&(null===(t=o.response)||void 0===t?void 0:t.status)==="timeout")throw Error("AT command timed out after ".concat(l," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,8520,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-968670dca7ea8ab7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-968670dca7ea8ab7.js deleted file mode 100644 index 5586514..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-968670dca7ea8ab7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{68166:(e,s,t)=>{Promise.resolve().then(t.bind(t,55885))},55885:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eH});var l=t(95155),r=t(12115),n=t(20241),a=t(35007),i=t(25488),d=t(39286);let c=e=>{var s,t,r,n,c,o,m,x;let{data:u,isLoading:h,hideSensitiveData:p}=e;return(0,l.jsxs)(a.Zp,{children:[(0,l.jsxs)(a.aR,{children:[(0,l.jsx)(a.ZB,{children:"Sim Card"}),(0,l.jsx)(a.BT,{children:"Sim card information"})]}),(0,l.jsxs)(a.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),h?(0,l.jsx)(i.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==u?void 0:u.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),h?(0,l.jsx)(i.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==u?void 0:u.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==u?void 0:u.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),h?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==u?void 0:u.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),h?(0,l.jsx)(i.E,{className:"h-4 w-[140px]"}):p?(0,l.jsxs)("i",{children:[null==u?void 0:null===(t=u.simCard)||void 0===t?void 0:null===(s=t.phoneNumber)||void 0===s?void 0:s.replace(/[0-9a-zA-Z]/g,"0")," (Masked)"]}):(0,l.jsx)("p",{className:"font-bold",children:null==u?void 0:u.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),h?(0,l.jsx)(i.E,{className:"h-4 w-[140px]"}):p?(0,l.jsxs)("i",{children:[null==u?void 0:null===(n=u.simCard)||void 0===n?void 0:null===(r=n.imsi)||void 0===r?void 0:r.replace(/[0-9a-zA-Z]/g,"X")," (Masked)"]}):(0,l.jsx)("p",{className:"font-bold",children:null==u?void 0:u.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),h?(0,l.jsx)(i.E,{className:"h-4 w-[140px]"}):p?(0,l.jsxs)("i",{children:[null==u?void 0:null===(o=u.simCard)||void 0===o?void 0:null===(c=o.iccid)||void 0===c?void 0:c.replace(/[0-9a-zA-Z]/g,"X")," (Masked)"]}):(0,l.jsx)("p",{className:"font-bold",children:null==u?void 0:u.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),h?(0,l.jsx)(i.E,{className:"h-4 w-[140px]"}):p?(0,l.jsxs)("i",{children:[null==u?void 0:null===(x=u.simCard)||void 0===x?void 0:null===(m=x.imei)||void 0===m?void 0:m.replace(/[0-9a-zA-Z]/g,"X")," (Masked)"]}):(0,l.jsx)("p",{className:"font-bold",children:null==u?void 0:u.simCard.imei})]})]})]})},o={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},m={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},x={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},u=e=>x[e]||"Unknown",h=e=>{let{data:s,isLoading:t,dataConnectionState:r,connectionStateLoading:n}=e;return(0,l.jsxs)(a.Zp,{children:[(0,l.jsxs)(a.aR,{children:[(0,l.jsx)(a.ZB,{children:"Connection"}),(0,l.jsx)(a.BT,{children:"Connection information"})]}),(0,l.jsxs)(a.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(i.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(i.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),n?(0,l.jsx)(i.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat("Connected"===r?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:r})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?u(s.connection.accessTechnology):"Unknown"})]})]})]})},p=e=>{let{data:s,isLoading:t,bytesSent:r,bytesReceived:n}=e;return(0,l.jsxs)(a.Zp,{children:[(0,l.jsxs)(a.aR,{children:[(0,l.jsx)(a.ZB,{children:"Data Transmission"}),(0,l.jsx)(a.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(a.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(i.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(i.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:r})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:n})]})]})]})};var f=t(9246);let g=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(a.Zp,{children:[(0,l.jsxs)(a.aR,{children:[(0,l.jsx)(a.ZB,{children:"Cellular Information"}),(0,l.jsx)(a.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(a.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)(f.TooltipProvider,{children:(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{children:"TAC"}),(0,l.jsx)(f.ZI,{children:(0,l.jsx)("div",{className:"grid grid-cols-1 gap-1",children:(0,l.jsx)("span",{className:"font-medium",children:"Region / Tracking Area Code"})})})]})}),t?(0,l.jsx)(i.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(i.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(i.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(d.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var v=t(30387),j=t(36),N=t(15255),w=t(12800),b=t(66963),y=t(90518);let A={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},C=()=>{let[e,s]=(0,r.useState)(()=>{let e=new Date;return Array.from({length:5},(s,t)=>({time:new Date(e.getTime()-(4-t)*3e3).toISOString(),rsrp:0,rsrq:0,sinr:0}))}),[t,n]=(0,r.useState)("rsrp"),[d,c]=(0,r.useState)(!0),[o,m]=(0,r.useState)(null),x=(0,r.useCallback)(async()=>{try{let e;let t=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!t.ok)throw Error("Failed to fetch signal metrics");try{e=await t.json()}catch(e){throw console.error("Error parsing JSON:",e),Error("Failed to parse signal metrics data")}let l=Math.min(e.rsrp.length,e.rsrq.length,e.sinr.length);if(0===l)throw Error("No signal metrics data available");let r=Array.from({length:l},(s,t)=>({time:e.rsrp[t].datetime,rsrp:S(e.rsrp[t].output),rsrq:S(e.rsrq[t].output),sinr:S(e.sinr[t].output)}));s(r),m(null)}catch(t){console.error("Error fetching metrics:",t),m(t instanceof Error?t.message:"An unknown error occurred");let e=new Date().toISOString();s(s=>{let t=[...s];return t.length>=20&&t.shift(),t.push({time:e,rsrp:0,rsrq:0,sinr:0}),t})}finally{c(!1)}},[]);(0,r.useEffect)(()=>{x();let e=setInterval(x,15e3);return()=>clearInterval(e)},[x]);let u=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return o?(0,l.jsx)(a.Zp,{children:(0,l.jsxs)(a.aR,{children:[(0,l.jsx)(a.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(a.BT,{children:o})]})}):(0,l.jsxs)(a.Zp,{children:[(0,l.jsxs)(a.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(a.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(a.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>n(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:A[e].label}),d?(0,l.jsx)(i.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:u[e].toFixed(0)})]},e))})]}),(0,l.jsx)(a.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(v.at,{config:A,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(j.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(N.d,{vertical:!1}),(0,l.jsx)(w.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(b.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(v.II,{content:(0,l.jsx)(v.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(y.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(a.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},k=e=>"".concat(Math.round(e/1048576)," MB"),I=()=>{let[e,s]=(0,r.useState)({total:0,used:0,available:0}),[t,n]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&n(!1)}catch(e){console.error("Failed to fetch memory information"),t&&n(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(a.Zp,{children:[(0,l.jsx)(a.aR,{children:(0,l.jsx)(a.ZB,{children:"Memory"})}),(0,l.jsx)(a.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(i.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:k(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(i.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:k(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(i.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:k(e.available)})]})]})})]})},E={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),R=()=>{let[e,s]=(0,r.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let[n,c]=(0,r.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[o,m]=(0,r.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[x,u]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();c(e=>null===e||x?l.latency:(r(e,l.latency,e=>c(e)),e));let n=T(),a=t.current,i={time:n,ms:l.latency,index:a.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...i,index:s+1,time:4===s?n:T()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...i,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),i].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),u(!0),o&&m(!1)}catch(s){console.error("Failed to fetch ping latency",s),o&&e.length>0&&m(!1)}},r=(e,s,t)=>{let l=performance.now(),r=s-e,n=s=>{let a=Math.min((s-l)/1500,1);t(Math.round(e+r*(a<.5?4*a*a*a:1-Math.pow(-2*a+2,3)/2))),a<1&&requestAnimationFrame(n)};requestAnimationFrame(n)};l();let n=setInterval(l,5e3);return()=>clearInterval(n)},[]),(0,l.jsxs)(a.Zp,{children:[(0,l.jsxs)(a.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(a.ZB,{children:"Ping Latency"}),null!==n&&(0,l.jsxs)(d.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(x?"":"opacity-70"),children:[n," ms ",!x&&"(cached)"]})]}),(0,l.jsx)(a.Wu,{children:o?(0,l.jsx)(i.E,{className:"h-[200px] w-full"}):(0,l.jsx)(v.at,{config:E,children:(0,l.jsxs)(j.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(N.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(w.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(b.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(v.II,{cursor:!1,content:(0,l.jsx)(v.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(y.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var M=t(14085),D=t(7837),P=t(4834),z=t(92598),L=t(80738),B=t(40886),G=t(26336),U=t(61594),_=t(23009),F=t.n(_),O=t(87365),Z=t(42576),q=t(29602);let Q=r.createContext(null);function H(){let e=r.useContext(Q);if(!e)throw Error("useCarousel must be used within a ");return e}let W=r.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:n,setApi:a,plugins:i,className:d,children:c,...o}=e,[m,x]=(0,Z.A)({...n,axis:"horizontal"===t?"x":"y"},i),[u,h]=r.useState(!1),[p,f]=r.useState(!1),g=r.useCallback(e=>{e&&(h(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=r.useCallback(()=>{null==x||x.scrollPrev()},[x]),j=r.useCallback(()=>{null==x||x.scrollNext()},[x]),N=r.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return r.useEffect(()=>{x&&a&&a(x)},[x,a]),r.useEffect(()=>{if(x)return g(x),x.on("reInit",g),x.on("select",g),()=>{null==x||x.off("select",g)}},[x,g]),(0,l.jsx)(Q.Provider,{value:{carouselRef:m,api:x,opts:n,orientation:t||((null==n?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:u,canScrollNext:p},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",d),role:"region","aria-roledescription":"carousel",...o,children:c})})});W.displayName="Carousel";let $=r.forwardRef((e,s)=>{let{className:t,...r}=e,{carouselRef:n,orientation:a}=H();return(0,l.jsx)("div",{ref:n,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===a?"-ml-4":"-mt-4 flex-col",t),...r})})});$.displayName="CarouselContent";let K=r.forwardRef((e,s)=>{let{className:t,...r}=e,{orientation:n}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===n?"pl-4":"pt-4",t),...r})});K.displayName="CarouselItem",r.forwardRef((e,s)=>{let{className:t,variant:r="outline",size:n="icon",...a}=e,{orientation:i,scrollPrev:d,canScrollPrev:c}=H();return(0,l.jsxs)(M.$,{ref:s,variant:r,size:n,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===i?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!c,onClick:d,...a,children:[(0,l.jsx)(O.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",r.forwardRef((e,s)=>{let{className:t,variant:r="outline",size:n="icon",...a}=e,{orientation:i,scrollNext:d,canScrollNext:c}=H();return(0,l.jsxs)(M.$,{ref:s,variant:r,size:n,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===i?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!c,onClick:d,...a,children:[(0,l.jsx)(O.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let V=e=>{let{id:s,bandNumber:t,earfcn:r,bandwidth:n,pci:i,rsrp:c,rsrq:o,sinr:m}=e;return(0,l.jsx)(a.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(d.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:i})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(c)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(c)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(o)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(o)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[o," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:t.includes("NR5G")?"NR-SNR":"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(m)>=(t.includes("NR5G")?20:14)?"bg-emerald-500 hover:bg-emerald-800":parseInt(m)>=-2?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[m," dB"]})]})]})})},J=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(a.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)(V,{...e},e.id)),(0,l.jsx)(a.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(a.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)($,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(a.Zp,{children:(0,l.jsxs)(a.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(i.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(i.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(i.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(i.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(i.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(i.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(i.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsx)(a.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,l.jsx)(V,{...e},e.id))})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)($,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(a.Zp,{children:(0,l.jsxs)(a.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=-2?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},X=function(e,s,t,l){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Unknown",n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:":",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:",";try{var i,d,c;return(null===(c=e.split("\n")[s])||void 0===c?void 0:null===(d=c.split(n)[t])||void 0===d?void 0:null===(i=d.split(a)[l])||void 0===i?void 0:i.replace(/"/g,"").trim())||r}catch(e){return r}},Y=function(e,s){var t,l;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=X((null===(l=e[15])||void 0===l?void 0:null===(t=l.response)||void 0===t?void 0:t.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"'.concat(s,'"'))))||"",0,1,4,r," ",","),a="IPV6"==s?n.replace(/::/g,":"):n;return["0.0.0.0","::","::0","::0:0:0:0:0:0:0:0","0:0:0:0:0:0:0:0"].includes(a)?r:a},ee=function(e,s,t,l,r){let n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"-";try{var a,i,d;if(!(null===(a=e[t])||void 0===a?void 0:a.response)||!(null===(i=e[r])||void 0===i?void 0:i.response))return n;let c=e[t].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),o=null===(d=c[0])||void 0===d?void 0:d.match(/\+QMAP: "WWAN",\d+,(\d+),/),m=o?o[1]:null;if(!m)return n;let x=e[r].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===m});if(!x)return n;let u=x.split(",");if(u.length<=l[s])return n;return u[l[s]].replace(/"/g,"").trim()||n}catch(e){return console.error("Error parsing DNS address:",e),n}},es=e=>{try{let s=e.match(/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/),t=e.split(".").length>4;return s?e:t?ev(e):e.replace(/:{3,}/g,"::")}catch(s){return console.error("Error formatting DNS address:",s),e}},et=e=>X(e,1,1,3),el=(e,s)=>({1:"Registered",2:"Searching",3:"Denied",4:"Unknown",5:"Roaming"})[Number(X(e,1,1,1))||Number(X(s,1,1,1))]||"Not Registered",er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g)||[],t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},en=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},ea=e=>{let s=[-140,-37625,-32768],t=e=>{var t;return(null==e?void 0:null===(t=e.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!s.includes(e)))||[]},l=t(e.split("\n").find(e=>e.includes("LTE"))),r=t(e.split("\n").find(e=>e.includes("NR5G"))),n=e=>Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length+125)/50*100)),a=l.length?n(l):null,i=r.length?n(r):null;return null!==a&&null!==i?"".concat(Math.round((a+i)/2),"%"):null!==a?"".concat(Math.round(a),"%"):null!==i?"".concat(Math.round(i),"%"):"Unknown%"},ei=function(e,s,t,l){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=t[s],a=l[s];return void 0===n||void 0===a||r?void 0!==n&&void 0!==a&&r?X(e,n,1,a).toUpperCase():"Unknown":parseInt(X(e,n,1,a),16).toString().toUpperCase()},ed=(e,s,t)=>{let l=t[s];return X(e,"NR5G-NSA"===s?2:1,1,l)},ec=e=>{let s=[-140,-32768,-37625],t=e=>X(e||"",0,1,1,"Unknown",":"," ").split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!s.includes(e))||[],l=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,r=e.split("\n"),n=l(t(r.find(e=>e.includes("LTE")))),a=l(t(r.find(e=>e.includes("NR5G"))));return n&&a?"".concat(Math.round((n+a)/2),"%"):n?"".concat(Math.round(n),"%"):a?"".concat(Math.round(a),"%"):"Unknown%"},eo=e=>{let s=e=>e.map(e=>X(e,0,1,3,"Unknown",":",",")),t=[...s(e.split("+QCAINFO").filter(e=>e.includes("LTE BAND"))),...s(e.split("+QCAINFO").filter(e=>e.includes("NR5G BAND")))];return t.length?t:["Unknown"]},em=e=>{let s=s=>e.split("+QCAINFO").filter(e=>e.includes(s)).map(e=>{var s,t;return(null===(t=e.split(":")[1])||void 0===t?void 0:null===(s=t.split(",")[1])||void 0===s?void 0:s.trim())||"Unknown"}),t=s("LTE BAND"),l=s("NR5G BAND");return[...t,...l].length?[...t,...l]:["Unknown"]},ex=e=>{let s=(s,t)=>e.split("+QCAINFO").filter(e=>e.includes(s)).map(e=>{var s;return t[null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]||"Unknown"}),t=s("LTE BAND",o),l=s("NR5G BAND",m);return[...t,...l].length?[...t,...l]:["Unknown"]},eu=(e,s)=>{let t=e=>{var s;return e&&(null===(s=e[8===e.length?4:5])||void 0===s?void 0:s.trim())||"Unknown"},l=e=>e.map(e=>{var s;return t(null===(s=e.split(":")[1])||void 0===s?void 0:s.split(","))}),r=e.split("+QCAINFO");return[l(r.filter(e=>e.includes("PCC")))[0],...l(r.filter(e=>e.includes("SCC")))].filter(e=>"Unknown"!==e)},eh=e=>{let s=e=>{var s;return e&&(null===(s=e[(()=>{switch(e.length){case 8:return 5;case 12:return 9;default:return 6}})()])||void 0===s?void 0:s.trim())||"Unknown"},t=e=>e.map(e=>{var t;return s(null===(t=e.split(":")[1])||void 0===t?void 0:t.split(","))}),l=e.split("+QCAINFO");return[t(l.filter(e=>e.includes("PCC")))[0],...t(l.filter(e=>e.includes("SCC")))].filter(e=>"Unknown"!==e)},ep=e=>{let s=e=>{var s;return e&&(null===(s=e[(()=>{switch(e.length){case 8:return 6;case 12:return 10;default:return 7}})()])||void 0===s?void 0:s.trim())||"Unknown"},t=e=>e.map(e=>{var t;return s(null===(t=e.split(":")[1])||void 0===t?void 0:t.split(","))}),l=e.split("+QCAINFO");return[t(l.filter(e=>e.includes("PCC")))[0],...t(l.filter(e=>e.includes("SCC")))].filter(e=>"Unknown"!==e)},ef=(e,s)=>{let t=e=>{var s;return e&&(null===(s=e[(()=>{switch(e.length){case 9:return 8;case 8:return 7;case 12:return 11;default:return 9}})()])||void 0===s?void 0:s.trim())||"Unknown"},l=(e,s)=>e.map(e=>{var s;let l=t(null===(s=e.split(":")[1])||void 0===s?void 0:s.split(","));if("-32768"===l)return"-";let r=parseInt(l)>=4e3?"4000":-3e3>parseInt(l)?"-":l;return isNaN(parseInt(r))||e.includes("LTE")?r||"Unknown":Math.round(parseInt(r)/100).toString()}),r=e.split("+QCAINFO");return[l(r.filter(e=>e.includes("PCC")),s)[0],...l(r.filter(e=>e.includes("SCC")),s)].filter(e=>"Unknown"!==e)},eg=e=>{let s=[-32768,-140],t=e=>X(e||"",0,1,1,"-32768",":"," ").split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!s.includes(e))||[],l=t(e.split("\n").find(e=>e.includes("LTE"))).length,r=t(e.split("\n").find(e=>e.includes("NR5G"))).length;return l&&r?"LTE ".concat(l," / NR ").concat(r):l?" LTE ".concat(l):r?"NR ".concat(r):"Unknown"},ev=e=>{try{let s=e.split(".");if(s.length<8)return e;let t=s.map(e=>{let s=parseInt(e,10);return isNaN(s)?"00":s.toString(16).padStart(2,"0")}),l=[];for(let e=0;ee.replace(/^0+/,"")||"0"),n=[],a=[];for(let e=0;e0&&(a.length>n.length&&(n=[...a]),a=[]);if(a.length>n.length&&(n=[...a]),n.length>=2){let e=[];for(let s=0;s{let[e,s]=(0,r.useState)(null),[t,l]=(0,r.useState)(!0),[n,a]=(0,r.useState)(null),[i,d]=(0,r.useState)(0),c=(0,r.useCallback)(async e=>{console.error("Error fetching home data:",e),i<2?(console.log("Attempting automatic recovery (attempt ".concat(i+1,"/2)...")),d(e=>e+1),await new Promise(e=>setTimeout(e,2e3)),o()):(console.error("Max retry attempts reached. Please refresh manually."),a(e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-",bandwidth:"Unknown"},cellularInfo:{cellId:"-",trackingAreaCode:"-",cellIdRaw:"-",trackingAreaCodeRaw:"-",physicalCellId:"-",earfcn:"-",mcc:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-",rawCarrierPrimaryDNS:"-",rawCarrierSecondaryDNS:"-"},timeAdvance:{lteTimeAdvance:"-",nrTimeAdvance:"-"}}))},[i]),o=(0,r.useCallback)(async()=>{try{var e,t,r,n,i,o,m,x,u,h,p,f,g,v,j,N,w,b,y,A,S,C,k,I,E,T;let l=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1");if(!l.ok)throw Error("API returned status ".concat(l.status));let c=await l.json();console.log(c);let R=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),M={simCard:{slot:X(c[0].response,1,1,0),state:c[6].response.includes("READY")?"Inserted":"Not Inserted",provider:X(c[2].response,1,1,2),phoneNumber:X(c[1].response,1,1,1),imsi:X(c[3].response,1,0,0),iccid:X(c[4].response,1,1,1,"Unknown",":"," "),imei:X(c[5].response,1,0,0)},connection:{apn:X(null===(e=c[7])||void 0===e?void 0:e.response,1,1,2,X(null===(t=c[12])||void 0===t?void 0:t.response,1,1,2)),operatorState:el(null===(r=c[8])||void 0===r?void 0:r.response,null===(n=c[16])||void 0===n?void 0:n.response)||"Unknown",functionalityState:"1"===X(null===(i=c[9])||void 0===i?void 0:i.response,1,1,0)?"Enabled":"Disabled",networkType:er(c[13].response)||"No Signal",modemTemperature:en(c[11].response)||"Unknown",accessTechnology:et(c[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(o=c[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===o?void 0:o.length)>1?"Multi":"Inactive",bandwidth:ex(c[13].response).join(", ")||"Unknown",connectedBands:eo(c[13].response).join(", ").replaceAll("LTE BAND ","B").replaceAll("NR5G BAND ","N")||"Unknown",signalStrength:ea(c[14].response)||"Unknown",mimoLayers:eg(c[14].response)||"Unknown"},cellularInfo:{cellId:ei(null===(m=c[10])||void 0===m?void 0:m.response,er(null===(x=c[13])||void 0===x?void 0:x.response),{"NR5G-SA":1,"NR5G-NSA":2,LTE:1},{"NR5G-SA":6,"NR5G-NSA":4,LTE:6},!1),trackingAreaCode:ei(null===(u=c[10])||void 0===u?void 0:u.response,er(null===(h=c[13])||void 0===h?void 0:h.response),{"NR5G-SA":1,"NR5G-NSA":2,LTE:1},{"NR5G-SA":8,"NR5G-NSA":10,LTE:12},!1),cellIdRaw:ei(null===(p=c[10])||void 0===p?void 0:p.response,er(null===(f=c[13])||void 0===f?void 0:f.response),{"NR5G-SA":1,"NR5G-NSA":2,LTE:1},{"NR5G-SA":6,"NR5G-NSA":4,LTE:6},!0),trackingAreaCodeRaw:ei(null===(g=c[10])||void 0===g?void 0:g.response,er(null===(v=c[13])||void 0===v?void 0:v.response),{"NR5G-SA":1,"NR5G-NSA":2,LTE:1},{"NR5G-SA":8,"NR5G-NSA":10,LTE:12},!0),physicalCellId:eu(c[13].response,er(c[13].response)).join(", ")||"Unknown",earfcn:em(c[13].response).join(", "),mcc:ed(null===(j=c[10])||void 0===j?void 0:j.response,er(null===(N=c[13])||void 0===N?void 0:N.response),{"NR5G-NSA":2,LTE:4,"NR5G-SA":4}),mnc:ed(null===(w=c[10])||void 0===w?void 0:w.response,er(null===(b=c[13])||void 0===b?void 0:b.response),{"NR5G-NSA":3,LTE:5,"NR5G-SA":5}),signalQuality:ec(c[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(T=null===(y=eo(c[13].response))||void 0===y?void 0:y.length)&&void 0!==T?T:0},(e,s)=>s+1)||[1],bandNumber:eo(c[13].response)||["Unknown"],earfcn:em(c[13].response),bandwidth:ex(c[13].response)||["Unknown"],pci:eu(c[13].response,er(c[13].response))||["Unknown"],rsrp:eh(c[13].response),rsrq:ep(c[13].response)||["Unknown"],sinr:ef(c[13].response,er(c[13].response))||["Unknown"]},networkAddressing:{publicIPv4:R.ok?(await R.json()).public_ip||"-":"Can't fetch public IP",cellularIPv4:Y(c,"IPV4"),cellularIPv6:Y(c,"IPV6"),carrierPrimaryDNS:es(ee(c,er(null===(A=c[13])||void 0===A?void 0:A.response),15,{"NR5G-SA":5,"NR5G-NSA":6,LTE:6},20)),carrierSecondaryDNS:es(ee(c,er(null===(S=c[13])||void 0===S?void 0:S.response),15,{"NR5G-SA":6,"NR5G-NSA":7,LTE:7},20)),rawCarrierPrimaryDNS:ee(c,er(null===(C=c[13])||void 0===C?void 0:C.response),15,{"NR5G-SA":5,"NR5G-NSA":6,LTE:6},20),rawCarrierSecondaryDNS:ee(c,er(null===(k=c[13])||void 0===k?void 0:k.response),15,{"NR5G-SA":6,"NR5G-NSA":7,LTE:7},20)},timeAdvance:{lteTimeAdvance:X(null===(I=c[21])||void 0===I?void 0:I.response,1,1,2),nrTimeAdvance:X(null===(E=c[22])||void 0===E?void 0:E.response,1,1,2)}};s(M),d(0),a(null),console.log("Processed home data:",M)}catch(e){console.error("Error fetching home data:",e),c(e instanceof Error?e:Error(String(e)))}finally{l(!1)}},[c]);return(0,r.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await o()}finally{s&&l(!1)}})(),e=setInterval(()=>{o()},15e3),()=>{s=!1,clearInterval(e)}},[o]),{data:e,isLoading:t,error:n,refresh:(0,r.useCallback)(async()=>{l(!0),await o(),l(!1)},[o])}},eN=()=>{let[e,s]=(0,r.useState)("Unknown"),[t,l]=(0,r.useState)(!0),n=(0,r.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,r.useEffect)(()=>{n();let e=setInterval(n,3e4);return()=>clearInterval(e)},[n]),{dataConnectionState:e,refresh:(0,r.useCallback)(()=>{n()},[n]),isStateLoading:t}},ew=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},eb=()=>{let[e,s]=(0,r.useState)("0 Bytes"),[t,l]=(0,r.useState)("0 Bytes"),[n,a]=(0,r.useState)(""),i=e=>{var t,r;let n=Array.isArray(e)?e[e.length-1]:e;if(!n)return;a(n.datetime);let i=n.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),d=null===(t=i.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),c=null===(r=i.find(e=>e.includes("+QGDNRCNT:")))||void 0===r?void 0:r.trim();if(!d||!c){console.error("Missing required data in response");return}let[o,m]=d.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[x,u]=c.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(ew((m||0)+(x||0))),l(ew((o||0)+(u||0)))},d=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();i(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,r.useEffect)(()=>{d();let e=setInterval(d,12e3);return()=>clearInterval(e)},[d]),{bytesSent:e,bytesReceived:t,lastUpdateTime:n,refresh:(0,r.useCallback)(()=>{d()},[d])}},ey=()=>{let[e,s]=(0,r.useState)(!1),[t,l]=(0,r.useState)(null),n=(e,s)=>{var t,l,r,n;let a=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),i=null===(n=s.split("\n")[1])||void 0===n?void 0:null===(r=n.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim();return"1"===a||"1"===i?"Registered":"Not Registered"},a=(e,s)=>{var t,l,r,n;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(n=s.split("\n")[1])||void 0===n?void 0:null===(r=n.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},i=e=>{var s,t,l,r;let n=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),a=null===(r=e.split("\n")[2])||void 0===r?void 0:null===(l=r.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return n&&"1"===n||a&&"1"===a?"Connected":"Disconnected"},d=e=>{try{var s,t,l,r;let n=e.trim().split("\n").map(e=>e.trim()),a=n.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),i=n.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),d=[];a&&(d=null==a?void 0:null===(t=a.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let c=[];if(i&&(c=null==i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:null===(l=r.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),d=d.filter(e=>-32768!==e),c=c.filter(e=>-32768!==e),d=d.filter(e=>-140!==e),c=c.filter(e=>-140!==e),d.length>0){let e=d.reduce((e,s)=>e+s,0)/d.length;if(c.length>0){let s=c.reduce((e,s)=>e+s,0)/c.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(c.length>0)return c.reduce((e,s)=>e+s,0)/c.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},c=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},o=e=>{var s,t,l,r,n,a;let i=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),d=null===(r=e.split("\n")[2])||void 0===r?void 0:null===(l=r.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),c=null===(a=e.split("\n")[3])||void 0===a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim(),o=["0"!==i?"".concat(i):null,"0"!==d?"".concat(d):null,"0"!==c?"".concat(c):null].filter(Boolean);return o.length>0?o.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:n(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:a(s[3].response,s[4].response),wanIP:i(s[5].response),cellSignal:d(s[6].response),modemTemp:c(s[7].response),netReject:o(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eA=t(22734),eS=t(23950),eC=t(29191),ek=t(66889),eI=t(91544),eE=t(32796),eT=t(77607),eR=t(58237),eM=t(86878),eD=t(96781),eP=t(54113),ez=t(21773),eL=t(67072),eB=t(10830);let eG=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{var e,s,t;let{toast:i}=(0,n.dj)(),[c,o]=(0,r.useState)(null),[m,x]=(0,r.useState)(null),[u,h]=(0,r.useState)(null),[p,f]=(0,r.useState)(!1),[g,v]=(0,r.useState)(!1),[j,N]=(0,r.useState)(!1),[w,b]=(0,r.useState)(0),[y,A]=(0,r.useState)(!1),[S,C]=(0,r.useState)(!1),k=(0,r.useRef)(null),I=(0,r.useRef)(null),E=(0,r.useCallback)(()=>{o(null),x(null),h(null),f(!1),v(!1),N(!1),b(0),I.current=null,k.current&&(clearInterval(k.current),k.current=null)},[]);(0,r.useEffect)(()=>{let e=sessionStorage.getItem("speedtestData");if(e&&o(JSON.parse(e)),p&&!g){A(!0);let e=setTimeout(()=>{A(!1)},1e4);return()=>clearTimeout(e)}},[p,g]),(0,r.useEffect)(()=>()=>{k.current&&clearInterval(k.current)},[]);let T=(0,r.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){g&&(h("Test ended unexpectedly"),v(!1)),k.current&&(clearInterval(k.current),k.current=null);return}if(s.type)try{switch(s.type){case"ping":x("ping"),s.ping&&"number"==typeof s.ping.progress&&b(s.ping.progress);break;case"download":case"upload":"ping"!==m&&x(s.type);break;case"result":if(s.download&&s.upload&&s.ping){I.current=s,o(s),f(!0),v(!1),sessionStorage.setItem("speedtestData",JSON.stringify(s)),k.current&&(clearInterval(k.current),k.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(I.current=s,o(s))}catch(e){console.error("Error polling speedtest status:",e),g&&(h("Failed to get speedtest status"),v(!1),k.current&&(clearInterval(k.current),k.current=null))}},[m,g]),R=(0,r.useCallback)(async()=>{if(!y)try{if(E(),N(!0),v(!0),C(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");k.current=setInterval(T,300),N(!1)}catch(e){console.error("Speedtest start error:",e),h(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),N(!1),v(!1)}},[y,E,T]);return(0,l.jsxs)(a.Zp,{children:[(0,l.jsx)(a.aR,{children:(0,l.jsx)(a.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(a.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(D.lG,{open:S,onOpenChange:C,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eB.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(B.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{y||(e.preventDefault(),R())}})]})}),(0,l.jsxs)(D.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,l.jsx)(D.c7,{children:(0,l.jsxs)(D.L3,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2"})," Network Speedtest",p&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2",children:"Complete"}),g&&!p&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,s,t,r,n,i,d,o,x,h,f,v,N,b,y,A,S,C,k,I,T,M,D,P,z,L;if(u)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eS.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{E(),R()},children:"Please try again."})]})]});if(j||g&&!c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===m)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(w||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==c?void 0:c.ping)?"Latency: ".concat(c.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(c.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(p)return c&&c.download&&c.upload&&c.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(a.Zp,{children:[(0,l.jsx)(a.aR,{children:(0,l.jsxs)(a.ZB,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(a.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eE.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eU(null===(t=c.download)||void 0===t?void 0:t.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(i=c.download)||void 0===i?void 0:null===(n=i.latency)||void 0===n?void 0:null===(r=n.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eR.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eU(null===(d=c.upload)||void 0===d?void 0:d.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(h=c.upload)||void 0===h?void 0:null===(x=h.latency)||void 0===x?void 0:null===(o=x.iqm)||void 0===o?void 0:o.toFixed(2))&&void 0!==D?D:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(a.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(P=null===(v=c.ping)||void 0===v?void 0:null===(f=v.latency)||void 0===f?void 0:f.toFixed(2))&&void 0!==P?P:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eM.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(z=null===(b=c.ping)||void 0===b?void 0:null===(N=b.jitter)||void 0===N?void 0:N.toFixed(2))&&void 0!==z?z:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(a.Zp,{children:[(0,l.jsx)(a.aR,{children:(0,l.jsxs)(a.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(a.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:c.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=c.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(A=c.interface)||void 0===A?void 0:A.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(S=c.server)||void 0===S?void 0:S.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(C=c.server)||void 0===C?void 0:C.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(k=c.server)||void 0===k?void 0:k.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(I=c.server)||void 0===I?void 0:I.host)||"N/A"})]}),(null===(T=c.result)||void 0===T?void 0:T.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eP.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:c.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eS.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{E(),R()},children:"Run the test again"})]})]});if(!m||!c)return null;if(!c[m])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(ez.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let B=c[m],G="download"===m;return(0,l.jsxs)(a.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(a.aR,{children:(0,l.jsxs)(a.ZB,{className:"flex items-center",children:[G?(0,l.jsx)(eE.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eR.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",G?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(a.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eU(B.bandwidth)})})}),(0,l.jsx)(a.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eG(B.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(B.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ek.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(L=null===(s=B.latency)||void 0===s?void 0:null===(e=s.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==L?L:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(D.Es,{className:"flex justify-between items-center",children:p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(M.$,{onClick:()=>{y?i({title:"Please wait",description:"Cooldown period active"}):(E(),R())},variant:"outline",disabled:y,children:[(0,l.jsx)(ez.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(M.$,{onClick:()=>C(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:g?(0,l.jsx)(M.$,{onClick:()=>{E(),C(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(M.$,{onClick:()=>C(!1),children:"Close"})})})]})]}),(0,l.jsxs)(a.BT,{children:[(0,l.jsx)("div",{className:"relative flex flex-col items-center justify-center",children:y?"Please wait 10 seconds before starting another test.":g?"Test in progress...":"Run a speed test to check your internet connection."}),c?(0,l.jsxs)("div",{className:"mt-4",children:[(0,l.jsx)("div",{className:"relative flex flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row",children:[(0,l.jsxs)("div",{className:"grid place-items-center mx-2",children:[(0,l.jsx)(eE.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}),(null==c?void 0:c.download)?"".concat(eU(null==c?void 0:null===(e=c.download)||void 0===e?void 0:e.bandwidth)):"N/A"]}),(0,l.jsxs)("div",{className:"grid place-items-center mx-2",children:[(0,l.jsx)(eR.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(null==c?void 0:c.upload)?"".concat(eU(null==c?void 0:null===(s=c.upload)||void 0===s?void 0:s.bandwidth)):"N/A"]}),(0,l.jsxs)("div",{className:"grid place-items-center mx-2",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 lg:size-6 animate-pulse"}),(null==c?void 0:c.ping)?"".concat(null==c?void 0:null===(t=c.ping)||void 0===t?void 0:t.latency," ms"):"N/A"]})]})}),(0,l.jsx)("div",{className:"relative flex flex-col items-center justify-center mt-2",children:(0,l.jsx)("div",{className:"grid grid-cols-1 grid-flow-row",children:(0,l.jsx)("div",{className:"grid place-items-center ",children:!g&&c.timestamp?"Latest Test: ".concat(null==c?void 0:c.timestamp):""})})})]}):g?(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:'"Test in progress..."'}):(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:'"Previous data not available."'})]})]})]})};var eF=t(89622);let eO=e=>{let{data:s,isLoading:t,hideSensitiveData:r}=e;return(0,l.jsx)(a.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):r?(0,l.jsx)("i",{children:"127.0.0.1 (Masked)"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,l.jsx)("div",{className:"flex items-center gap-x-2",children:(0,l.jsx)("p",{children:t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):r?(0,l.jsx)("i",{children:"127.0.0.1 (Masked)"}):null==s?void 0:s.networkAddressing.cellularIPv4})})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):r?(0,l.jsx)("i",{children:"::1 (Masked)"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)(f.TooltipProvider,{children:(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{children:null==s?void 0:s.networkAddressing.carrierPrimaryDNS}),(0,l.jsx)(f.ZI,{children:(0,l.jsx)("p",{children:null==s?void 0:s.networkAddressing.rawCarrierPrimaryDNS})})]})})})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(i.E,{className:"h-4 w-[100px]"}):(0,l.jsx)(f.TooltipProvider,{children:(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{children:null==s?void 0:s.networkAddressing.carrierSecondaryDNS}),(0,l.jsx)(f.ZI,{children:(0,l.jsx)("p",{children:null==s?void 0:s.networkAddressing.rawCarrierSecondaryDNS})})]})})})]})]})})};var eZ=t(32652),eq=t(48617);let eQ=e=>{let{lteTimeAdvance:s="0",nrTimeAdvance:t="0",isLoading:r=!1,networkType:n="Unknown"}=e,d=s&&"Unknown"!==s&&"-"!==s&&parseInt(s,10)||0,c=t&&"Unknown"!==t&&"-"!==t&&parseInt(t,10)||0,o=d>0?(e=>((e<0||e>1282)&&(console.warn("Invalid LTE TA value: ".concat(e,", using 0 instead")),e=0),1/3072e4*(16*e)*3e8/2/1e3))(d):0,m=c>0?(e=>(e<0&&(console.warn("Invalid negative NTA value: ".concat(e,", using 0 instead")),e=0),3e8*e*(1/196608e4)/2/1e3))(c):0,x=e=>0===e?"-":e<1?"".concat((1e3*e).toFixed(0)," m"):"".concat(e.toFixed(2)," km");return(0,l.jsxs)(a.Zp,{className:"overflow-hidden",children:[(0,l.jsx)(a.aR,{children:(0,l.jsx)(a.ZB,{children:"Distance to Cell Tower"})}),(0,l.jsx)(a.Wu,{children:r?(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eZ.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"LTE"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(i.E,{className:"h-4 w-16 mr-2"}),(0,l.jsx)(f.TooltipProvider,{children:(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(eq.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(f.ZI,{children:(0,l.jsx)(i.E,{className:"h-4 w-16 mr-2"})})]})})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eZ.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"NR5G"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(i.E,{className:"h-4 w-16 mr-2"}),(0,l.jsx)(f.TooltipProvider,{children:(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(eq.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(f.ZI,{children:(0,l.jsx)(i.E,{className:"h-4 w-16 mr-2"})})]})})]})]})]}):(0,l.jsxs)("div",{className:"space-y-3",children:[d>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eZ.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"LTE"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2",children:x(o)}),(0,l.jsx)(f.TooltipProvider,{children:(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(eq.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(f.ZI,{children:(0,l.jsxs)("p",{className:"max-w-xs text-xs mr-2",children:["LTE TA ",d]})})]})})]})]}),c>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eZ.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"NR5G"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2",children:x(m)}),(0,l.jsx)(f.TooltipProvider,{children:(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(eq.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(f.ZI,{children:(0,l.jsxs)("p",{className:"max-w-xs text-xs mr-2",children:["NTA ",c]})})]})})]})]}),!d&&!c&&(0,l.jsx)("div",{className:"h-16 flex items-center justify-center",children:(0,l.jsx)("p",{className:"text-muted-foreground text-sm",children:"No timing advance data available"})})]})})]})},eH=()=>{var e,s,t;let{toast:a}=(0,n.dj)(),[i,d]=(0,r.useState)(!1),[o,m]=(0,r.useState)(!1),{data:x,isLoading:u,refresh:f}=ej(),{dataConnectionState:v,isStateLoading:j,refresh:N}=eN(),{isRunningDiagnostics:w,runDiagnosticsData:b,startDiagnostics:y}=ey(),{bytesSent:A,bytesReceived:S,refresh:k}=eb(),E=async()=>{try{var e,s;let t=await (0,eF.a)("AT+QUIMSLOT?"),l=null===(e=t.response)||void 0===e?void 0:e.raw_output.split("\n")[1].split(":")[1].trim(),r=await (0,eF.a)("1"===l?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===r.status||(null===(s=r.response)||void 0===s?void 0:s.status)==="error")throw Error("Failed to change SIM slot");a({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eF.a)("AT+COPS=2"),setTimeout(async()=>{let e=await (0,eF.a)("AT+COPS=0");if("error"===e.status)throw Error("Failed to reconnect to the network");a({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(T,3e3)}catch(e){console.error("Error changing SIM slot:",e),a({variant:"destructive",title:"SIM Slot Change Failed",description:e instanceof Error?e.message:"Failed to change the SIM slot"})}},T=(0,r.useCallback)(async()=>{try{await Promise.all([f(),N(),k()])}catch(e){console.error("Error refreshing data:",e),a({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[f,N,k]),[_,O]=(0,r.useState)([]),Z=async()=>{try{await y()}catch(e){console.error("Error running diagnostics:",e)}};return(0,r.useEffect)(()=>{b&&console.log("Diagnostics data updated:",b)},[b]),(0,r.useEffect)(()=>{if(x&&x.currentBands){var e;let s=null===(e=x.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,r,n,a,i,d;return{id:e,bandNumber:(null===(t=x.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=x.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(r=x.currentBands.bandwidth)||void 0===r?void 0:r[s])||"N/A",pci:(null===(n=x.currentBands.pci)||void 0===n?void 0:n[s])||"N/A",rsrp:(null===(a=x.currentBands.rsrp)||void 0===a?void 0:a[s])||"N/A",rsrq:(null===(i=x.currentBands.rsrq)||void 0===i?void 0:i[s])||"N/A",sinr:(null===(d=x.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&O(s)}},[x]),(0,r.useEffect)(()=>{u||(null==x?void 0:x.simCard.state)!=="Not Inserted"||d(!0)},[x,u]),(0,l.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(M.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:T,children:(0,l.jsx)(P.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(0,l.jsxs)(M.$,{onClick:()=>m(e=>!e),children:[o?(0,l.jsx)(z.A,{className:"xl:size-6 size-5"}):(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsxs)("span",{className:"hidden md:block",children:[o?"Show":"Hide"," Sensitive Data"]})]}),(null==x?void 0:x.simCard.state)==="Not Inserted"&&(0,l.jsxs)(D.lG,{open:i,onOpenChange:d,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)(M.$,{variant:"destructive",children:[(0,l.jsx)(eA.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eA.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(M.$,{onClick:E,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(D.HM,{asChild:!0,children:(0,l.jsx)(M.$,{variant:"secondary",onClick:()=>d(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(D.lG,{children:[(0,l.jsx)(D.zM,{children:(0,l.jsxs)(M.$,{onClick:Z,children:[(0,l.jsx)(B.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!w&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(D.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==b?void 0:b.netRegistration)==="Registered"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(U.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==b?void 0:b.simState)==="READY"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(U.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==b?void 0:b.manualAPN)==="Enabled"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(U.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==b?void 0:b.wanIP)==="Connected"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(U.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==b?void 0:b.cellSignal)==="Good"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(U.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==b?void 0:b.modemTemp)==="Normal"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(U.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==b?void 0:b.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(U.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==b?void 0:b.netReject})]})]})]})]}),w&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(F(),{color:"#6D28D9"})}),(0,l.jsx)(D.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(C,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(eQ,{lteTimeAdvance:null==x?void 0:null===(e=x.timeAdvance)||void 0===e?void 0:e.lteTimeAdvance,nrTimeAdvance:null==x?void 0:null===(s=x.timeAdvance)||void 0===s?void 0:s.nrTimeAdvance,isLoading:u,networkType:null==x?void 0:null===(t=x.connection)||void 0===t?void 0:t.networkType}),(0,l.jsx)(I,{}),(0,l.jsx)(e_,{}),(0,l.jsx)(R,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(c,{data:x,isLoading:u,hideSensitiveData:o}),(0,l.jsx)(h,{data:x,isLoading:u,dataConnectionState:v,connectionStateLoading:j}),(0,l.jsx)(p,{data:x,isLoading:u,bytesSent:A,bytesReceived:S}),(0,l.jsx)(g,{data:x,isLoading:u})]})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,l.jsx)("div",{children:(0,l.jsx)(eO,{data:x,isLoading:u,hideSensitiveData:o})})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)("div",{children:(0,l.jsx)(J,{bands:_,isLoading:u})})]})]})}},39286:(e,s,t)=>{"use strict";t.d(s,{E:()=>i});var l=t(95155);t(12115);var r=t(31027),n=t(29602);let a=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:s,variant:t,...r}=e;return(0,l.jsx)("div",{className:(0,n.cn)(a({variant:t}),s),...r})}},14085:(e,s,t)=>{"use strict";t.d(s,{$:()=>c,r:()=>d});var l=t(95155),r=t(12115),n=t(12317),a=t(31027),i=t(29602);let d=(0,a.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:t,variant:r,size:a,asChild:c=!1,...o}=e,m=c?n.DX:"button";return(0,l.jsx)(m,{className:(0,i.cn)(d({variant:r,size:a,className:t})),ref:s,...o})});c.displayName="Button"},35007:(e,s,t)=>{"use strict";t.d(s,{BT:()=>c,Wu:()=>o,ZB:()=>d,Zp:()=>a,aR:()=>i,wL:()=>m});var l=t(95155),r=t(12115),n=t(29602);let a=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)("div",{ref:s,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...r})});a.displayName="Card";let i=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...r})});i.displayName="CardHeader";let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)("h3",{ref:s,className:(0,n.cn)("font-semibold leading-none tracking-tight",t),...r})});d.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",t),...r})});m.displayName="CardFooter"},30387:(e,s,t)=>{"use strict";t.d(s,{II:()=>h,Nt:()=>p,at:()=>x});var l=t(95155),r=t(12115),n=t(58581),a=t(27112),i=t(86354),d=t(29602);let c={light:"",dark:".dark"},o=r.createContext(null);function m(){let e=r.useContext(o);if(!e)throw Error("useChart must be used within a ");return e}let x=r.forwardRef((e,s)=>{let{id:t,className:a,children:i,config:c,...m}=e,x=r.useId(),h="chart-".concat(t||x.replace(/:/g,""));return(0,l.jsx)(o.Provider,{value:{config:c},children:(0,l.jsxs)("div",{"data-chart":h,ref:s,className:(0,d.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",a),...m,children:[(0,l.jsx)(u,{id:h,config:c}),(0,l.jsx)(n.u,{children:i})]})})});x.displayName="Chart";let u=e=>{let{id:s,config:t}=e,r=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return r.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(c).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(r.map(e=>{var s;let[l,r]=e,n=(null===(s=r.theme)||void 0===s?void 0:s[t])||r.color;return n?" --color-".concat(l,": ").concat(n,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},h=a.m,p=r.forwardRef((e,s)=>{let{active:t,payload:n,className:a,indicator:i="dot",hideLabel:c=!1,hideIndicator:o=!1,label:x,labelFormatter:u,labelClassName:h,formatter:p,color:g,nameKey:v,labelKey:j}=e,{config:N}=m(),w=r.useMemo(()=>{var e;if(c||!(null==n?void 0:n.length))return null;let[s]=n,t="".concat(j||s.dataKey||s.name||"value"),r=f(N,s,t),a=j||"string"!=typeof x?null==r?void 0:r.label:(null===(e=N[x])||void 0===e?void 0:e.label)||x;return u?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",h),children:u(a,n)}):a?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",h),children:a}):null},[x,u,n,c,h,N,j]);if(!t||!(null==n?void 0:n.length))return null;let b=1===n.length&&"dot"!==i;return(0,l.jsxs)("div",{ref:s,className:(0,d.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",a),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:n.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),r=f(N,e,t),n=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,d.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===i&&"items-center"),children:p&&(null==e?void 0:e.value)!==void 0&&e.name?p(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==r?void 0:r.icon)?(0,l.jsx)(r.icon,{}):!o&&(0,l.jsx)("div",{className:(0,d.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===i,"w-1":"line"===i,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===i,"my-0.5":b&&"dashed"===i}),style:{"--color-bg":n,"--color-border":n}}),(0,l.jsxs)("div",{className:(0,d.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==r?void 0:r.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,r=t;return t in s&&"string"==typeof s[t]?r=s[t]:l&&t in l&&"string"==typeof l[t]&&(r=l[t]),r in e?e[r]:e[t]}p.displayName="ChartTooltip",i.s,r.forwardRef((e,s)=>{let{className:t,hideIcon:r=!1,payload:n,verticalAlign:a="bottom",nameKey:i}=e,{config:c}=m();return(null==n?void 0:n.length)?(0,l.jsx)("div",{ref:s,className:(0,d.cn)("flex items-center justify-center gap-4","top"===a?"pb-3":"pt-3",t),children:n.map(e=>{let s="".concat(i||e.dataKey||"value"),t=f(c,e,s);return(0,l.jsxs)("div",{className:(0,d.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!r?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},7837:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>u,Es:()=>p,HM:()=>m,L3:()=>f,c7:()=>h,lG:()=>d,rr:()=>g,zM:()=>c});var l=t(95155),r=t(12115),n=t(66217),a=t(87365),i=t(29602);let d=n.bL,c=n.l9,o=n.ZL,m=n.bm,x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)(n.hJ,{ref:s,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})});x.displayName=n.hJ.displayName;let u=r.forwardRef((e,s)=>{let{className:t,children:r,...d}=e;return(0,l.jsxs)(o,{children:[(0,l.jsx)(x,{}),(0,l.jsxs)(n.UC,{ref:s,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...d,children:[r,(0,l.jsxs)(n.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(a.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=n.UC.displayName;let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};h.displayName="DialogHeader";let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};p.displayName="DialogFooter";let f=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)(n.hE,{ref:s,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});f.displayName=n.hE.displayName;let g=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,l.jsx)(n.VY,{ref:s,className:(0,i.cn)("text-sm text-muted-foreground",t),...r})});g.displayName=n.VY.displayName},25488:(e,s,t)=>{"use strict";t.d(s,{E:()=>n});var l=t(95155),r=t(29602);function n(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},9246:(e,s,t)=>{"use strict";t.d(s,{TooltipProvider:()=>i,ZI:()=>o,k$:()=>c,m_:()=>d});var l=t(95155),r=t(12115),n=t(19710),a=t(29602);let i=n.Kq,d=n.bL,c=n.l9,o=r.forwardRef((e,s)=>{let{className:t,sideOffset:r=4,...i}=e;return(0,l.jsx)(n.UC,{ref:s,sideOffset:r,className:(0,a.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})});o.displayName=n.UC.displayName},20241:(e,s,t)=>{"use strict";t.d(s,{dj:()=>x,oR:()=>m});var l=t(12115);let r=0,n=new Map,a=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},i=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?a(t):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},d=[],c={toasts:[]};function o(e){c=i(c,e),d.forEach(e=>{e(c)})}function m(e){let{...s}=e,t=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>o({type:"DISMISS_TOAST",toastId:t});return o({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function x(){let[e,s]=l.useState(c);return l.useEffect(()=>(d.push(s),()=>{let e=d.indexOf(s);e>-1&&d.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,s,t)=>{"use strict";t.d(s,{cn:()=>n});var l=t(43463),r=t(69795);function n(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),n=encodeURIComponent(r),a="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(n);s&&(a+="&wait=1&timeout=".concat(t));let i=await fetch(a,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!i.ok)throw Error("AT command failed with status: ".concat(i.status));let d=await i.json();if(d.error)throw Error("AT queue error: ".concat(d.error));if(s&&(null===(l=d.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return d}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[5105,8087,1365,7401,9895,2019,9710,4094,1554,8441,1517,7358],()=>s(68166)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-9e3b8cb15508df2a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-9e3b8cb15508df2a.js new file mode 100644 index 0000000..bd19383 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-9e3b8cb15508df2a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,42988))},42988:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eH});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),d=t(45934);let o=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",h=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},p=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(d.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var v=t(1307),g=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},A=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},S=()=>{let[e,s]=(0,n.useState)(()=>{let e=new Date;return Array.from({length:5},(s,t)=>({time:new Date(e.getTime()-(4-t)*3e3).toISOString(),rsrp:0,rsrq:0,sinr:0}))}),[t,r]=(0,n.useState)("rsrp"),[d,o]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e;let t=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!t.ok)throw Error("Failed to fetch signal metrics");try{e=await t.json()}catch(e){throw console.error("Error parsing JSON:",e),Error("Failed to parse signal metrics data")}let l=Math.min(e.rsrp.length,e.rsrq.length,e.sinr.length);if(0===l)throw Error("No signal metrics data available");let n=Array.from({length:l},(s,t)=>({time:e.rsrp[t].datetime,rsrp:A(e.rsrp[t].output),rsrq:A(e.rsrq[t].output),sinr:A(e.sinr[t].output)}));s(n),u(null)}catch(t){console.error("Error fetching metrics:",t),u(t instanceof Error?t.message:"An unknown error occurred");let e=new Date().toISOString();s(s=>{let t=[...s];return t.length>=20&&t.shift(),t.push({time:e,rsrp:0,rsrq:0,sinr:0}),t})}finally{o(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),d?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(v.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(v.II,{content:(0,l.jsx)(v.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},C=e=>"".concat(Math.round(e/1048576)," MB"),k=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.available)})]})]})})]})},E={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),I=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,o]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();o(e=>null===e||m?l.latency:(n(e,l.latency,e=>o(e)),e));let r=T(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:T()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(d.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(v.at,{config:E,children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(v.II,{cursor:!1,content:(0,l.jsx)(v.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var R=t(42541),M=t(93557),D=t(97801),P=t(14389),U=t(98969),B=t(17799),G=t(92776),L=t.n(G),z=t(7197),_=t(74043),O=t(22250);let F=n.createContext(null);function W(){let e=n.useContext(F);if(!e)throw Error("useCarousel must be used within a ");return e}let q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:d,children:o,...c}=e,[u,m]=(0,_.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,h]=n.useState(!1),[p,f]=n.useState(!1),v=n.useCallback(e=>{e&&(h(e.canScrollPrev()),f(e.canScrollNext()))},[]),g=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[g,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return v(m),m.on("reInit",v),m.on("select",v),()=>{null==m||m.off("select",v)}},[m,v]),(0,l.jsx)(F.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:j,canScrollPrev:x,canScrollNext:p},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,O.cn)("relative",d),role:"region","aria-roledescription":"carousel",...c,children:o})})});q.displayName="Carousel";let Z=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=W();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,O.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Z.displayName="CarouselContent";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=W();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,O.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});Q.displayName="CarouselItem",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:d,canScrollPrev:o}=W();return(0,l.jsxs)(R.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!o,onClick:d,...i,children:[(0,l.jsx)(z.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:d,canScrollNext:o}=W();return(0,l.jsxs)(R.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!o,onClick:d,...i,children:[(0,l.jsx)(z.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let H=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:o,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(d.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(o)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(o)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[o," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:t.includes("NR5G")?"NR-SNR":"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(u)>=(t.includes("NR5G")?20:14)?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=-2?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},$=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)(H,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Z,{children:(0,l.jsx)(Q,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsx)(i.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,l.jsx)(H,{...e},e.id))})}),(0,l.jsx)(q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Z,{children:null==s?void 0:s.map(e=>(0,l.jsx)(Q,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=-2?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},K=function(e,s,t,l){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Unknown",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:",";try{var i,a,d;return(null===(d=e.split("\n")[s])||void 0===d?void 0:null===(a=d.split(":")[t])||void 0===a?void 0:null===(i=a.split(r)[l])||void 0===i?void 0:i.replace(/"/g,"").trim())||n}catch(e){return n}},V=e=>K(e,1,1,3),J=(e,s)=>{switch(Number(K(e,1,1,1))||Number(K(s,1,1,1))){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},Y=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},X=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},ee=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},es=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},et=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[],a=[-140,-37625,-32768];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!a.includes(e))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!a.includes(e))),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},el=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},en=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},er=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ei=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},ea=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},ed=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},eo=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),d=r(i),o=r(a);return i.length&&a.length?"".concat(Math.round((d+o)/2),"%"):i.length?"".concat(Math.round(d),"%"):a.length?"".concat(Math.round(o),"%"):"Unknown%"},ec=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eu=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},em=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},ex=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},eh=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[12]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>4){let e=s[4].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ep=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[13]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>6){let e=s[6].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ef=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){let s=t.split("\n").find(e=>e.includes("NR5G-SA")),n="Unknown";if(s){var l;let e=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[14];if("-32768"===e)n="-";else{let s=parseInt(e);n=isNaN(s)?e||"Unknown":s.toString()}}return[n,...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>11){let e=s[11];if("-32768"===e)return"-";let t=e.match(/-?\d+/);if(t){let e=parseInt(t[0]);return isNaN(e)?t[0]:Math.round(e/100).toString()}}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>5){let e=s[5].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(","),t=s.length>11?s[11]:"Unknown";if("Unknown"!==t&&"-"!==t){if("-32768"===t)return"-";let e=parseInt(t);if(!isNaN(e))return Math.round(e/100).toString()}return t})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ev=e=>{let s=[-32768,-140],t=e=>{var t;return(null==e?void 0:null===(t=e.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!s.includes(e)))||[]},l=t(e.split("\n").find(e=>e.includes("LTE"))),n=t(e.split("\n").find(e=>e.includes("NR5G")));return l.length&&n.length?"LTE ".concat(l.length," / NR ").concat(n.length):l.length?"LTE ".concat(l.length):n.length?"NR ".concat(n.length):"Unknown"},eg=e=>{try{let s=e.split(".");if(s.length<8)return e;let t=s.map(e=>{let s=parseInt(e,10);return isNaN(s)?"00":s.toString(16).padStart(2,"0")}),l=[];for(let e=0;ee.replace(/^0+/,"")||"0"),r=[],i=[];for(let e=0;e0&&(i.length>r.length&&(r=[...i]),i=[]);if(i.length>r.length&&(r=[...i]),r.length>=2){let e=[];for(let s=0;s{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),[a,d]=(0,n.useState)(0),o=(0,n.useCallback)(async e=>{console.error("Error fetching home data:",e),a<2?(console.log("Attempting automatic recovery (attempt ".concat(a+1,"/2)...")),await new Promise(e=>setTimeout(e,2e3)),d(e=>e+1),c()):(console.error("Max retry attempts reached. Please refresh manually."),i(e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-",bandwidth:"Unknown"},cellularInfo:{cellId:"-",trackingAreaCode:"-",physicalCellId:"-",earfcn:"-",mcc:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-",rawCarrierPrimaryDNS:"-",rawCarrierSecondaryDNS:"-"},timeAdvance:{lteTimeAdvance:"-",nrTimeAdvance:"-"}}))},[a]),c=(0,n.useCallback)(async()=>{try{var e,t,n,r,a,c,u,m,x,h;let l=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1");if(!l.ok)throw Error("API returned status ".concat(l.status));let o=await l.json();console.log(o);let p=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),f={simCard:{slot:K(o[0].response,1,1,0),state:o[6].response.includes("READY")?"Inserted":"Not Inserted",provider:K(o[2].response,1,1,2),phoneNumber:K(o[1].response,1,1,1),imsi:K(o[3].response,1,0,0),iccid:K(o[4].response,1,1,1,"Unknown"," "),imei:K(o[5].response,1,0,0)},connection:{apn:K(null===(e=o[7])||void 0===e?void 0:e.response,1,1,2,K(null===(t=o[12])||void 0===t?void 0:t.response,1,1,2)),operatorState:J(null===(n=o[8])||void 0===n?void 0:n.response,null===(r=o[16])||void 0===r?void 0:r.response)||"Unknown",functionalityState:"1"===K(null===(a=o[9])||void 0===a?void 0:a.response,1,1,0)?"Enabled":"Disabled",networkType:Y(o[13].response)||"No Signal",modemTemperature:X(o[11].response)||"Unknown",accessTechnology:V(o[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(c=o[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===c?void 0:c.length)>1?"Multi":"Inactive",bandwidth:ee(o[13].response,Y(o[13].response))||"Unknown",connectedBands:es(o[13].response)||"Unknown",signalStrength:et(o[14].response)||"Unknown",mimoLayers:ev(o[14].response)||"Unknown"},cellularInfo:{cellId:el(o[10].response,Y(o[13].response))||"Unknown",trackingAreaCode:en(o[10].response,Y(o[13].response))||"Unknown",physicalCellId:er(o[13].response,Y(o[13].response)),earfcn:ei(o[13].response),mcc:ea(o[10].response,Y(o[13].response))||"Unknown",mnc:ed(o[10].response,Y(o[13].response))||"Unknown",signalQuality:eo(o[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(h=null===(u=ec(o[13].response))||void 0===u?void 0:u.length)&&void 0!==h?h:0},(e,s)=>s+1)||[1],bandNumber:ec(o[13].response)||["Unknown"],earfcn:eu(o[13].response),bandwidth:em(o[13].response)||["Unknown"],pci:ex(o[13].response,Y(o[13].response))||["Unknown"],rsrp:eh(o[13].response,Y(o[13].response),o[10].response),rsrq:ep(o[13].response,Y(o[13].response),o[10].response)||["Unknown"],sinr:ef(o[13].response,Y(o[13].response),o[10].response)||["Unknown"]},networkAddressing:{publicIPv4:p.ok?(await p.json()).public_ip||"-":"Can't fetch public IP",cellularIPv4:(()=>{var e;let s=o[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV4"')),t=s&&(null===(e=s.match(/"IPV4","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0.0.0.0"===t?"-":t})(),cellularIPv6:(()=>{var e;let s=o[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV6"')),t=s&&(null===(e=s.match(/"IPV6","([^"]+)"/))||void 0===e?void 0:e[1])||"-",l=t?t.replace(/::/g,":"):"-";return"::"===l||"0:0:0:0:0:0:0:0"===l?"-":l})(),carrierPrimaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";let d=a[a.length-2].replace(/"/g,"").trim(),c=d.match(/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/),u=d.split(".").length>4;if(c)return d;if(u)return eg(d);return d.replace(/:{3,}/g,"::")}catch(e){return console.error("Error extracting primary DNS:",e),"-"}})(),carrierSecondaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";let d=a[a.length-1].replace(/"/g,"").trim(),c=d.match(/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/),u=d.split(".").length>4;if(c)return d;if(u)return eg(d);return d.replace(/:{3,}/g,"::")}catch(e){return console.error("Error extracting primary DNS:",e),"-"}})(),rawCarrierPrimaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";return a[a.length-2].replace(/"/g,"").trim()||"-"}catch(e){return console.error("Error extracting raw primary DNS:",e),"-"}})(),rawCarrierSecondaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<1)return"-";return a[a.length-1].replace(/"/g,"").trim()||"-"}catch(e){return console.error("Error extracting raw secondary DNS:",e),"-"}})()},timeAdvance:{lteTimeAdvance:K(null===(m=o[21])||void 0===m?void 0:m.response,1,1,2),nrTimeAdvance:K(null===(x=o[22])||void 0===x?void 0:x.response,1,1,2)}};s(f),d(0),i(null),console.log("Processed home data:",f)}catch(e){console.error("Error fetching home data:",e),o(e instanceof Error?e:Error(String(e)))}finally{l(!1)}},[o]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await c()}finally{s&&l(!1)}})(),e=setInterval(()=>{c()},15e3),()=>{s=!1,clearInterval(e)}},[c]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await c(),l(!1)},[c])}},eN=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},ew=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},eb=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),d=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),o=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!d||!o){console.error("Missing required data in response");return}let[c,u]=d.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=o.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(ew((u||0)+(m||0))),l(ew((c||0)+(x||0)))},d=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{d();let e=setInterval(d,12e3);return()=>clearInterval(e)},[d]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{d()},[d])}},ey=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},d=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),d=[];i&&(d=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let o=[];if(a&&(o=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),d=d.filter(e=>-32768!==e),o=o.filter(e=>-32768!==e),d=d.filter(e=>-140!==e),o=o.filter(e=>-140!==e),d.length>0){let e=d.reduce((e,s)=>e+s,0)/d.length;if(o.length>0){let s=o.reduce((e,s)=>e+s,0)/o.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(o.length>0)return o.reduce((e,s)=>e+s,0)/o.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},o=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),d=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),o=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==d?"".concat(d):null,"0"!==o?"".concat(o):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:d(s[6].response),modemTemp:o(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eA=t(80159),eS=t(12607),eC=t(25262),ek=t(8782),eE=t(10964),eT=t(89463),eI=t(90304),eR=t(622),eM=t(20633),eD=t(7778),eP=t(99312),eU=t(91994),eB=t(92823),eG=t(71834);let eL=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),[g,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),A=(0,n.useRef)(null),S=(0,n.useRef)(null),C=(0,n.useCallback)(()=>{t(null),o(null),u(null),x(!1),p(!1),v(!1),j(0),S.current=null,A.current&&(clearInterval(A.current),A.current=null)},[]);(0,n.useEffect)(()=>{if(m&&!h){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,h]),(0,n.useEffect)(()=>()=>{A.current&&clearInterval(A.current)},[]);let k=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){h&&(u("Test ended unexpectedly"),p(!1)),A.current&&(clearInterval(A.current),A.current=null);return}if(s.type)try{switch(s.type){case"ping":o("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&o(s.type);break;case"result":if(s.download&&s.upload&&s.ping){S.current=s,t(s),x(!0),p(!1),A.current&&(clearInterval(A.current),A.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(S.current=s,t(s))}catch(e){console.error("Error polling speedtest status:",e),h&&(u("Failed to get speedtest status"),p(!1),A.current&&(clearInterval(A.current),A.current=null))}},[a,h]),E=(0,n.useCallback)(async()=>{if(!N)try{if(C(),v(!0),p(!0),y(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");A.current=setInterval(k,300),v(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),v(!1),p(!1)}},[N,C,k]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(M.lG,{open:b,onOpenChange:y,children:[(0,l.jsx)(M.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eG.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(P.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{N||(e.preventDefault(),E())}})]})}),(0,l.jsxs)(M.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,l.jsx)(M.c7,{children:(0,l.jsxs)(M.L3,{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2"})," Network Speedtest",m&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2",children:"Complete"}),h&&!m&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,t,n,r,d,o,u,x,p,v,j,N,w,b,y,A,S,k,T,I,R,M,D,P,U,B;if(c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eS.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{C(),E()},children:"Please try again."})]})]});if(f||h&&!s)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eT.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:ez(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eI.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(o=s.download)||void 0===o?void 0:null===(d=o.latency)||void 0===d?void 0:null===(r=d.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eR.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:ez(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eI.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(v=s.upload)||void 0===v?void 0:null===(p=v.latency)||void 0===p?void 0:null===(x=p.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==D?D:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(P=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==P?P:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eM.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(U=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==U?U:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:s.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(A=s.interface)||void 0===A?void 0:A.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(S=s.server)||void 0===S?void 0:S.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(k=s.server)||void 0===k?void 0:k.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(T=s.server)||void 0===T?void 0:T.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(I=s.server)||void 0===I?void 0:I.host)||"N/A"})]}),(null===(R=s.result)||void 0===R?void 0:R.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eP.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eS.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{C(),E()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eU.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let G=s[a],L="download"===a;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[L?(0,l.jsx)(eT.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eR.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",L?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:ez(G.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eB.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eL(G.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(G.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ek.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(B=null===(t=G.latency)||void 0===t?void 0:null===(e=t.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==B?B:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(M.Es,{className:"flex justify-between items-center",children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(R.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(C(),E())},variant:"outline",disabled:N,children:[(0,l.jsx)(eU.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(R.$,{onClick:()=>y(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:h?(0,l.jsx)(R.$,{onClick:()=>{C(),y(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(R.$,{onClick:()=>y(!1),children:"Close"})})})]})]}),(0,l.jsx)(i.BT,{children:N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eO=t(88926),eF=t(85014);let eW=e=>{let{data:s,isLoading:t}=e;return(0,l.jsx)(i.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,l.jsx)("div",{className:"flex items-center gap-x-2",children:(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv4})})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{children:null==s?void 0:s.networkAddressing.carrierPrimaryDNS}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)("p",{children:null==s?void 0:s.networkAddressing.rawCarrierPrimaryDNS})})]})})})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{children:null==s?void 0:s.networkAddressing.carrierSecondaryDNS}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)("p",{children:null==s?void 0:s.networkAddressing.rawCarrierSecondaryDNS})})]})})})]})]})})};var eq=t(99015),eZ=t(13624);let eQ=e=>{let{lteTimeAdvance:s="0",nrTimeAdvance:t="0",isLoading:n=!1,networkType:r="Unknown"}=e,d=s&&"Unknown"!==s&&"-"!==s&&parseInt(s,10)||0,o=t&&"Unknown"!==t&&"-"!==t&&parseInt(t,10)||0,c=d>0?(e=>((e<0||e>1282)&&(console.warn("Invalid LTE TA value: ".concat(e,", using 0 instead")),e=0),1/3072e4*(16*e)*3e8/2/1e3))(d):0,u=o>0?(e=>(e<0&&(console.warn("Invalid negative NTA value: ".concat(e,", using 0 instead")),e=0),3e8*e*(1/196608e4)/2/1e3))(o):0,m=e=>0===e?"-":"".concat(e.toFixed(2)," km");return(0,l.jsxs)(i.Zp,{className:"overflow-hidden",children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Distance to Cell Tower"})}),(0,l.jsx)(i.Wu,{children:n?(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"LTE"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"})})]})})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"NR5G"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"})})]})})]})]})]}):(0,l.jsxs)("div",{className:"space-y-3",children:[d>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"LTE"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2",children:m(c)}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsxs)("p",{className:"max-w-xs text-xs mr-2",children:["LTE TA ",d]})})]})})]})]}),o>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"NR5G"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2",children:m(u)}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsxs)("p",{className:"max-w-xs text-xs mr-2",children:["NTA ",o]})})]})})]})]}),!d&&!o&&(0,l.jsx)("div",{className:"h-16 flex items-center justify-center",children:(0,l.jsx)("p",{className:"text-muted-foreground text-sm",children:"No timing advance data available"})})]})})]})},eH=()=>{var e,s,t;let{toast:i}=(0,r.dj)(),[a,d]=(0,n.useState)(!1),{data:c,isLoading:u,refresh:m}=ej(),{dataConnectionState:x,isStateLoading:v,refresh:g}=eN(),{isRunningDiagnostics:j,runDiagnosticsData:N,startDiagnostics:w}=ey(),{bytesSent:b,bytesReceived:y,refresh:A}=eb(),C=async()=>{try{var e,s;let t=await (0,eO.a)("AT+QUIMSLOT?"),l=null===(e=t.response)||void 0===e?void 0:e.raw_output.split("\n")[1].split(":")[1].trim(),n=await (0,eO.a)("1"===l?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===n.status||(null===(s=n.response)||void 0===s?void 0:s.status)==="error")throw Error("Failed to change SIM slot");i({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eO.a)("AT+COPS=2"),setTimeout(async()=>{let e=await (0,eO.a)("AT+COPS=0");if("error"===e.status)throw Error("Failed to reconnect to the network");i({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(E,3e3)}catch(e){console.error("Error changing SIM slot:",e),i({variant:"destructive",title:"SIM Slot Change Failed",description:e instanceof Error?e.message:"Failed to change the SIM slot"})}},E=(0,n.useCallback)(async()=>{try{await Promise.all([m(),g(),A()])}catch(e){console.error("Error refreshing data:",e),i({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[m,g,A]),[T,G]=(0,n.useState)([]),z=async()=>{try{await w()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{N&&console.log("Diagnostics data updated:",N)},[N]),(0,n.useEffect)(()=>{if(c&&c.currentBands){var e;let s=null===(e=c.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,i,a,d;return{id:e,bandNumber:(null===(t=c.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=c.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=c.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=c.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(i=c.currentBands.rsrp)||void 0===i?void 0:i[s])||"N/A",rsrq:(null===(a=c.currentBands.rsrq)||void 0===a?void 0:a[s])||"N/A",sinr:(null===(d=c.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&G(s)}},[c]),(0,n.useEffect)(()=>{u||(null==c?void 0:c.simCard.state)!=="Not Inserted"||d(!0)},[c,u]),(0,l.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(R.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:E,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==c?void 0:c.simCard.state)==="Not Inserted"&&(0,l.jsxs)(M.lG,{open:a,onOpenChange:d,children:[(0,l.jsx)(M.zM,{asChild:!0,children:(0,l.jsxs)(R.$,{variant:"destructive",children:[(0,l.jsx)(eA.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eA.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(R.$,{onClick:C,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(M.HM,{asChild:!0,children:(0,l.jsx)(R.$,{variant:"secondary",onClick:()=>d(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(M.lG,{children:[(0,l.jsx)(M.zM,{children:(0,l.jsxs)(R.$,{onClick:z,children:[(0,l.jsx)(P.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!j&&(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(M.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==N?void 0:N.netRegistration)==="Registered"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==N?void 0:N.simState)==="READY"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==N?void 0:N.manualAPN)==="Enabled"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==N?void 0:N.wanIP)==="Connected"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==N?void 0:N.cellSignal)==="Good"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==N?void 0:N.modemTemp)==="Normal"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==N?void 0:N.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(U.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(B.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==N?void 0:N.netReject})]})]})]})]}),j&&(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(L(),{color:"#6D28D9"})}),(0,l.jsx)(M.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(S,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(eQ,{lteTimeAdvance:null==c?void 0:null===(e=c.timeAdvance)||void 0===e?void 0:e.lteTimeAdvance,nrTimeAdvance:null==c?void 0:null===(s=c.timeAdvance)||void 0===s?void 0:s.nrTimeAdvance,isLoading:u,networkType:null==c?void 0:null===(t=c.connection)||void 0===t?void 0:t.networkType}),(0,l.jsx)(k,{}),(0,l.jsx)(e_,{}),(0,l.jsx)(I,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(o,{data:c,isLoading:u}),(0,l.jsx)(h,{data:c,isLoading:u,dataConnectionState:x,connectionStateLoading:v}),(0,l.jsx)(p,{data:c,isLoading:u,bytesSent:b,bytesReceived:y}),(0,l.jsx)(f,{data:c,isLoading:u})]})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,l.jsx)("div",{children:(0,l.jsx)(eW,{data:c,isLoading:u})})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)("div",{children:(0,l.jsx)($,{bands:T,isLoading:u})})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>o,r:()=>d});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let d=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:o=!1,...c}=e,u=o?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(d({variant:n,size:i,className:t})),ref:s,...c})});o.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});d.displayName="CardTitle";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});o.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>h,Nt:()=>p,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),d=t(22250);let o={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:o,...u}=e,m=n.useId(),h="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:o},children:(0,l.jsxs)("div",{"data-chart":h,ref:s,className:(0,d.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:h,config:o}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(o).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},h=i.m,p=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:o=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:h,formatter:p,color:v,nameKey:g,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(o||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",h),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",h),children:i}):null},[m,x,r,o,h,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,d.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(g||e.name||e.dataKey||"value"),n=f(N,e,t),r=v||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,d.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:p&&(null==e?void 0:e.value)!==void 0&&e.name?p(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,d.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,d.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}p.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:o}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,d.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(o,e,s);return(0,l.jsxs)("div",{className:(0,d.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>p,HM:()=>u,L3:()=>f,c7:()=>h,lG:()=>d,rr:()=>v,zM:()=>o});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let d=r.bL,o=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...d}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...d,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};h.displayName="DialogHeader";let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};p.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let v=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});v.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},85014:(e,s,t)=>{"use strict";t.d(s,{TooltipProvider:()=>a,ZI:()=>c,k$:()=>o,m_:()=>d});var l=t(20475),n=t(20107),r=t(43048),i=t(22250);let a=r.Kq,d=r.bL,o=r.l9,c=n.forwardRef((e,s)=>{let{className:t,sideOffset:n=4,...a}=e;return(0,l.jsx)(r.UC,{ref:s,sideOffset:n,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})});c.displayName=r.UC.displayName},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},d=[],o={toasts:[]};function c(e){o=a(o,e),d.forEach(e=>{e(o)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(o);return l.useEffect(()=>(d.push(s),()=>{let e=d.indexOf(s);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let d=await a.json();if(d.error)throw Error("AT queue error: ".concat(d.error));if(s&&(null===(l=d.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return d}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,3746,9464,3048,1074,3095,9563,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-b9ee668896a1fb0f.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-b9ee668896a1fb0f.js new file mode 100644 index 0000000..b40465d --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-b9ee668896a1fb0f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,88954))},88954:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eV});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},A=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},E=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):A(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},C=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.available)})]})]})})]})},T={ms:{label:"ms",color:"hsl(var(--chart-4))"}},I=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),U=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=I(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:I()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:T,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var M=t(42541),B=t(93557),D=t(97801),L=t(14389),G=t(98969),z=t(17799),_=t(92776),P=t.n(_),F=t(7197),q=t(74043),O=t(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let W=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,q.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,O.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});W.displayName="Carousel";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=H();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,O.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Q.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,O.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem";let J=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=H();return(0,l.jsxs)(M.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});J.displayName="CarouselPrevious";let V=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=H();return(0,l.jsxs)(M.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},Y=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Current bands connected."})})]})}),(0,l.jsxs)(W,{className:"lg:hidden w-full max-w-xs",children:[(0,l.jsx)(Q,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,l.jsx)(J,{}),(0,l.jsx)(V,{})]})]})},X=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},ee=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},es=(e,s)=>{var t,l,n,r;switch((null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},el=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},en=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},ei=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e),i=i.filter(e=>-140!==e&&-37625!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},ea=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},eo=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ed=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ec=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eu=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},em=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},ex=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l);console.log("LTE SINR Array:",i),console.log("NR5G SINR Array:",a);let o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eh=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ef=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eg=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&l.length?[...s,...l]:s.length?s:l.length?l:["Unknown"]}if("NR5G-SA"===s){let e=t.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var l;return[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[12]]}}return["Unknown"]},ej=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},eN=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},ew=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eb=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,o,d,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:X(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=p[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:es(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:et(p[13].response)||"No Signal",modemTemperature:el(p[11].response)||"Unknown",accessTechnology:ee(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:en(p[13].response,et(p[13].response))||"Unknown",connectedBands:er(p[13].response)||"Unknown",signalStrength:ei(p[14].response)||"Unknown",mimoLayers:ew(p[14].response)||"Unknown"},cellularInfo:{cellId:ea(p[10].response,et(p[13].response))||"Unknown",trackingAreaCode:eo(p[10].response,et(p[13].response))||"Unknown",physicalCellId:ed(p[13].response,et(p[13].response)),earfcn:ec(p[13].response),mcc:eu(p[10].response,et(p[13].response))||"Unknown",mnc:em(p[10].response,et(p[13].response))||"Unknown",signalQuality:ex(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=ep(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:ep(p[13].response)||["Unknown"],earfcn:eh(p[13].response),bandwidth:ef(p[13].response)||["Unknown"],pci:eg(p[13].response,et(p[13].response))||["Unknown"],rsrp:ev(p[13].response,et(p[13].response),p[10].response),rsrq:ej(p[13].response,et(p[13].response),p[10].response)||["Unknown"],sinr:eN(p[13].response,et(p[13].response),p[10].response)||["Unknown"]}};s(h),console.log("Processed home data:",h)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ey=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eS=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ek=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eS((u||0)+(m||0))),l(eS((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eA=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eE=t(80159),eC=t(71602);let eR=e=>{let{shouldScaleBackground:s=!0,...t}=e;return(0,l.jsx)(eC._s.Root,{shouldScaleBackground:s,...t})};eR.displayName="Drawer";let eT=eC._s.Trigger,eI=eC._s.Portal;eC._s.Close;let eU=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Overlay,{ref:s,className:(0,O.cn)("fixed inset-0 z-50 bg-black/80",t),...n})});eU.displayName=eC._s.Overlay.displayName;let eM=n.forwardRef((e,s)=>{let{className:t,children:n,...r}=e;return(0,l.jsxs)(eI,{children:[(0,l.jsx)(eU,{}),(0,l.jsxs)(eC._s.Content,{ref:s,className:(0,O.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...r,children:[(0,l.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),n]})]})});eM.displayName="DrawerContent",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Title,{ref:s,className:(0,O.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})}).displayName=eC._s.Title.displayName,n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Description,{ref:s,className:(0,O.cn)("text-sm text-muted-foreground",t),...n})}).displayName=eC._s.Description.displayName;var eB=t(12607),eD=t(25262),eL=t(8782),eG=t(10964),ez=t(89463),e_=t(90304),eP=t(622),eF=t(20633),eq=t(7778),eO=t(99312),eZ=t(92823),eH=t(71834);let eW=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let[e,s]=(0,n.useState)(null),[t,r]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),[u,m]=(0,n.useState)(!1),[x,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[g,v]=(0,n.useState)(0),[j,N]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),y=(0,n.useRef)(null),S=(0,n.useRef)(null),k=(0,n.useCallback)(()=>{s(null),r(null),c(null),m(!1),p(!1),f(!1),v(0),y.current=null},[]),A=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),s=await e.json();if(s.enabled){let e=new Date,t=60*e.getHours()+e.getMinutes(),[l,n]=s.start_time.split(":").map(Number),[r,i]=s.end_time.split(":").map(Number);b(t>=60*l+n&&t<=60*r+i)}else b(!1)}catch(e){console.error("Failed to check keep-alive schedule:",e),b(!1)}},[]);(0,n.useEffect)(()=>{A();let e=setInterval(A,6e4);return()=>clearInterval(e)},[A]),(0,n.useEffect)(()=>{if(u&&!x){N(!0);let e=setTimeout(()=>{N(!1)},1e4);return()=>clearTimeout(e)}},[u,x]),(0,n.useEffect)(()=>()=>{S.current&&S.current.abort()},[]);let E=(0,n.useCallback)(async()=>{if(!j&&!w)try{if(k(),f(!0),S.current&&S.current.abort(),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");C()}catch(e){console.error("Speedtest start error:",e),c(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),f(!1)}},[j,w,k]),C=(0,n.useCallback)(()=>{S.current=new AbortController,o(!1),p(!0),f(!1);try{fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_stream.sh",{method:"GET",signal:S.current.signal}).then(async e=>{var l;if(!e.ok)throw Error("Network response was not ok");o(!0);let n=null===(l=e.body)||void 0===l?void 0:l.getReader(),i=new TextDecoder;if(!n)throw Error("Unable to get reader from response body");let a="";for(;;){let{done:e,value:l}=await n.read();if(e)break;let o=i.decode(l,{stream:!0}),d=(a+=o).split("\n\n");for(let e of(a=d.pop()||"",d))if(e.startsWith("data: "))try{let l=JSON.parse(e.replace("data: ","").trim());switch(l.type){case"ping":r("ping"),v(l.ping.progress);break;case"download":case"upload":"ping"!==t&&r(l.type);break;case"result":m(!0),p(!1),n.cancel()}y.current=l,s(l)}catch(e){console.error("Parsing error:",e)}}}).catch(e=>{"AbortError"!==e.name&&(console.error("Fetch error:",e),c("Connection failed: ".concat(e instanceof Error?e.message:String(e))),p(!1))})}catch(e){console.error("Failed to initialize fetch:",e),c("Failed to connect to speedtest stream"),p(!1)}},[t]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(eR,{children:[(0,l.jsx)(eT,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eH.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(L.A,{className:"size-32 ".concat(w?"text-gray-400 cursor-not-allowed":"text-primary cursor-pointer"," z-10"),onClick:E})]})}),(0,l.jsx)(eM,{children:(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm p-6 py-12",children:(()=>{var s,n,r,a,o,c,m,x,p,f,v;if(d)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eB.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("p",{className:"underline cursor-pointer ml-2",onClick:E,children:"Please try again."})]})]});if(h)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eD.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===t)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==e?void 0:e.ping)?"Latency: ".concat(e.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(e.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(u)return(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(ez.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eQ(null==e?void 0:e.download.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(m=null==e?void 0:null===(a=e.download.latency)||void 0===a?void 0:null===(r=a.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==m?m:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eP.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eQ(null==e?void 0:e.upload.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(x=null==e?void 0:null===(c=e.upload.latency)||void 0===c?void 0:null===(o=c.iqm)||void 0===o?void 0:o.toFixed(2))&&void 0!==x?x:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"mt-4 grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(p=null==e?void 0:e.ping.latency.toFixed(2))&&void 0!==p?p:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eF.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(f=null==e?void 0:e.ping.jitter.toFixed(2))&&void 0!==f?f:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.isp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.internalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.externalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.name})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.location})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.country})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.host})]}),(null==e?void 0:e.result.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eO.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:e.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]});if(!t||!e)return null;let j=e[t],N="download"===t;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[N?(0,l.jsx)(ez.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eP.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",N?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eQ(j.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eZ.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eW(j.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(j.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(v=null===(n=j.latency)||void 0===n?void 0:null===(s=n.iqm)||void 0===s?void 0:s.toFixed(2))&&void 0!==v?v:"N/A"," ms"]})]})]})})]})})()})})]}),(0,l.jsx)(i.BT,{children:w?"Speedtest is disabled during keep-alive schedule.":j?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eJ=t(88926);let eV=()=>{let{toast:e}=(0,r.dj)(),{data:s,isLoading:t,refresh:i}=eb(),{dataConnectionState:a,isStateLoading:o,refresh:c}=ey(),{isRunningDiagnostics:u,runDiagnosticsData:m,startDiagnostics:x}=eA(),{bytesSent:g,bytesReceived:v,refresh:j}=ek(),N=async()=>{try{var t,l;let n=null==s?void 0:null===(t=s.simCard)||void 0===t?void 0:t.slot,r=await (0,eJ.a)("Slot 1"===n?"AT+QUIMSLOT=1":"AT+QUIMSLOT=2");if("error"===r.status||(null===(l=r.response)||void 0===l?void 0:l.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eJ.a)("AT+COPS=0"),setTimeout(async()=>{let s=await (0,eJ.a)("AT+COPS=2");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(w,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},w=(0,n.useCallback)(async()=>{try{await Promise.all([i(),c(),j()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[i,c,j]),[b,y]=(0,n.useState)([]),S=async()=>{try{await x()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{m&&console.log("Diagnostics data updated:",m)},[m]),(0,n.useEffect)(()=>{if(s&&s.currentBands){var e;let t=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,t)=>{var l,n,r,i,a,o,d;return{id:e,bandNumber:(null===(l=s.currentBands.bandNumber)||void 0===l?void 0:l[t])||"N/A",earfcn:(null===(n=s.currentBands.earfcn)||void 0===n?void 0:n[t])||"N/A",bandwidth:(null===(r=s.currentBands.bandwidth)||void 0===r?void 0:r[t])||"N/A",pci:(null===(i=s.currentBands.pci)||void 0===i?void 0:i[t])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[t])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[t])||"N/A",sinr:(null===(d=s.currentBands.sinr)||void 0===d?void 0:d[t])||"N/A"}});t&&y(t)}},[s]),(0,l.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(M.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:w,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==s?void 0:s.simCard.state)==="Not Inserted"&&(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(M.$,{variant:"destructive",children:[(0,l.jsx)(eE.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eE.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(M.$,{variant:"secondary",onClick:N,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(B.HM,{asChild:!0,children:(0,l.jsx)(M.$,{children:"Close"})})]})]})]}),(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(M.$,{variant:"secondary",onClick:S,children:[(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(B.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==m?void 0:m.netRegistration)==="Registered"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==m?void 0:m.simState)==="READY"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==m?void 0:m.manualAPN)==="Enabled"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==m?void 0:m.wanIP)==="Connected"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==m?void 0:m.cellSignal)==="Good"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==m?void 0:m.modemTemp)==="Normal"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==m?void 0:m.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(z.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==m?void 0:m.netReject})]})]})]})]}),u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(P(),{color:"#6D28D9"})}),(0,l.jsx)(B.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(E,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eK,{}),(0,l.jsx)(U,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:s,isLoading:t}),(0,l.jsx)(p,{data:s,isLoading:t,dataConnectionState:a,connectionStateLoading:o}),(0,l.jsx)(h,{data:s,isLoading:t,bytesSent:g,bytesReceived:v}),(0,l.jsx)(f,{data:s,isLoading:t})]})]}),(0,l.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)(Y,{bands:b,isLoading:t})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let o=await a.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(s&&(null===(l=o.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,4458,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-baeed177eb178aed.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-baeed177eb178aed.js new file mode 100644 index 0000000..456ca0d --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-baeed177eb178aed.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,42988))},42988:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eH});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),d=t(45934);let o=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",h=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},p=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(d.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var v=t(1307),g=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},A=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},S=()=>{let[e,s]=(0,n.useState)(()=>{let e=new Date;return Array.from({length:5},(s,t)=>({time:new Date(e.getTime()-(4-t)*3e3).toISOString(),rsrp:0,rsrq:0,sinr:0}))}),[t,r]=(0,n.useState)("rsrp"),[d,o]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e;let t=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!t.ok)throw Error("Failed to fetch signal metrics");try{e=await t.json()}catch(e){throw console.error("Error parsing JSON:",e),Error("Failed to parse signal metrics data")}let l=Math.min(e.rsrp.length,e.rsrq.length,e.sinr.length);if(0===l)throw Error("No signal metrics data available");let n=Array.from({length:l},(s,t)=>({time:e.rsrp[t].datetime,rsrp:A(e.rsrp[t].output),rsrq:A(e.rsrq[t].output),sinr:A(e.sinr[t].output)}));s(n),u(null)}catch(t){console.error("Error fetching metrics:",t),u(t instanceof Error?t.message:"An unknown error occurred");let e=new Date().toISOString();s(s=>{let t=[...s];return t.length>=20&&t.shift(),t.push({time:e,rsrp:0,rsrq:0,sinr:0}),t})}finally{o(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),d?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(v.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(v.II,{content:(0,l.jsx)(v.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},C=e=>"".concat(Math.round(e/1048576)," MB"),k=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.available)})]})]})})]})},E={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),I=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,o]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();o(e=>null===e||m?l.latency:(n(e,l.latency,e=>o(e)),e));let r=T(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:T()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(d.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(v.at,{config:E,children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(v.II,{cursor:!1,content:(0,l.jsx)(v.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var R=t(42541),M=t(93557),D=t(97801),P=t(14389),U=t(98969),B=t(17799),G=t(92776),L=t.n(G),z=t(7197),_=t(74043),O=t(22250);let F=n.createContext(null);function W(){let e=n.useContext(F);if(!e)throw Error("useCarousel must be used within a ");return e}let q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:d,children:o,...c}=e,[u,m]=(0,_.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,h]=n.useState(!1),[p,f]=n.useState(!1),v=n.useCallback(e=>{e&&(h(e.canScrollPrev()),f(e.canScrollNext()))},[]),g=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[g,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return v(m),m.on("reInit",v),m.on("select",v),()=>{null==m||m.off("select",v)}},[m,v]),(0,l.jsx)(F.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:j,canScrollPrev:x,canScrollNext:p},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,O.cn)("relative",d),role:"region","aria-roledescription":"carousel",...c,children:o})})});q.displayName="Carousel";let Z=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=W();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,O.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Z.displayName="CarouselContent";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=W();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,O.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});Q.displayName="CarouselItem",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:d,canScrollPrev:o}=W();return(0,l.jsxs)(R.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!o,onClick:d,...i,children:[(0,l.jsx)(z.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:d,canScrollNext:o}=W();return(0,l.jsxs)(R.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!o,onClick:d,...i,children:[(0,l.jsx)(z.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let H=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:o,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(d.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(o)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(o)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[o," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:t.includes("NR5G")?"NR-SNR":"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(u)>=(t.includes("NR5G")?20:14)?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=-2?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},$=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)(H,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Z,{children:(0,l.jsx)(Q,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsx)(i.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,l.jsx)(H,{...e},e.id))})}),(0,l.jsx)(q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Z,{children:null==s?void 0:s.map(e=>(0,l.jsx)(Q,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=-2?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},K=function(e,s,t,l){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Unknown",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:",";try{var i,a,d;return(null===(d=e.split("\n")[s])||void 0===d?void 0:null===(a=d.split(":")[t])||void 0===a?void 0:null===(i=a.split(r)[l])||void 0===i?void 0:i.replace(/"/g,"").trim())||n}catch(e){return n}},V=e=>K(e,1,1,3),J=(e,s)=>{switch(Number(K(e,1,1,1))||Number(K(s,1,1,1))){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},Y=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},X=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},ee=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},es=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},et=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[],a=[-140,-37625,-32768];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!a.includes(e))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!a.includes(e))),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},el=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},en=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},er=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ei=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},ea=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},ed=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},eo=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),d=r(i),o=r(a);return i.length&&a.length?"".concat(Math.round((d+o)/2),"%"):i.length?"".concat(Math.round(d),"%"):a.length?"".concat(Math.round(o),"%"):"Unknown%"},ec=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eu=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},em=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},ex=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},eh=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[12]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>4){let e=s[4].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ep=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[13]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>6){let e=s[6].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ef=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){let s=t.split("\n").find(e=>e.includes("NR5G-SA")),n="Unknown";if(s){var l;let e=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[14];if("-32768"===e)n="-";else{let s=parseInt(e);n=isNaN(s)?e||"Unknown":s.toString()}}return[n,...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>11){let e=s[11];if("-32768"===e)return"-";let t=e.match(/-?\d+/);if(t){let e=parseInt(t[0]);return isNaN(e)?t[0]:Math.round(e/100).toString()}}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>5){let e=s[5].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(","),t=s.length>11?s[11]:"Unknown";if("Unknown"!==t&&"-"!==t){if("-32768"===t)return"-";let e=parseInt(t);if(!isNaN(e))return Math.round(e/100).toString()}return t})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ev=e=>{let s=[-32768,-140],t=e=>{var t;return(null==e?void 0:null===(t=e.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>!s.includes(e)))||[]},l=t(e.split("\n").find(e=>e.includes("LTE"))),n=t(e.split("\n").find(e=>e.includes("NR5G")));return l.length&&n.length?"LTE ".concat(l.length," / NR ").concat(n.length):l.length?"LTE ".concat(l.length):n.length?"NR ".concat(n.length):"Unknown"},eg=e=>{try{let s=e.split(".");if(s.length<8)return e;let t=s.map(e=>{let s=parseInt(e,10);return isNaN(s)?"00":s.toString(16).padStart(2,"0")}),l=[];for(let e=0;ee.replace(/^0+/,"")||"0"),r=[],i=[];for(let e=0;e0&&(i.length>r.length&&(r=[...i]),i=[]);if(i.length>r.length&&(r=[...i]),r.length>=2){let e=[];for(let s=0;s{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),[a,d]=(0,n.useState)(0),o=(0,n.useCallback)(async e=>{console.error("Error fetching home data:",e),a<2?(console.log("Attempting automatic recovery (attempt ".concat(a+1,"/2)...")),await new Promise(e=>setTimeout(e,2e3)),d(e=>e+1),c()):(console.error("Max retry attempts reached. Please refresh manually."),i(e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-",bandwidth:"Unknown"},cellularInfo:{cellId:"-",trackingAreaCode:"-",physicalCellId:"-",earfcn:"-",mcc:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-",rawCarrierPrimaryDNS:"-",rawCarrierSecondaryDNS:"-"},timeAdvance:{lteTimeAdvance:"-",nrTimeAdvance:"-"}}))},[a]),c=(0,n.useCallback)(async()=>{try{var e,t,n,r,a,c,u,m,x,h;let l=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1");if(!l.ok)throw Error("API returned status ".concat(l.status));let o=await l.json();console.log(o);let p=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),f={simCard:{slot:K(o[0].response,1,1,0),state:o[6].response.includes("READY")?"Inserted":"Not Inserted",provider:K(o[2].response,1,1,2),phoneNumber:K(o[1].response,1,1,1),imsi:K(o[3].response,1,0,0),iccid:K(o[4].response,1,1,1,"Unknown"," "),imei:K(o[5].response,1,0,0)},connection:{apn:K(null===(e=o[7])||void 0===e?void 0:e.response,1,1,2,K(null===(t=o[12])||void 0===t?void 0:t.response,1,1,2)),operatorState:J(null===(n=o[8])||void 0===n?void 0:n.response,null===(r=o[16])||void 0===r?void 0:r.response)||"Unknown",functionalityState:"1"===K(null===(a=o[9])||void 0===a?void 0:a.response,1,1,0)?"Enabled":"Disabled",networkType:Y(o[13].response)||"No Signal",modemTemperature:X(o[11].response)||"Unknown",accessTechnology:V(o[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(c=o[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===c?void 0:c.length)>1?"Multi":"Inactive",bandwidth:ee(o[13].response,Y(o[13].response))||"Unknown",connectedBands:es(o[13].response)||"Unknown",signalStrength:et(o[14].response)||"Unknown",mimoLayers:ev(o[14].response)||"Unknown"},cellularInfo:{cellId:el(o[10].response,Y(o[13].response))||"Unknown",trackingAreaCode:en(o[10].response,Y(o[13].response))||"Unknown",physicalCellId:er(o[13].response,Y(o[13].response)),earfcn:ei(o[13].response),mcc:ea(o[10].response,Y(o[13].response))||"Unknown",mnc:ed(o[10].response,Y(o[13].response))||"Unknown",signalQuality:eo(o[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(h=null===(u=ec(o[13].response))||void 0===u?void 0:u.length)&&void 0!==h?h:0},(e,s)=>s+1)||[1],bandNumber:ec(o[13].response)||["Unknown"],earfcn:eu(o[13].response),bandwidth:em(o[13].response)||["Unknown"],pci:ex(o[13].response,Y(o[13].response))||["Unknown"],rsrp:eh(o[13].response,Y(o[13].response),o[10].response),rsrq:ep(o[13].response,Y(o[13].response),o[10].response)||["Unknown"],sinr:ef(o[13].response,Y(o[13].response),o[10].response)||["Unknown"]},networkAddressing:{publicIPv4:p.ok?(await p.json()).public_ip||"-":"Can't fetch public IP",cellularIPv4:(()=>{var e;let s=o[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV4"')),t=s&&(null===(e=s.match(/"IPV4","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0.0.0.0"===t?"-":t})(),cellularIPv6:(()=>{var e;let s=o[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV6"')),t=s&&(null===(e=s.match(/"IPV6","([^"]+)"/))||void 0===e?void 0:e[1])||"-",l=t?t.replace(/::/g,":"):"-";return"::"===l||"0:0:0:0:0:0:0:0"===l?"-":l})(),carrierPrimaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";let d=a[a.length-2].replace(/"/g,"").trim(),c=d.match(/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/),u=d.split(".").length>4;if(c)return d;if(u)return eg(d);return d.replace(/:{3,}/g,"::")}catch(e){return console.error("Error extracting primary DNS:",e),"-"}})(),carrierSecondaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";let d=a[a.length-1].replace(/"/g,"").trim(),c=d.match(/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/),u=d.split(".").length>4;if(c)return d;if(u)return eg(d);return d.replace(/:{3,}/g,"::")}catch(e){return console.error("Error extracting primary DNS:",e),"-"}})(),rawCarrierPrimaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<2)return"-";return a[a.length-2].replace(/"/g,"").trim()||"-"}catch(e){return console.error("Error extracting raw primary DNS:",e),"-"}})(),rawCarrierSecondaryDNS:(()=>{try{var e,s,t;if(!(null===(e=o[15])||void 0===e?void 0:e.response)||!(null===(s=o[20])||void 0===s?void 0:s.response))return"-";let l=o[15].response.split("\n").filter(e=>e.includes('+QMAP: "WWAN"')),n=null===(t=l[0])||void 0===t?void 0:t.match(/\+QMAP: "WWAN",\d+,(\d+),/),r=n?n[1]:null;if(!r)return"-";let i=o[20].response.split("\n").filter(e=>e.includes("+CGCONTRDP:")).find(e=>{let s=e.match(/\+CGCONTRDP: (\d+),/);return s&&s[1]===r});if(!i)return"-";let a=i.split(",");if(a.length<1)return"-";return a[a.length-1].replace(/"/g,"").trim()||"-"}catch(e){return console.error("Error extracting raw secondary DNS:",e),"-"}})()},timeAdvance:{lteTimeAdvance:K(null===(m=o[21])||void 0===m?void 0:m.response,1,1,2),nrTimeAdvance:K(null===(x=o[22])||void 0===x?void 0:x.response,1,1,2)}};s(f),d(0),i(null),console.log("Processed home data:",f)}catch(e){console.error("Error fetching home data:",e),o(e instanceof Error?e:Error(String(e)))}finally{l(!1)}},[o]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await c()}finally{s&&l(!1)}})(),e=setInterval(()=>{c()},15e3),()=>{s=!1,clearInterval(e)}},[c]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await c(),l(!1)},[c])}},eN=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},ew=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},eb=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),d=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),o=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!d||!o){console.error("Missing required data in response");return}let[c,u]=d.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=o.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(ew((u||0)+(m||0))),l(ew((c||0)+(x||0)))},d=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{d();let e=setInterval(d,12e3);return()=>clearInterval(e)},[d]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{d()},[d])}},ey=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},d=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),d=[];i&&(d=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let o=[];if(a&&(o=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),d=d.filter(e=>-32768!==e),o=o.filter(e=>-32768!==e),d=d.filter(e=>-140!==e),o=o.filter(e=>-140!==e),d.length>0){let e=d.reduce((e,s)=>e+s,0)/d.length;if(o.length>0){let s=o.reduce((e,s)=>e+s,0)/o.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(o.length>0)return o.reduce((e,s)=>e+s,0)/o.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},o=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),d=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),o=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==d?"".concat(d):null,"0"!==o?"".concat(o):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:d(s[6].response),modemTemp:o(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eA=t(80159),eS=t(12607),eC=t(25262),ek=t(8782),eE=t(10964),eT=t(89463),eI=t(90304),eR=t(622),eM=t(20633),eD=t(7778),eP=t(99312),eU=t(91994),eB=t(92823),eG=t(71834);let eL=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),[g,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),A=(0,n.useRef)(null),S=(0,n.useRef)(null),C=(0,n.useCallback)(()=>{t(null),o(null),u(null),x(!1),p(!1),v(!1),j(0),S.current=null,A.current&&(clearInterval(A.current),A.current=null)},[]);(0,n.useEffect)(()=>{if(m&&!h){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,h]),(0,n.useEffect)(()=>()=>{A.current&&clearInterval(A.current)},[]);let k=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){h&&(u("Test ended unexpectedly"),p(!1)),A.current&&(clearInterval(A.current),A.current=null);return}if(s.type)try{switch(s.type){case"ping":o("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&o(s.type);break;case"result":if(s.download&&s.upload&&s.ping){S.current=s,t(s),x(!0),p(!1),A.current&&(clearInterval(A.current),A.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(S.current=s,t(s))}catch(e){console.error("Error polling speedtest status:",e),h&&(u("Failed to get speedtest status"),p(!1),A.current&&(clearInterval(A.current),A.current=null))}},[a,h]),E=(0,n.useCallback)(async()=>{if(!N)try{if(C(),v(!0),p(!0),y(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");A.current=setInterval(k,300),v(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),v(!1),p(!1)}},[N,C,k]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(M.lG,{open:b,onOpenChange:y,children:[(0,l.jsx)(M.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eG.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(P.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{N||(e.preventDefault(),E())}})]})}),(0,l.jsxs)(M.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,l.jsx)(M.c7,{children:(0,l.jsxs)(M.L3,{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2"})," Network Speedtest",m&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2",children:"Complete"}),h&&!m&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,t,n,r,d,o,u,x,p,v,j,N,w,b,y,A,S,k,T,I,R,M,D,P,U,B;if(c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eS.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{C(),E()},children:"Please try again."})]})]});if(f||h&&!s)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eT.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:ez(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eI.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(o=s.download)||void 0===o?void 0:null===(d=o.latency)||void 0===d?void 0:null===(r=d.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eR.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:ez(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eI.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(v=s.upload)||void 0===v?void 0:null===(p=v.latency)||void 0===p?void 0:null===(x=p.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==D?D:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(ek.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(P=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==P?P:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eM.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(U=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==U?U:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:s.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(A=s.interface)||void 0===A?void 0:A.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(S=s.server)||void 0===S?void 0:S.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(k=s.server)||void 0===k?void 0:k.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(T=s.server)||void 0===T?void 0:T.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(I=s.server)||void 0===I?void 0:I.host)||"N/A"})]}),(null===(R=s.result)||void 0===R?void 0:R.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eP.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eS.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{C(),E()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eU.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let G=s[a],L="download"===a;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[L?(0,l.jsx)(eT.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eR.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",L?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:ez(G.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eB.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eL(G.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(G.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ek.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(B=null===(t=G.latency)||void 0===t?void 0:null===(e=t.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==B?B:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(M.Es,{className:"flex justify-between items-center",children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(R.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(C(),E())},variant:"outline",disabled:N,children:[(0,l.jsx)(eU.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(R.$,{onClick:()=>y(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:h?(0,l.jsx)(R.$,{onClick:()=>{C(),y(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(R.$,{onClick:()=>y(!1),children:"Close"})})})]})]}),(0,l.jsx)(i.BT,{children:N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eO=t(88926),eF=t(85014);let eW=e=>{let{data:s,isLoading:t}=e;return(0,l.jsx)(i.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,l.jsx)("div",{className:"flex items-center gap-x-2",children:(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv4})})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{children:null==s?void 0:s.networkAddressing.carrierPrimaryDNS}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)("p",{children:null==s?void 0:s.networkAddressing.rawCarrierPrimaryDNS})})]})})})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{children:null==s?void 0:s.networkAddressing.carrierSecondaryDNS}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)("p",{children:null==s?void 0:s.networkAddressing.rawCarrierSecondaryDNS})})]})})})]})]})})};var eq=t(99015),eZ=t(13624);let eQ=e=>{let{lteTimeAdvance:s="0",nrTimeAdvance:t="0",isLoading:n=!1,networkType:r="Unknown"}=e,d=s&&"Unknown"!==s&&"-"!==s&&parseInt(s,10)||0,o=t&&"Unknown"!==t&&"-"!==t&&parseInt(t,10)||0,c=d>0?(e=>((e<0||e>1282)&&(console.warn("Invalid LTE TA value: ".concat(e,", using 0 instead")),e=0),1/3072e4*(16*e)*3e8/2/1e3))(d):0,u=o>0?(e=>(e<0&&(console.warn("Invalid negative NTA value: ".concat(e,", using 0 instead")),e=0),3e8*e*(1/196608e4)/2/1e3))(o):0,m=e=>0===e?"-":e<1?"".concat((1e3*e).toFixed(0)," m"):"".concat(e.toFixed(2)," km");return(0,l.jsxs)(i.Zp,{className:"overflow-hidden",children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Distance to Cell Tower"})}),(0,l.jsx)(i.Wu,{children:n?(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"LTE"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"})})]})})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"NR5G"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsx)(a.E,{className:"h-4 w-16 mr-2"})})]})})]})]})]}):(0,l.jsxs)("div",{className:"space-y-3",children:[d>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"LTE"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2",children:m(c)}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsxs)("p",{className:"max-w-xs text-xs mr-2",children:["LTE TA ",d]})})]})})]})]}),o>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"h-4 w-4 mr-1.5"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:"NR5G"})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-2",children:m(u)}),(0,l.jsx)(eF.TooltipProvider,{children:(0,l.jsxs)(eF.m_,{children:[(0,l.jsx)(eF.k$,{asChild:!0,children:(0,l.jsx)(eZ.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,l.jsx)(eF.ZI,{children:(0,l.jsxs)("p",{className:"max-w-xs text-xs mr-2",children:["NTA ",o]})})]})})]})]}),!d&&!o&&(0,l.jsx)("div",{className:"h-16 flex items-center justify-center",children:(0,l.jsx)("p",{className:"text-muted-foreground text-sm",children:"No timing advance data available"})})]})})]})},eH=()=>{var e,s,t;let{toast:i}=(0,r.dj)(),[a,d]=(0,n.useState)(!1),{data:c,isLoading:u,refresh:m}=ej(),{dataConnectionState:x,isStateLoading:v,refresh:g}=eN(),{isRunningDiagnostics:j,runDiagnosticsData:N,startDiagnostics:w}=ey(),{bytesSent:b,bytesReceived:y,refresh:A}=eb(),C=async()=>{try{var e,s;let t=await (0,eO.a)("AT+QUIMSLOT?"),l=null===(e=t.response)||void 0===e?void 0:e.raw_output.split("\n")[1].split(":")[1].trim(),n=await (0,eO.a)("1"===l?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===n.status||(null===(s=n.response)||void 0===s?void 0:s.status)==="error")throw Error("Failed to change SIM slot");i({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eO.a)("AT+COPS=2"),setTimeout(async()=>{let e=await (0,eO.a)("AT+COPS=0");if("error"===e.status)throw Error("Failed to reconnect to the network");i({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(E,3e3)}catch(e){console.error("Error changing SIM slot:",e),i({variant:"destructive",title:"SIM Slot Change Failed",description:e instanceof Error?e.message:"Failed to change the SIM slot"})}},E=(0,n.useCallback)(async()=>{try{await Promise.all([m(),g(),A()])}catch(e){console.error("Error refreshing data:",e),i({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[m,g,A]),[T,G]=(0,n.useState)([]),z=async()=>{try{await w()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{N&&console.log("Diagnostics data updated:",N)},[N]),(0,n.useEffect)(()=>{if(c&&c.currentBands){var e;let s=null===(e=c.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,i,a,d;return{id:e,bandNumber:(null===(t=c.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=c.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=c.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=c.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(i=c.currentBands.rsrp)||void 0===i?void 0:i[s])||"N/A",rsrq:(null===(a=c.currentBands.rsrq)||void 0===a?void 0:a[s])||"N/A",sinr:(null===(d=c.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&G(s)}},[c]),(0,n.useEffect)(()=>{u||(null==c?void 0:c.simCard.state)!=="Not Inserted"||d(!0)},[c,u]),(0,l.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(R.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:E,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==c?void 0:c.simCard.state)==="Not Inserted"&&(0,l.jsxs)(M.lG,{open:a,onOpenChange:d,children:[(0,l.jsx)(M.zM,{asChild:!0,children:(0,l.jsxs)(R.$,{variant:"destructive",children:[(0,l.jsx)(eA.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eA.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(R.$,{onClick:C,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(M.HM,{asChild:!0,children:(0,l.jsx)(R.$,{variant:"secondary",onClick:()=>d(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(M.lG,{children:[(0,l.jsx)(M.zM,{children:(0,l.jsxs)(R.$,{onClick:z,children:[(0,l.jsx)(P.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!j&&(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(M.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==N?void 0:N.netRegistration)==="Registered"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==N?void 0:N.simState)==="READY"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==N?void 0:N.manualAPN)==="Enabled"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==N?void 0:N.wanIP)==="Connected"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==N?void 0:N.cellSignal)==="Good"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==N?void 0:N.modemTemp)==="Normal"?(0,l.jsx)(U.A,{className:"text-green-500"}):(0,l.jsx)(B.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==N?void 0:N.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(U.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(B.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==N?void 0:N.netReject})]})]})]})]}),j&&(0,l.jsxs)(M.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(M.c7,{children:(0,l.jsx)(M.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(L(),{color:"#6D28D9"})}),(0,l.jsx)(M.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(S,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(eQ,{lteTimeAdvance:null==c?void 0:null===(e=c.timeAdvance)||void 0===e?void 0:e.lteTimeAdvance,nrTimeAdvance:null==c?void 0:null===(s=c.timeAdvance)||void 0===s?void 0:s.nrTimeAdvance,isLoading:u,networkType:null==c?void 0:null===(t=c.connection)||void 0===t?void 0:t.networkType}),(0,l.jsx)(k,{}),(0,l.jsx)(e_,{}),(0,l.jsx)(I,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(o,{data:c,isLoading:u}),(0,l.jsx)(h,{data:c,isLoading:u,dataConnectionState:x,connectionStateLoading:v}),(0,l.jsx)(p,{data:c,isLoading:u,bytesSent:b,bytesReceived:y}),(0,l.jsx)(f,{data:c,isLoading:u})]})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,l.jsx)("div",{children:(0,l.jsx)(eW,{data:c,isLoading:u})})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)("div",{children:(0,l.jsx)($,{bands:T,isLoading:u})})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>o,r:()=>d});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let d=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:o=!1,...c}=e,u=o?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(d({variant:n,size:i,className:t})),ref:s,...c})});o.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});d.displayName="CardTitle";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});o.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>h,Nt:()=>p,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),d=t(22250);let o={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:o,...u}=e,m=n.useId(),h="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:o},children:(0,l.jsxs)("div",{"data-chart":h,ref:s,className:(0,d.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:h,config:o}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(o).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},h=i.m,p=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:o=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:h,formatter:p,color:v,nameKey:g,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(o||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",h),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",h),children:i}):null},[m,x,r,o,h,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,d.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(g||e.name||e.dataKey||"value"),n=f(N,e,t),r=v||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,d.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:p&&(null==e?void 0:e.value)!==void 0&&e.name?p(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,d.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,d.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}p.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:o}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,d.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(o,e,s);return(0,l.jsxs)("div",{className:(0,d.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>p,HM:()=>u,L3:()=>f,c7:()=>h,lG:()=>d,rr:()=>v,zM:()=>o});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let d=r.bL,o=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...d}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...d,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};h.displayName="DialogHeader";let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};p.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let v=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});v.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},85014:(e,s,t)=>{"use strict";t.d(s,{TooltipProvider:()=>a,ZI:()=>c,k$:()=>o,m_:()=>d});var l=t(20475),n=t(20107),r=t(43048),i=t(22250);let a=r.Kq,d=r.bL,o=r.l9,c=n.forwardRef((e,s)=>{let{className:t,sideOffset:n=4,...a}=e;return(0,l.jsx)(r.UC,{ref:s,sideOffset:n,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})});c.displayName=r.UC.displayName},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},d=[],o={toasts:[]};function c(e){o=a(o,e),d.forEach(e=>{e(o)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(o);return l.useEffect(()=>(d.push(s),()=>{let e=d.indexOf(s);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let d=await a.json();if(d.error)throw Error("AT queue error: ".concat(d.error));if(s&&(null===(l=d.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return d}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,3746,9464,3048,1074,3095,9563,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d0648dbb90fe7bbf.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d0648dbb90fe7bbf.js new file mode 100644 index 0000000..81d4d72 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d0648dbb90fe7bbf.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,88954))},88954:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eV});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},A=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},E=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):A(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},C=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:C(e.available)})]})]})})]})},T={ms:{label:"ms",color:"hsl(var(--chart-4))"}},I=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),U=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=I(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:I()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:T,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var M=t(42541),B=t(93557),D=t(97801),L=t(14389),G=t(98969),z=t(17799),_=t(92776),P=t.n(_),F=t(7197),q=t(74043),O=t(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let W=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,q.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,O.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});W.displayName="Carousel";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=H();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,O.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Q.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,O.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem";let J=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=H();return(0,l.jsxs)(M.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});J.displayName="CarouselPrevious";let V=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=H();return(0,l.jsxs)(M.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},Y=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Current bands connected."})})]})}),(0,l.jsxs)(W,{className:"lg:hidden w-full max-w-xs",children:[(0,l.jsx)(Q,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,l.jsx)(J,{}),(0,l.jsx)(V,{})]})]})},X=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},ee=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},es=(e,s)=>{var t,l,n,r;switch((null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},el=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},en=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},ei=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},ea=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},eo=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ed=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ec=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eu=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},em=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},ex=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l);console.log("LTE SINR Array:",i),console.log("NR5G SINR Array:",a);let o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eh=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ef=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eg=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&l.length?[...s,...l]:s.length?s:l.length?l:["Unknown"]}if("NR5G-SA"===s){let e=t.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var l;return[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[12]]}}return["Unknown"]},ej=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},eN=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},ew=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eb=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,o,d,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:X(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=p[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:es(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:et(p[13].response)||"No Signal",modemTemperature:el(p[11].response)||"Unknown",accessTechnology:ee(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:en(p[13].response,et(p[13].response))||"Unknown",connectedBands:er(p[13].response)||"Unknown",signalStrength:ei(p[14].response)||"Unknown",mimoLayers:ew(p[14].response)||"Unknown"},cellularInfo:{cellId:ea(p[10].response,et(p[13].response))||"Unknown",trackingAreaCode:eo(p[10].response,et(p[13].response))||"Unknown",physicalCellId:ed(p[13].response,et(p[13].response)),earfcn:ec(p[13].response),mcc:eu(p[10].response,et(p[13].response))||"Unknown",mnc:em(p[10].response,et(p[13].response))||"Unknown",signalQuality:ex(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=ep(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:ep(p[13].response)||["Unknown"],earfcn:eh(p[13].response),bandwidth:ef(p[13].response)||["Unknown"],pci:eg(p[13].response,et(p[13].response))||["Unknown"],rsrp:ev(p[13].response,et(p[13].response),p[10].response),rsrq:ej(p[13].response,et(p[13].response),p[10].response)||["Unknown"],sinr:eN(p[13].response,et(p[13].response),p[10].response)||["Unknown"]}};s(h),console.log("Processed home data:",h)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ey=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eS=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ek=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eS((u||0)+(m||0))),l(eS((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eA=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eE=t(80159),eC=t(71602);let eR=e=>{let{shouldScaleBackground:s=!0,...t}=e;return(0,l.jsx)(eC._s.Root,{shouldScaleBackground:s,...t})};eR.displayName="Drawer";let eT=eC._s.Trigger,eI=eC._s.Portal;eC._s.Close;let eU=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Overlay,{ref:s,className:(0,O.cn)("fixed inset-0 z-50 bg-black/80",t),...n})});eU.displayName=eC._s.Overlay.displayName;let eM=n.forwardRef((e,s)=>{let{className:t,children:n,...r}=e;return(0,l.jsxs)(eI,{children:[(0,l.jsx)(eU,{}),(0,l.jsxs)(eC._s.Content,{ref:s,className:(0,O.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...r,children:[(0,l.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),n]})]})});eM.displayName="DrawerContent",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Title,{ref:s,className:(0,O.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})}).displayName=eC._s.Title.displayName,n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eC._s.Description,{ref:s,className:(0,O.cn)("text-sm text-muted-foreground",t),...n})}).displayName=eC._s.Description.displayName;var eB=t(12607),eD=t(25262),eL=t(8782),eG=t(10964),ez=t(89463),e_=t(90304),eP=t(622),eF=t(20633),eq=t(7778),eO=t(99312),eZ=t(92823),eH=t(71834);let eW=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let[e,s]=(0,n.useState)(null),[t,r]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),[u,m]=(0,n.useState)(!1),[x,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[g,v]=(0,n.useState)(0),[j,N]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),y=(0,n.useRef)(null),S=(0,n.useRef)(null),k=(0,n.useCallback)(()=>{s(null),r(null),c(null),m(!1),p(!1),f(!1),v(0),y.current=null},[]),A=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),s=await e.json();if(s.enabled){let e=new Date,t=60*e.getHours()+e.getMinutes(),[l,n]=s.start_time.split(":").map(Number),[r,i]=s.end_time.split(":").map(Number);b(t>=60*l+n&&t<=60*r+i)}else b(!1)}catch(e){console.error("Failed to check keep-alive schedule:",e),b(!1)}},[]);(0,n.useEffect)(()=>{A();let e=setInterval(A,6e4);return()=>clearInterval(e)},[A]),(0,n.useEffect)(()=>{if(u&&!x){N(!0);let e=setTimeout(()=>{N(!1)},1e4);return()=>clearTimeout(e)}},[u,x]),(0,n.useEffect)(()=>()=>{S.current&&S.current.abort()},[]);let E=(0,n.useCallback)(async()=>{if(!j&&!w)try{if(k(),f(!0),S.current&&S.current.abort(),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");C()}catch(e){console.error("Speedtest start error:",e),c(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),f(!1)}},[j,w,k]),C=(0,n.useCallback)(()=>{S.current=new AbortController,o(!1),p(!0),f(!1);try{fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_stream.sh",{method:"GET",signal:S.current.signal}).then(async e=>{var l;if(!e.ok)throw Error("Network response was not ok");o(!0);let n=null===(l=e.body)||void 0===l?void 0:l.getReader(),i=new TextDecoder;if(!n)throw Error("Unable to get reader from response body");let a="";for(;;){let{done:e,value:l}=await n.read();if(e)break;let o=i.decode(l,{stream:!0}),d=(a+=o).split("\n\n");for(let e of(a=d.pop()||"",d))if(e.startsWith("data: "))try{let l=JSON.parse(e.replace("data: ","").trim());switch(l.type){case"ping":r("ping"),v(l.ping.progress);break;case"download":case"upload":"ping"!==t&&r(l.type);break;case"result":m(!0),p(!1),n.cancel()}y.current=l,s(l)}catch(e){console.error("Parsing error:",e)}}}).catch(e=>{"AbortError"!==e.name&&(console.error("Fetch error:",e),c("Connection failed: ".concat(e instanceof Error?e.message:String(e))),p(!1))})}catch(e){console.error("Failed to initialize fetch:",e),c("Failed to connect to speedtest stream"),p(!1)}},[t]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(eR,{children:[(0,l.jsx)(eT,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eH.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(L.A,{className:"size-32 ".concat(w?"text-gray-400 cursor-not-allowed":"text-primary cursor-pointer"," z-10"),onClick:E})]})}),(0,l.jsx)(eM,{children:(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm p-6 py-12",children:(()=>{var s,n,r,a,o,c,m,x,p,f,v;if(d)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eB.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("p",{className:"underline cursor-pointer ml-2",onClick:E,children:"Please try again."})]})]});if(h)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eD.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===t)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==e?void 0:e.ping)?"Latency: ".concat(e.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(e.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(u)return(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(ez.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eQ(null==e?void 0:e.download.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(m=null==e?void 0:null===(a=e.download.latency)||void 0===a?void 0:null===(r=a.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==m?m:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eP.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eQ(null==e?void 0:e.upload.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(x=null==e?void 0:null===(c=e.upload.latency)||void 0===c?void 0:null===(o=c.iqm)||void 0===o?void 0:o.toFixed(2))&&void 0!==x?x:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"mt-4 grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(p=null==e?void 0:e.ping.latency.toFixed(2))&&void 0!==p?p:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eF.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(f=null==e?void 0:e.ping.jitter.toFixed(2))&&void 0!==f?f:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eq.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.isp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.internalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.externalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.name})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.location})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.country})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.host})]}),(null==e?void 0:e.result.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eO.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:e.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]});if(!t||!e)return null;let j=e[t],N="download"===t;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[N?(0,l.jsx)(ez.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eP.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",N?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eQ(j.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eZ.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eW(j.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(j.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(v=null===(n=j.latency)||void 0===n?void 0:null===(s=n.iqm)||void 0===s?void 0:s.toFixed(2))&&void 0!==v?v:"N/A"," ms"]})]})]})})]})})()})})]}),(0,l.jsx)(i.BT,{children:w?"Speedtest is disabled during keep-alive schedule.":j?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eJ=t(88926);let eV=()=>{let{toast:e}=(0,r.dj)(),{data:s,isLoading:t,refresh:i}=eb(),{dataConnectionState:a,isStateLoading:o,refresh:c}=ey(),{isRunningDiagnostics:u,runDiagnosticsData:m,startDiagnostics:x}=eA(),{bytesSent:g,bytesReceived:v,refresh:j}=ek(),N=async()=>{try{var t,l;let n=null==s?void 0:null===(t=s.simCard)||void 0===t?void 0:t.slot,r=await (0,eJ.a)("Slot 1"===n?"AT+QUIMSLOT=1":"AT+QUIMSLOT=2");if("error"===r.status||(null===(l=r.response)||void 0===l?void 0:l.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eJ.a)("AT+COPS=0"),setTimeout(async()=>{let s=await (0,eJ.a)("AT+COPS=2");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(w,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},w=(0,n.useCallback)(async()=>{try{await Promise.all([i(),c(),j()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[i,c,j]),[b,y]=(0,n.useState)([]),S=async()=>{try{await x()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{m&&console.log("Diagnostics data updated:",m)},[m]),(0,n.useEffect)(()=>{if(s&&s.currentBands){var e;let t=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,t)=>{var l,n,r,i,a,o,d;return{id:e,bandNumber:(null===(l=s.currentBands.bandNumber)||void 0===l?void 0:l[t])||"N/A",earfcn:(null===(n=s.currentBands.earfcn)||void 0===n?void 0:n[t])||"N/A",bandwidth:(null===(r=s.currentBands.bandwidth)||void 0===r?void 0:r[t])||"N/A",pci:(null===(i=s.currentBands.pci)||void 0===i?void 0:i[t])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[t])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[t])||"N/A",sinr:(null===(d=s.currentBands.sinr)||void 0===d?void 0:d[t])||"N/A"}});t&&y(t)}},[s]),(0,l.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(M.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:w,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==s?void 0:s.simCard.state)==="Not Inserted"&&(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(M.$,{variant:"destructive",children:[(0,l.jsx)(eE.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eE.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(M.$,{variant:"secondary",onClick:N,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(B.HM,{asChild:!0,children:(0,l.jsx)(M.$,{children:"Close"})})]})]})]}),(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(M.$,{variant:"secondary",onClick:S,children:[(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(B.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==m?void 0:m.netRegistration)==="Registered"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==m?void 0:m.simState)==="READY"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==m?void 0:m.manualAPN)==="Enabled"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==m?void 0:m.wanIP)==="Connected"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==m?void 0:m.cellSignal)==="Good"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==m?void 0:m.modemTemp)==="Normal"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==m?void 0:m.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(z.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==m?void 0:m.netReject})]})]})]})]}),u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(P(),{color:"#6D28D9"})}),(0,l.jsx)(B.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(E,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eK,{}),(0,l.jsx)(U,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:s,isLoading:t}),(0,l.jsx)(p,{data:s,isLoading:t,dataConnectionState:a,connectionStateLoading:o}),(0,l.jsx)(h,{data:s,isLoading:t,bytesSent:g,bytesReceived:v}),(0,l.jsx)(f,{data:s,isLoading:t})]})]}),(0,l.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)(Y,{bands:b,isLoading:t})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let o=await a.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(s&&(null===(l=o.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,4458,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d1d40639e260b0ae.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d1d40639e260b0ae.js new file mode 100644 index 0000000..6cbea9f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d1d40639e260b0ae.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,77501))},77501:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eZ});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),d=t(45934);let o=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(d.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(d.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var v=t(1307),g=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[d,o]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{o(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),d?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(v.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(v.II,{content:(0,l.jsx)(v.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},A=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[d,o]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){o("Failed to fetch Ethernet information"),r(!1)}})()},[]),d)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:d})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):A(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},E=e=>"".concat(Math.round(e/1048576)," MB"),I=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.available)})]})]})})]})},R={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,o]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();o(e=>null===e||m?l.latency:(n(e,l.latency,e=>o(e)),e));let r=T(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:T()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(d.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(v.at,{config:R,children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(v.II,{cursor:!1,content:(0,l.jsx)(v.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),D=t(93557),B=t(97801),L=t(14389),P=t(98969),G=t(17799),z=t(92776),_=t.n(z),F=t(7197),O=t(74043),q=t(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let W=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:d,children:o,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),v=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),g=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[g,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return v(m),m.on("reInit",v),m.on("select",v),()=>{null==m||m.off("select",v)}},[m,v]),(0,l.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",d),role:"region","aria-roledescription":"carousel",...c,children:o})})});W.displayName="Carousel";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=H();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Q.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:d,canScrollPrev:o}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!o,onClick:d,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:d,canScrollNext:o}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!o,onClick:d,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let V=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:o,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(d.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(o)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(o)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[o," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:t.includes("NR5G")?"NR-SNR":"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},$=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)(V,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsx)(i.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,l.jsx)(V,{...e},e.id))})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(d.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(d.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(d.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},J=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},Y=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},X=(e,s)=>{var t,l,n,r;switch(Number(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||Number(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},ee=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},es=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},et=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},el=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},en=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},er=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},ei=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ea=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ed=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eo=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},ec=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},eu=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),d=r(i),o=r(a);return i.length&&a.length?"".concat(Math.round((d+o)/2),"%"):i.length?"".concat(Math.round(d),"%"):a.length?"".concat(Math.round(o),"%"):"Unknown%"},em=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},ex=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eh=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ef=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map((e,s)=>{let t=e.split(":")[1].split(",");return 0===s?t.length>5?t[5]:"Unknown":t.length>9?t[9]:"Unknown"});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[9]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[10]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map((e,s)=>{let t=e.split(":")[1].split(",");return 0===s?t.length>6?t[6]:"Unknown":t.length>10?t[10]:"Unknown"});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},eg=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){let s=t.split("\n").find(e=>e.includes("NR5G-SA")),n="Unknown";if(s){var l;let e=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[11];if("-32768"===e)n="-";else{let s=parseInt(e);n=isNaN(s)?e||"Unknown":Math.round(s/100).toString()}}return[n,...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>11){let e=s[11];if("-32768"===e)return"-";let t=e.match(/-?\d+/);if(t){let e=parseInt(t[0]);return isNaN(e)?t[0]:Math.round(e/100).toString()}}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map((e,s)=>{let t;let l=e.split(":")[1].split(",");if("Unknown"!==(t=0===s?l.length>7?l[7]:"Unknown":l.length>11?l[11]:"Unknown")&&"-"!==t){let e=parseInt(t);if(!isNaN(e))return Math.round(e/100).toString()}return t});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},ej=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eN=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,d,o,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),f={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:J(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(o=p[12].response.split("\n")[1])||void 0===o?void 0:null===(d=o.split(":")[1])||void 0===d?void 0:d.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:X(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:ee(p[13].response)||"No Signal",modemTemperature:es(p[11].response)||"Unknown",accessTechnology:Y(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:et(p[13].response,ee(p[13].response))||"Unknown",connectedBands:el(p[13].response)||"Unknown",signalStrength:en(p[14].response)||"Unknown",mimoLayers:ej(p[14].response)||"Unknown"},cellularInfo:{cellId:er(p[10].response,ee(p[13].response))||"Unknown",trackingAreaCode:ei(p[10].response,ee(p[13].response))||"Unknown",physicalCellId:ea(p[13].response,ee(p[13].response)),earfcn:ed(p[13].response),mcc:eo(p[10].response,ee(p[13].response))||"Unknown",mnc:ec(p[10].response,ee(p[13].response))||"Unknown",signalQuality:eu(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=em(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:em(p[13].response)||["Unknown"],earfcn:ex(p[13].response),bandwidth:ep(p[13].response)||["Unknown"],pci:eh(p[13].response,ee(p[13].response))||["Unknown"],rsrp:ef(p[13].response,ee(p[13].response),p[10].response),rsrq:ev(p[13].response,ee(p[13].response),p[10].response)||["Unknown"],sinr:eg(p[13].response,ee(p[13].response),p[10].response)||["Unknown"]},networkAddressing:{publicIPv4:h.ok?(await h.json()).public_ip||"-":"Can't fetch public IP",cellularIPv4:(()=>{var e;let s=p[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV4"')),t=s&&(null===(e=s.match(/"IPV4","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0.0.0.0"===t?"-":t})(),cellularIPv6:(()=>{var e;let s=p[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV6"')),t=s&&(null===(e=s.match(/"IPV6","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0:0:0:0:0:0:0:0"===t?"-":t})(),carrierPrimaryDNS:(()=>{let e=p[20].response.split("\n").find(e=>e.includes("+CGCONTRDP:"));if(e){let s=e.split(",");return s.length>=2?s[s.length-2].replace(/"/g,"").trim():"-"}return"-"})(),carrierSecondaryDNS:(()=>{let e=p[20].response.split("\n").find(e=>e.includes("+CGCONTRDP:"));if(e){let s=e.split(",");return s.length>=1?s[s.length-1].replace(/"/g,"").trim():"-"}return"-"})()}};s(f),console.log("Processed home data:",f)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-"},cellularInfo:{cellId:"-",trackingAreaCode:"-",physicalCellId:"-",earfcn:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-"}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ew=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eb=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ey=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),d=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),o=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!d||!o){console.error("Missing required data in response");return}let[c,u]=d.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=o.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eb((u||0)+(m||0))),l(eb((c||0)+(x||0)))},d=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{d();let e=setInterval(d,12e3);return()=>clearInterval(e)},[d]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{d()},[d])}},eS=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},d=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),d=[];i&&(d=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let o=[];if(a&&(o=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),d=d.filter(e=>-32768!==e),o=o.filter(e=>-32768!==e),d=d.filter(e=>-140!==e),o=o.filter(e=>-140!==e),d.length>0){let e=d.reduce((e,s)=>e+s,0)/d.length;if(o.length>0){let s=o.reduce((e,s)=>e+s,0)/o.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(o.length>0)return o.reduce((e,s)=>e+s,0)/o.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},o=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),d=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),o=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==d?"".concat(d):null,"0"!==o?"".concat(o):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:d(s[6].response),modemTemp:o(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var ek=t(80159),eA=t(12607),eC=t(25262),eE=t(8782),eI=t(10964),eR=t(89463),eT=t(90304),eM=t(622),eU=t(20633),eD=t(7778),eB=t(99312),eL=t(91994),eP=t(92823),eG=t(71834);let ez=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),[g,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),S=(0,n.useRef)(null),k=(0,n.useRef)(null),A=(0,n.useCallback)(()=>{t(null),o(null),u(null),x(!1),h(!1),v(!1),j(0),k.current=null,S.current&&(clearInterval(S.current),S.current=null)},[]);(0,n.useEffect)(()=>{if(m&&!p){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,p]),(0,n.useEffect)(()=>()=>{S.current&&clearInterval(S.current)},[]);let C=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){p&&(u("Test ended unexpectedly"),h(!1)),S.current&&(clearInterval(S.current),S.current=null);return}if(s.type)try{switch(s.type){case"ping":o("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&o(s.type);break;case"result":if(s.download&&s.upload&&s.ping){k.current=s,t(s),x(!0),h(!1),S.current&&(clearInterval(S.current),S.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(k.current=s,t(s))}catch(e){console.error("Error polling speedtest status:",e),p&&(u("Failed to get speedtest status"),h(!1),S.current&&(clearInterval(S.current),S.current=null))}},[a,p]),E=(0,n.useCallback)(async()=>{if(!N)try{if(A(),v(!0),h(!0),y(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");S.current=setInterval(C,300),v(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),v(!1),h(!1)}},[N,A,C]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(D.lG,{open:b,onOpenChange:y,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eG.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(L.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{N||(e.preventDefault(),E())}})]})}),(0,l.jsxs)(D.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,l.jsx)(D.c7,{children:(0,l.jsxs)(D.L3,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2"})," Network Speedtest",m&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2",children:"Complete"}),p&&!m&&(0,l.jsx)(d.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,t,n,r,d,o,u,x,h,v,j,N,w,b,y,S,k,C,I,R,T,M,U,D,B,L;if(c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eA.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{A(),E()},children:"Please try again."})]})]});if(f||p&&!s)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eE.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eR.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(o=s.download)||void 0===o?void 0:null===(d=o.latency)||void 0===d?void 0:null===(r=d.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eM.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(U=null===(v=s.upload)||void 0===v?void 0:null===(h=v.latency)||void 0===h?void 0:null===(x=h.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==U?U:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eE.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==D?D:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eU.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(B=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==B?B:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:s.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(S=s.interface)||void 0===S?void 0:S.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(k=s.server)||void 0===k?void 0:k.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(C=s.server)||void 0===C?void 0:C.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(I=s.server)||void 0===I?void 0:I.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(R=s.server)||void 0===R?void 0:R.host)||"N/A"})]}),(null===(T=s.result)||void 0===T?void 0:T.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eB.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eA.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{A(),E()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eL.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let P=s[a],G="download"===a;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[G?(0,l.jsx)(eR.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eM.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",G?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:e_(P.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eP.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:ez(P.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(P.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(L=null===(t=P.latency)||void 0===t?void 0:null===(e=t.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==L?L:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(D.Es,{className:"flex justify-between items-center",children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(U.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(A(),E())},variant:"outline",disabled:N,children:[(0,l.jsx)(eL.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(U.$,{onClick:()=>y(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:p?(0,l.jsx)(U.$,{onClick:()=>{A(),y(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(U.$,{onClick:()=>y(!1),children:"Close"})})})]})]}),(0,l.jsx)(i.BT,{children:N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eO=t(88926);let eq=e=>{let{data:s,isLoading:t}=e;return(0,l.jsx)(i.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,l.jsxs)("div",{className:"grid md:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierPrimaryDNS})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierSecondaryDNS})]})]})})},eZ=()=>{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(!1),{data:i,isLoading:a,refresh:d}=eN(),{dataConnectionState:c,isStateLoading:u,refresh:m}=ew(),{isRunningDiagnostics:x,runDiagnosticsData:v,startDiagnostics:g}=eS(),{bytesSent:j,bytesReceived:N,refresh:w}=ey(),b=async()=>{try{var s,t;let l=await (0,eO.a)("AT+QUIMSLOT?"),n=null===(s=l.response)||void 0===s?void 0:s.raw_output.split("\n")[1].split(":")[1].trim(),r=await (0,eO.a)("1"===n?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===r.status||(null===(t=r.response)||void 0===t?void 0:t.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eO.a)("AT+COPS=2"),setTimeout(async()=>{let s=await (0,eO.a)("AT+COPS=0");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(y,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},y=(0,n.useCallback)(async()=>{try{await Promise.all([d(),m(),w()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[d,m,w]),[S,A]=(0,n.useState)([]),E=async()=>{try{await g()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{v&&console.log("Diagnostics data updated:",v)},[v]),(0,n.useEffect)(()=>{if(i&&i.currentBands){var e;let s=null===(e=i.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,a,d,o;return{id:e,bandNumber:(null===(t=i.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=i.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=i.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=i.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(a=i.currentBands.rsrp)||void 0===a?void 0:a[s])||"N/A",rsrq:(null===(d=i.currentBands.rsrq)||void 0===d?void 0:d[s])||"N/A",sinr:(null===(o=i.currentBands.sinr)||void 0===o?void 0:o[s])||"N/A"}});s&&A(s)}},[i]),(0,n.useEffect)(()=>{a||(null==i?void 0:i.simCard.state)!=="Not Inserted"||t(!0)},[i,a]),(0,l.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:y,children:(0,l.jsx)(B.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==i?void 0:i.simCard.state)==="Not Inserted"&&(0,l.jsxs)(D.lG,{open:s,onOpenChange:t,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(ek.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(ek.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{onClick:b,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(D.HM,{asChild:!0,children:(0,l.jsx)(U.$,{variant:"secondary",onClick:()=>t(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(D.lG,{children:[(0,l.jsx)(D.zM,{children:(0,l.jsxs)(U.$,{onClick:E,children:[(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!x&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(D.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==v?void 0:v.netRegistration)==="Registered"?(0,l.jsx)(P.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==v?void 0:v.simState)==="READY"?(0,l.jsx)(P.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==v?void 0:v.manualAPN)==="Enabled"?(0,l.jsx)(P.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==v?void 0:v.wanIP)==="Connected"?(0,l.jsx)(P.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==v?void 0:v.cellSignal)==="Good"?(0,l.jsx)(P.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==v?void 0:v.modemTemp)==="Normal"?(0,l.jsx)(P.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==v?void 0:v.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(P.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==v?void 0:v.netReject})]})]})]})]}),x&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(_(),{color:"#6D28D9"})}),(0,l.jsx)(D.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(C,{}),(0,l.jsx)(I,{}),(0,l.jsx)(eF,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(o,{data:i,isLoading:a}),(0,l.jsx)(p,{data:i,isLoading:a,dataConnectionState:c,connectionStateLoading:u}),(0,l.jsx)(h,{data:i,isLoading:a,bytesSent:j,bytesReceived:N}),(0,l.jsx)(f,{data:i,isLoading:a})]})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,l.jsx)("div",{children:(0,l.jsx)(eq,{data:i,isLoading:a})})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)("div",{children:(0,l.jsx)($,{bands:S,isLoading:a})})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>o,r:()=>d});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let d=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:o=!1,...c}=e,u=o?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(d({variant:n,size:i,className:t})),ref:s,...c})});o.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});d.displayName="CardTitle";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});o.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),d=t(22250);let o={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:o,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:o},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,d.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:o}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(o).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:o=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:v,nameKey:g,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(o||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,d.cn)("font-medium",p),children:i}):null},[m,x,r,o,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,d.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(g||e.name||e.dataKey||"value"),n=f(N,e,t),r=v||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,d.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,d.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,d.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:o}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,d.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(o,e,s);return(0,l.jsxs)("div",{className:(0,d.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>d,rr:()=>v,zM:()=>o});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let d=r.bL,o=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...d}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...d,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let v=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});v.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},d=[],o={toasts:[]};function c(e){o=a(o,e),d.forEach(e=>{e(o)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(o);return l.useEffect(()=>(d.push(s),()=>{let e=d.indexOf(s);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let d=await a.json();if(d.error)throw Error("AT queue error: ".concat(d.error));if(s&&(null===(l=d.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return d}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,8520,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d78788ef7de0d11e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d78788ef7de0d11e.js new file mode 100644 index 0000000..9ce9f6e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d78788ef7de0d11e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,77501))},77501:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eH});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var v=t(1307),g=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(v.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(v.II,{content:(0,l.jsx)(v.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},A=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):A(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},E=e=>"".concat(Math.round(e/1048576)," MB"),I=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.available)})]})]})})]})},R={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=T(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:T()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(v.at,{config:R,children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(v.II,{cursor:!1,content:(0,l.jsx)(v.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),D=t(93557),B=t(97801),P=t(14389),L=t(98969),G=t(17799),z=t(92776),_=t.n(z),F=t(7197),O=t(74043),q=t(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let W=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),v=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),g=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[g,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return v(m),m.on("reInit",v),m.on("select",v),()=>{null==m||m.off("select",v)}},[m,v]),(0,l.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});W.displayName="Carousel";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=H();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Q.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:t.includes("NR5G")?"NR-SNR":"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},V=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsx)(i.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,l.jsx)($,{...e},e.id))})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},J=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},Y=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},X=(e,s)=>{var t,l,n,r;switch(Number(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||Number(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},ee=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},es=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},et=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},el=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},en=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},er=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},ei=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ea=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},eo=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},ed=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},ec=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},eu=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},em=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},ex=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eh=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ef=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map((e,s)=>{let t=e.split(":")[1].split(",");return 0===s?t.length>5?t[5]:"Unknown":t.length>9?t[9]:"Unknown"});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[9]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[10]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map((e,s)=>{let t=e.split(":")[1].split(",");return 0===s?t.length>6?t[6]:"Unknown":t.length>10?t[10]:"Unknown"});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},eg=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){let s=t.split("\n").find(e=>e.includes("NR5G-SA")),n="Unknown";if(s){var l;let e=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[11];if("-32768"===e)n="-";else{let s=parseInt(e);n=isNaN(s)?e||"Unknown":Math.round(s/100).toString()}}return[n,...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>11){let e=s[11];if("-32768"===e)return"-";let t=e.match(/-?\d+/);if(t){let e=parseInt(t[0]);return isNaN(e)?t[0]:Math.round(e/100).toString()}}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map((e,s)=>{let t;let l=e.split(":")[1].split(",");if("Unknown"!==(t=0===s?l.length>7?l[7]:"Unknown":l.length>11?l[11]:"Unknown")&&"-"!==t){let e=parseInt(t);if(!isNaN(e))return Math.round(e/100).toString()}return t});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},ej=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eN=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),[a,o]=(0,n.useState)(0),d=(0,n.useCallback)(async e=>{console.error("Error fetching home data:",e),a<2?(console.log("Attempting automatic recovery (attempt ".concat(a+1,"/2)...")),await new Promise(e=>setTimeout(e,2e3)),o(e=>e+1),c()):(console.error("Max retry attempts reached. Please refresh manually."),i(e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-",bandwidth:"Unknown"},cellularInfo:{cellId:"-",trackingAreaCode:"-",physicalCellId:"-",earfcn:"-",mcc:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-"}}))},[a]),c=(0,n.useCallback)(async()=>{try{var e,t,n,r,a,c,u,m,x,p,h,f;let l=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1");if(!l.ok)throw Error("API returned status ".concat(l.status));let d=await l.json();console.log(d);let v=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),g={simCard:{slot:(null===(e=d[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:d[6].response.match("READY")?"Inserted":"Not Inserted",provider:J(d[2].response)||"Unknown",phoneNumber:(null===(n=d[1].response.split("\n")[1])||void 0===n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:d[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(r=d[4].response.split("\n")[1])||void 0===r?void 0:r.split(":")[1].trim())||"Unknown",imei:d[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(c=d[7].response.split("\n")[1])||void 0===c?void 0:null===(a=c.split(":")[1])||void 0===a?void 0:a.split(",")[2].replace(/"/g,"").trim())||(null===(m=d[12].response.split("\n")[1])||void 0===m?void 0:null===(u=m.split(":")[1])||void 0===u?void 0:u.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:X(d[8].response,d[16].response)||"Unknown",functionalityState:(null===(x=d[9].response.split("\n")[1])||void 0===x?void 0:x.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:ee(d[13].response)||"No Signal",modemTemperature:es(d[11].response)||"Unknown",accessTechnology:Y(d[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(p=d[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===p?void 0:p.length)>1?"Multi":"Inactive",bandwidth:et(d[13].response,ee(d[13].response))||"Unknown",connectedBands:el(d[13].response)||"Unknown",signalStrength:en(d[14].response)||"Unknown",mimoLayers:ej(d[14].response)||"Unknown"},cellularInfo:{cellId:er(d[10].response,ee(d[13].response))||"Unknown",trackingAreaCode:ei(d[10].response,ee(d[13].response))||"Unknown",physicalCellId:ea(d[13].response,ee(d[13].response)),earfcn:eo(d[13].response),mcc:ed(d[10].response,ee(d[13].response))||"Unknown",mnc:ec(d[10].response,ee(d[13].response))||"Unknown",signalQuality:eu(d[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(f=null===(h=em(d[13].response))||void 0===h?void 0:h.length)&&void 0!==f?f:0},(e,s)=>s+1)||[1],bandNumber:em(d[13].response)||["Unknown"],earfcn:ex(d[13].response),bandwidth:ep(d[13].response)||["Unknown"],pci:eh(d[13].response,ee(d[13].response))||["Unknown"],rsrp:ef(d[13].response,ee(d[13].response),d[10].response),rsrq:ev(d[13].response,ee(d[13].response),d[10].response)||["Unknown"],sinr:eg(d[13].response,ee(d[13].response),d[10].response)||["Unknown"]},networkAddressing:{publicIPv4:v.ok?(await v.json()).public_ip||"-":"Can't fetch public IP",cellularIPv4:(()=>{var e;let s=d[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV4"')),t=s&&(null===(e=s.match(/"IPV4","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0.0.0.0"===t?"-":t})(),cellularIPv6:(()=>{var e;let s=d[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV6"')),t=s&&(null===(e=s.match(/"IPV6","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0:0:0:0:0:0:0:0"===t?"-":t})(),carrierPrimaryDNS:(()=>{let e=d[20].response.split("\n").find(e=>e.includes("+CGCONTRDP:"));if(e){let s=e.split(",");return s.length>=2?s[s.length-2].replace(/"/g,"").trim():"-"}return"-"})(),carrierSecondaryDNS:(()=>{let e=d[20].response.split("\n").find(e=>e.includes("+CGCONTRDP:"));if(e){let s=e.split(",");return s.length>=1?s[s.length-1].replace(/"/g,"").trim():"-"}return"-"})()}};s(g),o(0),s(g),i(null),console.log("Processed home data:",g)}catch(e){console.error("Error fetching home data:",e),d(e instanceof Error?e:Error(String(e)))}finally{l(!1)}},[d]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await c()}finally{s&&l(!1)}})(),e=setInterval(()=>{c()},15e3),()=>{s=!1,clearInterval(e)}},[c]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await c(),l(!1)},[c])}},ew=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eb=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ey=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eb((u||0)+(m||0))),l(eb((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eS=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var ek=t(80159),eA=t(12607),eC=t(25262),eE=t(8782),eI=t(10964),eR=t(89463),eT=t(90304),eM=t(622),eU=t(20633),eD=t(7778),eB=t(99312),eP=t(91994),eL=t(92823),eG=t(71834);let ez=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(null),[a,d]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),[g,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),S=(0,n.useRef)(null),k=(0,n.useRef)(null),A=(0,n.useCallback)(()=>{t(null),d(null),u(null),x(!1),h(!1),v(!1),j(0),k.current=null,S.current&&(clearInterval(S.current),S.current=null)},[]);(0,n.useEffect)(()=>{if(m&&!p){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,p]),(0,n.useEffect)(()=>()=>{S.current&&clearInterval(S.current)},[]);let C=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){p&&(u("Test ended unexpectedly"),h(!1)),S.current&&(clearInterval(S.current),S.current=null);return}if(s.type)try{switch(s.type){case"ping":d("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&d(s.type);break;case"result":if(s.download&&s.upload&&s.ping){k.current=s,t(s),x(!0),h(!1),S.current&&(clearInterval(S.current),S.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(k.current=s,t(s))}catch(e){console.error("Error polling speedtest status:",e),p&&(u("Failed to get speedtest status"),h(!1),S.current&&(clearInterval(S.current),S.current=null))}},[a,p]),E=(0,n.useCallback)(async()=>{if(!N)try{if(A(),v(!0),h(!0),y(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");S.current=setInterval(C,300),v(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),v(!1),h(!1)}},[N,A,C]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(D.lG,{open:b,onOpenChange:y,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eG.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(P.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{N||(e.preventDefault(),E())}})]})}),(0,l.jsxs)(D.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,l.jsx)(D.c7,{children:(0,l.jsxs)(D.L3,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2"})," Network Speedtest",m&&(0,l.jsx)(o.E,{variant:"outline",className:"ml-2",children:"Complete"}),p&&!m&&(0,l.jsx)(o.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,t,n,r,o,d,u,x,h,v,j,N,w,b,y,S,k,C,I,R,T,M,U,D,B,P;if(c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eA.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{A(),E()},children:"Please try again."})]})]});if(f||p&&!s)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eE.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eR.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(d=s.download)||void 0===d?void 0:null===(o=d.latency)||void 0===o?void 0:null===(r=o.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eM.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(U=null===(v=s.upload)||void 0===v?void 0:null===(h=v.latency)||void 0===h?void 0:null===(x=h.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==U?U:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eE.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==D?D:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eU.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(B=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==B?B:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:s.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(S=s.interface)||void 0===S?void 0:S.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(k=s.server)||void 0===k?void 0:k.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(C=s.server)||void 0===C?void 0:C.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(I=s.server)||void 0===I?void 0:I.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(R=s.server)||void 0===R?void 0:R.host)||"N/A"})]}),(null===(T=s.result)||void 0===T?void 0:T.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eB.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eA.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{A(),E()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eP.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let L=s[a],G="download"===a;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[G?(0,l.jsx)(eR.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eM.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",G?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:e_(L.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:ez(L.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(L.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(P=null===(t=L.latency)||void 0===t?void 0:null===(e=t.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==P?P:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(D.Es,{className:"flex justify-between items-center",children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(U.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(A(),E())},variant:"outline",disabled:N,children:[(0,l.jsx)(eP.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(U.$,{onClick:()=>y(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:p?(0,l.jsx)(U.$,{onClick:()=>{A(),y(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(U.$,{onClick:()=>y(!1),children:"Close"})})})]})]}),(0,l.jsx)(i.BT,{children:N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eO=t(88926),eq=t(83148);let eZ=e=>{let{data:s,isLoading:t,onRefresh:o}=e,{toast:d}=(0,r.dj)(),[c,u]=(0,n.useState)(!1),m=async()=>{u(!0),d({title:"Disconnecting from network...",description:"Please wait while we disconnect from the network."});try{await (0,eO.a)("AT+COPS=2"),await new Promise(e=>setTimeout(e,2e3)),d({title:"Reconnecting to network...",description:"Please wait while we reconnect to the network."}),await (0,eO.a)("AT+COPS=0"),d({title:"Network Reconnection",description:"Network reconnection completed successfully."}),o&&setTimeout(o,3e3)}catch(e){console.error("Network reconnection failed:",e),d({title:"Network Reconnection",description:"Failed to reconnect to the network.",variant:"destructive"})}finally{u(!1)}};return(0,l.jsx)(i.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,l.jsxs)("div",{className:"grid md:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,l.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv4}),(null==s?void 0:s.networkAddressing.cellularIPv4)&&(0,l.jsx)(U.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:m,disabled:c,children:c?(0,l.jsx)(eq.A,{className:"h-4 w-4 animate-spin text-primary"}):(0,l.jsx)(eq.A,{className:"h-4 w-4 text-primary"})})]})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierPrimaryDNS})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierSecondaryDNS})]})]})})},eH=()=>{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(!1),{data:i,isLoading:a,refresh:o}=eN(),{dataConnectionState:c,isStateLoading:u,refresh:m}=ew(),{isRunningDiagnostics:x,runDiagnosticsData:v,startDiagnostics:g}=eS(),{bytesSent:j,bytesReceived:N,refresh:w}=ey(),b=async()=>{try{var s,t;let l=await (0,eO.a)("AT+QUIMSLOT?"),n=null===(s=l.response)||void 0===s?void 0:s.raw_output.split("\n")[1].split(":")[1].trim(),r=await (0,eO.a)("1"===n?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===r.status||(null===(t=r.response)||void 0===t?void 0:t.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eO.a)("AT+COPS=2"),setTimeout(async()=>{let s=await (0,eO.a)("AT+COPS=0");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(y,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},y=(0,n.useCallback)(async()=>{try{await Promise.all([o(),m(),w()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[o,m,w]),[S,A]=(0,n.useState)([]),E=async()=>{try{await g()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{v&&console.log("Diagnostics data updated:",v)},[v]),(0,n.useEffect)(()=>{if(i&&i.currentBands){var e;let s=null===(e=i.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,a,o,d;return{id:e,bandNumber:(null===(t=i.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=i.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=i.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=i.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(a=i.currentBands.rsrp)||void 0===a?void 0:a[s])||"N/A",rsrq:(null===(o=i.currentBands.rsrq)||void 0===o?void 0:o[s])||"N/A",sinr:(null===(d=i.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&A(s)}},[i]),(0,n.useEffect)(()=>{a||(null==i?void 0:i.simCard.state)!=="Not Inserted"||t(!0)},[i,a]),(0,l.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:y,children:(0,l.jsx)(B.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==i?void 0:i.simCard.state)==="Not Inserted"&&(0,l.jsxs)(D.lG,{open:s,onOpenChange:t,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(ek.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(ek.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{onClick:b,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(D.HM,{asChild:!0,children:(0,l.jsx)(U.$,{variant:"secondary",onClick:()=>t(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(D.lG,{children:[(0,l.jsx)(D.zM,{children:(0,l.jsxs)(U.$,{onClick:E,children:[(0,l.jsx)(P.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!x&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(D.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==v?void 0:v.netRegistration)==="Registered"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==v?void 0:v.simState)==="READY"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==v?void 0:v.manualAPN)==="Enabled"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==v?void 0:v.wanIP)==="Connected"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==v?void 0:v.cellSignal)==="Good"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==v?void 0:v.modemTemp)==="Normal"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==v?void 0:v.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(L.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==v?void 0:v.netReject})]})]})]})]}),x&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(_(),{color:"#6D28D9"})}),(0,l.jsx)(D.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(C,{}),(0,l.jsx)(I,{}),(0,l.jsx)(eF,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:i,isLoading:a}),(0,l.jsx)(p,{data:i,isLoading:a,dataConnectionState:c,connectionStateLoading:u}),(0,l.jsx)(h,{data:i,isLoading:a,bytesSent:j,bytesReceived:N}),(0,l.jsx)(f,{data:i,isLoading:a})]})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,l.jsx)("div",{children:(0,l.jsx)(eZ,{data:i,isLoading:a,onRefresh:y})})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)("div",{children:(0,l.jsx)(V,{bands:S,isLoading:a})})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:v,nameKey:g,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(g||e.name||e.dataKey||"value"),n=f(N,e,t),r=v||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>v,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let v=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});v.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let o=await a.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(s&&(null===(l=o.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,1203,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d9c5d63a9e27e2d1.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d9c5d63a9e27e2d1.js new file mode 100644 index 0000000..1af8098 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-d9c5d63a9e27e2d1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,77501))},77501:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eH});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},A=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):A(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},E=e=>"".concat(Math.round(e/1048576)," MB"),I=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.available)})]})]})})]})},R={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=T(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:T()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:R,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),D=t(93557),B=t(97801),P=t(14389),L=t(98969),G=t(17799),z=t(92776),_=t.n(z),F=t(7197),O=t(74043),q=t(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let W=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});W.displayName="Carousel";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=H();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Q.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:t.includes("NR5G")?"NR-SNR":"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},V=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsx)(i.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,l.jsx)($,{...e},e.id))})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},J=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},Y=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},X=(e,s)=>{var t,l,n,r;switch(Number(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||Number(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},ee=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},es=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},et=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},el=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},en=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},er=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},ei=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ea=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},eo=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},ed=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},ec=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},eu=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},em=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},ex=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eh=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ef=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map((e,s)=>{let t=e.split(":")[1].split(",");return 0===s?t.length>5?t[5]:"Unknown":t.length>9?t[9]:"Unknown"});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[9]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}return["Unknown"]},eg=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[10]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map((e,s)=>{let t=e.split(":")[1].split(",");return 0===s?t.length>6?t[6]:"Unknown":t.length>10?t[10]:"Unknown"});if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){let s=t.split("\n").find(e=>e.includes("NR5G-SA")),n="Unknown";if(s){var l;let e=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[11];if("-32768"===e)n="-";else{let s=parseInt(e);n=isNaN(s)?e||"Unknown":Math.round(s/100).toString()}}return[n,...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>11){let e=s[11];if("-32768"===e)return"-";let t=e.match(/-?\d+/);if(t){let e=parseInt(t[0]);return isNaN(e)?t[0]:Math.round(e/100).toString()}}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>5){let e=s[5].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(","),t=s.length>11?s[11]:"Unknown";if("Unknown"!==t&&"-"!==t){if("-32768"===t)return"-";let e=parseInt(t);if(!isNaN(e))return Math.round(e/100).toString()}return t})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ej=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eN=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),[a,o]=(0,n.useState)(0),d=(0,n.useCallback)(async e=>{console.error("Error fetching home data:",e),a<2?(console.log("Attempting automatic recovery (attempt ".concat(a+1,"/2)...")),await new Promise(e=>setTimeout(e,2e3)),o(e=>e+1),c()):(console.error("Max retry attempts reached. Please refresh manually."),i(e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-",bandwidth:"Unknown"},cellularInfo:{cellId:"-",trackingAreaCode:"-",physicalCellId:"-",earfcn:"-",mcc:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-"}}))},[a]),c=(0,n.useCallback)(async()=>{try{var e,t,n,r,a,c,u,m,x,p,h,f;let l=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1");if(!l.ok)throw Error("API returned status ".concat(l.status));let d=await l.json();console.log(d);let g=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),v={simCard:{slot:(null===(e=d[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:d[6].response.match("READY")?"Inserted":"Not Inserted",provider:J(d[2].response)||"Unknown",phoneNumber:(null===(n=d[1].response.split("\n")[1])||void 0===n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:d[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(r=d[4].response.split("\n")[1])||void 0===r?void 0:r.split(":")[1].trim())||"Unknown",imei:d[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(c=d[7].response.split("\n")[1])||void 0===c?void 0:null===(a=c.split(":")[1])||void 0===a?void 0:a.split(",")[2].replace(/"/g,"").trim())||(null===(m=d[12].response.split("\n")[1])||void 0===m?void 0:null===(u=m.split(":")[1])||void 0===u?void 0:u.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:X(d[8].response,d[16].response)||"Unknown",functionalityState:(null===(x=d[9].response.split("\n")[1])||void 0===x?void 0:x.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:ee(d[13].response)||"No Signal",modemTemperature:es(d[11].response)||"Unknown",accessTechnology:Y(d[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(p=d[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===p?void 0:p.length)>1?"Multi":"Inactive",bandwidth:et(d[13].response,ee(d[13].response))||"Unknown",connectedBands:el(d[13].response)||"Unknown",signalStrength:en(d[14].response)||"Unknown",mimoLayers:ej(d[14].response)||"Unknown"},cellularInfo:{cellId:er(d[10].response,ee(d[13].response))||"Unknown",trackingAreaCode:ei(d[10].response,ee(d[13].response))||"Unknown",physicalCellId:ea(d[13].response,ee(d[13].response)),earfcn:eo(d[13].response),mcc:ed(d[10].response,ee(d[13].response))||"Unknown",mnc:ec(d[10].response,ee(d[13].response))||"Unknown",signalQuality:eu(d[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(f=null===(h=em(d[13].response))||void 0===h?void 0:h.length)&&void 0!==f?f:0},(e,s)=>s+1)||[1],bandNumber:em(d[13].response)||["Unknown"],earfcn:ex(d[13].response),bandwidth:ep(d[13].response)||["Unknown"],pci:eh(d[13].response,ee(d[13].response))||["Unknown"],rsrp:ef(d[13].response,ee(d[13].response),d[10].response),rsrq:eg(d[13].response,ee(d[13].response),d[10].response)||["Unknown"],sinr:ev(d[13].response,ee(d[13].response),d[10].response)||["Unknown"]},networkAddressing:{publicIPv4:g.ok?(await g.json()).public_ip||"-":"Can't fetch public IP",cellularIPv4:(()=>{var e;let s=d[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV4"')),t=s&&(null===(e=s.match(/"IPV4","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0.0.0.0"===t?"-":t})(),cellularIPv6:(()=>{var e;let s=d[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV6"')),t=s&&(null===(e=s.match(/"IPV6","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0:0:0:0:0:0:0:0"===t?"-":t})(),carrierPrimaryDNS:(()=>{let e=d[20].response.split("\n").find(e=>e.includes("+CGCONTRDP:"));if(e){let s=e.split(",");return s.length>=2?s[s.length-2].replace(/"/g,"").trim():"-"}return"-"})(),carrierSecondaryDNS:(()=>{let e=d[20].response.split("\n").find(e=>e.includes("+CGCONTRDP:"));if(e){let s=e.split(",");return s.length>=1?s[s.length-1].replace(/"/g,"").trim():"-"}return"-"})()}};s(v),o(0),s(v),i(null),console.log("Processed home data:",v)}catch(e){console.error("Error fetching home data:",e),d(e instanceof Error?e:Error(String(e)))}finally{l(!1)}},[d]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await c()}finally{s&&l(!1)}})(),e=setInterval(()=>{c()},15e3),()=>{s=!1,clearInterval(e)}},[c]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await c(),l(!1)},[c])}},ew=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eb=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ey=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eb((u||0)+(m||0))),l(eb((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eS=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var ek=t(80159),eA=t(12607),eC=t(25262),eE=t(8782),eI=t(10964),eR=t(89463),eT=t(90304),eM=t(622),eU=t(20633),eD=t(7778),eB=t(99312),eP=t(91994),eL=t(92823),eG=t(71834);let ez=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(null),[a,d]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),[f,g]=(0,n.useState)(!1),[v,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),S=(0,n.useRef)(null),k=(0,n.useRef)(null),A=(0,n.useCallback)(()=>{t(null),d(null),u(null),x(!1),h(!1),g(!1),j(0),k.current=null,S.current&&(clearInterval(S.current),S.current=null)},[]);(0,n.useEffect)(()=>{if(m&&!p){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,p]),(0,n.useEffect)(()=>()=>{S.current&&clearInterval(S.current)},[]);let C=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){p&&(u("Test ended unexpectedly"),h(!1)),S.current&&(clearInterval(S.current),S.current=null);return}if(s.type)try{switch(s.type){case"ping":d("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&d(s.type);break;case"result":if(s.download&&s.upload&&s.ping){k.current=s,t(s),x(!0),h(!1),S.current&&(clearInterval(S.current),S.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(k.current=s,t(s))}catch(e){console.error("Error polling speedtest status:",e),p&&(u("Failed to get speedtest status"),h(!1),S.current&&(clearInterval(S.current),S.current=null))}},[a,p]),E=(0,n.useCallback)(async()=>{if(!N)try{if(A(),g(!0),h(!0),y(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");S.current=setInterval(C,300),g(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),g(!1),h(!1)}},[N,A,C]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(D.lG,{open:b,onOpenChange:y,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eG.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(P.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{N||(e.preventDefault(),E())}})]})}),(0,l.jsxs)(D.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,l.jsx)(D.c7,{children:(0,l.jsxs)(D.L3,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2"})," Network Speedtest",m&&(0,l.jsx)(o.E,{variant:"outline",className:"ml-2",children:"Complete"}),p&&!m&&(0,l.jsx)(o.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,t,n,r,o,d,u,x,h,g,j,N,w,b,y,S,k,C,I,R,T,M,U,D,B,P;if(c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eA.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{A(),E()},children:"Please try again."})]})]});if(f||p&&!s)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eE.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(v||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eR.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(d=s.download)||void 0===d?void 0:null===(o=d.latency)||void 0===o?void 0:null===(r=o.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eM.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(U=null===(g=s.upload)||void 0===g?void 0:null===(h=g.latency)||void 0===h?void 0:null===(x=h.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==U?U:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eE.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==D?D:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eU.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(B=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==B?B:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:s.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(S=s.interface)||void 0===S?void 0:S.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(k=s.server)||void 0===k?void 0:k.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(C=s.server)||void 0===C?void 0:C.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(I=s.server)||void 0===I?void 0:I.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(R=s.server)||void 0===R?void 0:R.host)||"N/A"})]}),(null===(T=s.result)||void 0===T?void 0:T.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eB.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eA.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{A(),E()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eP.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let L=s[a],G="download"===a;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[G?(0,l.jsx)(eR.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eM.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",G?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:e_(L.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:ez(L.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(L.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(P=null===(t=L.latency)||void 0===t?void 0:null===(e=t.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==P?P:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(D.Es,{className:"flex justify-between items-center",children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(U.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(A(),E())},variant:"outline",disabled:N,children:[(0,l.jsx)(eP.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(U.$,{onClick:()=>y(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:p?(0,l.jsx)(U.$,{onClick:()=>{A(),y(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(U.$,{onClick:()=>y(!1),children:"Close"})})})]})]}),(0,l.jsx)(i.BT,{children:N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eO=t(88926),eq=t(83148);let eZ=e=>{let{data:s,isLoading:t,onRefresh:o}=e,{toast:d}=(0,r.dj)(),[c,u]=(0,n.useState)(!1),m=async()=>{u(!0),d({title:"Disconnecting from network...",description:"Please wait while we disconnect from the network."});try{await (0,eO.a)("AT+COPS=2"),await new Promise(e=>setTimeout(e,2e3)),d({title:"Reconnecting to network...",description:"Please wait while we reconnect to the network."}),await (0,eO.a)("AT+COPS=0"),d({title:"Network Reconnection",description:"Network reconnection completed successfully."}),o&&setTimeout(o,3e3)}catch(e){console.error("Network reconnection failed:",e),d({title:"Network Reconnection",description:"Failed to reconnect to the network.",variant:"destructive"})}finally{u(!1)}};return(0,l.jsx)(i.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,l.jsxs)("div",{className:"grid md:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,l.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv4}),(null==s?void 0:s.networkAddressing.cellularIPv4)&&(0,l.jsx)(U.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:m,disabled:c,children:c?(0,l.jsx)(eq.A,{className:"h-4 w-4 animate-spin text-primary"}):(0,l.jsx)(eq.A,{className:"h-4 w-4 text-primary"})})]})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierPrimaryDNS})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierSecondaryDNS})]})]})})},eH=()=>{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(!1),{data:i,isLoading:a,refresh:o}=eN(),{dataConnectionState:c,isStateLoading:u,refresh:m}=ew(),{isRunningDiagnostics:x,runDiagnosticsData:g,startDiagnostics:v}=eS(),{bytesSent:j,bytesReceived:N,refresh:w}=ey(),b=async()=>{try{var s,t;let l=await (0,eO.a)("AT+QUIMSLOT?"),n=null===(s=l.response)||void 0===s?void 0:s.raw_output.split("\n")[1].split(":")[1].trim(),r=await (0,eO.a)("1"===n?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===r.status||(null===(t=r.response)||void 0===t?void 0:t.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eO.a)("AT+COPS=2"),setTimeout(async()=>{let s=await (0,eO.a)("AT+COPS=0");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(y,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},y=(0,n.useCallback)(async()=>{try{await Promise.all([o(),m(),w()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[o,m,w]),[S,A]=(0,n.useState)([]),E=async()=>{try{await v()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{g&&console.log("Diagnostics data updated:",g)},[g]),(0,n.useEffect)(()=>{if(i&&i.currentBands){var e;let s=null===(e=i.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,a,o,d;return{id:e,bandNumber:(null===(t=i.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=i.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=i.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=i.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(a=i.currentBands.rsrp)||void 0===a?void 0:a[s])||"N/A",rsrq:(null===(o=i.currentBands.rsrq)||void 0===o?void 0:o[s])||"N/A",sinr:(null===(d=i.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&A(s)}},[i]),(0,n.useEffect)(()=>{a||(null==i?void 0:i.simCard.state)!=="Not Inserted"||t(!0)},[i,a]),(0,l.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:y,children:(0,l.jsx)(B.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==i?void 0:i.simCard.state)==="Not Inserted"&&(0,l.jsxs)(D.lG,{open:s,onOpenChange:t,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(ek.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(ek.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{onClick:b,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(D.HM,{asChild:!0,children:(0,l.jsx)(U.$,{variant:"secondary",onClick:()=>t(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(D.lG,{children:[(0,l.jsx)(D.zM,{children:(0,l.jsxs)(U.$,{onClick:E,children:[(0,l.jsx)(P.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!x&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(D.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==g?void 0:g.netRegistration)==="Registered"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==g?void 0:g.simState)==="READY"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==g?void 0:g.manualAPN)==="Enabled"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==g?void 0:g.wanIP)==="Connected"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==g?void 0:g.cellSignal)==="Good"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==g?void 0:g.modemTemp)==="Normal"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==g?void 0:g.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(L.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==g?void 0:g.netReject})]})]})]})]}),x&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(_(),{color:"#6D28D9"})}),(0,l.jsx)(D.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(C,{}),(0,l.jsx)(I,{}),(0,l.jsx)(eF,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:i,isLoading:a}),(0,l.jsx)(p,{data:i,isLoading:a,dataConnectionState:c,connectionStateLoading:u}),(0,l.jsx)(h,{data:i,isLoading:a,bytesSent:j,bytesReceived:N}),(0,l.jsx)(f,{data:i,isLoading:a})]})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,l.jsx)("div",{children:(0,l.jsx)(eZ,{data:i,isLoading:a,onRefresh:y})})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)("div",{children:(0,l.jsx)(V,{bands:S,isLoading:a})})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let o=await a.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(s&&(null===(l=o.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,1203,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-e0ed331f028a20c3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-e0ed331f028a20c3.js new file mode 100644 index 0000000..33ec4ed --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-e0ed331f028a20c3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,88954))},88954:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eJ});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Realtime LTE/5G Signal performance"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"The tabs show the combined average value for LTE and 5G metrics."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"The higher the value, the better the signal quality."})]})]})},E=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):E(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},A=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:A(e.available)})]})]})})]})},T={ms:{label:"ms",color:"hsl(var(--chart-4))"}},I=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=I(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:I()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:T,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),B=t(93557),D=t(97801),L=t(14389),G=t(98969),z=t(17799),_=t(92776),P=t.n(_),F=t(7197),O=t(74043),q=t(22250);let H=n.createContext(null);function Z(){let e=n.useContext(H);if(!e)throw Error("useCarousel must be used within a ");return e}let Q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(H.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});Q.displayName="Carousel";let W=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=Z();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});W.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=Z();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem";let J=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=Z();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});J.displayName="CarouselPrevious";let V=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=Z();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},Y=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(Q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(W,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Current bands connected."})})]})}),(0,l.jsxs)(Q,{className:"lg:hidden w-full max-w-xs",children:[(0,l.jsx)(W,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,l.jsx)(J,{}),(0,l.jsx)(V,{})]})]})},X=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},ee=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},es=(e,s)=>{var t,l,n,r;switch((null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},el=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},en=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},ei=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e),i=i.filter(e=>-140!==e&&-37625!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},ea=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},eo=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ed=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ec=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eu=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},em=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},ex=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-37625!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eh=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ef=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eg=(e,s)=>{if("LTE"===s||"NR5G-SA"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&l.length?[...s,...l]:s.length?s:l.length?l:["Unknown"]}if("NR5G-SA"===s){let e=t.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var l;return[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[12]]}}return["Unknown"]},ej=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},eN=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},ew=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eb=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,o,d,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:X(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=p[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:es(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:et(p[13].response)||"No Signal",modemTemperature:el(p[11].response)||"Unknown",accessTechnology:ee(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:en(p[13].response,et(p[13].response))||"Unknown",connectedBands:er(p[13].response)||"Unknown",signalStrength:ei(p[14].response)||"Unknown",mimoLayers:ew(p[14].response)||"Unknown"},cellularInfo:{cellId:ea(p[10].response,et(p[13].response))||"Unknown",trackingAreaCode:eo(p[10].response,et(p[13].response))||"Unknown",physicalCellId:ed(p[13].response,et(p[13].response)),earfcn:ec(p[13].response),mcc:eu(p[10].response,et(p[13].response))||"Unknown",mnc:em(p[10].response,et(p[13].response))||"Unknown",signalQuality:ex(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=ep(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:ep(p[13].response)||["Unknown"],earfcn:eh(p[13].response),bandwidth:ef(p[13].response)||["Unknown"],pci:eg(p[13].response,et(p[13].response))||["Unknown"],rsrp:ev(p[13].response,et(p[13].response),p[10].response),rsrq:ej(p[13].response,et(p[13].response),p[10].response)||["Unknown"],sinr:eN(p[13].response,et(p[13].response),p[10].response)||["Unknown"]}};s(h)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ey=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eS=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ek=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eS((u||0)+(m||0))),l(eS((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eE=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eC=t(80159),eA=t(71602);let eR=e=>{let{shouldScaleBackground:s=!0,...t}=e;return(0,l.jsx)(eA._s.Root,{shouldScaleBackground:s,...t})};eR.displayName="Drawer";let eT=eA._s.Trigger,eI=eA._s.Portal;eA._s.Close;let eM=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Overlay,{ref:s,className:(0,q.cn)("fixed inset-0 z-50 bg-black/80",t),...n})});eM.displayName=eA._s.Overlay.displayName;let eU=n.forwardRef((e,s)=>{let{className:t,children:n,...r}=e;return(0,l.jsxs)(eI,{children:[(0,l.jsx)(eM,{}),(0,l.jsxs)(eA._s.Content,{ref:s,className:(0,q.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...r,children:[(0,l.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),n]})]})});eU.displayName="DrawerContent",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Title,{ref:s,className:(0,q.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})}).displayName=eA._s.Title.displayName,n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(eA._s.Description,{ref:s,className:(0,q.cn)("text-sm text-muted-foreground",t),...n})}).displayName=eA._s.Description.displayName;var eB=t(12607),eD=t(25262),eL=t(8782),eG=t(10964),ez=t(89463),e_=t(90304),eP=t(622),eF=t(20633),eO=t(7778),eq=t(99312),eH=t(92823),eZ=t(71834);let eQ=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let[e,s]=(0,n.useState)(null),[t,r]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),[u,m]=(0,n.useState)(!1),[x,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[g,v]=(0,n.useState)(0),[j,N]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),y=(0,n.useRef)(null),S=(0,n.useRef)(null),k=(0,n.useCallback)(()=>{s(null),r(null),c(null),m(!1),p(!1),f(!1),v(0),y.current=null},[]),E=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),s=await e.json();if(s.enabled){let e=new Date,t=60*e.getHours()+e.getMinutes(),[l,n]=s.start_time.split(":").map(Number),[r,i]=s.end_time.split(":").map(Number);b(t>=60*l+n&&t<=60*r+i)}else b(!1)}catch(e){console.error("Failed to check keep-alive schedule:",e),b(!1)}},[]);(0,n.useEffect)(()=>{E();let e=setInterval(E,6e4);return()=>clearInterval(e)},[E]),(0,n.useEffect)(()=>{if(u&&!x){N(!0);let e=setTimeout(()=>{N(!1)},1e4);return()=>clearTimeout(e)}},[u,x]),(0,n.useEffect)(()=>()=>{S.current&&S.current.abort()},[]);let C=(0,n.useCallback)(async()=>{if(!j&&!w)try{if(k(),f(!0),S.current&&S.current.abort(),!(await fetch("/cgi-bin/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");A()}catch(e){console.error("Speedtest start error:",e),c(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),f(!1)}},[j,w,k]),A=(0,n.useCallback)(()=>{S.current=new AbortController,o(!1),p(!0),f(!1);try{fetch("/cgi-bin/home/speedtest/speedtest_stream.sh",{method:"GET",signal:S.current.signal}).then(async e=>{var l;if(!e.ok)throw Error("Network response was not ok");o(!0);let n=null===(l=e.body)||void 0===l?void 0:l.getReader(),i=new TextDecoder;if(!n)throw Error("Unable to get reader from response body");let a="";for(;;){let{done:e,value:l}=await n.read();if(e)break;let o=i.decode(l,{stream:!0}),d=(a+=o).split("\n\n");for(let e of(a=d.pop()||"",d))if(e.startsWith("data: "))try{let l=JSON.parse(e.replace("data: ","").trim());switch(l.type){case"ping":r("ping"),v(l.ping.progress);break;case"download":case"upload":"ping"!==t&&r(l.type);break;case"result":m(!0),p(!1),n.cancel()}y.current=l,s(l)}catch(e){console.error("Parsing error:",e)}}}).catch(e=>{"AbortError"!==e.name&&(console.error("Fetch error:",e),c("Connection failed: ".concat(e instanceof Error?e.message:String(e))),p(!1))})}catch(e){console.error("Failed to initialize fetch:",e),c("Failed to connect to speedtest stream"),p(!1)}},[t]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(eR,{children:[(0,l.jsx)(eT,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eZ.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(L.A,{className:"size-32 ".concat(w?"text-gray-400 cursor-not-allowed":"text-primary cursor-pointer"," z-10"),onClick:C})]})}),(0,l.jsx)(eU,{children:(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm p-6 py-12",children:(()=>{var s,n,r,a,o,c,m,x,p,f,v;if(d)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eB.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("p",{className:"underline cursor-pointer ml-2",onClick:C,children:"Please try again."})]})]});if(h)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eD.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===t)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==e?void 0:e.ping)?"Latency: ".concat(e.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(e.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(u)return(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(ez.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.download.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(m=null==e?void 0:null===(a=e.download.latency)||void 0===a?void 0:null===(r=a.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==m?m:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eP.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eW(null==e?void 0:e.upload.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(e_.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(x=null==e?void 0:null===(c=e.upload.latency)||void 0===c?void 0:null===(o=c.iqm)||void 0===o?void 0:o.toFixed(2))&&void 0!==x?x:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"mt-4 grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(p=null==e?void 0:e.ping.latency.toFixed(2))&&void 0!==p?p:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eF.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(f=null==e?void 0:e.ping.jitter.toFixed(2))&&void 0!==f?f:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eO.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.isp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.internalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.interface.externalIp})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.name})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.location})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.country})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:null==e?void 0:e.server.host})]}),(null==e?void 0:e.result.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eq.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:e.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]});if(!t||!e)return null;let j=e[t],N="download"===t;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[N?(0,l.jsx)(ez.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eP.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",N?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eW(j.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eH.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eQ(j.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eG.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(j.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(v=null===(n=j.latency)||void 0===n?void 0:null===(s=n.iqm)||void 0===s?void 0:s.toFixed(2))&&void 0!==v?v:"N/A"," ms"]})]})]})})]})})()})})]}),(0,l.jsx)(i.BT,{children:w?"Speedtest is disabled during keep-alive schedule.":j?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})},eJ=()=>{let{toast:e}=(0,r.dj)(),{data:s,isLoading:t,refresh:i}=eb(),{dataConnectionState:a,isStateLoading:o,refresh:c}=ey(),{isRunningDiagnostics:u,runDiagnosticsData:m,startDiagnostics:x}=eE(),{bytesSent:g,bytesReceived:v,refresh:j}=ek(),N=async()=>{try{let s=await fetch("/cgi-bin/settings/force-rerun.sh"),t=await s.json();if("success"===t.status)e({title:"Data Refreshed",description:"Data and scripts has been refreshed successfully"});else if("info"===t.status)e({title:"Data Refreshed",description:"Data refreshed successfully, but no scripts to restart."});else throw Error("Failed to restart scripts")}catch(s){console.error("Error rerunning scripts:",s),e({variant:"destructive",title:"Script Restart Failed",description:"Failed to restart the required scripts"})}},w=async()=>{try{var t;let l=null==s?void 0:null===(t=s.simCard)||void 0===t?void 0:t.slot,n=encodeURIComponent("Slot 1"===l?"AT+QUIMSLOT=1":"AT+QUIMSLOT=2"),r=await fetch("/cgi-bin/at_command.sh?command=".concat(n));if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let i=await r.json();if(i.error)throw Error(i.error);e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{let e=encodeURIComponent("AT+COPS=0;+COPS=2"),s=await fetch("/cgi-bin/at_command.sh?command=".concat(e));if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let t=await s.json();if(t.error)throw Error(t.error)},3e3),setTimeout(b,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:"Failed to change the SIM slot"})}},b=(0,n.useCallback)(async()=>{try{await Promise.all([i(),c(),j()]),await N()}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[i,c,j]),[y,S]=(0,n.useState)([]),E=async()=>{try{await x()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{m&&console.log("Diagnostics data updated:",m)},[m]),(0,n.useEffect)(()=>{if(s&&s.currentBands){var e;let t=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,t)=>{var l,n,r,i,a,o,d;return{id:e,bandNumber:(null===(l=s.currentBands.bandNumber)||void 0===l?void 0:l[t])||"N/A",earfcn:(null===(n=s.currentBands.earfcn)||void 0===n?void 0:n[t])||"N/A",bandwidth:(null===(r=s.currentBands.bandwidth)||void 0===r?void 0:r[t])||"N/A",pci:(null===(i=s.currentBands.pci)||void 0===i?void 0:i[t])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[t])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[t])||"N/A",sinr:(null===(d=s.currentBands.sinr)||void 0===d?void 0:d[t])||"N/A"}});t&&S(t)}},[s]),(0,l.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:b,children:(0,l.jsx)(D.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==s?void 0:s.simCard.state)==="Not Inserted"&&(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(eC.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eC.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{variant:"secondary",onClick:w,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(B.HM,{asChild:!0,children:(0,l.jsx)(U.$,{children:"Close"})})]})]})]}),(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{variant:"secondary",onClick:E,children:[(0,l.jsx)(L.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(B.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==m?void 0:m.netRegistration)==="Registered"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==m?void 0:m.simState)==="READY"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==m?void 0:m.manualAPN)==="Enabled"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==m?void 0:m.wanIP)==="Connected"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==m?void 0:m.cellSignal)==="Good"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==m?void 0:m.modemTemp)==="Normal"?(0,l.jsx)(G.A,{className:"text-green-500"}):(0,l.jsx)(z.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==m?void 0:m.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(z.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==m?void 0:m.netReject})]})]})]})]}),u&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(P(),{color:"#6D28D9"})}),(0,l.jsx)(B.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(C,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eK,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:s,isLoading:t}),(0,l.jsx)(p,{data:s,isLoading:t,dataConnectionState:a,connectionStateLoading:o}),(0,l.jsx)(h,{data:s,isLoading:t,bytesSent:g,bytesReceived:v}),(0,l.jsx)(f,{data:s,isLoading:t})]})]}),(0,l.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)(Y,{bands:y,isLoading:t})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,6357,1074,4458,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-e9eb1f57dcf45496.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-e9eb1f57dcf45496.js new file mode 100644 index 0000000..208c497 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-e9eb1f57dcf45496.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,77501))},77501:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eH});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var g=t(1307),v=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},S=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},k=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:S(t.rsrp[s].output),rsrq:S(t.rsrq[s].output),sinr:S(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(g.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(g.II,{content:(0,l.jsx)(g.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},A=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):A(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},E=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.available)})]})]})})]})},I={ms:{label:"ms",color:"hsl(var(--chart-4))"}},T=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=T(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:T()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(g.at,{config:I,children:(0,l.jsxs)(v.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(g.II,{cursor:!1,content:(0,l.jsx)(g.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),D=t(93557),B=t(97801),P=t(14389),L=t(98969),G=t(17799),z=t(92776),_=t.n(z),F=t(7197),O=t(74043),q=t(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let W=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,O.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),v=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,l.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,q.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});W.displayName="Carousel";let Q=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=H();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,q.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});Q.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,q.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,q.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let $=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:t.includes("NR5G")?"NR-SNR":"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},V=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)($,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsx)(i.Zp,{className:"p-6 grid gap-4",children:s&&s.map(e=>(0,l.jsx)($,{...e},e.id))})}),(0,l.jsx)(W,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(Q,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))})})]})},J=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},Y=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},X=(e,s)=>{var t,l,n,r;switch(Number(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||Number(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},ee=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},es=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},et=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},el=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},en=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},er=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},ei=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ea=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},eo=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},ed=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},ec=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},eu=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},em=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},ex=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},eh=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},ef=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[9]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>4){let e=s[4].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(",");if(s.length>9){let e=s[9].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},eg=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let s=t.split("\n").find(e=>e.includes("NR5G-SA"));return[s?null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[10]:"Unknown",...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>6){let e=s[6].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(",");if(s.length>10){let e=s[10].match(/-?\d+/);return e?e[0]:"Unknown"}return"Unknown"})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ev=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){let s=t.split("\n").find(e=>e.includes("NR5G-SA")),n="Unknown";if(s){var l;let e=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[11];if("-32768"===e)n="-";else{let s=parseInt(e);n=isNaN(s)?e||"Unknown":Math.round(s/100).toString()}}return[n,...e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")).map(e=>{let s=e.split(":")[1].split(",");if(s.length>11){let e=s[11];if("-32768"===e)return"-";let t=e.match(/-?\d+/);if(t){let e=parseInt(t[0]);return isNaN(e)?t[0]:Math.round(e/100).toString()}}return"Unknown"})]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G BAND")),n=[];if(l.length>0){let e=t.split("\n").find(e=>e.includes("NR5G-NSA"));if(e){let s=e.split(",");if(s.length>5){let e=s[5].trim();n.push(e)}else n.push("Unknown")}else n.push("Unknown");l.length>1&&(n=[...n,...l.slice(1).map(e=>{let s=e.split(":")[1].split(","),t=s.length>11?s[11]:"Unknown";if("Unknown"!==t&&"-"!==t){if("-32768"===t)return"-";let e=parseInt(t);if(!isNaN(e))return Math.round(e/100).toString()}return t})])}if(s.length&&n.length)return[...s,...n];if(s.length)return s;if(n.length)return n}return["Unknown"]},ej=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eN=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),[a,o]=(0,n.useState)(0),d=(0,n.useCallback)(async e=>{console.error("Error fetching home data:",e),a<2?(console.log("Attempting automatic recovery (attempt ".concat(a+1,"/2)...")),await new Promise(e=>setTimeout(e,2e3)),o(e=>e+1),c()):(console.error("Max retry attempts reached. Please refresh manually."),i(e),s({simCard:{slot:"Not Inserted",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"-",iccid:"-",imei:"-"},connection:{apn:"No APN",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"-"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"-",signalStrength:"-%",mimoLayers:"-",bandwidth:"Unknown"},cellularInfo:{cellId:"-",trackingAreaCode:"-",physicalCellId:"-",earfcn:"-",mcc:"-",mnc:"-",signalQuality:"-%"},currentBands:{id:[1],bandNumber:["-"],earfcn:["-"],bandwidth:["-"],pci:["-"],rsrp:["-"],rsrq:["-"],sinr:["-"]},networkAddressing:{publicIPv4:"-",cellularIPv4:"-",cellularIPv6:"-",carrierPrimaryDNS:"-",carrierSecondaryDNS:"-"}}))},[a]),c=(0,n.useCallback)(async()=>{try{var e,t,n,r,a,c,u,m,x,p,h,f;let l=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1");if(!l.ok)throw Error("API returned status ".concat(l.status));let d=await l.json();console.log(d);let g=await fetch("/cgi-bin/quecmanager/home/fetch_public_ip.sh"),v={simCard:{slot:(null===(e=d[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:d[6].response.match("READY")?"Inserted":"Not Inserted",provider:J(d[2].response)||"Unknown",phoneNumber:(null===(n=d[1].response.split("\n")[1])||void 0===n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:d[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(r=d[4].response.split("\n")[1])||void 0===r?void 0:r.split(":")[1].trim())||"Unknown",imei:d[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(c=d[7].response.split("\n")[1])||void 0===c?void 0:null===(a=c.split(":")[1])||void 0===a?void 0:a.split(",")[2].replace(/"/g,"").trim())||(null===(m=d[12].response.split("\n")[1])||void 0===m?void 0:null===(u=m.split(":")[1])||void 0===u?void 0:u.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:X(d[8].response,d[16].response)||"Unknown",functionalityState:(null===(x=d[9].response.split("\n")[1])||void 0===x?void 0:x.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:ee(d[13].response)||"No Signal",modemTemperature:es(d[11].response)||"Unknown",accessTechnology:Y(d[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(p=d[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===p?void 0:p.length)>1?"Multi":"Inactive",bandwidth:et(d[13].response,ee(d[13].response))||"Unknown",connectedBands:el(d[13].response)||"Unknown",signalStrength:en(d[14].response)||"Unknown",mimoLayers:ej(d[14].response)||"Unknown"},cellularInfo:{cellId:er(d[10].response,ee(d[13].response))||"Unknown",trackingAreaCode:ei(d[10].response,ee(d[13].response))||"Unknown",physicalCellId:ea(d[13].response,ee(d[13].response)),earfcn:eo(d[13].response),mcc:ed(d[10].response,ee(d[13].response))||"Unknown",mnc:ec(d[10].response,ee(d[13].response))||"Unknown",signalQuality:eu(d[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(f=null===(h=em(d[13].response))||void 0===h?void 0:h.length)&&void 0!==f?f:0},(e,s)=>s+1)||[1],bandNumber:em(d[13].response)||["Unknown"],earfcn:ex(d[13].response),bandwidth:ep(d[13].response)||["Unknown"],pci:eh(d[13].response,ee(d[13].response))||["Unknown"],rsrp:ef(d[13].response,ee(d[13].response),d[10].response),rsrq:eg(d[13].response,ee(d[13].response),d[10].response)||["Unknown"],sinr:ev(d[13].response,ee(d[13].response),d[10].response)||["Unknown"]},networkAddressing:{publicIPv4:g.ok?(await g.json()).public_ip||"-":"Can't fetch public IP",cellularIPv4:(()=>{var e;let s=d[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV4"')),t=s&&(null===(e=s.match(/"IPV4","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0.0.0.0"===t?"-":t})(),cellularIPv6:(()=>{var e;let s=d[15].response.split("\n").find(e=>e.includes('QMAP: "WWAN"')&&e.includes('"IPV6"')),t=s&&(null===(e=s.match(/"IPV6","([^"]+)"/))||void 0===e?void 0:e[1])||"-";return"0:0:0:0:0:0:0:0"===t?"-":t})(),carrierPrimaryDNS:(()=>{let e=d[20].response.split("\n").find(e=>e.includes("+CGCONTRDP:"));if(e){let s=e.split(",");return s.length>=2?s[s.length-2].replace(/"/g,"").trim():"-"}return"-"})(),carrierSecondaryDNS:(()=>{let e=d[20].response.split("\n").find(e=>e.includes("+CGCONTRDP:"));if(e){let s=e.split(",");return s.length>=1?s[s.length-1].replace(/"/g,"").trim():"-"}return"-"})()}};s(v),o(0),s(v),i(null),console.log("Processed home data:",v)}catch(e){console.error("Error fetching home data:",e),d(e instanceof Error?e:Error(String(e)))}finally{l(!1)}},[d]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await c()}finally{s&&l(!1)}})(),e=setInterval(()=>{c()},15e3),()=>{s=!1,clearInterval(e)}},[c]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await c(),l(!1)},[c])}},ew=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},eb=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},ey=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(eb((u||0)+(m||0))),l(eb((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eS=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var ek=t(80159),eA=t(12607),eC=t(25262),eE=t(8782),eR=t(10964),eI=t(89463),eT=t(90304),eM=t(622),eU=t(20633),eD=t(7778),eB=t(99312),eP=t(91994),eL=t(92823),eG=t(71834);let ez=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(null),[a,d]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),[f,g]=(0,n.useState)(!1),[v,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),S=(0,n.useRef)(null),k=(0,n.useRef)(null),A=(0,n.useCallback)(()=>{t(null),d(null),u(null),x(!1),h(!1),g(!1),j(0),k.current=null,S.current&&(clearInterval(S.current),S.current=null)},[]);(0,n.useEffect)(()=>{if(m&&!p){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,p]),(0,n.useEffect)(()=>()=>{S.current&&clearInterval(S.current)},[]);let C=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){p&&(u("Test ended unexpectedly"),h(!1)),S.current&&(clearInterval(S.current),S.current=null);return}if(s.type)try{switch(s.type){case"ping":d("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&d(s.type);break;case"result":if(s.download&&s.upload&&s.ping){k.current=s,t(s),x(!0),h(!1),S.current&&(clearInterval(S.current),S.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(k.current=s,t(s))}catch(e){console.error("Error polling speedtest status:",e),p&&(u("Failed to get speedtest status"),h(!1),S.current&&(clearInterval(S.current),S.current=null))}},[a,p]),E=(0,n.useCallback)(async()=>{if(!N)try{if(A(),g(!0),h(!0),y(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");S.current=setInterval(C,300),g(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),g(!1),h(!1)}},[N,A,C]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(D.lG,{open:b,onOpenChange:y,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eG.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(P.A,{className:"size-32 z-10 text-primary cursor-pointer hover:text-primary/80 transition-colors duration-300",onClick:e=>{N||(e.preventDefault(),E())}})]})}),(0,l.jsxs)(D.Cf,{className:"sm:max-w-[800px] max-w-xs mx-auto",children:[(0,l.jsx)(D.c7,{children:(0,l.jsxs)(D.L3,{className:"flex items-center",children:[(0,l.jsx)(eR.A,{className:"mr-2"})," Network Speedtest",m&&(0,l.jsx)(o.E,{variant:"outline",className:"ml-2",children:"Complete"}),p&&!m&&(0,l.jsx)(o.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,t,n,r,o,d,u,x,h,g,j,N,w,b,y,S,k,C,R,I,T,M,U,D,B,P;if(c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eA.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{A(),E()},children:"Please try again."})]})]});if(f||p&&!s)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eC.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"md:text-xl text-lg font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eE.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(v||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eR.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eI.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(d=s.download)||void 0===d?void 0:null===(o=d.latency)||void 0===o?void 0:null===(r=o.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eM.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:e_(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(U=null===(g=s.upload)||void 0===g?void 0:null===(h=g.latency)||void 0===h?void 0:null===(x=h.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==U?U:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eE.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(D=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==D?D:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eU.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(B=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==B?B:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:s.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(S=s.interface)||void 0===S?void 0:S.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(k=s.server)||void 0===k?void 0:k.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(C=s.server)||void 0===C?void 0:C.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(R=s.server)||void 0===R?void 0:R.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(I=s.server)||void 0===I?void 0:I.host)||"N/A"})]}),(null===(T=s.result)||void 0===T?void 0:T.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(eB.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eA.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{A(),E()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eP.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let L=s[a],G="download"===a;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[G?(0,l.jsx)(eI.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eM.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",G?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:e_(L.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eL.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:ez(L.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eR.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(L.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eE.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(P=null===(t=L.latency)||void 0===t?void 0:null===(e=t.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==P?P:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(D.Es,{className:"flex justify-between items-center",children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(U.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(A(),E())},variant:"outline",disabled:N,children:[(0,l.jsx)(eP.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(U.$,{onClick:()=>y(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:p?(0,l.jsx)(U.$,{onClick:()=>{A(),y(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(U.$,{onClick:()=>y(!1),children:"Close"})})})]})]}),(0,l.jsx)(i.BT,{children:N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eO=t(88926),eq=t(83148);let eZ=e=>{let{data:s,isLoading:t,onRefresh:o}=e,{toast:d}=(0,r.dj)(),[c,u]=(0,n.useState)(!1),m=async()=>{u(!0),d({title:"Disconnecting from network...",description:"Please wait while we disconnect from the network."});try{await (0,eO.a)("AT+COPS=2"),await new Promise(e=>setTimeout(e,2e3)),d({title:"Reconnecting to network...",description:"Please wait while we reconnect to the network."}),await (0,eO.a)("AT+COPS=0"),d({title:"Network Reconnection",description:"Network reconnection completed successfully."}),o&&setTimeout(o,3e3)}catch(e){console.error("Network reconnection failed:",e),d({title:"Network Reconnection",description:"Failed to reconnect to the network.",variant:"destructive"})}finally{u(!1)}};return(0,l.jsx)(i.Zp,{className:"md:py-6 md:px-6 py-6 px-4 ",children:(0,l.jsxs)("div",{className:"grid md:grid-cols-5 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Public IPv4 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.publicIPv4})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv4 Address"}),(0,l.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv4}),(null==s?void 0:s.networkAddressing.cellularIPv4)&&(0,l.jsx)(U.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:m,disabled:c,children:c?(0,l.jsx)(eq.A,{className:"h-4 w-4 animate-spin text-primary"}):(0,l.jsx)(eq.A,{className:"h-4 w-4 text-primary"})})]})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Cellular IPv6 Address"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.cellularIPv6})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Primary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierPrimaryDNS})]}),(0,l.jsxs)("div",{className:"grid place-items-center gap-1.5",children:[(0,l.jsx)("h2",{className:"font-semibold",children:"Carrier Secondary DNS"}),(0,l.jsx)("p",{children:t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):null==s?void 0:s.networkAddressing.carrierSecondaryDNS})]})]})})},eH=()=>{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(!1),{data:i,isLoading:a,refresh:o}=eN(),{dataConnectionState:c,isStateLoading:u,refresh:m}=ew(),{isRunningDiagnostics:x,runDiagnosticsData:g,startDiagnostics:v}=eS(),{bytesSent:j,bytesReceived:N,refresh:w}=ey(),b=async()=>{try{var s,t;let l=await (0,eO.a)("AT+QUIMSLOT?"),n=null===(s=l.response)||void 0===s?void 0:s.raw_output.split("\n")[1].split(":")[1].trim(),r=await (0,eO.a)("1"===n?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===r.status||(null===(t=r.response)||void 0===t?void 0:t.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eO.a)("AT+COPS=2"),setTimeout(async()=>{let s=await (0,eO.a)("AT+COPS=0");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(y,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},y=(0,n.useCallback)(async()=>{try{await Promise.all([o(),m(),w()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[o,m,w]),[S,A]=(0,n.useState)([]),E=async()=>{try{await v()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{g&&console.log("Diagnostics data updated:",g)},[g]),(0,n.useEffect)(()=>{if(i&&i.currentBands){var e;let s=null===(e=i.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,a,o,d;return{id:e,bandNumber:(null===(t=i.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=i.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=i.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=i.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(a=i.currentBands.rsrp)||void 0===a?void 0:a[s])||"N/A",rsrq:(null===(o=i.currentBands.rsrq)||void 0===o?void 0:o[s])||"N/A",sinr:(null===(d=i.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&A(s)}},[i]),(0,n.useEffect)(()=>{a||(null==i?void 0:i.simCard.state)!=="Not Inserted"||t(!0)},[i,a]),(0,l.jsxs)("div",{className:"grid xl:gap-y-10 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:y,children:(0,l.jsx)(B.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==i?void 0:i.simCard.state)==="Not Inserted"&&(0,l.jsxs)(D.lG,{open:s,onOpenChange:t,children:[(0,l.jsx)(D.zM,{asChild:!0,children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(ek.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(ek.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{onClick:b,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(D.HM,{asChild:!0,children:(0,l.jsx)(U.$,{variant:"secondary",onClick:()=>t(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(D.lG,{children:[(0,l.jsx)(D.zM,{children:(0,l.jsxs)(U.$,{onClick:E,children:[(0,l.jsx)(P.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!x&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(D.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==g?void 0:g.netRegistration)==="Registered"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==g?void 0:g.simState)==="READY"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==g?void 0:g.manualAPN)==="Enabled"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==g?void 0:g.wanIP)==="Connected"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==g?void 0:g.cellSignal)==="Good"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==g?void 0:g.modemTemp)==="Normal"?(0,l.jsx)(L.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==g?void 0:g.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(L.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==g?void 0:g.netReject})]})]})]})]}),x&&(0,l.jsxs)(D.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(D.c7,{children:(0,l.jsx)(D.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(_(),{color:"#6D28D9"})}),(0,l.jsx)(D.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(C,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eF,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:i,isLoading:a}),(0,l.jsx)(p,{data:i,isLoading:a,dataConnectionState:c,connectionStateLoading:u}),(0,l.jsx)(h,{data:i,isLoading:a,bytesSent:j,bytesReceived:N}),(0,l.jsx)(f,{data:i,isLoading:a})]})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Active Addresses"}),(0,l.jsx)("div",{children:(0,l.jsx)(eZ,{data:i,isLoading:a,onRefresh:y})})]}),(0,l.jsxs)("div",{className:"grid gap-4 w-full",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)("div",{children:(0,l.jsx)(V,{bands:S,isLoading:a})})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:g,nameKey:v,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(v||e.name||e.dataKey||"value"),n=f(N,e,t),r=g||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>g,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let g=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});g.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let o=await a.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(s&&(null===(l=o.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,1203,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-f48758256f09c888.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-f48758256f09c888.js new file mode 100644 index 0000000..880f319 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-f48758256f09c888.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{31710:(e,s,t)=>{Promise.resolve().then(t.bind(t,21846))},21846:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>eH});var l=t(20475),n=t(20107),r=t(32857),i=t(72167),a=t(36760),o=t(45934);let d=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Sim Card"}),(0,l.jsx)(i.BT,{children:"Sim card information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card Slot in Use"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[50px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Sim Card State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Provider"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Phone Number"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMSI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"ICCID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"IMEI"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[140px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})},c={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},u={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},m={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},x=e=>m[e]||"Unknown",p=e=>{let{data:s,isLoading:t,dataConnectionState:n,connectionStateLoading:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Connection"}),(0,l.jsx)(i.BT,{children:"Connection information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"APN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Operator State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"||(null==s?void 0:s.connection.operatorState)==="Not Registered"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Functionality State"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Data Connection State"}),r?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat("Connected"===n?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Network Type"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Modem Temperature"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("div",{children:"Access Technology"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?x(s.connection.accessTechnology):"Unknown"})]})]})]})},h=e=>{let{data:s,isLoading:t,bytesSent:n,bytesReceived:r}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Data Transmission"}),(0,l.jsx)(i.BT,{children:"Data transmission information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Carrier Aggregation"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bandwidth"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Connected Bands"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Signal Strength"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[100px]"}):(0,l.jsx)(o.E,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"MIMO Layers"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[100px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Sent"}),(0,l.jsx)("p",{className:"font-bold",children:n})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Bytes Received"}),(0,l.jsx)("p",{className:"font-bold",children:r})]})]})]})},f=e=>{let{data:s,isLoading:t}=e;return(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Cellular Information"}),(0,l.jsx)(i.BT,{children:"Cellular network information"})]}),(0,l.jsxs)(i.Wu,{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Cell ID"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"TAC"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Physical Cell IDs"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Country Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Mobile Network Code"}),t?(0,l.jsx)(a.E,{className:"h-4 w-[80px]"}):(0,l.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,l.jsx)("p",{children:"Antenna Signal Quality"}),t?(0,l.jsx)(a.E,{className:"h-6 w-[80px]"}):(0,l.jsx)(o.E,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})};var v=t(1307),g=t(53134),j=t(94005),N=t(4538),w=t(41797),b=t(79492);let y={signal:{label:"LTE/5G Signal Metrics"},rsrp:{label:"RSRP",color:"hsl(var(--chart-1))"},rsrq:{label:"RSRQ",color:"hsl(var(--chart-2))"},sinr:{label:"SINR",color:"hsl(var(--chart-3))"}},k=e=>{let s=e.split("\n").filter(e=>e.trim()),t=[];s.forEach(e=>{let s=e.match(/-?\d+/g);s&&t.push(...s.map(Number))});let l=t.filter(e=>-140!==e&&-32768!==e);return 0===l.length?0:Math.round(l.reduce((e,s)=>e+s,0)/l.length)},S=()=>{let[e,s]=(0,n.useState)([]),[t,r]=(0,n.useState)("rsrp"),[o,d]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),m=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_signal_metrics.sh");if(!e.ok)throw Error("Failed to fetch signal metrics");let t=await e.json(),l=Math.min(t.rsrp.length,t.rsrq.length,t.sinr.length),n=Array.from({length:l},(e,s)=>({time:t.rsrp[s].datetime,rsrp:k(t.rsrp[s].output),rsrq:k(t.rsrq[s].output),sinr:k(t.sinr[s].output)}));s(n),u(null)}catch(e){console.error("Error fetching metrics:",e),u(e instanceof Error?e.message:"An unknown error occurred"),s([])}finally{d(!1)}},[]);(0,n.useEffect)(()=>{m();let e=setInterval(m,15e3);return()=>clearInterval(e)},[m]);let x=e.length>0?e[e.length-1]:{rsrp:0,rsrq:0,sinr:0};return c?(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.aR,{children:[(0,l.jsx)(i.ZB,{children:"Error Loading Signal Metrics"}),(0,l.jsx)(i.BT,{children:c})]})}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row",children:[(0,l.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6",children:[(0,l.jsx)(i.ZB,{children:"Antenna Port Signal Metrics"}),(0,l.jsx)(i.BT,{children:"Per-port signal values averaged across all active ports"})]}),(0,l.jsx)("div",{className:"flex",children:["rsrp","rsrq","sinr"].map(e=>(0,l.jsxs)("button",{"data-active":t===e,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-l sm:border-t-0 sm:px-8 sm:py-6",onClick:()=>r(e),children:[(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:y[e].label}),o?(0,l.jsx)(a.E,{className:"lg:h-10 h-6 w-full"}):(0,l.jsx)("span",{className:"text-base font-bold leading-none sm:text-3xl",children:x[e].toFixed(0)})]},e))})]}),(0,l.jsx)(i.Wu,{className:"px-2 sm:p-6",children:(0,l.jsx)(v.at,{config:y,className:"aspect-auto h-[250px] w-full",children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{left:12,right:12},children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"fillRsrp",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrp)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrp)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillRsrq",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-rsrq)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-rsrq)",stopOpacity:.1})]}),(0,l.jsxs)("linearGradient",{id:"fillSinr",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-sinr)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-sinr)",stopOpacity:.1})]})]}),(0,l.jsx)(j.d,{vertical:!1}),(0,l.jsx)(N.W,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}),(0,l.jsx)(w.h,{hide:!0,domain:(e=>{switch(e){case"rsrp":return[-140,-60];case"rsrq":return[-20,0];case"sinr":return[-10,30];default:return[0,"auto"]}})(t)}),(0,l.jsx)(v.II,{content:(0,l.jsx)(v.Nt,{className:"w-[200px]",nameKey:"metric",labelFormatter:e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})})}),(0,l.jsx)(b.G,{dataKey:t,type:"monotone",stroke:"var(--color-".concat(t,")"),fill:"url(#fill".concat(t.charAt(0).toUpperCase()+t.slice(1),")"),strokeWidth:2,activeDot:{r:4},baseValue:(e=>{switch(e){case"rsrp":return -140;case"rsrq":return -20;case"sinr":return -10;default:return 0}})(t)})]})})}),(0,l.jsxs)(i.wL,{className:"flex-col items-start gap-2 text-sm",children:[(0,l.jsx)("div",{className:"flex gap-2 font-medium leading-none",children:"These metrics show the aggregate antenna port measurements, not the per-band values."}),(0,l.jsx)("div",{className:"leading-none text-muted-foreground italic",children:"Higher values indicate better signal quality."})]})]})},A=e=>{if("Unknown!"===e)return"-";let s=e.match(/(\d+)/);if(!s)return e;let t=parseInt(s[1],10);return t>=1e3?"".concat(t/1e3).concat((e.includes("Gb"),"Gb/s")):"".concat(t).concat((e.includes("Mb"),"Mb/s"))},C=()=>{let[e,s]=(0,n.useState)({link_status:"Loading...",link_speed:"Loading...",auto_negotiation:"Loading..."}),[t,r]=(0,n.useState)(!0),[o,d]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=eth",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let t=await e.json();s(t),r(!1)}catch(e){d("Failed to fetch Ethernet information"),r(!1)}})()},[]),o)?(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-red-500",children:o})})]}):(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Ethernet"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Status"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"yes"===e.link_status?"Active":"Inactive"})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Link Speed"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):A(e.link_speed)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Auto-negotiation"}),(0,l.jsx)("span",{className:"text-base font-bold",children:t?(0,l.jsx)(a.E,{className:"h-8 w-full"}):"on"===e.auto_negotiation?"Active":"Inactive"})]})]})})]})},E=e=>"".concat(Math.round(e/1048576)," MB"),R=()=>{let[e,s]=(0,n.useState)({total:0,used:0,available:0}),[t,r]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_hw_details.sh?type=memory",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();s(l),t&&r(!1)}catch(e){console.error("Failed to fetch memory information"),t&&r(!1)}};e();let l=setInterval(e,2e3);return()=>clearInterval(l)},[t]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Memory"})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-2 grid-flow-row gap-4 col-span-3",children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Total"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.total)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Used"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.used)})]}),(0,l.jsxs)("div",{className:"grid gap-1",children:[(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:"Available"}),t?(0,l.jsx)(a.E,{className:"h-6 w-24"}):(0,l.jsx)("span",{className:"text-base font-bold",children:E(e.available)})]})]})})]})},T={ms:{label:"ms",color:"hsl(var(--chart-4))"}},I=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),M=()=>{let[e,s]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return e?JSON.parse(e):[]}),t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let[r,d]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");if(e){let s=JSON.parse(e);return s.length>0?s[s.length-1].ms:null}return null}),[c,u]=(0,n.useState)(()=>{let e=localStorage.getItem("pingData");return!e||0===JSON.parse(e).length}),[m,x]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let l=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/ping_latency.sh",{method:"GET",cache:"no-store",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Network response was not ok");let l=await e.json();d(e=>null===e||m?l.latency:(n(e,l.latency,e=>d(e)),e));let r=I(),i=t.current,a={time:r,ms:l.latency,index:i.length>0?5:1};s(e=>{let s;if(0===e.length)s=[,,,,,].fill(null).map((e,s)=>({...a,index:s+1,time:4===s?r:I()}));else if(e.length<5){let t=Array(5-e.length).fill(null).map((s,t)=>({...a,index:e.length+t+1}));s=[...e,...t]}else s=[...e.slice(1),a].map((e,s)=>({...e,index:s+1}));return localStorage.setItem("pingData",JSON.stringify(s)),s}),x(!0),c&&u(!1)}catch(s){console.error("Failed to fetch ping latency",s),c&&e.length>0&&u(!1)}},n=(e,s,t)=>{let l=performance.now(),n=s-e,r=s=>{let i=Math.min((s-l)/1500,1);t(Math.round(e+n*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2))),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)};l();let r=setInterval(l,5e3);return()=>clearInterval(r)},[]),(0,l.jsxs)(i.Zp,{children:[(0,l.jsxs)(i.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,l.jsx)(i.ZB,{children:"Ping Latency"}),null!==r&&(0,l.jsxs)(o.E,{className:"text-normal font-bold transition-opacity duration-200 ".concat(m?"":"opacity-70"),children:[r," ms ",!m&&"(cached)"]})]}),(0,l.jsx)(i.Wu,{children:c?(0,l.jsx)(a.E,{className:"h-[200px] w-full"}):(0,l.jsx)(v.at,{config:T,children:(0,l.jsxs)(g.Q,{accessibilityLayer:!0,data:e,margin:{top:5,right:10,left:0,bottom:5},children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"fillPing",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"5%",stopColor:"var(--color-ms)",stopOpacity:.8}),(0,l.jsx)("stop",{offset:"95%",stopColor:"var(--color-ms)",stopOpacity:.1})]})}),(0,l.jsx)(j.d,{vertical:!1,stroke:"var(--border)",strokeOpacity:.2}),(0,l.jsx)(N.W,{dataKey:"index",tickLine:!1,axisLine:!1,tickMargin:5,tick:{fontSize:9},ticks:[1,2,3,4,5]}),(0,l.jsx)(w.h,{hide:!1,domain:(()=>{if(0===e.length)return[0,100];let s=e.map(e=>e.ms);return[Math.max(0,Math.min(...s)-5),Math.max(...s)+5]})(),tickLine:!1,axisLine:!1,width:20,tick:{fontSize:10},tickFormatter:e=>"".concat(e)}),(0,l.jsx)(v.II,{cursor:!1,content:(0,l.jsx)(v.Nt,{labelFormatter:(s,t)=>{let l=e.find(e=>e.index===s);return l?"".concat(l.time):s},formatter:(e,s)=>["".concat(e," ms"),"Latency"]})}),(0,l.jsx)(b.G,{dataKey:"ms",type:"monotone",stroke:"var(--color-ms)",strokeWidth:2,fill:"url(#fillPing)",activeDot:{r:4,strokeWidth:0},isAnimationActive:!0,animationDuration:1200,animationEasing:"ease-in-out"})]})})})]})};var U=t(42541),B=t(93557),L=t(97801),D=t(14389),z=t(98969),G=t(17799),_=t(92776),P=t.n(_),F=t(7197),q=t(74043),O=t(22250);let Z=n.createContext(null);function H(){let e=n.useContext(Z);if(!e)throw Error("useCarousel must be used within a ");return e}let Q=n.forwardRef((e,s)=>{let{orientation:t="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...c}=e,[u,m]=(0,q.A)({...r,axis:"horizontal"===t?"x":"y"},a),[x,p]=n.useState(!1),[h,f]=n.useState(!1),v=n.useCallback(e=>{e&&(p(e.canScrollPrev()),f(e.canScrollNext()))},[]),g=n.useCallback(()=>{null==m||m.scrollPrev()},[m]),j=n.useCallback(()=>{null==m||m.scrollNext()},[m]),N=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[g,j]);return n.useEffect(()=>{m&&i&&i(m)},[m,i]),n.useEffect(()=>{if(m)return v(m),m.on("reInit",v),m.on("select",v),()=>{null==m||m.off("select",v)}},[m,v]),(0,l.jsx)(Z.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:j,canScrollPrev:x,canScrollNext:h},children:(0,l.jsx)("div",{ref:s,onKeyDownCapture:N,className:(0,O.cn)("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});Q.displayName="Carousel";let W=n.forwardRef((e,s)=>{let{className:t,...n}=e,{carouselRef:r,orientation:i}=H();return(0,l.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:s,className:(0,O.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",t),...n})})});W.displayName="CarouselContent";let K=n.forwardRef((e,s)=>{let{className:t,...n}=e,{orientation:r}=H();return(0,l.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,O.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})});K.displayName="CarouselItem";let $=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.A60,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});$.displayName="CarouselPrevious";let V=n.forwardRef((e,s)=>{let{className:t,variant:n="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=H();return(0,l.jsxs)(U.$,{ref:s,variant:n,size:r,className:(0,O.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:o,...i,children:[(0,l.jsx)(F.flY,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";let J=e=>{let{id:s,bandNumber:t,earfcn:n,bandwidth:r,pci:a,rsrp:d,rsrq:c,sinr:u}=e;return(0,l.jsx)(i.Zp,{className:"p-8",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,l.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,l.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t.replace("LTE BAND ","B").replace("NR5G BAND ","N"),t.includes("NR5G")&&(0,l.jsx)(o.E,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,l.jsx)("p",{children:n})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,l.jsx)("p",{children:a})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(d)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dBm"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(u)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(u)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[u," dB"]})]})]})})},Y=e=>{let{bands:s,isLoading:t}=e;return t?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)(J,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Currently bands connected."})})]})}),(0,l.jsx)(Q,{className:"lg:hidden w-full max-w-xs",children:(0,l.jsx)(W,{children:(0,l.jsx)(K,{children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-16 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsx)("div",{children:(0,l.jsx)(a.E,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"hidden lg:block w-full",children:(0,l.jsxs)(i.Zp,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,l.jsx)(J,{...e},e.id)),(0,l.jsx)(i.wL,{className:"w-full p-6 flex items-center justify-center",children:(0,l.jsx)(i.BT,{className:"text-md",children:"Current bands connected."})})]})}),(0,l.jsxs)(Q,{className:"lg:hidden w-full max-w-xs",children:[(0,l.jsx)(W,{children:null==s?void 0:s.map(e=>(0,l.jsx)(K,{className:"md:basis-1/2 lg:basis-1/3",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(i.Wu,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Band"}),(0,l.jsx)("p",{children:e.bandNumber})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"E/ARFCN"}),(0,l.jsx)("p",{children:e.earfcn})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"Bandwidth"}),(0,l.jsx)("p",{children:e.bandwidth})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"PCI"}),(0,l.jsx)("p",{children:e.pci})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRP"}),(0,l.jsxs)(o.E,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"RSRQ"}),(0,l.jsxs)(o.E,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("p",{children:"SINR"}),(0,l.jsxs)(o.E,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,l.jsx)($,{}),(0,l.jsx)(V,{})]})]})},X=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[2].replace(/"/g,"").trim())||"Unknown"}catch(e){return"-"}},ee=e=>{try{var s,t;return(null==e?void 0:null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[3].trim())||"Unknown"}catch(e){return"-"}},es=(e,s)=>{var t,l,n,r;switch(Number(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim())||Number(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim())){case 1:return"Registered";case 2:return"Searching";case 3:return"Denied";case 4:return"Unknown";case 5:return"Roaming";default:return"Not Registered"}},et=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),t=null==s?void 0:s.some(e=>e.includes("LTE")),l=null==s?void 0:s.some(e=>e.includes("NR5G"));return t&&l?"NR5G-NSA":t?"LTE":l?"NR5G-SA":"No Signal"},el=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>{var t;let l=e.split("\n").find(e=>e.includes(s));return parseInt(null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())}),t=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(t),"\xb0C")},en=(e,s)=>{var t;let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2].trim()}),"LTE"===s)return!n.length&&l?c[l]||"Unknown":[l?c[l]:"",...n.map(e=>c[e])].join(", ");if("NR5G-SA"===s&&l)return r.length?[u[l],...r.map(e=>u[e])].join(", "):u[l]||"Unknown";if("NR5G-NSA"===s&&l)return n.length||r.length?n.length&&!r.length?[c[l],...n.map(e=>c[e])].join(", "):[c[l],...n.map(e=>c[e]),...r.map(e=>u[e])].join(", "):c[l]||"Unknown";return"Unknown"},er=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(null==e?void 0:e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},ei=e=>{var s,t;let l=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),r=[],i=[];if(l&&(r=null==l?void 0:null===(s=l.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(i=null==n?void 0:null===(t=n.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r=r.filter(e=>-140!==e&&-37625!==e&&-32768!==e),i=i.filter(e=>-140!==e&&-37625!==e&&-32768!==e),r.length){if(i.length){let e=r.reduce((e,s)=>e+s,0)/r.length,s=i.reduce((e,s)=>e+s,0)/i.length,t=Math.max(0,Math.min(100,(e+125)/50*100)),l=Math.max(0,Math.min(100,(s+125)/50*100));return"".concat(Math.round((t+l)/2),"%")}{let e=Math.max(0,Math.min(100,(r.reduce((e,s)=>e+s,0)/r.length+125)/50*100));return"".concat(Math.round(e),"%")}}if(!i.length)return"Unknown%";{let e=Math.max(0,Math.min(100,(i.reduce((e,s)=>e+s,0)/i.length+125)/50*100));return"".concat(Math.round(e),"%")}},ea=(e,s)=>{var t,l,n,r;return"NR5G-SA"===s||"LTE"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[6].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[4].trim():"Unknown"},eo=(e,s)=>{var t,l,n,r,i,a;return"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[8].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[10].trim():"LTE"===s?null===(a=e.split("\n")[1])||void 0===a?void 0:null===(i=a.split(":")[1])||void 0===i?void 0:i.split(",")[12].trim():"Unknown"},ed=(e,s)=>{var t,l;if("LTE"===s||"NR5G-NSA"===s){let l=e.split("\n").find(e=>e.includes("PCC"));l=null==l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()});let r=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(r=r.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4].trim()}),n.length||r.length)?"LTE"===s?[l,...n].join(", "):[l,...n,...r].join(", "):l}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:null===(l=s.split(":")[1])||void 0===l?void 0:l.split(",")[4].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5].trim()})).length?[s,...t].join(", "):s}},ec=e=>{var s;let t=e.split("\n").find(e=>e.includes("PCC"));t=null==t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim();let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));l=l.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()});let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim()}),!t||l.length||n.length)?t&&l.length&&!n.length?[t,...l].join(", "):t&&!l.length&&n.length?[t,...n].join(", "):t&&l.length&&n.length?[t,...l,...n].join(", "):"Unknown":t},eu=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].trim():"Unknown"},em=(e,s)=>{var t,l,n,r;return"LTE"===s||"NR5G-SA"===s?null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[5].trim():"NR5G-NSA"===s?null===(r=e.split("\n")[2])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[3].trim():void 0},ex=e=>{let s=e.split("\n"),t=s.find(e=>e.includes("LTE")),l=s.find(e=>e.includes("NR5G")),n=e=>{var s;return e?null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim())).filter(e=>-140!==e&&-32768!==e):[]},r=e=>e.length?Math.max(0,Math.min(100,(e.reduce((e,s)=>e+s,0)/e.length- -10)/40*100)):0,i=n(t),a=n(l),o=r(i),d=r(a);return i.length&&a.length?"".concat(Math.round((o+d)/2),"%"):i.length?"".concat(Math.round(o),"%"):a.length?"".concat(Math.round(d),"%"):"Unknown%"},ep=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[3].replace(/"/g,"")}):["Unknown"]},eh=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&t.length?[...s,...t].map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):s.length?s.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):t.length?t.map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[1]}):["Unknown"]},ef=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND")),l=s.map(e=>{var s;return c[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]}),n=t.map(e=>{var s;return u[null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[2]]});return l.length&&n.length?[...l,...n]:l.length?l:n.length?n:["Unknown"]},ev=(e,s)=>{if("NR5G-SA"===s){let s=e.split("\n"),t=[],l=s.find(e=>e.includes("PCC"));if(l){let e=l.split(":")[1].split(",")[4].trim();t.push(e||"Unknown")}for(let e of s.filter(e=>e.includes("SCC"))){let s=e.split(":")[1].split(",");t.push(s.length>5?s[5].trim():"Unknown")}return t.length>0?t:["Unknown"]}if("LTE"===s){var t;let s=e.split("\n").find(e=>e.includes("PCC"));s=s?null==s?void 0:null===(t=s.split(":")[1])||void 0===t?void 0:t.split(",")[4].trim():"Unknown";let l=e.split("\n").filter(e=>e.includes("LTE BAND"));return l.length?[s,...l.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"})]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),t=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5])||"Unknown"}),...t.map(e=>{var s;return(null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4])||"Unknown"})]}return["Unknown"]},eg=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[4]});return s.length&&l.length?[...s,...l]:s.length?s:l.length?l:["Unknown"]}if("NR5G-SA"===s){let e=t.split("\n").find(e=>e.includes("NR5G-SA"));if(e){var l;return[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[12]]}}return["Unknown"]},ej=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[7]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[6]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},eN=(e,s,t)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]});if("NR5G-SA"===s){var l;let e=t.split("\n").find(e=>e.includes("NR5G-SA"));return e?[null==e?void 0:null===(l=e.split(":")[1])||void 0===l?void 0:l.split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[9]}),l=t.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>{var s;return null==e?void 0:null===(s=e.split(":")[1])||void 0===s?void 0:s.split(",")[5]});if(s.length&&l.length)return[...s,...l];if(s.length)return s;if(l.length)return l}return["Unknown"]},ew=e=>{var s,t;let l=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),r=e.split("\n").find(e=>e.includes("NR5G")),i=[],a=[];return(n&&(i=null==n?void 0:null===(s=n.split(":")[1])||void 0===s?void 0:s.split(",").slice(0,4).map(e=>parseInt(e.trim()))),r&&(a=null==r?void 0:null===(t=r.split(":")[1])||void 0===t?void 0:t.split(",").slice(0,4).map(e=>parseInt(e.trim()))),i=i.filter(e=>!l.includes(e)),a=a.filter(e=>!l.includes(e)),i.length)?a.length?"LTE ".concat(i.length.toString()," / NR ").concat(a.length.toString()):"LTE ".concat(i.length.toString()):a.length?"NR ".concat(a.length.toString()):"Unknown"},eb=()=>{let[e,s]=(0,n.useState)(null),[t,l]=(0,n.useState)(!0),[r,i]=(0,n.useState)(null),a=(0,n.useCallback)(async()=>{try{var e,t,l,n,r,a,o,d,c,u,m,x;let i=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=1"),p=await i.json();console.log(p);let h={simCard:{slot:(null===(e=p[0].response.split("\n")[1])||void 0===e?void 0:e.split(":")[1].trim())||"Unknown",state:p[6].response.match("READY")?"Inserted":"Not Inserted",provider:X(p[2].response)||"Unknown",phoneNumber:(null===(l=p[1].response.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].replace(/"/g,"").trim())||"Unknown",imsi:p[3].response.split("\n")[1].trim()||"Unknown",iccid:(null===(n=p[4].response.split("\n")[1])||void 0===n?void 0:n.split(":")[1].trim())||"Unknown",imei:p[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:(null===(a=p[7].response.split("\n")[1])||void 0===a?void 0:null===(r=a.split(":")[1])||void 0===r?void 0:r.split(",")[2].replace(/"/g,"").trim())||(null===(d=p[12].response.split("\n")[1])||void 0===d?void 0:null===(o=d.split(":")[1])||void 0===o?void 0:o.split(",")[2].replace(/"/g,"").trim())||"Unknown",operatorState:es(p[8].response,p[16].response)||"Unknown",functionalityState:(null===(c=p[9].response.split("\n")[1])||void 0===c?void 0:c.split(":")[1].trim())==="1"?"Enabled":"Disabled",networkType:et(p[13].response)||"No Signal",modemTemperature:el(p[11].response)||"Unknown",accessTechnology:ee(p[2].response)||"Unknown"},dataTransmission:{carrierAggregation:(null===(u=p[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===u?void 0:u.length)>1?"Multi":"Inactive",bandwidth:en(p[13].response,et(p[13].response))||"Unknown",connectedBands:er(p[13].response)||"Unknown",signalStrength:ei(p[14].response)||"Unknown",mimoLayers:ew(p[14].response)||"Unknown"},cellularInfo:{cellId:ea(p[10].response,et(p[13].response))||"Unknown",trackingAreaCode:eo(p[10].response,et(p[13].response))||"Unknown",physicalCellId:ed(p[13].response,et(p[13].response)),earfcn:ec(p[13].response),mcc:eu(p[10].response,et(p[13].response))||"Unknown",mnc:em(p[10].response,et(p[13].response))||"Unknown",signalQuality:ex(p[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(x=null===(m=ep(p[13].response))||void 0===m?void 0:m.length)&&void 0!==x?x:0},(e,s)=>s+1)||[1],bandNumber:ep(p[13].response)||["Unknown"],earfcn:eh(p[13].response),bandwidth:ef(p[13].response)||["Unknown"],pci:ev(p[13].response,et(p[13].response))||["Unknown"],rsrp:eg(p[13].response,et(p[13].response),p[10].response),rsrq:ej(p[13].response,et(p[13].response),p[10].response)||["Unknown"],sinr:eN(p[13].response,et(p[13].response),p[10].response)||["Unknown"]}};s(h),console.log("Processed home data:",h)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}}),i(null)}},[]);return(0,n.useEffect)(()=>{let e,s=!0;return(async()=>{if(s)try{await a()}finally{s&&l(!1)}})(),e=setInterval(()=>{a()},15e3),()=>{s=!1,clearInterval(e)}},[a]),{data:e,isLoading:t,error:r,refresh:(0,n.useCallback)(async()=>{l(!0),await a(),l(!1)},[a])}},ey=()=>{let[e,s]=(0,n.useState)("Unknown"),[t,l]=(0,n.useState)(!0),r=(0,n.useCallback)(async()=>{try{l(!0);let e=await fetch("/cgi-bin/quecmanager/home/check_net.sh"),t=await e.json();s("ACTIVE"===t.connection?"Connected":"Disconnected"),l(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),l(!1)}},[]);return(0,n.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,n.useCallback)(()=>{r()},[r]),isStateLoading:t}},ek=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]},eS=()=>{let[e,s]=(0,n.useState)("0 Bytes"),[t,l]=(0,n.useState)("0 Bytes"),[r,i]=(0,n.useState)(""),a=e=>{var t,n;let r=Array.isArray(e)?e[e.length-1]:e;if(!r)return;i(r.datetime);let a=r.output.replace(/\r\\n/g,"\n").trim().split("\n").filter(e=>e.trim()),o=null===(t=a.find(e=>e.includes("+QGDCNT:")))||void 0===t?void 0:t.trim(),d=null===(n=a.find(e=>e.includes("+QGDNRCNT:")))||void 0===n?void 0:n.trim();if(!o||!d){console.error("Missing required data in response");return}let[c,u]=o.replace("+QGDCNT:","").split(",").map(e=>parseInt(e.trim())),[m,x]=d.replace("+QGDNRCNT:","").split(",").map(e=>parseInt(e.trim()));s(ek((u||0)+(m||0))),l(ek((c||0)+(x||0)))},o=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/fetch_data_usage.sh"),s=await e.json();a(s)}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,n.useEffect)(()=>{o();let e=setInterval(o,12e3);return()=>clearInterval(e)},[o]),{bytesSent:e,bytesReceived:t,lastUpdateTime:r,refresh:(0,n.useCallback)(()=>{o()},[o])}},eA=()=>{let[e,s]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),r=(e,s)=>{var t,l,n,r;let i=null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[1].trim(),a=null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[1].trim();return"1"===i||"1"===a?"Registered":"Not Registered"},i=(e,s)=>{var t,l,n,r;return(null===(l=e.split("\n")[1])||void 0===l?void 0:null===(t=l.split(":")[1])||void 0===t?void 0:t.split(",")[2].replace(/"/g,"").trim())===(null===(r=s.split("\n")[1])||void 0===r?void 0:null===(n=r.split(":")[1])||void 0===n?void 0:n.split(",")[2].replace(/"/g,"").trim())?"Enabled":"Disabled"},a=e=>{var s,t,l,n;let r=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),i=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim();return r&&"1"===r||i&&"1"===i?"Connected":"Disconnected"},o=e=>{try{var s,t,l,n;let r=e.trim().split("\n").map(e=>e.trim()),i=r.find(e=>e.includes("+QRSRP:")&&e.includes("LTE")),a=r.find(e=>e.includes("+QRSRP:")&&e.includes("NR5G")),o=[];i&&(o=null==i?void 0:null===(t=i.split(":")[1])||void 0===t?void 0:null===(s=t.split(","))||void 0===s?void 0:s.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e)));let d=[];if(a&&(d=null==a?void 0:null===(n=a.split(":")[1])||void 0===n?void 0:null===(l=n.split(","))||void 0===l?void 0:l.slice(0,4).map(e=>e.trim()).filter(e=>!isNaN(parseInt(e))).map(e=>parseInt(e))),o=o.filter(e=>-32768!==e),d=d.filter(e=>-32768!==e),o=o.filter(e=>-140!==e),d=d.filter(e=>-140!==e),o.length>0){let e=o.reduce((e,s)=>e+s,0)/o.length;if(d.length>0){let s=d.reduce((e,s)=>e+s,0)/d.length;return(e+s)/2<-100?"Poor":"Good"}return e<-100?"Poor":"Good"}if(d.length>0)return d.reduce((e,s)=>e+s,0)/d.length<-100?"Poor":"Good";return"N/A"}catch(e){return console.error("Error processing cell signal:",e),"N/A"}},d=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},c=e=>{var s,t,l,n,r,i;let a=null===(t=e.split("\n")[1])||void 0===t?void 0:null===(s=t.split(":")[1])||void 0===s?void 0:s.split(",")[1].trim(),o=null===(n=e.split("\n")[2])||void 0===n?void 0:null===(l=n.split(":")[1])||void 0===l?void 0:l.split(",")[1].trim(),d=null===(i=e.split("\n")[3])||void 0===i?void 0:null===(r=i.split(":")[1])||void 0===r?void 0:r.split(",")[1].trim(),c=["0"!==a?"".concat(a):null,"0"!==o?"".concat(o):null,"0"!==d?"".concat(d):null].filter(Boolean);return c.length>0?c.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:t,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let t={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:d(s[7].response),netReject:c(s[8].response)};return l(t),t}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}};var eC=t(80159),eE=t(12607),eR=t(25262),eT=t(8782),eI=t(10964),eM=t(89463),eU=t(90304),eB=t(622),eL=t(20633),eD=t(7778),ez=t(99312),eG=t(91994),e_=t(92823),eP=t(71834);let eF=e=>{if(null==e)return"N/A";let s=["B","KB","MB","GB"],t=e,l=0;for(;t>=1024&&l{if(null==e)return"N/A";let s=["bps","Kbps","Mbps","Gbps"],t=8*e,l=0;for(;t>=1e3&&l{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(null),[a,d]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),[g,j]=(0,n.useState)(0),[N,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),[k,S]=(0,n.useState)(!1),A=(0,n.useRef)(null),C=(0,n.useRef)(null),E=(0,n.useCallback)(()=>{t(null),d(null),u(null),x(!1),h(!1),v(!1),j(0),C.current=null,A.current&&(clearInterval(A.current),A.current=null)},[]),R=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/experimental/keep_alive.sh?status=true"),s=await e.json();if(s.enabled){let e=new Date,t=60*e.getHours()+e.getMinutes(),[l,n]=s.start_time.split(":").map(Number),[r,i]=s.end_time.split(":").map(Number);y(t>=60*l+n&&t<=60*r+i)}else y(!1)}catch(e){console.error("Failed to check keep-alive schedule:",e),y(!1)}},[]);(0,n.useEffect)(()=>{R();let e=setInterval(R,6e4);return()=>clearInterval(e)},[R]),(0,n.useEffect)(()=>{if(m&&!p){w(!0);let e=setTimeout(()=>{w(!1)},1e4);return()=>clearTimeout(e)}},[m,p]),(0,n.useEffect)(()=>()=>{A.current&&clearInterval(A.current)},[]);let T=(0,n.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/quecmanager/home/speedtest/speedtest_status.sh");if(!e.ok)throw Error("Failed to fetch status: ".concat(e.status));let s=await e.json();if("not_running"===s.status){p&&(u("Test ended unexpectedly"),h(!1)),A.current&&(clearInterval(A.current),A.current=null);return}if(s.type)try{switch(s.type){case"ping":d("ping"),s.ping&&"number"==typeof s.ping.progress&&j(s.ping.progress);break;case"download":case"upload":"ping"!==a&&d(s.type);break;case"result":if(s.download&&s.upload&&s.ping){C.current=s,t(s),x(!0),h(!1),A.current&&(clearInterval(A.current),A.current=null);return}console.warn("Incomplete result data received:",s)}}catch(e){console.error("Error processing speedtest data:",e)}(s.type&&(s.download||s.upload||s.ping)||s.isp)&&(C.current=s,t(s))}catch(e){console.error("Error polling speedtest status:",e),p&&(u("Failed to get speedtest status"),h(!1),A.current&&(clearInterval(A.current),A.current=null))}},[a,p]),I=(0,n.useCallback)(async()=>{if(!N&&!b)try{if(E(),v(!0),h(!0),S(!0),!(await fetch("/cgi-bin/quecmanager/home/speedtest/start_speedtest.sh",{method:"GET"})).ok)throw Error("Failed to start speedtest");A.current=setInterval(T,300),v(!1)}catch(e){console.error("Speedtest start error:",e),u(e instanceof Error?"Failed to start speedtest: ".concat(e.message):"Failed to start speedtest"),v(!1),h(!1)}},[N,b,E,T]);return(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsx)(i.ZB,{children:"Network Speedtest"})}),(0,l.jsxs)(i.Wu,{className:"flex flex-col gap-6 p-4 items-center justify-center",children:[(0,l.jsxs)(B.lG,{open:k,onOpenChange:S,children:[(0,l.jsx)(B.zM,{asChild:!0,children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center",children:[(0,l.jsx)(eP.A,{color:"#5420ab",size:192,className:"-top-8 -left-8 absolute",style:{zIndex:1}}),(0,l.jsx)(D.A,{className:"size-32 ".concat(b?"text-gray-400 cursor-not-allowed":"text-primary cursor-pointer"," z-10"),onClick:e=>{b||N||(e.preventDefault(),I())}})]})}),(0,l.jsxs)(B.Cf,{className:"sm:max-w-[800px]",children:[(0,l.jsx)(B.c7,{children:(0,l.jsxs)(B.L3,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2"})," Network Speedtest",m&&(0,l.jsx)(o.E,{variant:"outline",className:"ml-2",children:"Complete"}),p&&!m&&(0,l.jsx)(o.E,{variant:"outline",className:"ml-2 bg-primary/10",children:"Running..."})]})}),(0,l.jsx)("div",{className:"lg:max-w-full max-w-sm mx-auto min-w-sm py-6",children:(()=>{var e,t,n,r,o,d,u,x,h,v,j,N,w,b,y,k,S,A,C,R,T,M,U,B,L,D;if(c)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eE.A,{className:"text-rose-600 lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Network Speedtest Failed"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:["Something went wrong while running the speedtest.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2",onClick:()=>{E(),I()},children:"Please try again."})]})]});if(f||p&&!s)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eR.A,{className:"text-primary lg:size-48 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Initiating Network Speedtest"}),(0,l.jsx)("p",{className:"text-sm text-gray-500 text-center",children:"Locating and establishing a connection to a server. Please wait..."})]});if("ping"===a)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 size-16 animate-pulse"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Calculating Ping Latency"}),(0,l.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2.5",children:(0,l.jsx)("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:"".concat(100*(g||0),"%")}})}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==s?void 0:s.ping)?"Latency: ".concat(s.ping.latency.toFixed(2)," ms, \n Jitter: ").concat(s.ping.jitter.toFixed(2)," ms"):"Measuring network responsiveness..."})]});if(m)return s&&s.download&&s.upload&&s.ping?(0,l.jsxs)("div",{className:"grid gap-4 w-full min-w-sm",children:[(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-4 text-violet-600"})," Speedtest Result"]})}),(0,l.jsx)(i.Wu,{className:"lg:py-12 py-6 min-w-sm w-full",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4 lg:gap-y-0 gap-y-8 gap-x-8",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eM.A,{className:"text-green-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Download"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eq(null===(n=s.download)||void 0===n?void 0:n.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eU.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(M=null===(d=s.download)||void 0===d?void 0:null===(o=d.latency)||void 0===o?void 0:null===(r=o.iqm)||void 0===r?void 0:r.toFixed(2))&&void 0!==M?M:"N/A"," ","ms"]})]})]}),(0,l.jsxs)("div",{className:"grid gap-1.5 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(eB.A,{className:"text-violet-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"font-semibold",children:"Upload"})]}),(0,l.jsx)("h1",{className:"text-[3rem] font-semibold text-center antialiased leading-tight",children:eq(null===(u=s.upload)||void 0===u?void 0:u.bandwidth)}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eU.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Latency"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(U=null===(v=s.upload)||void 0===v?void 0:null===(h=v.latency)||void 0===h?void 0:null===(x=h.iqm)||void 0===x?void 0:x.toFixed(2))&&void 0!==U?U:"N/A"," ","ms"]})]})]})]})}),(0,l.jsxs)(i.wL,{className:"flex items-center justify-between mx-auto",children:[(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eT.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Ping"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(B=null===(N=s.ping)||void 0===N?void 0:null===(j=N.latency)||void 0===j?void 0:j.toFixed(2))&&void 0!==B?B:"N/A"," ms"]})]}),(0,l.jsxs)("div",{className:"grid gap-0.5 lg:flex lg:items-center lg:space-x-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,l.jsx)(eL.A,{className:"text-gray-600 lg:size-6 size-4"}),(0,l.jsx)("p",{className:"text-foreground-muted text-sm text-center",children:"Jitter"})]}),(0,l.jsxs)("p",{className:"text-foreground-muted text-sm text-center",children:[null!==(L=null===(b=s.ping)||void 0===b?void 0:null===(w=b.jitter)||void 0===w?void 0:w.toFixed(2))&&void 0!==L?L:"N/A"," ms"]})]})]})]}),(0,l.jsxs)(i.Zp,{children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[(0,l.jsx)(eD.A,{className:"mr-4 text-blue-600"})," Connection & Server Details"]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsxs)("div",{className:"grid gap-2",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"ISP:"}),(0,l.jsx)("p",{children:s.isp||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Internal IP:"}),(0,l.jsx)("p",{children:(null===(y=s.interface)||void 0===y?void 0:y.internalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"External IP:"}),(0,l.jsx)("p",{children:(null===(k=s.interface)||void 0===k?void 0:k.externalIp)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server Name:"}),(0,l.jsx)("p",{children:(null===(S=s.server)||void 0===S?void 0:S.name)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Location:"}),(0,l.jsx)("p",{children:(null===(A=s.server)||void 0===A?void 0:A.location)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Country:"}),(0,l.jsx)("p",{children:(null===(C=s.server)||void 0===C?void 0:C.country)||"N/A"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 grid-flow-row gap-2 truncate",children:[(0,l.jsx)("p",{className:"font-medium",children:"Server IP:"}),(0,l.jsx)("p",{children:(null===(R=s.server)||void 0===R?void 0:R.host)||"N/A"})]}),(null===(T=s.result)||void 0===T?void 0:T.url)&&(0,l.jsxs)("div",{className:"flex items-center gap-x-2 mt-4",children:[(0,l.jsx)(ez.A,{className:"text-blue-600 size-4"}),(0,l.jsx)("a",{href:s.result.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-blue-600 hover:underline",children:"View Full Result Online"})]})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eE.A,{className:"text-amber-500 lg:size-16 size-8"}),(0,l.jsx)("h3",{className:"text-xl font-semibold",children:"Incomplete Test Results"}),(0,l.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["The test didn't complete properly. Some data may be missing.",(0,l.jsx)("span",{className:"underline cursor-pointer ml-2 block",onClick:()=>{E(),I()},children:"Run the test again"})]})]});if(!a||!s)return null;if(!s[a])return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)(eG.A,{className:"text-primary lg:size-16 size-8 animate-spin"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Loading test data..."})]});let z=s[a],G="download"===a;return(0,l.jsxs)(i.Zp,{className:"p-4 w-full",children:[(0,l.jsx)(i.aR,{children:(0,l.jsxs)(i.ZB,{className:"flex items-center",children:[G?(0,l.jsx)(eM.A,{className:"text-green-500 lg:size-6 size-4 mr-1"}):(0,l.jsx)(eB.A,{className:"text-violet-500 lg:size-6 size-4 mr-1"}),(0,l.jsxs)("p",{className:"ml-2",children:["Testing ",G?"Download":"Upload"," Speed"]})]})}),(0,l.jsx)(i.Wu,{children:(0,l.jsx)("div",{className:"grid place-items-center max-w-sm lg:max-w-full mx-auto w-full",children:(0,l.jsx)("h1",{className:"lg:text-[4rem] text-[3rem] font-semibold text-center",children:eq(z.bandwidth)})})}),(0,l.jsx)(i.wL,{children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(e_.A,{className:"mr-2 text-yellow-600"}),"Bytes Transferred"]}),(0,l.jsx)("p",{className:"lg:text-md text-base text-muted font-semibold",children:eF(z.bytes)})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eI.A,{className:"mr-2 text-purple-600"}),"Elapsed Time"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[(z.elapsed/1e3).toFixed(2)," sec"]})]}),(0,l.jsxs)("div",{className:"grid gap-1 place-items-center",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eT.A,{className:"mr-2 text-gray-600"}),"Latency (IQM)"]}),(0,l.jsxs)("p",{className:"lg:text-md text-base text-muted font-semibold",children:[null!==(D=null===(t=z.latency)||void 0===t?void 0:null===(e=t.iqm)||void 0===e?void 0:e.toFixed(2))&&void 0!==D?D:"N/A"," ms"]})]})]})})]})})()}),(0,l.jsx)(B.Es,{className:"flex justify-between items-center",children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(U.$,{onClick:()=>{N?e({title:"Please wait",description:"Cooldown period active"}):(E(),I())},variant:"outline",disabled:N,children:[(0,l.jsx)(eG.A,{className:"h-4 w-4"}),"Run Again"]})}),(0,l.jsx)(U.$,{onClick:()=>S(!1),children:"Close"})]}):(0,l.jsx)(l.Fragment,{children:p?(0,l.jsx)(U.$,{onClick:()=>{E(),S(!1)},variant:"destructive",children:"Cancel Test"}):(0,l.jsx)(U.$,{onClick:()=>S(!1),children:"Close"})})})]})]}),(0,l.jsx)(i.BT,{children:b?"Speedtest is disabled during keep-alive schedule.":N?"Please wait 10 seconds before starting another test.":"Run a speed test to check your internet connection."})]})]})};var eZ=t(88926);let eH=()=>{let{toast:e}=(0,r.dj)(),[s,t]=(0,n.useState)(!1),{data:i,isLoading:a,refresh:o}=eb(),{dataConnectionState:c,isStateLoading:u,refresh:m}=ey(),{isRunningDiagnostics:x,runDiagnosticsData:v,startDiagnostics:g}=eA(),{bytesSent:j,bytesReceived:N,refresh:w}=eS(),b=async()=>{try{var s,t;let l=await (0,eZ.a)("AT+QUIMSLOT?"),n=null===(s=l.response)||void 0===s?void 0:s.raw_output.split("\n")[1].split(":")[1].trim(),r=await (0,eZ.a)("1"===n?"AT+QUIMSLOT=2":"AT+QUIMSLOT=1");if("error"===r.status||(null===(t=r.response)||void 0===t?void 0:t.status)==="error")throw Error("Failed to change SIM slot");e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{await (0,eZ.a)("AT+COPS=2"),setTimeout(async()=>{let s=await (0,eZ.a)("AT+COPS=0");if("error"===s.status)throw Error("Failed to reconnect to the network");e({title:"Network Reconnected",description:"The device has been reconnected to the network"})},2e3)},3e3),setTimeout(y,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:s instanceof Error?s.message:"Failed to change the SIM slot"})}},y=(0,n.useCallback)(async()=>{try{await Promise.all([o(),m(),w()])}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[o,m,w]),[k,A]=(0,n.useState)([]),E=async()=>{try{await g()}catch(e){console.error("Error running diagnostics:",e)}};return(0,n.useEffect)(()=>{v&&console.log("Diagnostics data updated:",v)},[v]),(0,n.useEffect)(()=>{if(i&&i.currentBands){var e;let s=null===(e=i.currentBands.id)||void 0===e?void 0:e.map((e,s)=>{var t,l,n,r,a,o,d;return{id:e,bandNumber:(null===(t=i.currentBands.bandNumber)||void 0===t?void 0:t[s])||"N/A",earfcn:(null===(l=i.currentBands.earfcn)||void 0===l?void 0:l[s])||"N/A",bandwidth:(null===(n=i.currentBands.bandwidth)||void 0===n?void 0:n[s])||"N/A",pci:(null===(r=i.currentBands.pci)||void 0===r?void 0:r[s])||"N/A",rsrp:(null===(a=i.currentBands.rsrp)||void 0===a?void 0:a[s])||"N/A",rsrq:(null===(o=i.currentBands.rsrq)||void 0===o?void 0:o[s])||"N/A",sinr:(null===(d=i.currentBands.sinr)||void 0===d?void 0:d[s])||"N/A"}});s&&A(s)}},[i]),(0,n.useEffect)(()=>{a||(null==i?void 0:i.simCard.state)!=="Not Inserted"||t(!0)},[i,a]),(0,l.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Connection Summary"}),(0,l.jsx)(U.$,{variant:"ghost",size:"icon",className:"text-sm",onClick:y,children:(0,l.jsx)(L.A,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==i?void 0:i.simCard.state)==="Not Inserted"&&(0,l.jsxs)(B.lG,{open:s,onOpenChange:t,children:[(0,l.jsx)(B.zM,{asChild:!0,children:(0,l.jsxs)(U.$,{variant:"destructive",children:[(0,l.jsx)(eC.fU4,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"No SIM Detected"})}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(eC.fU4,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,l.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,l.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,l.jsx)(U.$,{onClick:b,className:"mr-2",children:"Change SIM Slot"}),(0,l.jsx)(B.HM,{asChild:!0,children:(0,l.jsx)(U.$,{variant:"secondary",onClick:()=>t(!1),children:"Close"})})]})]})]}),(0,l.jsxs)(B.lG,{children:[(0,l.jsx)(B.zM,{children:(0,l.jsxs)(U.$,{onClick:E,children:[(0,l.jsx)(D.A,{className:"xl:size-6 size-5"}),(0,l.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!x&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Diagnostics Result"})}),(0,l.jsx)(B.rr,{children:"This is the result of the diagnostic test ran on your device."}),(0,l.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==v?void 0:v.netRegistration)==="Registered"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==v?void 0:v.simState)==="READY"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==v?void 0:v.manualAPN)==="Enabled"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==v?void 0:v.wanIP)==="Connected"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==v?void 0:v.cellSignal)==="Good"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==v?void 0:v.modemTemp)==="Normal"?(0,l.jsx)(z.A,{className:"text-green-500"}):(0,l.jsx)(G.A,{className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,l.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==v?void 0:v.netReject)==="None"?(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(z.A,{className:"text-green-500"}),(0,l.jsx)("span",{children:"None"})]}):(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)(G.A,{className:"text-red-500"}),(0,l.jsx)("span",{children:null==v?void 0:v.netReject})]})]})]})]}),x&&(0,l.jsxs)(B.Cf,{className:"max-w-xs md:max-w-lg",children:[(0,l.jsx)(B.c7,{children:(0,l.jsx)(B.L3,{children:"Running Diagnostics"})}),(0,l.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,l.jsx)(P(),{color:"#6D28D9"})}),(0,l.jsx)(B.rr,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(S,{})}),(0,l.jsxs)("div",{className:"grid gap-2 lg:grid-cols-2 grid-cols-1 grid-flow-row",children:[(0,l.jsx)(C,{}),(0,l.jsx)(R,{}),(0,l.jsx)(eO,{}),(0,l.jsx)(M,{})]})]}),(0,l.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,l.jsx)(d,{data:i,isLoading:a}),(0,l.jsx)(p,{data:i,isLoading:a,dataConnectionState:c,connectionStateLoading:u}),(0,l.jsx)(h,{data:i,isLoading:a,bytesSent:j,bytesReceived:N}),(0,l.jsx)(f,{data:i,isLoading:a})]})]}),(0,l.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,l.jsx)("h1",{className:"xl:text-3xl text-base font-bold",children:"Current Active Bands"}),(0,l.jsx)(Y,{bands:k,isLoading:a})]})]})}},45934:(e,s,t)=>{"use strict";t.d(s,{E:()=>a});var l=t(20475);t(20107);var n=t(29395),r=t(22250);let i=(0,n.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a(e){let{className:s,variant:t,...n}=e;return(0,l.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...n})}},42541:(e,s,t)=>{"use strict";t.d(s,{$:()=>d,r:()=>o});var l=t(20475),n=t(20107),r=t(61837),i=t(29395),a=t(22250);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,s)=>{let{className:t,variant:n,size:i,asChild:d=!1,...c}=e,u=d?r.DX:"button";return(0,l.jsx)(u,{className:(0,a.cn)(o({variant:n,size:i,className:t})),ref:s,...c})});d.displayName="Button"},72167:(e,s,t)=>{"use strict";t.d(s,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>a,wL:()=>u});var l=t(20475),n=t(20107),r=t(22250);let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});i.displayName="Card";let a=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});a.displayName="CardHeader";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},1307:(e,s,t)=>{"use strict";t.d(s,{II:()=>p,Nt:()=>h,at:()=>m});var l=t(20475),n=t(20107),r=t(81155),i=t(58601),a=t(58736),o=t(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,s)=>{let{id:t,className:i,children:a,config:d,...u}=e,m=n.useId(),p="chart-".concat(t||m.replace(/:/g,""));return(0,l.jsx)(c.Provider,{value:{config:d},children:(0,l.jsxs)("div",{"data-chart":p,ref:s,className:(0,o.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",i),...u,children:[(0,l.jsx)(x,{id:p,config:d}),(0,l.jsx)(r.u,{children:a})]})})});m.displayName="Chart";let x=e=>{let{id:s,config:t}=e,n=Object.entries(t).filter(e=>{let[s,t]=e;return t.theme||t.color});return n.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[t,l]=e;return"\n".concat(l," [data-chart=").concat(s,"] {\n").concat(n.map(e=>{var s;let[l,n]=e,r=(null===(s=n.theme)||void 0===s?void 0:s[t])||n.color;return r?" --color-".concat(l,": ").concat(r,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},p=i.m,h=n.forwardRef((e,s)=>{let{active:t,payload:r,className:i,indicator:a="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:x,labelClassName:p,formatter:h,color:v,nameKey:g,labelKey:j}=e,{config:N}=u(),w=n.useMemo(()=>{var e;if(d||!(null==r?void 0:r.length))return null;let[s]=r,t="".concat(j||s.dataKey||s.name||"value"),n=f(N,s,t),i=j||"string"!=typeof m?null==n?void 0:n.label:(null===(e=N[m])||void 0===e?void 0:e.label)||m;return x?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:x(i,r)}):i?(0,l.jsx)("div",{className:(0,o.cn)("font-medium",p),children:i}):null},[m,x,r,d,p,N,j]);if(!t||!(null==r?void 0:r.length))return null;let b=1===r.length&&"dot"!==a;return(0,l.jsxs)("div",{ref:s,className:(0,o.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",i),children:[b?null:w,(0,l.jsx)("div",{className:"grid gap-1.5",children:r.map((e,s)=>{let t="".concat(g||e.name||e.dataKey||"value"),n=f(N,e,t),r=v||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,o.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===a&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,s,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.icon)?(0,l.jsx)(n.icon,{}):!c&&(0,l.jsx)("div",{className:(0,o.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===a,"w-1":"line"===a,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===a,"my-0.5":b&&"dashed"===a}),style:{"--color-bg":r,"--color-border":r}}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[b?w:null,(0,l.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function f(e,s,t){if("object"!=typeof s||null===s)return;let l="payload"in s&&"object"==typeof s.payload&&null!==s.payload?s.payload:void 0,n=t;return t in s&&"string"==typeof s[t]?n=s[t]:l&&t in l&&"string"==typeof l[t]&&(n=l[t]),n in e?e[n]:e[t]}h.displayName="ChartTooltip",a.s,n.forwardRef((e,s)=>{let{className:t,hideIcon:n=!1,payload:r,verticalAlign:i="bottom",nameKey:a}=e,{config:d}=u();return(null==r?void 0:r.length)?(0,l.jsx)("div",{ref:s,className:(0,o.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:r.map(e=>{let s="".concat(a||e.dataKey||"value"),t=f(d,e,s);return(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==t?void 0:t.icon)&&!n?(0,l.jsx)(t.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==t?void 0:t.label]},e.value)})}):null}).displayName="ChartLegend"},93557:(e,s,t)=>{"use strict";t.d(s,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>f,c7:()=>p,lG:()=>o,rr:()=>v,zM:()=>d});var l=t(20475),n=t(20107),r=t(60241),i=t(7197),a=t(22250);let o=r.bL,d=r.l9,c=r.ZL,u=r.bm,m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hJ,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})});m.displayName=r.hJ.displayName;let x=n.forwardRef((e,s)=>{let{className:t,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(m,{}),(0,l.jsxs)(r.UC,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[n,(0,l.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.UC.displayName;let p=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};p.displayName="DialogHeader";let h=e=>{let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t})};h.displayName="DialogFooter";let f=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.hE,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",t),...n})});f.displayName=r.hE.displayName;let v=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,l.jsx)(r.VY,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});v.displayName=r.VY.displayName},36760:(e,s,t)=>{"use strict";t.d(s,{E:()=>r});var l=t(20475),n=t(22250);function r(e){let{className:s,...t}=e;return(0,l.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",s),...t})}},32857:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m,oR:()=>u});var l=t(20107);let n=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],d={toasts:[]};function c(e){d=a(d,e),o.forEach(e=>{e(d)})}function u(e){let{...s}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),l=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||l()}}}),{id:t,dismiss:l,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=l.useState(d);return l.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,s,t)=>{"use strict";t.d(s,{cn:()=>r});var l=t(64901),n=t(868);function r(){for(var e=arguments.length,s=Array(e),t=0;t{"use strict";t.d(s,{a:()=>l});let l=async function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var l;let n=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),r=encodeURIComponent(n),i="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(r);s&&(i+="&wait=1&timeout=".concat(t));let a=await fetch(i,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*t+5e3)});if(!a.ok)throw Error("AT command failed with status: ".concat(a.status));let o=await a.json();if(o.error)throw Error("AT queue error: ".concat(o.error));if(s&&(null===(l=o.response)||void 0===l?void 0:l.status)==="timeout")throw Error("AT command timed out after ".concat(t," seconds"));return o}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var s=s=>e(e.s=s);e.O(0,[9980,9649,7780,8885,9464,241,1074,8520,191,6035,7358],()=>s(31710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-02fe1192f54f04cf.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-02fe1192f54f04cf.js new file mode 100644 index 0000000..2af5605 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-02fe1192f54f04cf.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1954],{99750:(e,t,a)=>{Promise.resolve().then(a.bind(a,89868))},89868:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>M});var s=a(20475),r=a(9477),o=a.n(r),n=a(19546),d=a(20107),i=a(16118);let l=e=>{let{children:t}=e,a=(0,i.useRouter)(),{isAuthenticated:r,checkAuth:o}=(0,n.A)();return((0,d.useEffect)(()=>{o()||a.push("/login")},[]),r)?(0,s.jsx)(s.Fragment,{children:t}):null};var c=a(99015),u=a(39997);let m=(0,u.A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),h=(0,u.A)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var f=a(44381),x=a(42541),p=a(88926),g=a(86118),y=a(97818);let b=(0,u.A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),j=(0,u.A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var v=a(92159),w=a(60241),N=a(7197),k=a(29395),A=a(22250);let T=w.bL,C=w.l9,R=w.bm,S=w.ZL,_=d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.hJ,{className:(0,A.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});_.displayName=w.hJ.displayName;let E=(0,k.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),z=d.forwardRef((e,t)=>{let{side:a="right",className:r,children:o,...n}=e;return(0,s.jsxs)(S,{children:[(0,s.jsx)(_,{}),(0,s.jsxs)(w.UC,{ref:t,className:(0,A.cn)(E({side:a}),r),...n,children:[(0,s.jsxs)(w.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(N.MKb,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]})});z.displayName=w.UC.displayName,d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.hE,{ref:t,className:(0,A.cn)("text-lg font-semibold text-foreground",a),...r})}).displayName=w.hE.displayName,d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.VY,{ref:t,className:(0,A.cn)("text-sm text-muted-foreground",a),...r})}).displayName=w.VY.displayName;var O=a(32857);let M=e=>{let{children:t}=e,a=(0,i.usePathname)(),{logout:r}=(0,n.A)(),{setTheme:u}=(0,v.D)(),[w,N]=(0,d.useState)(!1),[k,A]=(0,d.useState)(!1),S=(0,O.dj)(),_=async()=>{try{N(!0),await (0,p.a)("AT+QPOWD=1",!0,60),S.toast({title:"Rebooting device",description:"Please wait for the device to restart. This may take up to ".concat(90," seconds."),duration:9e4}),setTimeout(()=>{S.toast({title:"Device is now active",description:"The device has been rebooted successfully."})},9e4),setTimeout(()=>{window.location.reload()},92e3)}catch(e){console.error("Reboot error:",e),S.toast({title:"Failed to reboot device",description:"Please try again.",variant:"destructive"})}finally{N(!1)}},E=async()=>{try{A(!0),await (0,p.a)("AT+COPS=2",!0,30),S.toast({title:"Disconnected from network",description:"Reconnecting in 2 seconds..."}),await new Promise(e=>setTimeout(e,2e3)),await (0,p.a)("AT+COPS=0",!0,60),S.toast({title:"Reconnected to network",description:"The device has been reconnected successfully."}),await new Promise(e=>setTimeout(e,3e3)),window.location.reload()}catch(e){console.error("Reconnect error:",e),S.toast({title:"Failed to reconnect to network",description:"Please try again.",variant:"destructive"})}finally{A(!1)}};return(0,s.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,s.jsxs)("header",{className:"sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",children:[(0,s.jsxs)("nav",{className:"hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-base lg:gap-6",children:[(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold md:text-xl md:mr-8",children:[(0,s.jsx)(c.A,{className:"h-6 w-6"}),(0,s.jsx)("h1",{children:"QuecManager"})]}),(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"}),(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"}),(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"}),(0,s.jsx)(o(),{href:"/dashboard/experimental/quecwatch",className:"".concat(a.includes("/dashboard/experimental/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"}),(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat(a.includes("/dashboard/about/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})]}),(0,s.jsxs)(T,{children:[(0,s.jsx)(C,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[(0,s.jsx)(m,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,s.jsx)(z,{side:"left",children:(0,s.jsxs)("nav",{className:"grid gap-6 text-lg font-medium",children:[(0,s.jsx)(R,{asChild:!0,children:(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,s.jsx)(c.A,{className:"h-6 w-6"}),(0,s.jsx)("span",{children:"QuecManager"})]})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/experimental/",className:"".concat("/dashboard/experimental/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",className:"".concat(a.includes("/dashboard/settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Settings"})})]})})]}),(0,s.jsxs)("div",{className:"flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4",children:[(0,s.jsx)("form",{className:"ml-auto flex-1 sm:flex-initial",children:(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",children:[(0,s.jsx)(b,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,s.jsx)(j,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g._2,{onClick:()=>u("light"),children:"Light"}),(0,s.jsx)(g._2,{onClick:()=>u("dark"),children:"Dark"}),(0,s.jsx)(g._2,{onClick:()=>u("system"),children:"System"})]})]})}),(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"secondary",size:"icon",className:"rounded-full",children:[(0,s.jsx)(h,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle user menu"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g.lp,{children:"Options"}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",children:"Settings"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"/cgi-bin/luci",target:"_blank",rel:"noreferrer noopener",children:"Luci"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/discussions/new/choose",target:"_blank",children:"Support"})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:E,children:k?"Reconnecting...":"Reconnect"}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsxs)(y.Lt,{children:[(0,s.jsx)(y.tv,{asChild:!0,children:(0,s.jsx)("button",{className:"relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",children:"Reboot"})}),(0,s.jsxs)(y.EO,{children:[(0,s.jsxs)(y.wd,{children:[(0,s.jsx)(y.r7,{children:"Are you sure?"}),(0,s.jsx)(y.$v,{children:"This will reboot your device. The connection will be lost temporarily. Please wait for the page to reload."})]}),(0,s.jsxs)(y.ck,{children:[(0,s.jsx)(y.Zr,{children:"Cancel"}),(0,s.jsxs)(y.Rx,{onClick:_,disabled:w,children:[(0,s.jsx)(f.A,{className:"size-4"}),"Reboot Now"]})]})]})]})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:r,children:"Logout"})]})]})]})]}),(0,s.jsx)("main",{className:"flex min-h-[calc(100vh_-_theme(spacing.16))] flex-1 flex-col gap-4 bg-muted/40 p-4 md:gap-8 md:p-10",children:(0,s.jsx)(l,{children:t})})]})}},97818:(e,t,a)=>{"use strict";a.d(t,{$v:()=>p,EO:()=>m,Lt:()=>i,Rx:()=>g,Zr:()=>y,ck:()=>f,r7:()=>x,tv:()=>l,wd:()=>h});var s=a(20475),r=a(20107),o=a(50564),n=a(22250),d=a(42541);let i=o.bL,l=o.l9,c=o.ZL,u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.hJ,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});u.displayName=o.hJ.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(u,{}),(0,s.jsx)(o.UC,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...r})]})});m.displayName=o.UC.displayName;let h=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};h.displayName="AlertDialogHeader";let f=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};f.displayName="AlertDialogFooter";let x=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.hE,{ref:t,className:(0,n.cn)("text-lg font-semibold",a),...r})});x.displayName=o.hE.displayName;let p=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});p.displayName=o.VY.displayName;let g=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.rc,{ref:t,className:(0,n.cn)((0,d.r)(),a),...r})});g.displayName=o.rc.displayName;let y=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.ZD,{ref:t,className:(0,n.cn)((0,d.r)({variant:"outline"}),"mt-2 sm:mt-0",a),...r})});y.displayName=o.ZD.displayName},42541:(e,t,a)=>{"use strict";a.d(t,{$:()=>l,r:()=>i});var s=a(20475),r=a(20107),o=a(61837),n=a(29395),d=a(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=r.forwardRef((e,t)=>{let{className:a,variant:r,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,s.jsx)(u,{className:(0,d.cn)(i({variant:r,size:n,className:a})),ref:t,...c})});l.displayName="Button"},86118:(e,t,a)=>{"use strict";a.d(t,{SQ:()=>c,_2:()=>u,lp:()=>m,mB:()=>h,rI:()=>i,ty:()=>l});var s=a(20475),r=a(20107),o=a(77536),n=a(7197),d=a(22250);let i=o.bL,l=o.l9;o.YJ,o.ZL,o.Pb,o.z6,r.forwardRef((e,t)=>{let{className:a,inset:r,children:i,...l}=e;return(0,s.jsxs)(o.ZP,{ref:t,className:(0,d.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",a),...l,children:[i,(0,s.jsx)(n.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=o.ZP.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.G5,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})}).displayName=o.G5.displayName;let c=r.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,...n}=e;return(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.UC,{ref:t,sideOffset:r,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});c.displayName=o.UC.displayName;let u=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.q7,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a),...n})});u.displayName=o.q7.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,checked:i,...l}=e;return(0,s.jsxs)(o.H_,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:i,...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),r]})}).displayName=o.H_.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,...i}=e;return(0,s.jsxs)(o.hN,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...i,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.RiX,{className:"h-4 w-4 fill-current"})})}),r]})}).displayName=o.hN.displayName;let m=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...n})});m.displayName=o.JU.displayName;let h=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...r})});h.displayName=o.wv.displayName},19546:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(20107),r=a(16118);function o(){let[e,t]=(0,s.useState)(!1),[a,o]=(0,s.useState)(!0),n=(0,r.useRouter)();async function d(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){i();return}(await e.json()).alive?o(!0):i()}catch(e){i()}}function i(){o(!1),c()}function l(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function c(){localStorage.removeItem("session"),t(!1),n.push("/login")}function u(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(c(),!1):(t-e.lastActivity>3e5&&l(e.token),!0)}();return t(e),e}return(0,s.useEffect)(()=>{u();let e=setInterval(d,5e3);return()=>{clearInterval(e)}},[]),{isAuthenticated:e,isServerAlive:a,login:async function(e){let a=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(a)}),s=await e.json();if(console.log(s),"success"!==s.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return l(e),t(!0),n.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:c,checkAuth:u}}},32857:(e,t,a)=>{"use strict";a.d(t,{dj:()=>m,oR:()=>u});var s=a(20107);let r=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},d=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?n(a):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...t}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=s.useState(l);return s.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,a)=>{"use strict";a.d(t,{cn:()=>o});var s=a(64901),r=a(868);function o(){for(var e=arguments.length,t=Array(e),a=0;a{"use strict";a.d(t,{A:()=>i});var s=a(20107);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),a=0;a!!e&&a.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let d=(0,s.forwardRef)((e,t)=>{let{color:a="currentColor",size:r=24,strokeWidth:d=2,absoluteStrokeWidth:i,className:l="",children:c,iconNode:u,...m}=e;return(0,s.createElement)("svg",{ref:t,...n,width:r,height:r,stroke:a,strokeWidth:i?24*Number(d)/Number(r):d,className:o("lucide",l),...m},[...u.map(e=>{let[t,a]=e;return(0,s.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),i=(e,t)=>{let a=(0,s.forwardRef)((a,n)=>{let{className:i,...l}=a;return(0,s.createElement)(d,{ref:n,iconNode:t,className:o("lucide-".concat(r(e)),i),...l})});return a.displayName="".concat(e),a}},44381:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(39997).A)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},99015:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(39997).A)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]])},16118:(e,t,a)=>{"use strict";var s=a(65834);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}})},88926:(e,t,a)=>{"use strict";a.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),o=encodeURIComponent(r),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(o);t&&(n+="&wait=1&timeout=".concat(a));let d=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*a+5e3)});if(!d.ok)throw Error("AT command failed with status: ".concat(d.status));let i=await d.json();if(i.error)throw Error("AT queue error: ".concat(i.error));if(t&&(null===(s=i.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(a," seconds"));return i}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,3746,9464,9477,564,2682,7536,191,6035,7358],()=>t(99750)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-4803670355901ee0.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-4803670355901ee0.js new file mode 100644 index 0000000..33fdebf --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-4803670355901ee0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1954],{99750:(e,t,a)=>{Promise.resolve().then(a.bind(a,96609))},96609:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>E});var s=a(20475),r=a(9477),o=a.n(r),n=a(19546),d=a(20107),i=a(16118);let l=e=>{let{children:t}=e,a=(0,i.useRouter)(),{isAuthenticated:r,checkAuth:o}=(0,n.A)();return((0,d.useEffect)(()=>{o()||a.push("/login")},[]),r)?(0,s.jsx)(s.Fragment,{children:t}):null};var c=a(39997);let h=(0,c.A)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]]),u=(0,c.A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),m=(0,c.A)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var f=a(44381),x=a(42541),p=a(88926),g=a(86118),y=a(83086);let b=(0,c.A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),j=(0,c.A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var N=a(92159),v=a(60241),w=a(7197),k=a(29395),C=a(22250);let R=v.bL,A=v.l9,S=v.bm,_=v.ZL,P=d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(v.hJ,{className:(0,C.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});P.displayName=v.hJ.displayName;let T=(0,k.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),z=d.forwardRef((e,t)=>{let{side:a="right",className:r,children:o,...n}=e;return(0,s.jsxs)(_,{children:[(0,s.jsx)(P,{}),(0,s.jsxs)(v.UC,{ref:t,className:(0,C.cn)(T({side:a}),r),...n,children:[(0,s.jsxs)(v.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(w.MKb,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]})});z.displayName=v.UC.displayName,d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(v.hE,{ref:t,className:(0,C.cn)("text-lg font-semibold text-foreground",a),...r})}).displayName=v.hE.displayName,d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(v.VY,{ref:t,className:(0,C.cn)("text-sm text-muted-foreground",a),...r})}).displayName=v.VY.displayName;var M=a(32857);let E=e=>{let{children:t}=e,a=(0,i.usePathname)(),{logout:r}=(0,n.A)(),{setTheme:c}=(0,N.D)(),[v,w]=(0,d.useState)(!1),[k,C]=(0,d.useState)(!1),_=(0,M.dj)(),P=async()=>{try{w(!0),await (0,p.a)("AT+QPOWD=1",!0,60),_.toast({title:"Rebooting device",description:"Please wait for the device to restart. This may take up to ".concat(90," seconds."),duration:9e4}),setTimeout(()=>{_.toast({title:"Device is now active",description:"The device has been rebooted successfully."})},9e4),setTimeout(()=>{window.location.reload()},92e3)}catch(e){console.error("Reboot error:",e),_.toast({title:"Failed to reboot device",description:"Please try again.",variant:"destructive"})}finally{w(!1)}},T=async()=>{try{C(!0),await (0,p.a)("AT+COPS=2",!0,30),_.toast({title:"Disconnected from network",description:"Reconnecting in 2 seconds..."}),await new Promise(e=>setTimeout(e,2e3)),await (0,p.a)("AT+COPS=0",!0,60),_.toast({title:"Reconnected to network",description:"The device has been reconnected successfully."}),await new Promise(e=>setTimeout(e,3e3)),window.location.reload()}catch(e){console.error("Reconnect error:",e),_.toast({title:"Failed to reconnect to network",description:"Please try again.",variant:"destructive"})}finally{C(!1)}};return(0,s.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,s.jsxs)("header",{className:"sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",children:[(0,s.jsxs)("nav",{className:"hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-base lg:gap-6",children:[(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold md:text-xl md:mr-8",children:[(0,s.jsx)(h,{className:"h-6 w-6"}),(0,s.jsx)("h1",{children:"QuecManager"})]}),(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"}),(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"}),(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"}),(0,s.jsx)(o(),{href:"/dashboard/experimental/quecwatch",className:"".concat(a.includes("/dashboard/experimental/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"}),(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat(a.includes("/dashboard/about/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})]}),(0,s.jsxs)(R,{children:[(0,s.jsx)(A,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[(0,s.jsx)(u,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,s.jsx)(z,{side:"left",children:(0,s.jsxs)("nav",{className:"grid gap-6 text-lg font-medium",children:[(0,s.jsx)(S,{asChild:!0,children:(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,s.jsx)(h,{className:"h-6 w-6"}),(0,s.jsx)("span",{children:"QuecManager"})]})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/experimental/",className:"".concat("/dashboard/experimental/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",className:"".concat(a.includes("/dashboard/settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Settings"})})]})})]}),(0,s.jsxs)("div",{className:"flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4",children:[(0,s.jsx)("form",{className:"ml-auto flex-1 sm:flex-initial",children:(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",children:[(0,s.jsx)(b,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,s.jsx)(j,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g._2,{onClick:()=>c("light"),children:"Light"}),(0,s.jsx)(g._2,{onClick:()=>c("dark"),children:"Dark"}),(0,s.jsx)(g._2,{onClick:()=>c("system"),children:"System"})]})]})}),(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"secondary",size:"icon",className:"rounded-full",children:[(0,s.jsx)(m,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle user menu"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g.lp,{children:"Options"}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",children:"Settings"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"/cgi-bin/luci",target:"_blank",rel:"noreferrer noopener",children:"Luci"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/discussions/new/choose",target:"_blank",children:"Support"})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:T,children:k?"Reconnecting...":"Reconnect"}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsxs)(y.Lt,{children:[(0,s.jsx)(y.tv,{asChild:!0,children:(0,s.jsx)("button",{className:"relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",children:"Reboot"})}),(0,s.jsxs)(y.EO,{children:[(0,s.jsxs)(y.wd,{children:[(0,s.jsx)(y.r7,{children:"Are you sure?"}),(0,s.jsx)(y.$v,{children:"This will reboot your device. The connection will be lost temporarily. Please wait for the page to reload."})]}),(0,s.jsxs)(y.ck,{children:[(0,s.jsx)(y.Zr,{children:"Cancel"}),(0,s.jsxs)(y.Rx,{onClick:P,disabled:v,children:[(0,s.jsx)(f.A,{className:"size-4"}),"Reboot Now"]})]})]})]})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:r,children:"Logout"})]})]})]})]}),(0,s.jsx)("main",{className:"flex min-h-[calc(100vh_-_theme(spacing.16))] flex-1 flex-col gap-4 bg-muted/40 p-4 md:gap-8 md:p-10",children:(0,s.jsx)(l,{children:t})})]})}},86118:(e,t,a)=>{"use strict";a.d(t,{SQ:()=>c,_2:()=>h,lp:()=>u,mB:()=>m,rI:()=>i,ty:()=>l});var s=a(20475),r=a(20107),o=a(77536),n=a(7197),d=a(22250);let i=o.bL,l=o.l9;o.YJ,o.ZL,o.Pb,o.z6,r.forwardRef((e,t)=>{let{className:a,inset:r,children:i,...l}=e;return(0,s.jsxs)(o.ZP,{ref:t,className:(0,d.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",a),...l,children:[i,(0,s.jsx)(n.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=o.ZP.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.G5,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})}).displayName=o.G5.displayName;let c=r.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,...n}=e;return(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.UC,{ref:t,sideOffset:r,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});c.displayName=o.UC.displayName;let h=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.q7,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a),...n})});h.displayName=o.q7.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,checked:i,...l}=e;return(0,s.jsxs)(o.H_,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:i,...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),r]})}).displayName=o.H_.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,...i}=e;return(0,s.jsxs)(o.hN,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...i,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.RiX,{className:"h-4 w-4 fill-current"})})}),r]})}).displayName=o.hN.displayName;let u=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...n})});u.displayName=o.JU.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...r})});m.displayName=o.wv.displayName},19546:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(20107),r=a(16118);function o(){let[e,t]=(0,s.useState)(!1),[a,o]=(0,s.useState)(!0),n=(0,r.useRouter)();async function d(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){i();return}(await e.json()).alive?o(!0):i()}catch(e){i()}}function i(){o(!1),c()}function l(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function c(){localStorage.removeItem("session"),t(!1),n.push("/login")}function h(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(c(),!1):(t-e.lastActivity>3e5&&l(e.token),!0)}();return t(e),e}return(0,s.useEffect)(()=>{h();let e=setInterval(d,5e3);return()=>{clearInterval(e)}},[]),{isAuthenticated:e,isServerAlive:a,login:async function(e){let a=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(a)}),s=await e.json();if(console.log(s),"success"!==s.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return l(e),t(!0),n.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:c,checkAuth:h}}},16118:(e,t,a)=>{"use strict";var s=a(65834);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}})}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,9477,6357,7414,4767,191,6035,7358],()=>t(99750)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-5311362b3a63fe81.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-5311362b3a63fe81.js new file mode 100644 index 0000000..33fdebf --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-5311362b3a63fe81.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1954],{99750:(e,t,a)=>{Promise.resolve().then(a.bind(a,96609))},96609:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>E});var s=a(20475),r=a(9477),o=a.n(r),n=a(19546),d=a(20107),i=a(16118);let l=e=>{let{children:t}=e,a=(0,i.useRouter)(),{isAuthenticated:r,checkAuth:o}=(0,n.A)();return((0,d.useEffect)(()=>{o()||a.push("/login")},[]),r)?(0,s.jsx)(s.Fragment,{children:t}):null};var c=a(39997);let h=(0,c.A)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]]),u=(0,c.A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),m=(0,c.A)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var f=a(44381),x=a(42541),p=a(88926),g=a(86118),y=a(83086);let b=(0,c.A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),j=(0,c.A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var N=a(92159),v=a(60241),w=a(7197),k=a(29395),C=a(22250);let R=v.bL,A=v.l9,S=v.bm,_=v.ZL,P=d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(v.hJ,{className:(0,C.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});P.displayName=v.hJ.displayName;let T=(0,k.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),z=d.forwardRef((e,t)=>{let{side:a="right",className:r,children:o,...n}=e;return(0,s.jsxs)(_,{children:[(0,s.jsx)(P,{}),(0,s.jsxs)(v.UC,{ref:t,className:(0,C.cn)(T({side:a}),r),...n,children:[(0,s.jsxs)(v.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(w.MKb,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]})});z.displayName=v.UC.displayName,d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(v.hE,{ref:t,className:(0,C.cn)("text-lg font-semibold text-foreground",a),...r})}).displayName=v.hE.displayName,d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(v.VY,{ref:t,className:(0,C.cn)("text-sm text-muted-foreground",a),...r})}).displayName=v.VY.displayName;var M=a(32857);let E=e=>{let{children:t}=e,a=(0,i.usePathname)(),{logout:r}=(0,n.A)(),{setTheme:c}=(0,N.D)(),[v,w]=(0,d.useState)(!1),[k,C]=(0,d.useState)(!1),_=(0,M.dj)(),P=async()=>{try{w(!0),await (0,p.a)("AT+QPOWD=1",!0,60),_.toast({title:"Rebooting device",description:"Please wait for the device to restart. This may take up to ".concat(90," seconds."),duration:9e4}),setTimeout(()=>{_.toast({title:"Device is now active",description:"The device has been rebooted successfully."})},9e4),setTimeout(()=>{window.location.reload()},92e3)}catch(e){console.error("Reboot error:",e),_.toast({title:"Failed to reboot device",description:"Please try again.",variant:"destructive"})}finally{w(!1)}},T=async()=>{try{C(!0),await (0,p.a)("AT+COPS=2",!0,30),_.toast({title:"Disconnected from network",description:"Reconnecting in 2 seconds..."}),await new Promise(e=>setTimeout(e,2e3)),await (0,p.a)("AT+COPS=0",!0,60),_.toast({title:"Reconnected to network",description:"The device has been reconnected successfully."}),await new Promise(e=>setTimeout(e,3e3)),window.location.reload()}catch(e){console.error("Reconnect error:",e),_.toast({title:"Failed to reconnect to network",description:"Please try again.",variant:"destructive"})}finally{C(!1)}};return(0,s.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,s.jsxs)("header",{className:"sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",children:[(0,s.jsxs)("nav",{className:"hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-base lg:gap-6",children:[(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold md:text-xl md:mr-8",children:[(0,s.jsx)(h,{className:"h-6 w-6"}),(0,s.jsx)("h1",{children:"QuecManager"})]}),(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"}),(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"}),(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"}),(0,s.jsx)(o(),{href:"/dashboard/experimental/quecwatch",className:"".concat(a.includes("/dashboard/experimental/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"}),(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat(a.includes("/dashboard/about/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})]}),(0,s.jsxs)(R,{children:[(0,s.jsx)(A,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[(0,s.jsx)(u,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,s.jsx)(z,{side:"left",children:(0,s.jsxs)("nav",{className:"grid gap-6 text-lg font-medium",children:[(0,s.jsx)(S,{asChild:!0,children:(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,s.jsx)(h,{className:"h-6 w-6"}),(0,s.jsx)("span",{children:"QuecManager"})]})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/experimental/",className:"".concat("/dashboard/experimental/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",className:"".concat(a.includes("/dashboard/settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Settings"})})]})})]}),(0,s.jsxs)("div",{className:"flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4",children:[(0,s.jsx)("form",{className:"ml-auto flex-1 sm:flex-initial",children:(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",children:[(0,s.jsx)(b,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,s.jsx)(j,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g._2,{onClick:()=>c("light"),children:"Light"}),(0,s.jsx)(g._2,{onClick:()=>c("dark"),children:"Dark"}),(0,s.jsx)(g._2,{onClick:()=>c("system"),children:"System"})]})]})}),(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"secondary",size:"icon",className:"rounded-full",children:[(0,s.jsx)(m,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle user menu"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g.lp,{children:"Options"}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",children:"Settings"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"/cgi-bin/luci",target:"_blank",rel:"noreferrer noopener",children:"Luci"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/discussions/new/choose",target:"_blank",children:"Support"})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:T,children:k?"Reconnecting...":"Reconnect"}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsxs)(y.Lt,{children:[(0,s.jsx)(y.tv,{asChild:!0,children:(0,s.jsx)("button",{className:"relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",children:"Reboot"})}),(0,s.jsxs)(y.EO,{children:[(0,s.jsxs)(y.wd,{children:[(0,s.jsx)(y.r7,{children:"Are you sure?"}),(0,s.jsx)(y.$v,{children:"This will reboot your device. The connection will be lost temporarily. Please wait for the page to reload."})]}),(0,s.jsxs)(y.ck,{children:[(0,s.jsx)(y.Zr,{children:"Cancel"}),(0,s.jsxs)(y.Rx,{onClick:P,disabled:v,children:[(0,s.jsx)(f.A,{className:"size-4"}),"Reboot Now"]})]})]})]})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:r,children:"Logout"})]})]})]})]}),(0,s.jsx)("main",{className:"flex min-h-[calc(100vh_-_theme(spacing.16))] flex-1 flex-col gap-4 bg-muted/40 p-4 md:gap-8 md:p-10",children:(0,s.jsx)(l,{children:t})})]})}},86118:(e,t,a)=>{"use strict";a.d(t,{SQ:()=>c,_2:()=>h,lp:()=>u,mB:()=>m,rI:()=>i,ty:()=>l});var s=a(20475),r=a(20107),o=a(77536),n=a(7197),d=a(22250);let i=o.bL,l=o.l9;o.YJ,o.ZL,o.Pb,o.z6,r.forwardRef((e,t)=>{let{className:a,inset:r,children:i,...l}=e;return(0,s.jsxs)(o.ZP,{ref:t,className:(0,d.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",a),...l,children:[i,(0,s.jsx)(n.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=o.ZP.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.G5,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})}).displayName=o.G5.displayName;let c=r.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,...n}=e;return(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.UC,{ref:t,sideOffset:r,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});c.displayName=o.UC.displayName;let h=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.q7,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a),...n})});h.displayName=o.q7.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,checked:i,...l}=e;return(0,s.jsxs)(o.H_,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:i,...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),r]})}).displayName=o.H_.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,...i}=e;return(0,s.jsxs)(o.hN,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...i,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.RiX,{className:"h-4 w-4 fill-current"})})}),r]})}).displayName=o.hN.displayName;let u=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...n})});u.displayName=o.JU.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...r})});m.displayName=o.wv.displayName},19546:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(20107),r=a(16118);function o(){let[e,t]=(0,s.useState)(!1),[a,o]=(0,s.useState)(!0),n=(0,r.useRouter)();async function d(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){i();return}(await e.json()).alive?o(!0):i()}catch(e){i()}}function i(){o(!1),c()}function l(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function c(){localStorage.removeItem("session"),t(!1),n.push("/login")}function h(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(c(),!1):(t-e.lastActivity>3e5&&l(e.token),!0)}();return t(e),e}return(0,s.useEffect)(()=>{h();let e=setInterval(d,5e3);return()=>{clearInterval(e)}},[]),{isAuthenticated:e,isServerAlive:a,login:async function(e){let a=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(a)}),s=await e.json();if(console.log(s),"success"!==s.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return l(e),t(!0),n.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:c,checkAuth:h}}},16118:(e,t,a)=>{"use strict";var s=a(65834);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}})}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,9477,6357,7414,4767,191,6035,7358],()=>t(99750)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-7c989927b7a29d5d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-7c989927b7a29d5d.js new file mode 100644 index 0000000..18894b0 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-7c989927b7a29d5d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1954],{99750:(e,t,a)=>{Promise.resolve().then(a.bind(a,96609))},96609:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>E});var s=a(20475),r=a(9477),o=a.n(r),n=a(19546),i=a(20107),d=a(16118);let l=e=>{let{children:t}=e,a=(0,d.useRouter)(),{isAuthenticated:r,checkAuth:o}=(0,n.A)();return((0,i.useEffect)(()=>{o()||a.push("/login")},[]),r)?(0,s.jsx)(s.Fragment,{children:t}):null};var c=a(39997);let h=(0,c.A)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]]),u=(0,c.A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),m=(0,c.A)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var f=a(44381),x=a(42541),p=a(88926),g=a(86118),y=a(83086);let b=(0,c.A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),j=(0,c.A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var v=a(92159),w=a(60241),N=a(7197),k=a(29395),C=a(22250);let R=w.bL,A=w.l9,S=w.bm,_=w.ZL,z=i.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.hJ,{className:(0,C.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});z.displayName=w.hJ.displayName;let P=(0,k.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),T=i.forwardRef((e,t)=>{let{side:a="right",className:r,children:o,...n}=e;return(0,s.jsxs)(_,{children:[(0,s.jsx)(z,{}),(0,s.jsxs)(w.UC,{ref:t,className:(0,C.cn)(P({side:a}),r),...n,children:[(0,s.jsxs)(w.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(N.MKb,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]})});T.displayName=w.UC.displayName,i.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.hE,{ref:t,className:(0,C.cn)("text-lg font-semibold text-foreground",a),...r})}).displayName=w.hE.displayName,i.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.VY,{ref:t,className:(0,C.cn)("text-sm text-muted-foreground",a),...r})}).displayName=w.VY.displayName;var M=a(32857);let E=e=>{let{children:t}=e,a=(0,d.usePathname)(),{logout:r}=(0,n.A)(),{setTheme:c}=(0,v.D)(),[w,N]=(0,i.useState)(!1),[k,C]=(0,i.useState)(!1),_=(0,M.dj)(),z=async()=>{try{N(!0),await (0,p.a)("AT+QPOWD=1",!0,60),_.toast({title:"Rebooting device",description:"Please wait for the device to restart. This may take up to ".concat(90," seconds."),duration:9e4}),setTimeout(()=>{_.toast({title:"Device is now active",description:"The device has been rebooted successfully."})},9e4),setTimeout(()=>{window.location.reload()},92e3)}catch(e){console.error("Reboot error:",e),_.toast({title:"Failed to reboot device",description:"Please try again.",variant:"destructive"})}finally{N(!1)}},P=async()=>{try{C(!0),await (0,p.a)("AT+COPS=2",!0,30),_.toast({title:"Disconnected from network",description:"Reconnecting in 2 seconds..."}),await new Promise(e=>setTimeout(e,2e3)),await (0,p.a)("AT+COPS=0",!0,60),_.toast({title:"Reconnected to network",description:"The device has been reconnected successfully."}),await new Promise(e=>setTimeout(e,3e3)),window.location.reload()}catch(e){console.error("Reconnect error:",e),_.toast({title:"Failed to reconnect to network",description:"Please try again.",variant:"destructive"})}finally{C(!1)}};return(0,s.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,s.jsxs)("header",{className:"sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",children:[(0,s.jsxs)("nav",{className:"hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-base lg:gap-6",children:[(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold md:text-xl md:mr-8",children:[(0,s.jsx)(h,{className:"h-6 w-6"}),(0,s.jsx)("h1",{children:"QuecManager"})]}),(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"}),(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"}),(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"}),(0,s.jsx)(o(),{href:"/dashboard/experimental/quecwatch",className:"".concat(a.includes("/dashboard/experimental/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"}),(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat(a.includes("/dashboard/about/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})]}),(0,s.jsxs)(R,{children:[(0,s.jsx)(A,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[(0,s.jsx)(u,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,s.jsx)(T,{side:"left",children:(0,s.jsxs)("nav",{className:"grid gap-6 text-lg font-medium",children:[(0,s.jsx)(S,{asChild:!0,children:(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,s.jsx)(h,{className:"h-6 w-6"}),(0,s.jsx)("span",{children:"QuecManager"})]})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/experimental/",className:"".concat("/dashboard/experimental/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",className:"".concat(a.includes("/dashboard/settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Settings"})})]})})]}),(0,s.jsxs)("div",{className:"flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4",children:[(0,s.jsx)("form",{className:"ml-auto flex-1 sm:flex-initial",children:(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",children:[(0,s.jsx)(b,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,s.jsx)(j,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g._2,{onClick:()=>c("light"),children:"Light"}),(0,s.jsx)(g._2,{onClick:()=>c("dark"),children:"Dark"}),(0,s.jsx)(g._2,{onClick:()=>c("system"),children:"System"})]})]})}),(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"secondary",size:"icon",className:"rounded-full",children:[(0,s.jsx)(m,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle user menu"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g.lp,{children:"Options"}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",children:"Settings"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"/cgi-bin/luci",target:"_blank",rel:"noreferrer noopener",children:"Luci"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/discussions/new/choose",target:"_blank",children:"Support"})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:P,children:k?"Reconnecting...":"Reconnect"}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsxs)(y.Lt,{children:[(0,s.jsx)(y.tv,{asChild:!0,children:(0,s.jsx)("button",{className:"relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",children:"Reboot"})}),(0,s.jsxs)(y.EO,{children:[(0,s.jsxs)(y.wd,{children:[(0,s.jsx)(y.r7,{children:"Are you sure?"}),(0,s.jsx)(y.$v,{children:"This will reboot your device. The connection will be lost temporarily. Please wait for the page to reload."})]}),(0,s.jsxs)(y.ck,{children:[(0,s.jsx)(y.Zr,{children:"Cancel"}),(0,s.jsxs)(y.Rx,{onClick:z,disabled:w,children:[(0,s.jsx)(f.A,{className:"size-4"}),"Reboot Now"]})]})]})]})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:r,children:"Logout"})]})]})]})]}),(0,s.jsx)("main",{className:"flex min-h-[calc(100vh_-_theme(spacing.16))] flex-1 flex-col gap-4 bg-muted/40 p-4 md:gap-8 md:p-10",children:(0,s.jsx)(l,{children:t})})]})}},86118:(e,t,a)=>{"use strict";a.d(t,{SQ:()=>c,_2:()=>h,lp:()=>u,mB:()=>m,rI:()=>d,ty:()=>l});var s=a(20475),r=a(20107),o=a(77536),n=a(7197),i=a(22250);let d=o.bL,l=o.l9;o.YJ,o.ZL,o.Pb,o.z6,r.forwardRef((e,t)=>{let{className:a,inset:r,children:d,...l}=e;return(0,s.jsxs)(o.ZP,{ref:t,className:(0,i.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",a),...l,children:[d,(0,s.jsx)(n.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=o.ZP.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.G5,{ref:t,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})}).displayName=o.G5.displayName;let c=r.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,...n}=e;return(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.UC,{ref:t,sideOffset:r,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});c.displayName=o.UC.displayName;let h=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.q7,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a),...n})});h.displayName=o.q7.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,checked:d,...l}=e;return(0,s.jsxs)(o.H_,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:d,...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),r]})}).displayName=o.H_.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,...d}=e;return(0,s.jsxs)(o.hN,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...d,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.RiX,{className:"h-4 w-4 fill-current"})})}),r]})}).displayName=o.hN.displayName;let u=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...n})});u.displayName=o.JU.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...r})});m.displayName=o.wv.displayName},19546:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(20107),r=a(16118);function o(){let[e,t]=(0,s.useState)(!1),[a,o]=(0,s.useState)(!0),n=(0,r.useRouter)();async function i(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){d();return}(await e.json()).alive?o(!0):d()}catch(e){d()}}function d(){o(!1),c()}function l(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function c(){localStorage.removeItem("session"),t(!1),n.push("/login")}function h(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(c(),!1):(t-e.lastActivity>3e5&&l(e.token),!0)}();return t(e),e}return(0,s.useEffect)(()=>{h();let e=setInterval(i,5e3);return()=>{clearInterval(e)}},[]),{isAuthenticated:e,isServerAlive:a,login:async function(e){let a=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(a)}),s=await e.json();if(console.log(s),"success"!==s.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return l(e),t(!0),n.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:c,checkAuth:h}}},39997:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(20107);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),a=0;a!!e&&a.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,s.forwardRef)((e,t)=>{let{color:a="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:d,className:l="",children:c,iconNode:h,...u}=e;return(0,s.createElement)("svg",{ref:t,...n,width:r,height:r,stroke:a,strokeWidth:d?24*Number(i)/Number(r):i,className:o("lucide",l),...u},[...h.map(e=>{let[t,a]=e;return(0,s.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),d=(e,t)=>{let a=(0,s.forwardRef)((a,n)=>{let{className:d,...l}=a;return(0,s.createElement)(i,{ref:n,iconNode:t,className:o("lucide-".concat(r(e)),d),...l})});return a.displayName="".concat(e),a}},16118:(e,t,a)=>{"use strict";var s=a(65834);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}})}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,241,9477,7414,4767,191,6035,7358],()=>t(99750)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js deleted file mode 100644 index 24123a8..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1954],{19406:(e,t,a)=>{Promise.resolve().then(a.bind(a,84641))},84641:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>I});var s=a(95155),r=a(48173),o=a.n(r),n=a(99378),d=a(12115),i=a(76046);let l=e=>{let{children:t}=e,a=(0,i.useRouter)(),{isAuthenticated:r,checkAuth:o}=(0,n.A)();return((0,d.useEffect)(()=>{o()||a.push("/login")},[]),r)?(0,s.jsx)(s.Fragment,{children:t}):null};var c=a(32652),u=a(67401);let m=(0,u.A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),h=(0,u.A)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var f=a(12118),x=a(14085),p=a(91724),g=a(89622),y=a(20750),b=a(25858);let j=(0,u.A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),v=(0,u.A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var w=a(67113),N=a(66217),k=a(87365),A=a(31027),T=a(29602);let C=N.bL,S=N.l9,R=N.bm,_=N.ZL,E=d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(N.hJ,{className:(0,T.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});E.displayName=N.hJ.displayName;let z=(0,A.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),O=d.forwardRef((e,t)=>{let{side:a="right",className:r,children:o,...n}=e;return(0,s.jsxs)(_,{children:[(0,s.jsx)(E,{}),(0,s.jsxs)(N.UC,{ref:t,className:(0,T.cn)(z({side:a}),r),...n,children:[(0,s.jsxs)(N.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(k.MKb,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]})});O.displayName=N.UC.displayName,d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(N.hE,{ref:t,className:(0,T.cn)("text-lg font-semibold text-foreground",a),...r})}).displayName=N.hE.displayName,d.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(N.VY,{ref:t,className:(0,T.cn)("text-sm text-muted-foreground",a),...r})}).displayName=N.VY.displayName;var M=a(20241);let I=e=>{let{children:t}=e,a=(0,i.usePathname)(),{logout:r}=(0,n.A)(),{setTheme:u}=(0,w.D)(),[N,k]=(0,d.useState)(!1),[A,T]=(0,d.useState)(!1),_=(0,M.dj)(),{isServerAlive:E}=(0,p.A)();(0,d.useEffect)(()=>{E||r()},[E,r]);let z=async()=>{try{k(!0),await (0,g.a)("AT+QPOWD=1",!0,60),_.toast({title:"Rebooting device",description:"Please wait for the device to restart. This may take up to ".concat(90," seconds."),duration:9e4}),setTimeout(()=>{_.toast({title:"Device is now active",description:"The device has been rebooted successfully."})},9e4),setTimeout(()=>{window.location.reload()},92e3)}catch(e){console.error("Reboot error:",e),_.toast({title:"Failed to reboot device",description:"Please try again.",variant:"destructive"})}finally{k(!1)}},I=async()=>{try{T(!0),await (0,g.a)("AT+COPS=2",!0,30),_.toast({title:"Disconnected from network",description:"Reconnecting in 2 seconds..."}),await new Promise(e=>setTimeout(e,2e3)),await (0,g.a)("AT+COPS=0",!0,60),_.toast({title:"Reconnected to network",description:"The device has been reconnected successfully."}),await new Promise(e=>setTimeout(e,3e3)),window.location.reload()}catch(e){console.error("Reconnect error:",e),_.toast({title:"Failed to reconnect to network",description:"Please try again.",variant:"destructive"})}finally{T(!1)}};return(0,s.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,s.jsxs)("header",{className:"sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",children:[(0,s.jsxs)("nav",{className:"hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-base lg:gap-6",children:[(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold md:text-xl md:mr-8",children:[(0,s.jsx)(c.A,{className:"h-6 w-6"}),(0,s.jsx)("h1",{children:"QuecManager"})]}),(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"}),(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"}),(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"}),(0,s.jsx)(o(),{href:"/dashboard/experimental/quecwatch",className:"".concat(a.includes("/dashboard/experimental/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"}),(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat(a.includes("/dashboard/about/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})]}),(0,s.jsxs)(C,{children:[(0,s.jsx)(S,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[(0,s.jsx)(m,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,s.jsx)(O,{side:"left",children:(0,s.jsxs)("nav",{className:"grid gap-6 text-lg font-medium",children:[(0,s.jsx)(R,{asChild:!0,children:(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,s.jsx)(c.A,{className:"h-6 w-6"}),(0,s.jsx)("span",{children:"QuecManager"})]})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/experimental/",className:"".concat("/dashboard/experimental/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})}),(0,s.jsx)(R,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",className:"".concat(a.includes("/dashboard/settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Settings"})})]})})]}),(0,s.jsxs)("div",{className:"flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4",children:[(0,s.jsx)("form",{className:"ml-auto flex-1 sm:flex-initial",children:(0,s.jsxs)(y.rI,{children:[(0,s.jsx)(y.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",children:[(0,s.jsx)(j,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,s.jsx)(v,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,s.jsxs)(y.SQ,{align:"end",children:[(0,s.jsx)(y._2,{onClick:()=>u("light"),children:"Light"}),(0,s.jsx)(y._2,{onClick:()=>u("dark"),children:"Dark"}),(0,s.jsx)(y._2,{onClick:()=>u("system"),children:"System"})]})]})}),(0,s.jsxs)(y.rI,{children:[(0,s.jsx)(y.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"secondary",size:"icon",className:"rounded-full",children:[(0,s.jsx)(h,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle user menu"})]})}),(0,s.jsxs)(y.SQ,{align:"end",children:[(0,s.jsx)(y.lp,{children:"Options"}),(0,s.jsx)(y.mB,{}),(0,s.jsx)(y._2,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",children:"Settings"})}),(0,s.jsx)(y._2,{asChild:!0,children:(0,s.jsx)("a",{href:"/cgi-bin/luci",target:"_blank",rel:"noreferrer noopener",children:"Luci"})}),(0,s.jsx)(y._2,{asChild:!0,children:(0,s.jsx)("a",{href:"https://github.com/iamromulan/cellular-modem-wiki/discussions/new/choose",target:"_blank",children:"Support"})}),(0,s.jsx)(y.mB,{}),(0,s.jsx)(y._2,{onClick:I,children:A?"Reconnecting...":"Reconnect"}),(0,s.jsx)(y._2,{asChild:!0,children:(0,s.jsxs)(b.Lt,{children:[(0,s.jsx)(b.tv,{asChild:!0,children:(0,s.jsx)("button",{className:"relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",children:"Reboot"})}),(0,s.jsxs)(b.EO,{children:[(0,s.jsxs)(b.wd,{children:[(0,s.jsx)(b.r7,{children:"Are you sure?"}),(0,s.jsx)(b.$v,{children:"This will reboot your device. The connection will be lost temporarily. Please wait for the page to reload."})]}),(0,s.jsxs)(b.ck,{children:[(0,s.jsx)(b.Zr,{children:"Cancel"}),(0,s.jsxs)(b.Rx,{onClick:z,disabled:N,children:[(0,s.jsx)(f.A,{className:"size-4"}),"Reboot Now"]})]})]})]})}),(0,s.jsx)(y.mB,{}),(0,s.jsx)(y._2,{onClick:r,children:"Logout"})]})]})]})]}),(0,s.jsx)("main",{className:"flex min-h-[calc(100vh_-_theme(spacing.16))] flex-1 flex-col gap-4 bg-muted/40 p-4 md:gap-8 md:p-10",children:(0,s.jsx)(l,{children:t})})]})}},25858:(e,t,a)=>{"use strict";a.d(t,{$v:()=>p,EO:()=>m,Lt:()=>i,Rx:()=>g,Zr:()=>y,ck:()=>f,r7:()=>x,tv:()=>l,wd:()=>h});var s=a(95155),r=a(12115),o=a(83572),n=a(29602),d=a(14085);let i=o.bL,l=o.l9,c=o.ZL,u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.hJ,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});u.displayName=o.hJ.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(u,{}),(0,s.jsx)(o.UC,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...r})]})});m.displayName=o.UC.displayName;let h=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};h.displayName="AlertDialogHeader";let f=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};f.displayName="AlertDialogFooter";let x=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.hE,{ref:t,className:(0,n.cn)("text-lg font-semibold",a),...r})});x.displayName=o.hE.displayName;let p=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",a),...r})});p.displayName=o.VY.displayName;let g=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.rc,{ref:t,className:(0,n.cn)((0,d.r)(),a),...r})});g.displayName=o.rc.displayName;let y=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.ZD,{ref:t,className:(0,n.cn)((0,d.r)({variant:"outline"}),"mt-2 sm:mt-0",a),...r})});y.displayName=o.ZD.displayName},14085:(e,t,a)=>{"use strict";a.d(t,{$:()=>l,r:()=>i});var s=a(95155),r=a(12115),o=a(12317),n=a(31027),d=a(29602);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=r.forwardRef((e,t)=>{let{className:a,variant:r,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,s.jsx)(u,{className:(0,d.cn)(i({variant:r,size:n,className:a})),ref:t,...c})});l.displayName="Button"},20750:(e,t,a)=>{"use strict";a.d(t,{SQ:()=>c,_2:()=>u,lp:()=>m,mB:()=>h,rI:()=>i,ty:()=>l});var s=a(95155),r=a(12115),o=a(80937),n=a(87365),d=a(29602);let i=o.bL,l=o.l9;o.YJ,o.ZL,o.Pb,o.z6,r.forwardRef((e,t)=>{let{className:a,inset:r,children:i,...l}=e;return(0,s.jsxs)(o.ZP,{ref:t,className:(0,d.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",a),...l,children:[i,(0,s.jsx)(n.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=o.ZP.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.G5,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})}).displayName=o.G5.displayName;let c=r.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,...n}=e;return(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.UC,{ref:t,sideOffset:r,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});c.displayName=o.UC.displayName;let u=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.q7,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a),...n})});u.displayName=o.q7.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,checked:i,...l}=e;return(0,s.jsxs)(o.H_,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:i,...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),r]})}).displayName=o.H_.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,...i}=e;return(0,s.jsxs)(o.hN,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...i,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.RiX,{className:"h-4 w-4 fill-current"})})}),r]})}).displayName=o.hN.displayName;let m=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...n})});m.displayName=o.JU.displayName;let h=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...r})});h.displayName=o.wv.displayName},99378:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(12115),r=a(76046);function o(){let[e,t]=(0,s.useState)(!1),a=(0,r.useRouter)();function o(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}async function n(){localStorage.removeItem("session"),t(!1),fetch("/cgi-bin/quecmanager/logout.sh",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"".concat(localStorage.getItem("authToken"))}}),localStorage.removeItem("authToken"),a.push("/login")}function d(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(n(),!1):(t-e.lastActivity>3e5&&o(e.token),!0)}();return t(e),e}return(0,s.useEffect)(()=>{d()},[]),{isAuthenticated:e,login:async function(e){let s=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(s)}),r=await e.json();if(console.log(r),"success"!==r.state)return!1;{(null==r?void 0:r.token)&&localStorage.setItem("authToken",r.token);let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return o(e),t(!0),a.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:n,checkAuth:d}}},91724:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(12115),r=a(99378);let o=()=>{let[e,t]=(0,s.useState)(!0),{logout:a}=(0,r.A)();async function o(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){n();return}(await e.json()).alive?t(!0):n()}catch(e){n()}}function n(){t(!1),a()}return(0,s.useEffect)(()=>{let e=setInterval(o,5e3);return()=>{clearInterval(e)}},[]),{isServerAlive:e}}},20241:(e,t,a)=>{"use strict";a.d(t,{dj:()=>m,oR:()=>u});var s=a(12115);let r=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},d=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?n(a):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...t}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=s.useState(l);return s.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,a)=>{"use strict";a.d(t,{cn:()=>o});var s=a(43463),r=a(69795);function o(){for(var e=arguments.length,t=Array(e),a=0;a{"use strict";a.d(t,{A:()=>i});var s=a(12115);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),a=0;a!!e&&a.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let d=(0,s.forwardRef)((e,t)=>{let{color:a="currentColor",size:r=24,strokeWidth:d=2,absoluteStrokeWidth:i,className:l="",children:c,iconNode:u,...m}=e;return(0,s.createElement)("svg",{ref:t,...n,width:r,height:r,stroke:a,strokeWidth:i?24*Number(d)/Number(r):d,className:o("lucide",l),...m},[...u.map(e=>{let[t,a]=e;return(0,s.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),i=(e,t)=>{let a=(0,s.forwardRef)((a,n)=>{let{className:i,...l}=a;return(0,s.createElement)(d,{ref:n,iconNode:t,className:o("lucide-".concat(r(e)),i),...l})});return a.displayName="".concat(e),a}},12118:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(67401).A)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},32652:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(67401).A)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]])},89622:(e,t,a)=>{"use strict";a.d(t,{a:()=>s});let s=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;try{var s;let r=e.trim().toUpperCase().startsWith("AT")?e.trim():"AT".concat(e.trim()),o=encodeURIComponent(r),n="/cgi-bin/quecmanager/at_cmd/at_queue_client.sh?command=".concat(o);t&&(n+="&wait=1&timeout=".concat(a));let d=await fetch(n,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e3*a+5e3)});if(!d.ok)throw Error("AT command failed with status: ".concat(d.status));let i=await d.json();if(i.error)throw Error("AT queue error: ".concat(i.error));if(t&&(null===(s=i.response)||void 0===s?void 0:s.status)==="timeout")throw Error("AT command timed out after ".concat(a," seconds"));return i}catch(e){throw console.error("AT Command error:",e),e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[5105,1365,7401,9895,2019,1028,3572,2049,8441,1517,7358],()=>t(19406)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-df7a292d088bc002.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-df7a292d088bc002.js new file mode 100644 index 0000000..e1879be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-df7a292d088bc002.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1954],{99750:(e,t,a)=>{Promise.resolve().then(a.bind(a,96609))},96609:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>E});var s=a(20475),r=a(9477),o=a.n(r),n=a(19546),i=a(20107),d=a(16118);let l=e=>{let{children:t}=e,a=(0,d.useRouter)(),{isAuthenticated:r,checkAuth:o}=(0,n.A)();return((0,i.useEffect)(()=>{o()||a.push("/login")},[]),r)?(0,s.jsx)(s.Fragment,{children:t}):null};var c=a(39997);let h=(0,c.A)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]]),u=(0,c.A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),m=(0,c.A)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var f=a(44381),x=a(42541),p=a(88926),g=a(86118),y=a(83086);let b=(0,c.A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),j=(0,c.A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var v=a(92159),w=a(60241),N=a(7197),k=a(29395),C=a(22250);let R=w.bL,A=w.l9,S=w.bm,_=w.ZL,z=i.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.hJ,{className:(0,C.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});z.displayName=w.hJ.displayName;let P=(0,k.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),T=i.forwardRef((e,t)=>{let{side:a="right",className:r,children:o,...n}=e;return(0,s.jsxs)(_,{children:[(0,s.jsx)(z,{}),(0,s.jsxs)(w.UC,{ref:t,className:(0,C.cn)(P({side:a}),r),...n,children:[(0,s.jsxs)(w.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(N.MKb,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]})});T.displayName=w.UC.displayName,i.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.hE,{ref:t,className:(0,C.cn)("text-lg font-semibold text-foreground",a),...r})}).displayName=w.hE.displayName,i.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(w.VY,{ref:t,className:(0,C.cn)("text-sm text-muted-foreground",a),...r})}).displayName=w.VY.displayName;var M=a(32857);let E=e=>{let{children:t}=e,a=(0,d.usePathname)(),{logout:r}=(0,n.A)(),{setTheme:c}=(0,v.D)(),[w,N]=(0,i.useState)(!1),[k,C]=(0,i.useState)(!1),_=(0,M.dj)(),z=async()=>{try{N(!0),await (0,p.a)("AT+QPOWD=1",!0,60),_.toast({title:"Rebooting device",description:"Please wait for the device to restart. This may take up to ".concat(90," seconds."),duration:9e4}),setTimeout(()=>{_.toast({title:"Device is now active",description:"The device has been rebooted successfully."})},9e4),setTimeout(()=>{window.location.reload()},92e3)}catch(e){console.error("Reboot error:",e),_.toast({title:"Failed to reboot device",description:"Please try again.",variant:"destructive"})}finally{N(!1)}},P=async()=>{try{C(!0),await (0,p.a)("AT+COPS=2",!0,30),_.toast({title:"Disconnected from network",description:"Reconnecting in 2 seconds..."}),await new Promise(e=>setTimeout(e,2e3)),await (0,p.a)("AT+COPS=0",!0,60),_.toast({title:"Reconnected to network",description:"The device has been reconnected successfully."}),await new Promise(e=>setTimeout(e,3e3)),window.location.reload()}catch(e){console.error("Reconnect error:",e),_.toast({title:"Failed to reconnect to network",description:"Please try again.",variant:"destructive"})}finally{C(!1)}};return(0,s.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,s.jsxs)("header",{className:"sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",children:[(0,s.jsxs)("nav",{className:"hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-base lg:gap-6",children:[(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold md:text-xl md:mr-8",children:[(0,s.jsx)(h,{className:"h-6 w-6"}),(0,s.jsx)("h1",{children:"QuecManager"})]}),(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"}),(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"}),(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"}),(0,s.jsx)(o(),{href:"/dashboard/experimental/quecwatch",className:"".concat(a.includes("/dashboard/experimental/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"}),(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat(a.includes("/dashboard/about/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})]}),(0,s.jsxs)(R,{children:[(0,s.jsx)(A,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[(0,s.jsx)(u,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,s.jsx)(T,{side:"left",children:(0,s.jsxs)("nav",{className:"grid gap-6 text-lg font-medium",children:[(0,s.jsx)(S,{asChild:!0,children:(0,s.jsxs)(o(),{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,s.jsx)(h,{className:"h-6 w-6"}),(0,s.jsx)("span",{children:"QuecManager"})]})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/experimental/",className:"".concat("/dashboard/experimental/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})}),(0,s.jsx)(S,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",className:"".concat(a.includes("/dashboard/settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Settings"})})]})})]}),(0,s.jsxs)("div",{className:"flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4",children:[(0,s.jsx)("form",{className:"ml-auto flex-1 sm:flex-initial",children:(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"outline",size:"icon",children:[(0,s.jsx)(b,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,s.jsx)(j,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g._2,{onClick:()=>c("light"),children:"Light"}),(0,s.jsx)(g._2,{onClick:()=>c("dark"),children:"Dark"}),(0,s.jsx)(g._2,{onClick:()=>c("system"),children:"System"})]})]})}),(0,s.jsxs)(g.rI,{children:[(0,s.jsx)(g.ty,{asChild:!0,children:(0,s.jsxs)(x.$,{variant:"secondary",size:"icon",className:"rounded-full",children:[(0,s.jsx)(m,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle user menu"})]})}),(0,s.jsxs)(g.SQ,{align:"end",children:[(0,s.jsx)(g.lp,{children:"Options"}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)(o(),{href:"/dashboard/settings/security",children:"Settings"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"/cgi-bin/luci",target:"_blank",rel:"noreferrer noopener",children:"Luci"})}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsx)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/discussions/new/choose",target:"_blank",children:"Support"})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:P,children:k?"Reconnecting...":"Reconnect"}),(0,s.jsx)(g._2,{asChild:!0,children:(0,s.jsxs)(y.Lt,{children:[(0,s.jsx)(y.tv,{asChild:!0,children:(0,s.jsx)("button",{className:"relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",children:"Reboot"})}),(0,s.jsxs)(y.EO,{children:[(0,s.jsxs)(y.wd,{children:[(0,s.jsx)(y.r7,{children:"Are you sure?"}),(0,s.jsx)(y.$v,{children:"This will reboot your device. The connection will be lost temporarily. Please wait for the page to reload."})]}),(0,s.jsxs)(y.ck,{children:[(0,s.jsx)(y.Zr,{children:"Cancel"}),(0,s.jsxs)(y.Rx,{onClick:z,disabled:w,children:[(0,s.jsx)(f.A,{className:"size-4"}),"Reboot Now"]})]})]})]})}),(0,s.jsx)(g.mB,{}),(0,s.jsx)(g._2,{onClick:r,children:"Logout"})]})]})]})]}),(0,s.jsx)("main",{className:"flex min-h-[calc(100vh_-_theme(spacing.16))] flex-1 flex-col gap-4 bg-muted/40 p-4 md:gap-8 md:p-10",children:(0,s.jsx)(l,{children:t})})]})}},86118:(e,t,a)=>{"use strict";a.d(t,{SQ:()=>c,_2:()=>h,lp:()=>u,mB:()=>m,rI:()=>d,ty:()=>l});var s=a(20475),r=a(20107),o=a(77536),n=a(7197),i=a(22250);let d=o.bL,l=o.l9;o.YJ,o.ZL,o.Pb,o.z6,r.forwardRef((e,t)=>{let{className:a,inset:r,children:d,...l}=e;return(0,s.jsxs)(o.ZP,{ref:t,className:(0,i.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",a),...l,children:[d,(0,s.jsx)(n.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=o.ZP.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.G5,{ref:t,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})}).displayName=o.G5.displayName;let c=r.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,...n}=e;return(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.UC,{ref:t,sideOffset:r,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});c.displayName=o.UC.displayName;let h=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.q7,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a),...n})});h.displayName=o.q7.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,checked:d,...l}=e;return(0,s.jsxs)(o.H_,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:d,...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.Srz,{className:"h-4 w-4"})})}),r]})}).displayName=o.H_.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,...d}=e;return(0,s.jsxs)(o.hN,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...d,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(o.VF,{children:(0,s.jsx)(n.RiX,{className:"h-4 w-4 fill-current"})})}),r]})}).displayName=o.hN.displayName;let u=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,s.jsx)(o.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...n})});u.displayName=o.JU.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(o.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...r})});m.displayName=o.wv.displayName},19546:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(20107),r=a(16118);function o(){let[e,t]=(0,s.useState)(!1),[a,o]=(0,s.useState)(!0),n=(0,r.useRouter)();async function i(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){d();return}(await e.json()).alive?o(!0):d()}catch(e){d()}}function d(){o(!1),c()}function l(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function c(){localStorage.removeItem("session"),t(!1),n.push("/login")}function h(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(c(),!1):(t-e.lastActivity>3e5&&l(e.token),!0)}();return t(e),e}return(0,s.useEffect)(()=>{h();let e=setInterval(i,5e3);return()=>{clearInterval(e)}},[]),{isAuthenticated:e,isServerAlive:a,login:async function(e){let a=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(a)}),s=await e.json();if(console.log(s),"success"!==s.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return l(e),t(!0),n.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:c,checkAuth:h}}},39997:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(20107);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),a=0;a!!e&&a.indexOf(e)===t).join(" ")};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,s.forwardRef)((e,t)=>{let{color:a="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:d,className:l="",children:c,iconNode:h,...u}=e;return(0,s.createElement)("svg",{ref:t,...n,width:r,height:r,stroke:a,strokeWidth:d?24*Number(i)/Number(r):i,className:o("lucide",l),...u},[...h.map(e=>{let[t,a]=e;return(0,s.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),d=(e,t)=>{let a=(0,s.forwardRef)((a,n)=>{let{className:d,...l}=a;return(0,s.createElement)(i,{ref:n,iconNode:t,className:o("lucide-".concat(r(e)),d),...l})});return a.displayName="".concat(e),a}},16118:(e,t,a)=>{"use strict";var s=a(65834);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}})}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,3746,9464,241,9477,2682,7536,4767,191,6035,7358],()=>t(99750)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/games/tetris/page-e289ae715e0fba88.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/games/tetris/page-e289ae715e0fba88.js new file mode 100644 index 0000000..9b024ae --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/games/tetris/page-e289ae715e0fba88.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5293],{23080:(e,r,t)=>{Promise.resolve().then(t.bind(t,69835))},69835:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var l=t(20475),n=t(20107);let a=[[[1,1,1,1]],[[1,1],[1,1]],[[1,1,1],[0,1,0]],[[1,1,1],[1,0,0]],[[1,1,1],[0,0,1]],[[1,1,0],[0,1,1]],[[0,1,1],[1,1,0]]],c=["#00f0f0","#f0f000","#a000f0","#f0a000","#0000f0","#00f000","#f00000"],s=()=>{let[e,r]=(0,n.useState)(()=>Array.from({length:20},()=>Array(10).fill(null))),[t,s]=(0,n.useState)([]),[u,f]=(0,n.useState)({x:0,y:0}),[i,o]=(0,n.useState)(""),[x,d]=(0,n.useState)(0),[h,y]=(0,n.useState)(0),[m,g]=(0,n.useState)(!1),[p,v]=(0,n.useState)(!1),b=(0,n.useRef)(u),k=(0,n.useRef)(t),w=(0,n.useRef)(e),C=(0,n.useRef)(i),S=(0,n.useRef)(p),j=(0,n.useCallback)(()=>Math.max(1e3-100*Math.floor(x/2e3),100),[x]);(0,n.useEffect)(()=>{b.current=u},[u]),(0,n.useEffect)(()=>{k.current=t},[t]),(0,n.useEffect)(()=>{w.current=e},[e]),(0,n.useEffect)(()=>{C.current=i},[i]),(0,n.useEffect)(()=>{S.current=p},[p]),(0,n.useEffect)(()=>{let e=localStorage.getItem("tetrisHighScore");e&&y(parseInt(e))},[]),(0,n.useEffect)(()=>{m&&x>h&&(y(x),localStorage.setItem("tetrisHighScore",x.toString()))},[m,x,h]);let E=(0,n.useCallback)(()=>{let e=Math.floor(Math.random()*a.length),r=a[e];s(r),o(c[e]),f({x:Math.floor(5-r[0].length/2),y:0}),v(!1)},[]),N=(0,n.useCallback)((e,r)=>{for(let t=0;t=10||n>=20||n>=0&&w.current[n][r])return!0}return!1},[]),R=(0,n.useCallback)(e=>{let r=e.filter(e=>e.some(e=>!e)),t=20-r.length;return t>0?(d(x+100*t),[...Array(t).fill(null).map(()=>Array(10).fill(null)),...r]):e},[x]),A=(0,n.useCallback)(()=>{if(S.current)return;let e=w.current.map(e=>[...e]),t=!1;if(b.current.y<=0&&N(b.current,k.current)){g(!0);return}for(let r=0;r{if(m||S.current)return;let e={x:b.current.x,y:b.current.y+1};if(N(e,k.current)){A();return}f(e)},[m,N,A]),_=(0,n.useCallback)(()=>{if(S.current)return;let e=k.current[0].map((e,r)=>k.current.map(e=>e[e.length-1-r]));for(let r of[{x:0,y:0},{x:-1,y:0},{x:1,y:0},{x:-2,y:0},{x:2,y:0}]){let t={x:b.current.x+r.x,y:b.current.y+r.y};if(!N(t,e)){f(t),s(e);return}}},[N]),D=(0,n.useCallback)(()=>{if(S.current)return;let e=b.current.y;for(;e<20&&!N({x:b.current.x,y:e+1},k.current);)e++;f({x:b.current.x,y:e}),setTimeout(()=>A(),0)},[N,A]),I=(0,n.useCallback)(()=>{r(Array.from({length:20},()=>Array(10).fill(null))),d(0),g(!1),v(!1),E()},[E]),H=(0,n.useCallback)(e=>{if("r"===e.key.toLowerCase()&&e.ctrlKey){e.preventDefault(),I();return}if(!m&&!S.current)switch(e.key){case"ArrowLeft":{let e={x:b.current.x-1,y:b.current.y};N(e,k.current)||f(e);break}case"ArrowRight":{let e={x:b.current.x+1,y:b.current.y};N(e,k.current)||f(e);break}case"ArrowDown":M();break;case"ArrowUp":_();break;case" ":e.preventDefault(),D()}},[m,N,M,_,D,I]);return(0,n.useEffect)(()=>{E()},[E]),(0,n.useEffect)(()=>{if(m)return;let e=setInterval(M,j());return()=>clearInterval(e)},[M,m,j]),(0,n.useEffect)(()=>(window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)),[H]),(0,l.jsxs)("div",{className:"min-h-screen bg-gray-900 flex flex-col items-center justify-center p-4",children:[(0,l.jsxs)("div",{className:"mb-4 space-y-2 text-center",children:[(0,l.jsxs)("div",{className:"text-2xl font-bold text-white",children:["Score: ",x]}),(0,l.jsxs)("div",{className:"text-xl font-bold text-yellow-500",children:["High Score: ",h]}),(0,l.jsxs)("div",{className:"text-sm text-gray-400",children:["Speed: ",Math.round(1e3/j()),"x"]})]}),(0,l.jsx)("div",{className:"bg-gray-800 p-2 rounded-lg shadow-lg",children:(0,l.jsx)("div",{className:"grid gap-px bg-gray-700",style:{gridTemplateRows:"repeat(".concat(20,", minmax(0, 1fr))"),gridTemplateColumns:"repeat(".concat(10,", minmax(0, 1fr))"),width:"".concat(240,"px"),height:"".concat(480,"px")},children:e.map((e,r)=>e.map((e,n)=>{var a,c;let s=r>=u.y&&r=u.x&&n{var r=r=>e(e.s=r);e.O(0,[191,6035,7358],()=>r(23080)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-2429ae4d71080a23.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-2429ae4d71080a23.js new file mode 100644 index 0000000..f882f1e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-2429ae4d71080a23.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5680],{55809:(e,s,t)=>{Promise.resolve().then(t.bind(t,36994))},36994:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>d});var r=t(20475);t(20107);var a=t(16118),n=t(9477),u=t.n(n);let d=e=>{let{children:s}=e,t=(0,a.usePathname)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,r.jsx)("h1",{className:"text-3xl font-semibold",children:"Settings"})}),(0,r.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,r.jsx)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:(0,r.jsx)(u(),{href:"/dashboard/settings/security",className:"".concat("/dashboard/settings/security/"===t?"font-semibold text-primary":"text-sm"),children:"Security"})}),s]})]})}},16118:(e,s,t)=>{"use strict";var r=t(65834);t.o(r,"usePathname")&&t.d(s,{usePathname:function(){return r.usePathname}}),t.o(r,"useRouter")&&t.d(s,{useRouter:function(){return r.useRouter}})}},e=>{var s=s=>e(e.s=s);e.O(0,[9477,191,6035,7358],()=>s(55809)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-cc9df1509c43fede.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-cc9df1509c43fede.js new file mode 100644 index 0000000..f882f1e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-cc9df1509c43fede.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5680],{55809:(e,s,t)=>{Promise.resolve().then(t.bind(t,36994))},36994:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>d});var r=t(20475);t(20107);var a=t(16118),n=t(9477),u=t.n(n);let d=e=>{let{children:s}=e,t=(0,a.usePathname)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,r.jsx)("h1",{className:"text-3xl font-semibold",children:"Settings"})}),(0,r.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,r.jsx)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:(0,r.jsx)(u(),{href:"/dashboard/settings/security",className:"".concat("/dashboard/settings/security/"===t?"font-semibold text-primary":"text-sm"),children:"Security"})}),s]})]})}},16118:(e,s,t)=>{"use strict";var r=t(65834);t.o(r,"usePathname")&&t.d(s,{usePathname:function(){return r.usePathname}}),t.o(r,"useRouter")&&t.d(s,{useRouter:function(){return r.useRouter}})}},e=>{var s=s=>e(e.s=s);e.O(0,[9477,191,6035,7358],()=>s(55809)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-e237bc8b568ccf8e.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-e237bc8b568ccf8e.js deleted file mode 100644 index 307f6be..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/layout-e237bc8b568ccf8e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5680],{62697:(s,e,t)=>{Promise.resolve().then(t.bind(t,58762))},58762:(s,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>i});var a=t(95155);t(12115);var r=t(76046),l=t(48173),d=t.n(l);let i=s=>{let{children:e}=s,t=(0,r.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsx)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:(0,a.jsx)(d(),{href:"/dashboard/settings/security",className:"".concat("/dashboard/settings/security/"===t?"font-semibold text-primary":"text-sm"),children:"Security"})}),e]})]})}}},s=>{var e=e=>s(s.s=e);s.O(0,[1028,8441,1517,7358],()=>e(62697)),_N_E=s.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-a43cb1dfea2687ae.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-a43cb1dfea2687ae.js new file mode 100644 index 0000000..16f0724 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-a43cb1dfea2687ae.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4631],{18875:(e,r,t)=>{Promise.resolve().then(t.bind(t,16212))},16212:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var s=t(20475),a=t(20107),o=t(72167),n=t(42541),d=t(64219),i=t(32857);let l=()=>{let{toast:e}=(0,i.dj)(),[r,t]=(0,a.useState)(!1),[l,c]=(0,a.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r;let t=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}return"success"===r.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),t(!0);try{let r;if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let t=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}if("success"===r.state)e({title:"Success",description:r.message||"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error(r.message||"Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{t(!1)}},p=e=>{let{name:r,value:t}=e.target;c(e=>({...e,[r]:t}))};return(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)(o.aR,{children:[(0,s.jsx)(o.ZB,{children:"Change Device Password"}),(0,s.jsx)(o.BT,{children:"This changes the password for the web interface and terminal access."})]}),(0,s.jsx)(o.Wu,{children:(0,s.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,s.jsx)(d.p,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,s.jsx)(d.p,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,s.jsx)(d.p,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,s.jsx)(o.wL,{className:"border-t px-6 py-4",children:(0,s.jsx)(n.$,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},42541:(e,r,t)=>{"use strict";t.d(r,{$:()=>l,r:()=>i});var s=t(20475),a=t(20107),o=t(61837),n=t(29395),d=t(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,r)=>{let{className:t,variant:a,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,s.jsx)(u,{className:(0,d.cn)(i({variant:a,size:n,className:t})),ref:r,...c})});l.displayName="Button"},72167:(e,r,t)=>{"use strict";t.d(r,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>d,wL:()=>u});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...a})});n.displayName="Card";let d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",t),...a})});d.displayName="CardHeader";let i=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",t),...a})});i.displayName="CardTitle";let l=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",t),...a})});l.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let u=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",t),...a})});u.displayName="CardFooter"},64219:(e,r,t)=>{"use strict";t.d(r,{p:()=>n});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,type:a,...n}=e;return(0,s.jsx)("input",{type:a,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...n})});n.displayName="Input"},32857:(e,r,t)=>{"use strict";t.d(r,{dj:()=>f,oR:()=>u});var s=t(20107);let a=0,o=new Map,n=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},d=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=r;return t?n(t):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...r}=e,t=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...r,id:t,open:!0,onOpenChange:e=>{e||s()}}}),{id:t,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function f(){let[e,r]=s.useState(l);return s.useEffect(()=>(i.push(r),()=>{let e=i.indexOf(r);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,r,t)=>{"use strict";t.d(r,{cn:()=>o});var s=t(64901),a=t(868);function o(){for(var e=arguments.length,r=Array(e),t=0;t{"use strict";t.d(r,{F:()=>o});let s=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,a=function(){for(var e,r,t=0,s="";tt=>{var o;if((null==r?void 0:r.variants)==null)return a(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:n,defaultVariants:d}=r,i=Object.keys(n).map(e=>{let r=null==t?void 0:t[e],a=null==d?void 0:d[e];if(null===r)return null;let o=s(r)||s(a);return n[e][o]}),l=t&&Object.entries(t).reduce((e,r)=>{let[t,s]=r;return void 0===s||(e[t]=s),e},{});return a(e,i,null==r?void 0:null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:s,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...d,...l}[r]):({...d,...l})[r]===t})?[...e,t,s]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}},e=>{var r=r=>e(e.s=r);e.O(0,[7780,191,6035,7358],()=>r(18875)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-affb4fb4f2f57790.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-affb4fb4f2f57790.js new file mode 100644 index 0000000..16f0724 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-affb4fb4f2f57790.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4631],{18875:(e,r,t)=>{Promise.resolve().then(t.bind(t,16212))},16212:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var s=t(20475),a=t(20107),o=t(72167),n=t(42541),d=t(64219),i=t(32857);let l=()=>{let{toast:e}=(0,i.dj)(),[r,t]=(0,a.useState)(!1),[l,c]=(0,a.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r;let t=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}return"success"===r.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),t(!0);try{let r;if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let t=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}if("success"===r.state)e({title:"Success",description:r.message||"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error(r.message||"Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{t(!1)}},p=e=>{let{name:r,value:t}=e.target;c(e=>({...e,[r]:t}))};return(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)(o.aR,{children:[(0,s.jsx)(o.ZB,{children:"Change Device Password"}),(0,s.jsx)(o.BT,{children:"This changes the password for the web interface and terminal access."})]}),(0,s.jsx)(o.Wu,{children:(0,s.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,s.jsx)(d.p,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,s.jsx)(d.p,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,s.jsx)(d.p,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,s.jsx)(o.wL,{className:"border-t px-6 py-4",children:(0,s.jsx)(n.$,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},42541:(e,r,t)=>{"use strict";t.d(r,{$:()=>l,r:()=>i});var s=t(20475),a=t(20107),o=t(61837),n=t(29395),d=t(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,r)=>{let{className:t,variant:a,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,s.jsx)(u,{className:(0,d.cn)(i({variant:a,size:n,className:t})),ref:r,...c})});l.displayName="Button"},72167:(e,r,t)=>{"use strict";t.d(r,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>d,wL:()=>u});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...a})});n.displayName="Card";let d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",t),...a})});d.displayName="CardHeader";let i=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",t),...a})});i.displayName="CardTitle";let l=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",t),...a})});l.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let u=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",t),...a})});u.displayName="CardFooter"},64219:(e,r,t)=>{"use strict";t.d(r,{p:()=>n});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,type:a,...n}=e;return(0,s.jsx)("input",{type:a,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...n})});n.displayName="Input"},32857:(e,r,t)=>{"use strict";t.d(r,{dj:()=>f,oR:()=>u});var s=t(20107);let a=0,o=new Map,n=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},d=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=r;return t?n(t):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...r}=e,t=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...r,id:t,open:!0,onOpenChange:e=>{e||s()}}}),{id:t,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function f(){let[e,r]=s.useState(l);return s.useEffect(()=>(i.push(r),()=>{let e=i.indexOf(r);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,r,t)=>{"use strict";t.d(r,{cn:()=>o});var s=t(64901),a=t(868);function o(){for(var e=arguments.length,r=Array(e),t=0;t{"use strict";t.d(r,{F:()=>o});let s=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,a=function(){for(var e,r,t=0,s="";tt=>{var o;if((null==r?void 0:r.variants)==null)return a(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:n,defaultVariants:d}=r,i=Object.keys(n).map(e=>{let r=null==t?void 0:t[e],a=null==d?void 0:d[e];if(null===r)return null;let o=s(r)||s(a);return n[e][o]}),l=t&&Object.entries(t).reduce((e,r)=>{let[t,s]=r;return void 0===s||(e[t]=s),e},{});return a(e,i,null==r?void 0:null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:s,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...d,...l}[r]):({...d,...l})[r]===t})?[...e,t,s]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}},e=>{var r=r=>e(e.s=r);e.O(0,[7780,191,6035,7358],()=>r(18875)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-f4993a729574dbc7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-f4993a729574dbc7.js deleted file mode 100644 index c216f4d..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/page-f4993a729574dbc7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4631],{41139:(e,r,s)=>{Promise.resolve().then(s.bind(s,53068))},53068:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>l});var t=s(95155),a=s(12115),o=s(35007),n=s(14085),d=s(9955),i=s(20241);let l=()=>{let{toast:e}=(0,i.dj)(),[r,s]=(0,a.useState)(!1),[l,c]=(0,a.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r;let s=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))});if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let t=await s.text();try{r=JSON.parse(t)}catch(e){throw console.error("Failed to parse JSON:",t),Error("Invalid response format")}return"success"===r.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),s(!0);try{let r;if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let s=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))});if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let t=await s.text();try{r=JSON.parse(t)}catch(e){throw console.error("Failed to parse JSON:",t),Error("Invalid response format")}if("success"===r.state)e({title:"Success",description:r.message||"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error(r.message||"Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{s(!1)}},p=e=>{let{name:r,value:s}=e.target;c(e=>({...e,[r]:s}))};return(0,t.jsxs)(o.Zp,{children:[(0,t.jsxs)(o.aR,{children:[(0,t.jsx)(o.ZB,{children:"Change Device Password"}),(0,t.jsx)(o.BT,{children:"This changes the password for the web interface and terminal access."})]}),(0,t.jsx)(o.Wu,{children:(0,t.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,t.jsx)(d.p,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,t.jsx)(d.p,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,t.jsx)(d.p,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,t.jsx)(o.wL,{className:"border-t px-6 py-4",children:(0,t.jsx)(n.$,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},14085:(e,r,s)=>{"use strict";s.d(r,{$:()=>l,r:()=>i});var t=s(95155),a=s(12115),o=s(12317),n=s(31027),d=s(29602);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,r)=>{let{className:s,variant:a,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,t.jsx)(u,{className:(0,d.cn)(i({variant:a,size:n,className:s})),ref:r,...c})});l.displayName="Button"},35007:(e,r,s)=>{"use strict";s.d(r,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>d,wL:()=>u});var t=s(95155),a=s(12115),o=s(29602);let n=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...a})});n.displayName="Card";let d=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",s),...a})});d.displayName="CardHeader";let i=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",s),...a})});i.displayName="CardTitle";let l=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",s),...a})});l.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",s),...a})});c.displayName="CardContent";let u=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",s),...a})});u.displayName="CardFooter"},9955:(e,r,s)=>{"use strict";s.d(r,{p:()=>n});var t=s(95155),a=s(12115),o=s(29602);let n=a.forwardRef((e,r)=>{let{className:s,type:a,...n}=e;return(0,t.jsx)("input",{type:a,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:r,...n})});n.displayName="Input"},20241:(e,r,s)=>{"use strict";s.d(r,{dj:()=>f,oR:()=>u});var t=s(12115);let a=0,o=new Map,n=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},d=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=r;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...r}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...r,id:s,open:!0,onOpenChange:e=>{e||t()}}}),{id:s,dismiss:t,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,r]=t.useState(l);return t.useEffect(()=>(i.push(r),()=>{let e=i.indexOf(r);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,r,s)=>{"use strict";s.d(r,{cn:()=>o});var t=s(43463),a=s(69795);function o(){for(var e=arguments.length,r=Array(e),s=0;s{var r=r=>e(e.s=r);e.O(0,[1365,8441,1517,7358],()=>r(41139)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-37b3ba8d799a9134.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-37b3ba8d799a9134.js new file mode 100644 index 0000000..eccb160 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-37b3ba8d799a9134.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2162],{35380:(e,r,t)=>{Promise.resolve().then(t.bind(t,16212))},16212:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var s=t(20475),a=t(20107),o=t(72167),n=t(42541),d=t(64219),i=t(32857);let l=()=>{let{toast:e}=(0,i.dj)(),[r,t]=(0,a.useState)(!1),[l,c]=(0,a.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r;let t=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}return"success"===r.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),t(!0);try{let r;if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let t=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}if("success"===r.state)e({title:"Success",description:r.message||"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error(r.message||"Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{t(!1)}},p=e=>{let{name:r,value:t}=e.target;c(e=>({...e,[r]:t}))};return(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)(o.aR,{children:[(0,s.jsx)(o.ZB,{children:"Change Device Password"}),(0,s.jsx)(o.BT,{children:"This changes the password for the web interface and terminal access."})]}),(0,s.jsx)(o.Wu,{children:(0,s.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,s.jsx)(d.p,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,s.jsx)(d.p,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,s.jsx)(d.p,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,s.jsx)(o.wL,{className:"border-t px-6 py-4",children:(0,s.jsx)(n.$,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},42541:(e,r,t)=>{"use strict";t.d(r,{$:()=>l,r:()=>i});var s=t(20475),a=t(20107),o=t(61837),n=t(29395),d=t(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,r)=>{let{className:t,variant:a,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,s.jsx)(u,{className:(0,d.cn)(i({variant:a,size:n,className:t})),ref:r,...c})});l.displayName="Button"},72167:(e,r,t)=>{"use strict";t.d(r,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>d,wL:()=>u});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...a})});n.displayName="Card";let d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",t),...a})});d.displayName="CardHeader";let i=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",t),...a})});i.displayName="CardTitle";let l=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",t),...a})});l.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let u=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",t),...a})});u.displayName="CardFooter"},64219:(e,r,t)=>{"use strict";t.d(r,{p:()=>n});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,type:a,...n}=e;return(0,s.jsx)("input",{type:a,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...n})});n.displayName="Input"},32857:(e,r,t)=>{"use strict";t.d(r,{dj:()=>f,oR:()=>u});var s=t(20107);let a=0,o=new Map,n=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},d=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=r;return t?n(t):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...r}=e,t=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...r,id:t,open:!0,onOpenChange:e=>{e||s()}}}),{id:t,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function f(){let[e,r]=s.useState(l);return s.useEffect(()=>(i.push(r),()=>{let e=i.indexOf(r);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,r,t)=>{"use strict";t.d(r,{cn:()=>o});var s=t(64901),a=t(868);function o(){for(var e=arguments.length,r=Array(e),t=0;t{"use strict";t.d(r,{F:()=>o});let s=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,a=function(){for(var e,r,t=0,s="";tt=>{var o;if((null==r?void 0:r.variants)==null)return a(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:n,defaultVariants:d}=r,i=Object.keys(n).map(e=>{let r=null==t?void 0:t[e],a=null==d?void 0:d[e];if(null===r)return null;let o=s(r)||s(a);return n[e][o]}),l=t&&Object.entries(t).reduce((e,r)=>{let[t,s]=r;return void 0===s||(e[t]=s),e},{});return a(e,i,null==r?void 0:null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:s,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...d,...l}[r]):({...d,...l})[r]===t})?[...e,t,s]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}},e=>{var r=r=>e(e.s=r);e.O(0,[7780,191,6035,7358],()=>r(35380)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-722575cb0e664dd2.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-722575cb0e664dd2.js new file mode 100644 index 0000000..eccb160 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-722575cb0e664dd2.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2162],{35380:(e,r,t)=>{Promise.resolve().then(t.bind(t,16212))},16212:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var s=t(20475),a=t(20107),o=t(72167),n=t(42541),d=t(64219),i=t(32857);let l=()=>{let{toast:e}=(0,i.dj)(),[r,t]=(0,a.useState)(!1),[l,c]=(0,a.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r;let t=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}return"success"===r.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),t(!0);try{let r;if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let t=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}if("success"===r.state)e({title:"Success",description:r.message||"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error(r.message||"Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{t(!1)}},p=e=>{let{name:r,value:t}=e.target;c(e=>({...e,[r]:t}))};return(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)(o.aR,{children:[(0,s.jsx)(o.ZB,{children:"Change Device Password"}),(0,s.jsx)(o.BT,{children:"This changes the password for the web interface and terminal access."})]}),(0,s.jsx)(o.Wu,{children:(0,s.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,s.jsx)(d.p,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,s.jsx)(d.p,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,s.jsx)(d.p,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,s.jsx)(o.wL,{className:"border-t px-6 py-4",children:(0,s.jsx)(n.$,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},42541:(e,r,t)=>{"use strict";t.d(r,{$:()=>l,r:()=>i});var s=t(20475),a=t(20107),o=t(61837),n=t(29395),d=t(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,r)=>{let{className:t,variant:a,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,s.jsx)(u,{className:(0,d.cn)(i({variant:a,size:n,className:t})),ref:r,...c})});l.displayName="Button"},72167:(e,r,t)=>{"use strict";t.d(r,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>d,wL:()=>u});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...a})});n.displayName="Card";let d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",t),...a})});d.displayName="CardHeader";let i=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",t),...a})});i.displayName="CardTitle";let l=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",t),...a})});l.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let u=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",t),...a})});u.displayName="CardFooter"},64219:(e,r,t)=>{"use strict";t.d(r,{p:()=>n});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,type:a,...n}=e;return(0,s.jsx)("input",{type:a,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...n})});n.displayName="Input"},32857:(e,r,t)=>{"use strict";t.d(r,{dj:()=>f,oR:()=>u});var s=t(20107);let a=0,o=new Map,n=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},d=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=r;return t?n(t):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...r}=e,t=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...r,id:t,open:!0,onOpenChange:e=>{e||s()}}}),{id:t,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function f(){let[e,r]=s.useState(l);return s.useEffect(()=>(i.push(r),()=>{let e=i.indexOf(r);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,r,t)=>{"use strict";t.d(r,{cn:()=>o});var s=t(64901),a=t(868);function o(){for(var e=arguments.length,r=Array(e),t=0;t{"use strict";t.d(r,{F:()=>o});let s=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,a=function(){for(var e,r,t=0,s="";tt=>{var o;if((null==r?void 0:r.variants)==null)return a(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:n,defaultVariants:d}=r,i=Object.keys(n).map(e=>{let r=null==t?void 0:t[e],a=null==d?void 0:d[e];if(null===r)return null;let o=s(r)||s(a);return n[e][o]}),l=t&&Object.entries(t).reduce((e,r)=>{let[t,s]=r;return void 0===s||(e[t]=s),e},{});return a(e,i,null==r?void 0:null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:s,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...d,...l}[r]):({...d,...l})[r]===t})?[...e,t,s]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}},e=>{var r=r=>e(e.s=r);e.O(0,[7780,191,6035,7358],()=>r(35380)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-c478de4827161dac.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-c478de4827161dac.js new file mode 100644 index 0000000..eccb160 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-c478de4827161dac.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2162],{35380:(e,r,t)=>{Promise.resolve().then(t.bind(t,16212))},16212:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var s=t(20475),a=t(20107),o=t(72167),n=t(42541),d=t(64219),i=t(32857);let l=()=>{let{toast:e}=(0,i.dj)(),[r,t]=(0,a.useState)(!1),[l,c]=(0,a.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r;let t=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}return"success"===r.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),t(!0);try{let r;if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let t=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let s=await t.text();try{r=JSON.parse(s)}catch(e){throw console.error("Failed to parse JSON:",s),Error("Invalid response format")}if("success"===r.state)e({title:"Success",description:r.message||"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error(r.message||"Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{t(!1)}},p=e=>{let{name:r,value:t}=e.target;c(e=>({...e,[r]:t}))};return(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)(o.aR,{children:[(0,s.jsx)(o.ZB,{children:"Change Device Password"}),(0,s.jsx)(o.BT,{children:"This changes the password for the web interface and terminal access."})]}),(0,s.jsx)(o.Wu,{children:(0,s.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,s.jsx)(d.p,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,s.jsx)(d.p,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,s.jsx)(d.p,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,s.jsx)(o.wL,{className:"border-t px-6 py-4",children:(0,s.jsx)(n.$,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},42541:(e,r,t)=>{"use strict";t.d(r,{$:()=>l,r:()=>i});var s=t(20475),a=t(20107),o=t(61837),n=t(29395),d=t(22250);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,r)=>{let{className:t,variant:a,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,s.jsx)(u,{className:(0,d.cn)(i({variant:a,size:n,className:t})),ref:r,...c})});l.displayName="Button"},72167:(e,r,t)=>{"use strict";t.d(r,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>d,wL:()=>u});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...a})});n.displayName="Card";let d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",t),...a})});d.displayName="CardHeader";let i=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",t),...a})});i.displayName="CardTitle";let l=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",t),...a})});l.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let u=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",t),...a})});u.displayName="CardFooter"},64219:(e,r,t)=>{"use strict";t.d(r,{p:()=>n});var s=t(20475),a=t(20107),o=t(22250);let n=a.forwardRef((e,r)=>{let{className:t,type:a,...n}=e;return(0,s.jsx)("input",{type:a,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...n})});n.displayName="Input"},32857:(e,r,t)=>{"use strict";t.d(r,{dj:()=>f,oR:()=>u});var s=t(20107);let a=0,o=new Map,n=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},d=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=r;return t?n(t):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...r}=e,t=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...r,id:t,open:!0,onOpenChange:e=>{e||s()}}}),{id:t,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function f(){let[e,r]=s.useState(l);return s.useEffect(()=>(i.push(r),()=>{let e=i.indexOf(r);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,r,t)=>{"use strict";t.d(r,{cn:()=>o});var s=t(64901),a=t(868);function o(){for(var e=arguments.length,r=Array(e),t=0;t{"use strict";t.d(r,{F:()=>o});let s=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,a=function(){for(var e,r,t=0,s="";tt=>{var o;if((null==r?void 0:r.variants)==null)return a(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:n,defaultVariants:d}=r,i=Object.keys(n).map(e=>{let r=null==t?void 0:t[e],a=null==d?void 0:d[e];if(null===r)return null;let o=s(r)||s(a);return n[e][o]}),l=t&&Object.entries(t).reduce((e,r)=>{let[t,s]=r;return void 0===s||(e[t]=s),e},{});return a(e,i,null==r?void 0:null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:s,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...d,...l}[r]):({...d,...l})[r]===t})?[...e,t,s]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}},e=>{var r=r=>e(e.s=r);e.O(0,[7780,191,6035,7358],()=>r(35380)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-ee2b13d3a197a5cf.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-ee2b13d3a197a5cf.js deleted file mode 100644 index 7e06060..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-ee2b13d3a197a5cf.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2162],{3212:(e,r,s)=>{Promise.resolve().then(s.bind(s,53068))},53068:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>l});var t=s(95155),a=s(12115),o=s(35007),n=s(14085),d=s(9955),i=s(20241);let l=()=>{let{toast:e}=(0,i.dj)(),[r,s]=(0,a.useState)(!1),[l,c]=(0,a.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r;let s=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))});if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let t=await s.text();try{r=JSON.parse(t)}catch(e){throw console.error("Failed to parse JSON:",t),Error("Invalid response format")}return"success"===r.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),s(!0);try{let r;if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let s=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))});if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let t=await s.text();try{r=JSON.parse(t)}catch(e){throw console.error("Failed to parse JSON:",t),Error("Invalid response format")}if("success"===r.state)e({title:"Success",description:r.message||"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error(r.message||"Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{s(!1)}},p=e=>{let{name:r,value:s}=e.target;c(e=>({...e,[r]:s}))};return(0,t.jsxs)(o.Zp,{children:[(0,t.jsxs)(o.aR,{children:[(0,t.jsx)(o.ZB,{children:"Change Device Password"}),(0,t.jsx)(o.BT,{children:"This changes the password for the web interface and terminal access."})]}),(0,t.jsx)(o.Wu,{children:(0,t.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,t.jsx)(d.p,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,t.jsx)(d.p,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,t.jsx)(d.p,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,t.jsx)(o.wL,{className:"border-t px-6 py-4",children:(0,t.jsx)(n.$,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},14085:(e,r,s)=>{"use strict";s.d(r,{$:()=>l,r:()=>i});var t=s(95155),a=s(12115),o=s(12317),n=s(31027),d=s(29602);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,r)=>{let{className:s,variant:a,size:n,asChild:l=!1,...c}=e,u=l?o.DX:"button";return(0,t.jsx)(u,{className:(0,d.cn)(i({variant:a,size:n,className:s})),ref:r,...c})});l.displayName="Button"},35007:(e,r,s)=>{"use strict";s.d(r,{BT:()=>l,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>d,wL:()=>u});var t=s(95155),a=s(12115),o=s(29602);let n=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...a})});n.displayName="Card";let d=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",s),...a})});d.displayName="CardHeader";let i=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",s),...a})});i.displayName="CardTitle";let l=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",s),...a})});l.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",s),...a})});c.displayName="CardContent";let u=a.forwardRef((e,r)=>{let{className:s,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",s),...a})});u.displayName="CardFooter"},9955:(e,r,s)=>{"use strict";s.d(r,{p:()=>n});var t=s(95155),a=s(12115),o=s(29602);let n=a.forwardRef((e,r)=>{let{className:s,type:a,...n}=e;return(0,t.jsx)("input",{type:a,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:r,...n})});n.displayName="Input"},20241:(e,r,s)=>{"use strict";s.d(r,{dj:()=>f,oR:()=>u});var t=s(12115);let a=0,o=new Map,n=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},d=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=r;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},i=[],l={toasts:[]};function c(e){l=d(l,e),i.forEach(e=>{e(l)})}function u(e){let{...r}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...r,id:s,open:!0,onOpenChange:e=>{e||t()}}}),{id:s,dismiss:t,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,r]=t.useState(l);return t.useEffect(()=>(i.push(r),()=>{let e=i.indexOf(r);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,r,s)=>{"use strict";s.d(r,{cn:()=>o});var t=s(43463),a=s(69795);function o(){for(var e=arguments.length,r=Array(e),s=0;s{var r=r=>e(e.s=r);e.O(0,[1365,8441,1517,7358],()=>r(3212)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-c8966be7ba6bca0c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-a9c4b7ff6cae263b.js similarity index 52% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-c8966be7ba6bca0c.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-a9c4b7ff6cae263b.js index 459430c..397c9a7 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-c8966be7ba6bca0c.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-a9c4b7ff6cae263b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{94063:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,19324,23)),Promise.resolve().then(r.bind(r,14627)),Promise.resolve().then(r.bind(r,86321)),Promise.resolve().then(r.bind(r,9246)),Promise.resolve().then(r.t.bind(r,43154,23))},14627:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>a});var n=r(95155);r(12115);var o=r(67113);function a(e){let{children:t,...r}=e;return(0,n.jsx)(o.N,{...r,children:t})}},86321:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>es});var n=r(95155),o=r(20241),a=r(12115),s=r(87365),i=r(47650),l=r(93610),c=r(88068),d=r(49741),u=r(18166),m=r(59674),f=r(17323),p=r(17028),v=r(23360),h=r(41524),w=r(1488),y=r(46611),x=r(63543),g="ToastProvider",[T,E,b]=(0,d.N)("Toast"),[S,C]=(0,u.A)("Toast",[b]),[N,R]=S(g),j=e=>{let{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:l}=e,[c,d]=a.useState(null),[u,m]=a.useState(0),f=a.useRef(!1),p=a.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(g,"`. Expected non-empty `string`.")),(0,n.jsx)(T.Provider,{scope:t,children:(0,n.jsx)(N,{scope:t,label:r,duration:o,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:a.useCallback(()=>m(e=>e+1),[]),onToastRemove:a.useCallback(()=>m(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:l})})};j.displayName=g;var P="ToastViewport",A=["F8"],k="toast.viewportPause",L="toast.viewportResume",I=a.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:o=A,label:s="Notifications ({hotkey})",...i}=e,l=R(P,r),d=E(r),u=a.useRef(null),f=a.useRef(null),p=a.useRef(null),h=a.useRef(null),w=(0,c.s)(t,h,l.onViewportChange),y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;a.useEffect(()=>{let e=e=>{var t;0!==o.length&&o.every(t=>e[t]||e.code===t)&&(null===(t=h.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),a.useEffect(()=>{let e=u.current,t=h.current;if(x&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(k);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>{if(l.isClosePausedRef.current){let e=new CustomEvent(L);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||n()},a=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",a),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[x,l.isClosePausedRef]);let g=a.useCallback(e=>{let{tabbingDirection:t}=e,r=d().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[d]);return a.useEffect(()=>{let e=h.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,o,a;let r=document.activeElement,s=t.shiftKey;if(t.target===e&&s){null===(n=f.current)||void 0===n||n.focus();return}let i=g({tabbingDirection:s?"backwards":"forwards"}),l=i.findIndex(e=>e===r);$(i.slice(l+1))?t.preventDefault():s?null===(o=f.current)||void 0===o||o.focus():null===(a=p.current)||void 0===a||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[d,g]),(0,n.jsxs)(m.lg,{ref:u,role:"region","aria-label":s.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&(0,n.jsx)(M,{ref:f,onFocusFromOutsideViewport:()=>{$(g({tabbingDirection:"forwards"}))}}),(0,n.jsx)(T.Slot,{scope:r,children:(0,n.jsx)(v.sG.ol,{tabIndex:-1,...i,ref:w})}),x&&(0,n.jsx)(M,{ref:p,onFocusFromOutsideViewport:()=>{$(g({tabbingDirection:"backwards"}))}})]})});I.displayName=P;var D="ToastFocusProxy",M=a.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:o,...a}=e,s=R(D,r);return(0,n.jsx)(x.s,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null===(t=s.viewport)||void 0===t?void 0:t.contains(r))||o()}})});M.displayName=D;var O="Toast",_=a.forwardRef((e,t)=>{let{forceMount:r,open:o,defaultOpen:a,onOpenChange:s,...i}=e,[c=!0,d]=(0,w.i)({prop:o,defaultProp:a,onChange:s});return(0,n.jsx)(p.C,{present:r||c,children:(0,n.jsx)(V,{open:c,...i,ref:t,onClose:()=>d(!1),onPause:(0,h.c)(e.onPause),onResume:(0,h.c)(e.onResume),onSwipeStart:(0,l.m)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,l.m)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:(0,l.m)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,l.m)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),d(!1)})})})});_.displayName=O;var[F,K]=S(O,{onClose(){}}),V=a.forwardRef((e,t)=>{let{__scopeToast:r,type:o="foreground",duration:s,open:d,onClose:u,onEscapeKeyDown:f,onPause:p,onResume:w,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:g,onSwipeEnd:E,...b}=e,S=R(O,r),[C,N]=a.useState(null),j=(0,c.s)(t,e=>N(e)),P=a.useRef(null),A=a.useRef(null),I=s||S.duration,D=a.useRef(0),M=a.useRef(I),_=a.useRef(0),{onToastAdd:K,onToastRemove:V}=S,U=(0,h.c)(()=>{var e;(null==C?void 0:C.contains(document.activeElement))&&(null===(e=S.viewport)||void 0===e||e.focus()),u()}),z=a.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(_.current),D.current=new Date().getTime(),_.current=window.setTimeout(U,e))},[U]);a.useEffect(()=>{let e=S.viewport;if(e){let t=()=>{z(M.current),null==w||w()},r=()=>{let e=new Date().getTime()-D.current;M.current=M.current-e,window.clearTimeout(_.current),null==p||p()};return e.addEventListener(k,r),e.addEventListener(L,t),()=>{e.removeEventListener(k,r),e.removeEventListener(L,t)}}},[S.viewport,I,p,w,z]),a.useEffect(()=>{d&&!S.isClosePausedRef.current&&z(I)},[d,I,S.isClosePausedRef,z]),a.useEffect(()=>(K(),()=>V()),[K,V]);let q=a.useMemo(()=>C?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!n){if(o){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}}),r}(C):null,[C]);return S.viewport?(0,n.jsxs)(n.Fragment,{children:[q&&(0,n.jsx)(G,{__scopeToast:r,role:"status","aria-live":"foreground"===o?"assertive":"polite","aria-atomic":!0,children:q}),(0,n.jsx)(F,{scope:r,onClose:U,children:i.createPortal((0,n.jsx)(T.ItemSlot,{scope:r,children:(0,n.jsx)(m.bL,{asChild:!0,onEscapeKeyDown:(0,l.m)(f,()=>{S.isFocusedToastEscapeKeyDownRef.current||U(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,n.jsx)(v.sG.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":S.swipeDirection,...b,ref:j,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,l.m)(e.onKeyDown,e=>{"Escape"!==e.key||(null==f||f(e.nativeEvent),e.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,l.m)(e.onPointerDown,e=>{0===e.button&&(P.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,l.m)(e.onPointerMove,e=>{if(!P.current)return;let t=e.clientX-P.current.x,r=e.clientY-P.current.y,n=!!A.current,o=["left","right"].includes(S.swipeDirection),a=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,s=o?a(0,t):0,i=o?0:a(0,r),l="touch"===e.pointerType?10:2,c={x:s,y:i},d={originalEvent:e,delta:c};n?(A.current=c,Y("toast.swipeMove",x,d,{discrete:!1})):Z(c,S.swipeDirection,l)?(A.current=c,Y("toast.swipeStart",y,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(P.current=null)}),onPointerUp:(0,l.m)(e.onPointerUp,e=>{let t=A.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),A.current=null,P.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};Z(t,S.swipeDirection,S.swipeThreshold)?Y("toast.swipeEnd",E,n,{discrete:!0}):Y("toast.swipeCancel",g,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),G=e=>{let{__scopeToast:t,children:r,...o}=e,s=R(O,t),[i,l]=a.useState(!1),[c,d]=a.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,h.c)(e);(0,y.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>l(!0)),a.useEffect(()=>{let e=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(e)},[]),c?null:(0,n.jsx)(f.Z,{asChild:!0,children:(0,n.jsx)(x.s,{...o,children:i&&(0,n.jsxs)(n.Fragment,{children:[s.label," ",r]})})})},U=a.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e;return(0,n.jsx)(v.sG.div,{...o,ref:t})});U.displayName="ToastTitle";var z=a.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e;return(0,n.jsx)(v.sG.div,{...o,ref:t})});z.displayName="ToastDescription";var q="ToastAction",H=a.forwardRef((e,t)=>{let{altText:r,...o}=e;return r.trim()?(0,n.jsx)(J,{altText:r,asChild:!0,children:(0,n.jsx)(W,{...o,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(q,"`. Expected non-empty `string`.")),null)});H.displayName=q;var X="ToastClose",W=a.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e,a=K(X,r);return(0,n.jsx)(J,{asChild:!0,children:(0,n.jsx)(v.sG.button,{type:"button",...o,ref:t,onClick:(0,l.m)(e.onClick,a.onClose)})})});W.displayName=X;var J=a.forwardRef((e,t)=>{let{__scopeToast:r,altText:o,...a}=e;return(0,n.jsx)(v.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:t})});function Y(e,t,r,n){let{discrete:o}=n,a=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?(0,v.hO)(a,s):a.dispatchEvent(s)}var Z=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),o=Math.abs(e.y),a=n>o;return"left"===t||"right"===t?a&&n>r:!a&&o>r};function $(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Q=r(31027),B=r(29602);let ee=a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(I,{ref:t,className:(0,B.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...o})});ee.displayName=I.displayName;let et=(0,Q.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),er=a.forwardRef((e,t)=>{let{className:r,variant:o,...a}=e;return(0,n.jsx)(_,{ref:t,className:(0,B.cn)(et({variant:o}),r),...a})});er.displayName=_.displayName,a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(H,{ref:t,className:(0,B.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...o})}).displayName=H.displayName;let en=a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(W,{ref:t,className:(0,B.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...o,children:(0,n.jsx)(s.MKb,{className:"h-4 w-4"})})});en.displayName=W.displayName;let eo=a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(U,{ref:t,className:(0,B.cn)("text-sm font-semibold [&+div]:text-xs",r),...o})});eo.displayName=U.displayName;let ea=a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(z,{ref:t,className:(0,B.cn)("text-sm opacity-90",r),...o})});function es(){let{toasts:e}=(0,o.dj)();return(0,n.jsxs)(j,{children:[e.map(function(e){let{id:t,title:r,description:o,action:a,...s}=e;return(0,n.jsxs)(er,{...s,children:[(0,n.jsxs)("div",{className:"grid gap-1",children:[r&&(0,n.jsx)(eo,{children:r}),o&&(0,n.jsx)(ea,{children:o})]}),a,(0,n.jsx)(en,{})]},t)}),(0,n.jsx)(ee,{})]})}ea.displayName=z.displayName},9246:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>i,ZI:()=>d,k$:()=>c,m_:()=>l});var n=r(95155),o=r(12115),a=r(19710),s=r(29602);let i=a.Kq,l=a.bL,c=a.l9,d=o.forwardRef((e,t)=>{let{className:r,sideOffset:o=4,...i}=e;return(0,n.jsx)(a.UC,{ref:t,sideOffset:o,className:(0,s.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i})});d.displayName=a.UC.displayName},20241:(e,t,r)=>{"use strict";r.d(t,{dj:()=>m,oR:()=>u});var n=r(12115);let o=0,a=new Map,s=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?s(r):e.toasts.forEach(e=>{s(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,r=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>d({type:"DISMISS_TOAST",toastId:r});return d({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function m(){let[e,t]=n.useState(c);return n.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var n=r(43463),o=r(69795);function a(){for(var e=arguments.length,t=Array(e),r=0;r{},43154:e=>{e.exports={style:{fontFamily:"'euclid', 'euclid Fallback'"},className:"__className_9dae3d"}},49741:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(12115),o=r(18166),a=r(88068),s=r(12317),i=r(95155);function l(e){let t=e+"CollectionProvider",[r,l]=(0,o.A)(t),[c,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:r})};u.displayName=t;let m=e+"CollectionSlot",f=(0,s.TL)(m),p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=d(m,r),s=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(f,{ref:s,children:n})});p.displayName=m;let v=e+"CollectionItemSlot",h="data-radix-collection-item",w=(0,s.TL)(v),y=n.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,l=n.useRef(null),c=(0,a.s)(t,l),u=d(v,r);return n.useEffect(()=>(u.itemMap.set(l,{ref:l,...s}),()=>void u.itemMap.delete(l))),(0,i.jsx)(w,{[h]:"",ref:c,children:o})});return y.displayName=v,[{Provider:u,Slot:p,ItemSlot:y},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},63543:(e,t,r)=>{"use strict";r.d(t,{b:()=>i,s:()=>s});var n=r(12115),o=r(23360),a=r(95155),s=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));s.displayName="VisuallyHidden";var i=s},67113:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,N:()=>d});var n=r(12115),o=["light","dark"],a="(prefers-color-scheme: dark)",s="undefined"==typeof window,i=n.createContext(void 0),l={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(i))?e:l},d=e=>n.useContext(i)?e.children:n.createElement(m,{...e}),u=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:l=!0,storageKey:c="theme",themes:d=u,defaultTheme:m=s?"system":"light",attribute:w="data-theme",value:y,children:x,nonce:g}=e,[T,E]=n.useState(()=>p(c,m)),[b,S]=n.useState(()=>p(c)),C=y?Object.values(y):d,N=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&s&&(t=h());let n=y?y[t]:t,a=r?v():null,i=document.documentElement;if("class"===w?(i.classList.remove(...C),n&&i.classList.add(n)):n?i.setAttribute(w,n):i.removeAttribute(w),l){let e=o.includes(m)?m:null,r=o.includes(t)?t:e;i.style.colorScheme=r}null==a||a()},[]),R=n.useCallback(e=>{let t="function"==typeof e?e(e):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[t]),j=n.useCallback(e=>{S(h(e)),"system"===T&&s&&!t&&N("system")},[T,t]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(j),j(e),()=>e.removeListener(j)},[j]),n.useEffect(()=>{let e=e=>{e.key===c&&R(e.newValue||m)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[R]),n.useEffect(()=>{N(null!=t?t:T)},[t,T]);let P=n.useMemo(()=>({theme:T,setTheme:R,forcedTheme:t,resolvedTheme:"system"===T?b:T,themes:s?[...d,"system"]:d,systemTheme:s?b:void 0}),[T,R,t,b,s,d]);return n.createElement(i.Provider,{value:P},n.createElement(f,{forcedTheme:t,disableTransitionOnChange:r,enableSystem:s,enableColorScheme:l,storageKey:c,themes:d,defaultTheme:m,attribute:w,value:y,children:x,attrs:C,nonce:g}),x)},f=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:s,enableSystem:i,enableColorScheme:l,defaultTheme:c,value:d,attrs:u,nonce:m}=e,f="system"===c,p="class"===s?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(u.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(s,"',s='setAttribute';"),v=l?(o.includes(c)?c:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(c,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=d?d[e]:e,a=t?e+"|| ''":"'".concat(n,"'"),i="";return l&&r&&!t&&o.includes(e)&&(i+="d.style.colorScheme = '".concat(e,"';")),"class"===s?t||n?i+="c.add(".concat(a,")"):i+="null":n&&(i+="d[s](n,".concat(a,")")),i},w=t?"!function(){".concat(p).concat(h(t),"}()"):i?"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(r,"');if('system'===e||(!e&&").concat(f,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(h("dark"),"}else{").concat(h("light"),"}}else if(e){").concat(d?"var x=".concat(JSON.stringify(d),";"):"").concat(h(d?"x[e]":"e",!0),"}").concat(f?"":"else{"+h(c,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(r,"');if(e){").concat(d?"var x=".concat(JSON.stringify(d),";"):"").concat(h(d?"x[e]":"e",!0),"}else{").concat(h(c,!1,!1),";}").concat(v,"}catch(t){}}();");return n.createElement("script",{nonce:m,dangerouslySetInnerHTML:{__html:w}})}),p=(e,t)=>{let r;if(!s){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}},e=>{var t=t=>e(e.s=t);e.O(0,[5686,5105,1365,7401,9895,9710,8441,1517,7358],()=>t(94063)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{5330:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,22670,23)),Promise.resolve().then(r.bind(r,74347)),Promise.resolve().then(r.bind(r,62825)),Promise.resolve().then(r.bind(r,85014)),Promise.resolve().then(r.t.bind(r,25804,23))},74347:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>a});var n=r(20475);r(20107);var o=r(92159);function a(e){let{children:t,...r}=e;return(0,n.jsx)(o.N,{...r,children:t})}},62825:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>es});var n=r(20475),o=r(32857),a=r(20107),s=r(7197),i=r(25642),l=r(94521),c=r(64236),d=r(32474),u=r(45170),m=r(55302),f=r(41913),p=r(54245),v=r(34544),h=r(46774),w=r(13061),y=r(54122),x=r(91475),g="ToastProvider",[E,T,b]=(0,d.N)("Toast"),[S,C]=(0,u.A)("Toast",[b]),[N,R]=S(g),j=e=>{let{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:l}=e,[c,d]=a.useState(null),[u,m]=a.useState(0),f=a.useRef(!1),p=a.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(g,"`. Expected non-empty `string`.")),(0,n.jsx)(E.Provider,{scope:t,children:(0,n.jsx)(N,{scope:t,label:r,duration:o,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:a.useCallback(()=>m(e=>e+1),[]),onToastRemove:a.useCallback(()=>m(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:l})})};j.displayName=g;var P="ToastViewport",A=["F8"],k="toast.viewportPause",I="toast.viewportResume",L=a.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:o=A,label:s="Notifications ({hotkey})",...i}=e,l=R(P,r),d=T(r),u=a.useRef(null),f=a.useRef(null),p=a.useRef(null),h=a.useRef(null),w=(0,c.s)(t,h,l.onViewportChange),y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;a.useEffect(()=>{let e=e=>{var t;0!==o.length&&o.every(t=>e[t]||e.code===t)&&(null===(t=h.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),a.useEffect(()=>{let e=u.current,t=h.current;if(x&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(k);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>{if(l.isClosePausedRef.current){let e=new CustomEvent(I);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||n()},a=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",a),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[x,l.isClosePausedRef]);let g=a.useCallback(e=>{let{tabbingDirection:t}=e,r=d().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[d]);return a.useEffect(()=>{let e=h.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,o,a;let r=document.activeElement,s=t.shiftKey;if(t.target===e&&s){null===(n=f.current)||void 0===n||n.focus();return}let i=g({tabbingDirection:s?"backwards":"forwards"}),l=i.findIndex(e=>e===r);$(i.slice(l+1))?t.preventDefault():s?null===(o=f.current)||void 0===o||o.focus():null===(a=p.current)||void 0===a||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[d,g]),(0,n.jsxs)(m.lg,{ref:u,role:"region","aria-label":s.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&(0,n.jsx)(M,{ref:f,onFocusFromOutsideViewport:()=>{$(g({tabbingDirection:"forwards"}))}}),(0,n.jsx)(E.Slot,{scope:r,children:(0,n.jsx)(v.sG.ol,{tabIndex:-1,...i,ref:w})}),x&&(0,n.jsx)(M,{ref:p,onFocusFromOutsideViewport:()=>{$(g({tabbingDirection:"backwards"}))}})]})});L.displayName=P;var D="ToastFocusProxy",M=a.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:o,...a}=e,s=R(D,r);return(0,n.jsx)(x.s,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null===(t=s.viewport)||void 0===t?void 0:t.contains(r))||o()}})});M.displayName=D;var O="Toast",_=a.forwardRef((e,t)=>{let{forceMount:r,open:o,defaultOpen:a,onOpenChange:s,...i}=e,[c=!0,d]=(0,w.i)({prop:o,defaultProp:a,onChange:s});return(0,n.jsx)(p.C,{present:r||c,children:(0,n.jsx)(V,{open:c,...i,ref:t,onClose:()=>d(!1),onPause:(0,h.c)(e.onPause),onResume:(0,h.c)(e.onResume),onSwipeStart:(0,l.m)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,l.m)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:(0,l.m)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,l.m)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),d(!1)})})})});_.displayName=O;var[F,K]=S(O,{onClose(){}}),V=a.forwardRef((e,t)=>{let{__scopeToast:r,type:o="foreground",duration:s,open:d,onClose:u,onEscapeKeyDown:f,onPause:p,onResume:w,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:g,onSwipeEnd:T,...b}=e,S=R(O,r),[C,N]=a.useState(null),j=(0,c.s)(t,e=>N(e)),P=a.useRef(null),A=a.useRef(null),L=s||S.duration,D=a.useRef(0),M=a.useRef(L),_=a.useRef(0),{onToastAdd:K,onToastRemove:V}=S,U=(0,h.c)(()=>{var e;(null==C?void 0:C.contains(document.activeElement))&&(null===(e=S.viewport)||void 0===e||e.focus()),u()}),X=a.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(_.current),D.current=new Date().getTime(),_.current=window.setTimeout(U,e))},[U]);a.useEffect(()=>{let e=S.viewport;if(e){let t=()=>{X(M.current),null==w||w()},r=()=>{let e=new Date().getTime()-D.current;M.current=M.current-e,window.clearTimeout(_.current),null==p||p()};return e.addEventListener(k,r),e.addEventListener(I,t),()=>{e.removeEventListener(k,r),e.removeEventListener(I,t)}}},[S.viewport,L,p,w,X]),a.useEffect(()=>{d&&!S.isClosePausedRef.current&&X(L)},[d,L,S.isClosePausedRef,X]),a.useEffect(()=>(K(),()=>V()),[K,V]);let z=a.useMemo(()=>C?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!n){if(o){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}}),r}(C):null,[C]);return S.viewport?(0,n.jsxs)(n.Fragment,{children:[z&&(0,n.jsx)(G,{__scopeToast:r,role:"status","aria-live":"foreground"===o?"assertive":"polite","aria-atomic":!0,children:z}),(0,n.jsx)(F,{scope:r,onClose:U,children:i.createPortal((0,n.jsx)(E.ItemSlot,{scope:r,children:(0,n.jsx)(m.bL,{asChild:!0,onEscapeKeyDown:(0,l.m)(f,()=>{S.isFocusedToastEscapeKeyDownRef.current||U(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,n.jsx)(v.sG.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":S.swipeDirection,...b,ref:j,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,l.m)(e.onKeyDown,e=>{"Escape"!==e.key||(null==f||f(e.nativeEvent),e.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,l.m)(e.onPointerDown,e=>{0===e.button&&(P.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,l.m)(e.onPointerMove,e=>{if(!P.current)return;let t=e.clientX-P.current.x,r=e.clientY-P.current.y,n=!!A.current,o=["left","right"].includes(S.swipeDirection),a=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,s=o?a(0,t):0,i=o?0:a(0,r),l="touch"===e.pointerType?10:2,c={x:s,y:i},d={originalEvent:e,delta:c};n?(A.current=c,Y("toast.swipeMove",x,d,{discrete:!1})):Z(c,S.swipeDirection,l)?(A.current=c,Y("toast.swipeStart",y,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(P.current=null)}),onPointerUp:(0,l.m)(e.onPointerUp,e=>{let t=A.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),A.current=null,P.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};Z(t,S.swipeDirection,S.swipeThreshold)?Y("toast.swipeEnd",T,n,{discrete:!0}):Y("toast.swipeCancel",g,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),G=e=>{let{__scopeToast:t,children:r,...o}=e,s=R(O,t),[i,l]=a.useState(!1),[c,d]=a.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,h.c)(e);(0,y.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>l(!0)),a.useEffect(()=>{let e=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(e)},[]),c?null:(0,n.jsx)(f.Z,{asChild:!0,children:(0,n.jsx)(x.s,{...o,children:i&&(0,n.jsxs)(n.Fragment,{children:[s.label," ",r]})})})},U=a.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e;return(0,n.jsx)(v.sG.div,{...o,ref:t})});U.displayName="ToastTitle";var X=a.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e;return(0,n.jsx)(v.sG.div,{...o,ref:t})});X.displayName="ToastDescription";var z="ToastAction",q=a.forwardRef((e,t)=>{let{altText:r,...o}=e;return r.trim()?(0,n.jsx)(J,{altText:r,asChild:!0,children:(0,n.jsx)(W,{...o,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(z,"`. Expected non-empty `string`.")),null)});q.displayName=z;var H="ToastClose",W=a.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e,a=K(H,r);return(0,n.jsx)(J,{asChild:!0,children:(0,n.jsx)(v.sG.button,{type:"button",...o,ref:t,onClick:(0,l.m)(e.onClick,a.onClose)})})});W.displayName=H;var J=a.forwardRef((e,t)=>{let{__scopeToast:r,altText:o,...a}=e;return(0,n.jsx)(v.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:t})});function Y(e,t,r,n){let{discrete:o}=n,a=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?(0,v.hO)(a,s):a.dispatchEvent(s)}var Z=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),o=Math.abs(e.y),a=n>o;return"left"===t||"right"===t?a&&n>r:!a&&o>r};function $(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Q=r(29395),B=r(22250);let ee=a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(L,{ref:t,className:(0,B.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...o})});ee.displayName=L.displayName;let et=(0,Q.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),er=a.forwardRef((e,t)=>{let{className:r,variant:o,...a}=e;return(0,n.jsx)(_,{ref:t,className:(0,B.cn)(et({variant:o}),r),...a})});er.displayName=_.displayName,a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(q,{ref:t,className:(0,B.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...o})}).displayName=q.displayName;let en=a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(W,{ref:t,className:(0,B.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...o,children:(0,n.jsx)(s.MKb,{className:"h-4 w-4"})})});en.displayName=W.displayName;let eo=a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(U,{ref:t,className:(0,B.cn)("text-sm font-semibold [&+div]:text-xs",r),...o})});eo.displayName=U.displayName;let ea=a.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(X,{ref:t,className:(0,B.cn)("text-sm opacity-90",r),...o})});function es(){let{toasts:e}=(0,o.dj)();return(0,n.jsxs)(j,{children:[e.map(function(e){let{id:t,title:r,description:o,action:a,...s}=e;return(0,n.jsxs)(er,{...s,children:[(0,n.jsxs)("div",{className:"grid gap-1",children:[r&&(0,n.jsx)(eo,{children:r}),o&&(0,n.jsx)(ea,{children:o})]}),a,(0,n.jsx)(en,{})]},t)}),(0,n.jsx)(ee,{})]})}ea.displayName=X.displayName},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>i,ZI:()=>d,k$:()=>c,m_:()=>l});var n=r(20475),o=r(20107),a=r(43048),s=r(22250);let i=a.Kq,l=a.bL,c=a.l9,d=o.forwardRef((e,t)=>{let{className:r,sideOffset:o=4,...i}=e;return(0,n.jsx)(a.UC,{ref:t,sideOffset:o,className:(0,s.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i})});d.displayName=a.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>m,oR:()=>u});var n=r(20107);let o=0,a=new Map,s=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?s(r):e.toasts.forEach(e=>{s(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,r=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>d({type:"DISMISS_TOAST",toastId:r});return d({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function m(){let[e,t]=n.useState(c);return n.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var n=r(64901),o=r(868);function a(){for(var e=arguments.length,t=Array(e),r=0;r{},25804:e=>{e.exports={style:{fontFamily:"'euclid', 'euclid Fallback'"},className:"__className_9dae3d"}},32474:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(20107),o=r(54379),a=r(64236),s=r(61837),i=r(20475);function l(e){let t=e+"CollectionProvider",[r,l]=(0,o.A)(t),[c,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:r})};u.displayName=t;let m=e+"CollectionSlot",f=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=d(m,r),l=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(s.DX,{ref:l,children:n})});f.displayName=m;let p=e+"CollectionItemSlot",v="data-radix-collection-item",h=n.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,c=n.useRef(null),u=(0,a.s)(t,c),m=d(p,r);return n.useEffect(()=>(m.itemMap.set(c,{ref:c,...l}),()=>void m.itemMap.delete(c))),(0,i.jsx)(s.DX,{[v]:"",ref:u,children:o})});return h.displayName=p,[{Provider:u,Slot:f,ItemSlot:h},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},91475:(e,t,r)=>{"use strict";r.d(t,{b:()=>i,s:()=>s});var n=r(20107),o=r(34544),a=r(20475),s=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));s.displayName="VisuallyHidden";var i=s},92159:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,N:()=>d});var n=r(20107),o=["light","dark"],a="(prefers-color-scheme: dark)",s="undefined"==typeof window,i=n.createContext(void 0),l={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(i))?e:l},d=e=>n.useContext(i)?e.children:n.createElement(m,{...e}),u=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:l=!0,storageKey:c="theme",themes:d=u,defaultTheme:m=s?"system":"light",attribute:w="data-theme",value:y,children:x,nonce:g}=e,[E,T]=n.useState(()=>p(c,m)),[b,S]=n.useState(()=>p(c)),C=y?Object.values(y):d,N=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&s&&(t=h());let n=y?y[t]:t,a=r?v():null,i=document.documentElement;if("class"===w?(i.classList.remove(...C),n&&i.classList.add(n)):n?i.setAttribute(w,n):i.removeAttribute(w),l){let e=o.includes(m)?m:null,r=o.includes(t)?t:e;i.style.colorScheme=r}null==a||a()},[]),R=n.useCallback(e=>{let t="function"==typeof e?e(e):e;T(t);try{localStorage.setItem(c,t)}catch(e){}},[t]),j=n.useCallback(e=>{S(h(e)),"system"===E&&s&&!t&&N("system")},[E,t]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(j),j(e),()=>e.removeListener(j)},[j]),n.useEffect(()=>{let e=e=>{e.key===c&&R(e.newValue||m)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[R]),n.useEffect(()=>{N(null!=t?t:E)},[t,E]);let P=n.useMemo(()=>({theme:E,setTheme:R,forcedTheme:t,resolvedTheme:"system"===E?b:E,themes:s?[...d,"system"]:d,systemTheme:s?b:void 0}),[E,R,t,b,s,d]);return n.createElement(i.Provider,{value:P},n.createElement(f,{forcedTheme:t,disableTransitionOnChange:r,enableSystem:s,enableColorScheme:l,storageKey:c,themes:d,defaultTheme:m,attribute:w,value:y,children:x,attrs:C,nonce:g}),x)},f=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:s,enableSystem:i,enableColorScheme:l,defaultTheme:c,value:d,attrs:u,nonce:m}=e,f="system"===c,p="class"===s?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(u.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(s,"',s='setAttribute';"),v=l?(o.includes(c)?c:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(c,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=d?d[e]:e,a=t?e+"|| ''":"'".concat(n,"'"),i="";return l&&r&&!t&&o.includes(e)&&(i+="d.style.colorScheme = '".concat(e,"';")),"class"===s?t||n?i+="c.add(".concat(a,")"):i+="null":n&&(i+="d[s](n,".concat(a,")")),i},w=t?"!function(){".concat(p).concat(h(t),"}()"):i?"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(r,"');if('system'===e||(!e&&").concat(f,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(h("dark"),"}else{").concat(h("light"),"}}else if(e){").concat(d?"var x=".concat(JSON.stringify(d),";"):"").concat(h(d?"x[e]":"e",!0),"}").concat(f?"":"else{"+h(c,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(r,"');if(e){").concat(d?"var x=".concat(JSON.stringify(d),";"):"").concat(h(d?"x[e]":"e",!0),"}else{").concat(h(c,!1,!1),";}").concat(v,"}catch(t){}}();");return n.createElement("script",{nonce:m,dangerouslySetInnerHTML:{__html:w}})}),p=(e,t)=>{let r;if(!s){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}},e=>{var t=t=>e(e.s=t);e.O(0,[3752,9980,7780,8885,7563,3048,191,6035,7358],()=>t(5330)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-d2d09d351eda8964.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-d2d09d351eda8964.js new file mode 100644 index 0000000..d86b57c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-d2d09d351eda8964.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{5330:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,22670,23)),Promise.resolve().then(r.bind(r,74347)),Promise.resolve().then(r.bind(r,62825)),Promise.resolve().then(r.bind(r,85014)),Promise.resolve().then(r.t.bind(r,25804,23))},74347:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>s});var n=r(20475);r(20107);var o=r(92159);function s(e){let{children:t,...r}=e;return(0,n.jsx)(o.N,{...r,children:t})}},62825:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>ea});var n=r(20475),o=r(32857),s=r(20107),a=r(7197),i=r(25642),d=r(94521),l=r(64236),u=r(32474),c=r(45170),p=r(55302),f=r(41913),v=r(54245),m=r(34544),w=r(46774),x=r(13061),y=r(54122),h=r(91475),g="ToastProvider",[E,T,b]=(0,u.N)("Toast"),[N,P]=(0,c.A)("Toast",[b]),[R,j]=N(g),C=e=>{let{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:d}=e,[l,u]=s.useState(null),[c,p]=s.useState(0),f=s.useRef(!1),v=s.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(g,"`. Expected non-empty `string`.")),(0,n.jsx)(E.Provider,{scope:t,children:(0,n.jsx)(R,{scope:t,label:r,duration:o,swipeDirection:a,swipeThreshold:i,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:s.useCallback(()=>p(e=>e+1),[]),onToastRemove:s.useCallback(()=>p(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:v,children:d})})};C.displayName=g;var S="ToastViewport",A=["F8"],D="toast.viewportPause",I="toast.viewportResume",L=s.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:o=A,label:a="Notifications ({hotkey})",...i}=e,d=j(S,r),u=T(r),c=s.useRef(null),f=s.useRef(null),v=s.useRef(null),w=s.useRef(null),x=(0,l.s)(t,w,d.onViewportChange),y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=d.toastCount>0;s.useEffect(()=>{let e=e=>{var t;0!==o.length&&o.every(t=>e[t]||e.code===t)&&(null===(t=w.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),s.useEffect(()=>{let e=c.current,t=w.current;if(h&&e&&t){let r=()=>{if(!d.isClosePausedRef.current){let e=new CustomEvent(D);t.dispatchEvent(e),d.isClosePausedRef.current=!0}},n=()=>{if(d.isClosePausedRef.current){let e=new CustomEvent(I);t.dispatchEvent(e),d.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[h,d.isClosePausedRef]);let g=s.useCallback(e=>{let{tabbingDirection:t}=e,r=u().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[u]);return s.useEffect(()=>{let e=w.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,o,s;let r=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null===(n=f.current)||void 0===n||n.focus();return}let i=g({tabbingDirection:a?"backwards":"forwards"}),d=i.findIndex(e=>e===r);Q(i.slice(d+1))?t.preventDefault():a?null===(o=f.current)||void 0===o||o.focus():null===(s=v.current)||void 0===s||s.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[u,g]),(0,n.jsxs)(p.lg,{ref:c,role:"region","aria-label":a.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:h?void 0:"none"},children:[h&&(0,n.jsx)(_,{ref:f,onFocusFromOutsideViewport:()=>{Q(g({tabbingDirection:"forwards"}))}}),(0,n.jsx)(E.Slot,{scope:r,children:(0,n.jsx)(m.sG.ol,{tabIndex:-1,...i,ref:x})}),h&&(0,n.jsx)(_,{ref:v,onFocusFromOutsideViewport:()=>{Q(g({tabbingDirection:"backwards"}))}})]})});L.displayName=S;var F="ToastFocusProxy",_=s.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:o,...s}=e,a=j(F,r);return(0,n.jsx)(h.s,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null===(t=a.viewport)||void 0===t?void 0:t.contains(r))||o()}})});_.displayName=F;var k="Toast",M=s.forwardRef((e,t)=>{let{forceMount:r,open:o,defaultOpen:s,onOpenChange:a,...i}=e,[l=!0,u]=(0,x.i)({prop:o,defaultProp:s,onChange:a});return(0,n.jsx)(v.C,{present:r||l,children:(0,n.jsx)(V,{open:l,...i,ref:t,onClose:()=>u(!1),onPause:(0,w.c)(e.onPause),onResume:(0,w.c)(e.onResume),onSwipeStart:(0,d.m)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,d.m)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:(0,d.m)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,d.m)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),u(!1)})})})});M.displayName=k;var[O,K]=N(k,{onClose(){}}),V=s.forwardRef((e,t)=>{let{__scopeToast:r,type:o="foreground",duration:a,open:u,onClose:c,onEscapeKeyDown:f,onPause:v,onResume:x,onSwipeStart:y,onSwipeMove:h,onSwipeCancel:g,onSwipeEnd:T,...b}=e,N=j(k,r),[P,R]=s.useState(null),C=(0,l.s)(t,e=>R(e)),S=s.useRef(null),A=s.useRef(null),L=a||N.duration,F=s.useRef(0),_=s.useRef(L),M=s.useRef(0),{onToastAdd:K,onToastRemove:V}=N,U=(0,w.c)(()=>{var e;(null==P?void 0:P.contains(document.activeElement))&&(null===(e=N.viewport)||void 0===e||e.focus()),c()}),z=s.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(M.current),F.current=new Date().getTime(),M.current=window.setTimeout(U,e))},[U]);s.useEffect(()=>{let e=N.viewport;if(e){let t=()=>{z(_.current),null==x||x()},r=()=>{let e=new Date().getTime()-F.current;_.current=_.current-e,window.clearTimeout(M.current),null==v||v()};return e.addEventListener(D,r),e.addEventListener(I,t),()=>{e.removeEventListener(D,r),e.removeEventListener(I,t)}}},[N.viewport,L,v,x,z]),s.useEffect(()=>{u&&!N.isClosePausedRef.current&&z(L)},[u,L,N.isClosePausedRef,z]),s.useEffect(()=>(K(),()=>V()),[K,V]);let X=s.useMemo(()=>P?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!n){if(o){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}}),r}(P):null,[P]);return N.viewport?(0,n.jsxs)(n.Fragment,{children:[X&&(0,n.jsx)(G,{__scopeToast:r,role:"status","aria-live":"foreground"===o?"assertive":"polite","aria-atomic":!0,children:X}),(0,n.jsx)(O,{scope:r,onClose:U,children:i.createPortal((0,n.jsx)(E.ItemSlot,{scope:r,children:(0,n.jsx)(p.bL,{asChild:!0,onEscapeKeyDown:(0,d.m)(f,()=>{N.isFocusedToastEscapeKeyDownRef.current||U(),N.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,n.jsx)(m.sG.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":N.swipeDirection,...b,ref:C,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,d.m)(e.onKeyDown,e=>{"Escape"!==e.key||(null==f||f(e.nativeEvent),e.nativeEvent.defaultPrevented||(N.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,d.m)(e.onPointerDown,e=>{0===e.button&&(S.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,d.m)(e.onPointerMove,e=>{if(!S.current)return;let t=e.clientX-S.current.x,r=e.clientY-S.current.y,n=!!A.current,o=["left","right"].includes(N.swipeDirection),s=["left","up"].includes(N.swipeDirection)?Math.min:Math.max,a=o?s(0,t):0,i=o?0:s(0,r),d="touch"===e.pointerType?10:2,l={x:a,y:i},u={originalEvent:e,delta:l};n?(A.current=l,Z("toast.swipeMove",h,u,{discrete:!1})):$(l,N.swipeDirection,d)?(A.current=l,Z("toast.swipeStart",y,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>d||Math.abs(r)>d)&&(S.current=null)}),onPointerUp:(0,d.m)(e.onPointerUp,e=>{let t=A.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),A.current=null,S.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};$(t,N.swipeDirection,N.swipeThreshold)?Z("toast.swipeEnd",T,n,{discrete:!0}):Z("toast.swipeCancel",g,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),N.viewport)})]}):null}),G=e=>{let{__scopeToast:t,children:r,...o}=e,a=j(k,t),[i,d]=s.useState(!1),[l,u]=s.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,w.c)(e);(0,y.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>d(!0)),s.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,n.jsx)(f.Z,{asChild:!0,children:(0,n.jsx)(h.s,{...o,children:i&&(0,n.jsxs)(n.Fragment,{children:[a.label," ",r]})})})},U=s.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e;return(0,n.jsx)(m.sG.div,{...o,ref:t})});U.displayName="ToastTitle";var z=s.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e;return(0,n.jsx)(m.sG.div,{...o,ref:t})});z.displayName="ToastDescription";var X="ToastAction",q=s.forwardRef((e,t)=>{let{altText:r,...o}=e;return r.trim()?(0,n.jsx)(Y,{altText:r,asChild:!0,children:(0,n.jsx)(W,{...o,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(X,"`. Expected non-empty `string`.")),null)});q.displayName=X;var H="ToastClose",W=s.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e,s=K(H,r);return(0,n.jsx)(Y,{asChild:!0,children:(0,n.jsx)(m.sG.button,{type:"button",...o,ref:t,onClick:(0,d.m)(e.onClick,s.onClose)})})});W.displayName=H;var Y=s.forwardRef((e,t)=>{let{__scopeToast:r,altText:o,...s}=e;return(0,n.jsx)(m.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...s,ref:t})});function Z(e,t,r,n){let{discrete:o}=n,s=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),o?(0,m.hO)(s,a):s.dispatchEvent(a)}var $=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),o=Math.abs(e.y),s=n>o;return"left"===t||"right"===t?s&&n>r:!s&&o>r};function Q(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var B=r(29395),J=r(22250);let ee=s.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(L,{ref:t,className:(0,J.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...o})});ee.displayName=L.displayName;let et=(0,B.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),er=s.forwardRef((e,t)=>{let{className:r,variant:o,...s}=e;return(0,n.jsx)(M,{ref:t,className:(0,J.cn)(et({variant:o}),r),...s})});er.displayName=M.displayName,s.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(q,{ref:t,className:(0,J.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...o})}).displayName=q.displayName;let en=s.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(W,{ref:t,className:(0,J.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...o,children:(0,n.jsx)(a.MKb,{className:"h-4 w-4"})})});en.displayName=W.displayName;let eo=s.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(U,{ref:t,className:(0,J.cn)("text-sm font-semibold [&+div]:text-xs",r),...o})});eo.displayName=U.displayName;let es=s.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(z,{ref:t,className:(0,J.cn)("text-sm opacity-90",r),...o})});function ea(){let{toasts:e}=(0,o.dj)();return(0,n.jsxs)(C,{children:[e.map(function(e){let{id:t,title:r,description:o,action:s,...a}=e;return(0,n.jsxs)(er,{...a,children:[(0,n.jsxs)("div",{className:"grid gap-1",children:[r&&(0,n.jsx)(eo,{children:r}),o&&(0,n.jsx)(es,{children:o})]}),s,(0,n.jsx)(en,{})]},t)}),(0,n.jsx)(ee,{})]})}es.displayName=z.displayName},85014:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>i,ZI:()=>u,k$:()=>l,m_:()=>d});var n=r(20475),o=r(20107),s=r(43048),a=r(22250);let i=s.Kq,d=s.bL,l=s.l9,u=o.forwardRef((e,t)=>{let{className:r,sideOffset:o=4,...i}=e;return(0,n.jsx)(s.UC,{ref:t,sideOffset:o,className:(0,a.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i})});u.displayName=s.UC.displayName},32857:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>c});var n=r(20107);let o=0,s=new Map,a=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),u({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?a(r):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function u(e){l=i(l,e),d.forEach(e=>{e(l)})}function c(e){let{...t}=e,r=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>u({type:"DISMISS_TOAST",toastId:r});return u({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>u({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=n.useState(l);return n.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>u({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>s});var n=r(64901),o=r(868);function s(){for(var e=arguments.length,t=Array(e),r=0;r{},25804:e=>{e.exports={style:{fontFamily:"'euclid', 'euclid Fallback'"},className:"__className_9dae3d"}},91475:(e,t,r)=>{"use strict";r.d(t,{b:()=>i,s:()=>a});var n=r(20107),o=r(34544),s=r(20475),a=n.forwardRef((e,t)=>(0,s.jsx)(o.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var i=a}},e=>{var t=t=>e(e.s=t);e.O(0,[3752,9980,7780,8885,3746,3048,2682,191,6035,7358],()=>t(5330)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-8c9ad50fe1258639.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-8c9ad50fe1258639.js new file mode 100644 index 0000000..c4694cd --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-8c9ad50fe1258639.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{91662:(e,t,s)=>{Promise.resolve().then(s.bind(s,25274))},25274:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var r=s(20475),n=s(20107),a=s(19546),o=s(14629),i=s(42541),l=s(64219),d=s(49153),c=s(32857),u=s(114);let f=()=>{let{toast:e}=(0,c.dj)(),[t,s]=(0,n.useState)(""),[f,h]=(0,n.useState)(""),{login:m}=(0,a.A)(),p=async e=>{e.preventDefault(),await m(t)||h("Invalid password")};return(0,r.jsxs)("div",{className:"w-full h-screen lg:grid lg:min-h-[600px] lg:grid-cols-2 gap-4 xl:min-h-[800px]",children:[(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsxs)("div",{className:"mx-auto grid w-[350px] gap-12",children:[(0,r.jsxs)("div",{className:"grid gap-2 text-center",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold",children:"Login to QuecManager"}),(0,r.jsx)("p",{className:"text-balance text-muted-foreground",children:"Enter your password to login"})]}),(0,r.jsxs)("form",{onSubmit:p,children:[(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(d.J,{htmlFor:"password",children:"Password"})}),(0,r.jsx)(l.p,{id:"password",type:"password",required:!0,value:t,onChange:e=>s(e.target.value)}),(0,r.jsx)(i.$,{variant:"link",type:"button",className:"ml-auto inline-block text-sm underline text-white",onClick:()=>{e({variant:"destructive",title:"Forgot your password?",description:"Use the toolkit script to create a new password.",action:(0,r.jsx)(u.A,{})})},children:"Forgot your password?"})]}),(0,r.jsx)(i.$,{type:"submit",className:"w-full",children:"Login"})]}),f&&(0,r.jsx)("div",{className:"bg-rose-500 p-1 mt-2 rounded-md flex text-center justify-center items-center",children:(0,r.jsx)("p",{children:f})})]})]})}),(0,r.jsx)("div",{className:"hidden bg-muted lg:block",children:(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,r.jsx)(o.default,{src:"/login-logo.svg",alt:"Image",width:"1000",height:"1000",className:"h-[50%] w-[40%] object-contain"})})})]})}},114:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r=s(20475),n=s(42541),a=s(7197);let o=()=>(0,r.jsx)(n.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,r.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,r.jsx)(a.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>l});var r=s(20475),n=s(20107),a=s(61837),o=s(29395),i=s(22250);let l=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:s,variant:n,size:o,asChild:d=!1,...c}=e,u=d?a.DX:"button";return(0,r.jsx)(u,{className:(0,i.cn)(l({variant:n,size:o,className:s})),ref:t,...c})});d.displayName="Button"},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>o});var r=s(20475),n=s(20107),a=s(22250);let o=n.forwardRef((e,t)=>{let{className:s,type:n,...o}=e;return(0,r.jsx)("input",{type:n,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...o})});o.displayName="Input"},49153:(e,t,s)=>{"use strict";s.d(t,{J:()=>d});var r=s(20475),n=s(20107),a=s(21840),o=s(29395),i=s(22250);let l=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)(a.b,{ref:t,className:(0,i.cn)(l(),s),...n})});d.displayName=a.b.displayName},19546:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(20107),n=s(16118);function a(){let[e,t]=(0,r.useState)(!1),[s,a]=(0,r.useState)(!0),o=(0,n.useRouter)();async function i(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){l();return}(await e.json()).alive?a(!0):l()}catch(e){l()}}function l(){a(!1),c()}function d(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function c(){localStorage.removeItem("session"),t(!1),o.push("/login")}function u(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(c(),!1):(t-e.lastActivity>3e5&&d(e.token),!0)}();return t(e),e}return(0,r.useEffect)(()=>{u();let e=setInterval(i,5e3);return()=>{clearInterval(e)}},[]),{isAuthenticated:e,isServerAlive:s,login:async function(e){let s=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(s)}),r=await e.json();if(console.log(r),"success"!==r.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return d(e),t(!0),o.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:c,checkAuth:u}}},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var r=s(20107);let n=0,a=new Map,o=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?o(s):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=r.useState(d);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>a});var r=s(64901),n=s(868);function a(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[9980,7780,6765,191,6035,7358],()=>t(91662)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-aba8e30780334055.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-aba8e30780334055.js new file mode 100644 index 0000000..c4694cd --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-aba8e30780334055.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{91662:(e,t,s)=>{Promise.resolve().then(s.bind(s,25274))},25274:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var r=s(20475),n=s(20107),a=s(19546),o=s(14629),i=s(42541),l=s(64219),d=s(49153),c=s(32857),u=s(114);let f=()=>{let{toast:e}=(0,c.dj)(),[t,s]=(0,n.useState)(""),[f,h]=(0,n.useState)(""),{login:m}=(0,a.A)(),p=async e=>{e.preventDefault(),await m(t)||h("Invalid password")};return(0,r.jsxs)("div",{className:"w-full h-screen lg:grid lg:min-h-[600px] lg:grid-cols-2 gap-4 xl:min-h-[800px]",children:[(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsxs)("div",{className:"mx-auto grid w-[350px] gap-12",children:[(0,r.jsxs)("div",{className:"grid gap-2 text-center",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold",children:"Login to QuecManager"}),(0,r.jsx)("p",{className:"text-balance text-muted-foreground",children:"Enter your password to login"})]}),(0,r.jsxs)("form",{onSubmit:p,children:[(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(d.J,{htmlFor:"password",children:"Password"})}),(0,r.jsx)(l.p,{id:"password",type:"password",required:!0,value:t,onChange:e=>s(e.target.value)}),(0,r.jsx)(i.$,{variant:"link",type:"button",className:"ml-auto inline-block text-sm underline text-white",onClick:()=>{e({variant:"destructive",title:"Forgot your password?",description:"Use the toolkit script to create a new password.",action:(0,r.jsx)(u.A,{})})},children:"Forgot your password?"})]}),(0,r.jsx)(i.$,{type:"submit",className:"w-full",children:"Login"})]}),f&&(0,r.jsx)("div",{className:"bg-rose-500 p-1 mt-2 rounded-md flex text-center justify-center items-center",children:(0,r.jsx)("p",{children:f})})]})]})}),(0,r.jsx)("div",{className:"hidden bg-muted lg:block",children:(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,r.jsx)(o.default,{src:"/login-logo.svg",alt:"Image",width:"1000",height:"1000",className:"h-[50%] w-[40%] object-contain"})})})]})}},114:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r=s(20475),n=s(42541),a=s(7197);let o=()=>(0,r.jsx)(n.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,r.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,r.jsx)(a.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>l});var r=s(20475),n=s(20107),a=s(61837),o=s(29395),i=s(22250);let l=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:s,variant:n,size:o,asChild:d=!1,...c}=e,u=d?a.DX:"button";return(0,r.jsx)(u,{className:(0,i.cn)(l({variant:n,size:o,className:s})),ref:t,...c})});d.displayName="Button"},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>o});var r=s(20475),n=s(20107),a=s(22250);let o=n.forwardRef((e,t)=>{let{className:s,type:n,...o}=e;return(0,r.jsx)("input",{type:n,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...o})});o.displayName="Input"},49153:(e,t,s)=>{"use strict";s.d(t,{J:()=>d});var r=s(20475),n=s(20107),a=s(21840),o=s(29395),i=s(22250);let l=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)(a.b,{ref:t,className:(0,i.cn)(l(),s),...n})});d.displayName=a.b.displayName},19546:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(20107),n=s(16118);function a(){let[e,t]=(0,r.useState)(!1),[s,a]=(0,r.useState)(!0),o=(0,n.useRouter)();async function i(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){l();return}(await e.json()).alive?a(!0):l()}catch(e){l()}}function l(){a(!1),c()}function d(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function c(){localStorage.removeItem("session"),t(!1),o.push("/login")}function u(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(c(),!1):(t-e.lastActivity>3e5&&d(e.token),!0)}();return t(e),e}return(0,r.useEffect)(()=>{u();let e=setInterval(i,5e3);return()=>{clearInterval(e)}},[]),{isAuthenticated:e,isServerAlive:s,login:async function(e){let s=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(s)}),r=await e.json();if(console.log(r),"success"!==r.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return d(e),t(!0),o.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:c,checkAuth:u}}},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var r=s(20107);let n=0,a=new Map,o=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?o(s):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=r.useState(d);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>a});var r=s(64901),n=s(868);function a(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[9980,7780,6765,191,6035,7358],()=>t(91662)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-d0e3b3ab931e2b84.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-d0e3b3ab931e2b84.js new file mode 100644 index 0000000..c4694cd --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-d0e3b3ab931e2b84.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{91662:(e,t,s)=>{Promise.resolve().then(s.bind(s,25274))},25274:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var r=s(20475),n=s(20107),a=s(19546),o=s(14629),i=s(42541),l=s(64219),d=s(49153),c=s(32857),u=s(114);let f=()=>{let{toast:e}=(0,c.dj)(),[t,s]=(0,n.useState)(""),[f,h]=(0,n.useState)(""),{login:m}=(0,a.A)(),p=async e=>{e.preventDefault(),await m(t)||h("Invalid password")};return(0,r.jsxs)("div",{className:"w-full h-screen lg:grid lg:min-h-[600px] lg:grid-cols-2 gap-4 xl:min-h-[800px]",children:[(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsxs)("div",{className:"mx-auto grid w-[350px] gap-12",children:[(0,r.jsxs)("div",{className:"grid gap-2 text-center",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold",children:"Login to QuecManager"}),(0,r.jsx)("p",{className:"text-balance text-muted-foreground",children:"Enter your password to login"})]}),(0,r.jsxs)("form",{onSubmit:p,children:[(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(d.J,{htmlFor:"password",children:"Password"})}),(0,r.jsx)(l.p,{id:"password",type:"password",required:!0,value:t,onChange:e=>s(e.target.value)}),(0,r.jsx)(i.$,{variant:"link",type:"button",className:"ml-auto inline-block text-sm underline text-white",onClick:()=>{e({variant:"destructive",title:"Forgot your password?",description:"Use the toolkit script to create a new password.",action:(0,r.jsx)(u.A,{})})},children:"Forgot your password?"})]}),(0,r.jsx)(i.$,{type:"submit",className:"w-full",children:"Login"})]}),f&&(0,r.jsx)("div",{className:"bg-rose-500 p-1 mt-2 rounded-md flex text-center justify-center items-center",children:(0,r.jsx)("p",{children:f})})]})]})}),(0,r.jsx)("div",{className:"hidden bg-muted lg:block",children:(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,r.jsx)(o.default,{src:"/login-logo.svg",alt:"Image",width:"1000",height:"1000",className:"h-[50%] w-[40%] object-contain"})})})]})}},114:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r=s(20475),n=s(42541),a=s(7197);let o=()=>(0,r.jsx)(n.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,r.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,r.jsx)(a.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},42541:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>l});var r=s(20475),n=s(20107),a=s(61837),o=s(29395),i=s(22250);let l=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:s,variant:n,size:o,asChild:d=!1,...c}=e,u=d?a.DX:"button";return(0,r.jsx)(u,{className:(0,i.cn)(l({variant:n,size:o,className:s})),ref:t,...c})});d.displayName="Button"},64219:(e,t,s)=>{"use strict";s.d(t,{p:()=>o});var r=s(20475),n=s(20107),a=s(22250);let o=n.forwardRef((e,t)=>{let{className:s,type:n,...o}=e;return(0,r.jsx)("input",{type:n,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...o})});o.displayName="Input"},49153:(e,t,s)=>{"use strict";s.d(t,{J:()=>d});var r=s(20475),n=s(20107),a=s(21840),o=s(29395),i=s(22250);let l=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)(a.b,{ref:t,className:(0,i.cn)(l(),s),...n})});d.displayName=a.b.displayName},19546:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(20107),n=s(16118);function a(){let[e,t]=(0,r.useState)(!1),[s,a]=(0,r.useState)(!0),o=(0,n.useRouter)();async function i(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){l();return}(await e.json()).alive?a(!0):l()}catch(e){l()}}function l(){a(!1),c()}function d(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function c(){localStorage.removeItem("session"),t(!1),o.push("/login")}function u(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(c(),!1):(t-e.lastActivity>3e5&&d(e.token),!0)}();return t(e),e}return(0,r.useEffect)(()=>{u();let e=setInterval(i,5e3);return()=>{clearInterval(e)}},[]),{isAuthenticated:e,isServerAlive:s,login:async function(e){let s=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(s)}),r=await e.json();if(console.log(r),"success"!==r.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return d(e),t(!0),o.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:c,checkAuth:u}}},32857:(e,t,s)=>{"use strict";s.d(t,{dj:()=>f,oR:()=>u});var r=s(20107);let n=0,a=new Map,o=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?o(s):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,s=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function f(){let[e,t]=r.useState(d);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},22250:(e,t,s)=>{"use strict";s.d(t,{cn:()=>a});var r=s(64901),n=s(868);function a(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[9980,7780,6765,191,6035,7358],()=>t(91662)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-eedf1e77aa500881.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-eedf1e77aa500881.js deleted file mode 100644 index a5b69a4..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/login/page-eedf1e77aa500881.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{38950:(e,t,s)=>{Promise.resolve().then(s.bind(s,42386))},42386:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var r=s(95155),n=s(12115),a=s(99378),o=s(5565),i=s(14085),l=s(9955),c=s(15785),d=s(20241),u=s(34330),h=s(91724);let f=()=>{let{toast:e}=(0,d.dj)(),[t,s]=(0,n.useState)(""),[f,m]=(0,n.useState)(""),{login:p,logout:g}=(0,a.A)(),{isServerAlive:v}=(0,h.A)();(0,n.useEffect)(()=>{v||g()},[v,g]);let x=async e=>{e.preventDefault(),await p(t)||m("Invalid password")};return(0,r.jsxs)("div",{className:"w-full h-screen lg:grid lg:min-h-[600px] lg:grid-cols-2 gap-4 xl:min-h-[800px]",children:[(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsxs)("div",{className:"mx-auto grid w-[350px] gap-12",children:[(0,r.jsxs)("div",{className:"grid gap-2 text-center",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold",children:"Login to QuecManager"}),(0,r.jsx)("p",{className:"text-balance text-muted-foreground",children:"Enter your password to login"})]}),(0,r.jsxs)("form",{onSubmit:x,children:[(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(c.J,{htmlFor:"password",children:"Password"})}),(0,r.jsx)(l.p,{id:"password",type:"password",required:!0,value:t,onChange:e=>s(e.target.value)}),(0,r.jsx)(i.$,{variant:"link",type:"button",className:"ml-auto inline-block text-sm underline text-white",onClick:()=>{e({variant:"destructive",title:"Forgot your password?",description:"Use the toolkit script to create a new password.",action:(0,r.jsx)(u.A,{})})},children:"Forgot your password?"})]}),(0,r.jsx)(i.$,{type:"submit",className:"w-full",children:"Login"})]}),f&&(0,r.jsx)("div",{className:"bg-rose-500 p-1 mt-2 rounded-md flex text-center justify-center items-center",children:(0,r.jsx)("p",{children:f})})]})]})}),(0,r.jsx)("div",{className:"hidden bg-muted lg:block",children:(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,r.jsx)(o.default,{src:"/login-logo.svg",alt:"Image",width:"1000",height:"1000",className:"h-[50%] w-[40%] object-contain"})})})]})}},34330:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r=s(95155),n=s(14085),a=s(87365);let o=()=>(0,r.jsx)(n.$,{asChild:!0,variant:"outline",className:"ml-2",children:(0,r.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,r.jsx)(a.ERf,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},14085:(e,t,s)=>{"use strict";s.d(t,{$:()=>c,r:()=>l});var r=s(95155),n=s(12115),a=s(12317),o=s(31027),i=s(29602);let l=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:s,variant:n,size:o,asChild:c=!1,...d}=e,u=c?a.DX:"button";return(0,r.jsx)(u,{className:(0,i.cn)(l({variant:n,size:o,className:s})),ref:t,...d})});c.displayName="Button"},9955:(e,t,s)=>{"use strict";s.d(t,{p:()=>o});var r=s(95155),n=s(12115),a=s(29602);let o=n.forwardRef((e,t)=>{let{className:s,type:n,...o}=e;return(0,r.jsx)("input",{type:n,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...o})});o.displayName="Input"},15785:(e,t,s)=>{"use strict";s.d(t,{J:()=>c});var r=s(95155),n=s(12115),a=s(46195),o=s(31027),i=s(29602);let l=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)(a.b,{ref:t,className:(0,i.cn)(l(),s),...n})});c.displayName=a.b.displayName},99378:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(12115),n=s(76046);function a(){let[e,t]=(0,r.useState)(!1),s=(0,n.useRouter)();function a(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}async function o(){localStorage.removeItem("session"),t(!1),fetch("/cgi-bin/quecmanager/logout.sh",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"".concat(localStorage.getItem("authToken"))}}),localStorage.removeItem("authToken"),s.push("/login")}function i(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(o(),!1):(t-e.lastActivity>3e5&&a(e.token),!0)}();return t(e),e}return(0,r.useEffect)(()=>{i()},[]),{isAuthenticated:e,login:async function(e){let r=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(r)}),n=await e.json();if(console.log(n),"success"!==n.state)return!1;{(null==n?void 0:n.token)&&localStorage.setItem("authToken",n.token);let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return a(e),t(!0),s.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:o,checkAuth:i}}},91724:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(12115),n=s(99378);let a=()=>{let[e,t]=(0,r.useState)(!0),{logout:s}=(0,n.A)();async function a(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){o();return}(await e.json()).alive?t(!0):o()}catch(e){o()}}function o(){t(!1),s()}return(0,r.useEffect)(()=>{let e=setInterval(a,5e3);return()=>{clearInterval(e)}},[]),{isServerAlive:e}}},20241:(e,t,s)=>{"use strict";s.d(t,{dj:()=>h,oR:()=>u});var r=s(12115);let n=0,a=new Map,o=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?o(s):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,s=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>d({type:"DISMISS_TOAST",toastId:s});return d({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function h(){let[e,t]=r.useState(c);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},29602:(e,t,s)=>{"use strict";s.d(t,{cn:()=>a});var r=s(43463),n=s(69795);function a(){for(var e=arguments.length,t=Array(e),s=0;s{var t=t=>e(e.s=t);e.O(0,[5105,1365,1048,8441,1517,7358],()=>t(38950)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-10e0ca37ba458321.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-10e0ca37ba458321.js new file mode 100644 index 0000000..4b6ee48 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-10e0ca37ba458321.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{47143:(e,t,r)=>{Promise.resolve().then(r.bind(r,69363))},69363:(e,t,r)=>{"use strict";r.d(t,{default:()=>R});var a=r(20475),n=r(20107),s=r(90805),l=r(17255),o=r(4538),i=r(41797),d=r(98456),c=(0,s.gu)({chartName:"BarChart",GraphicalChild:l.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:i.h}],formatAxisMap:d.pr}),u=r(72167),m=r(36760),f=r(42541),x=r(9477),p=r.n(x),h=r(1307),v=r(76554),g=r(7197),N=r(92159),b=r(86118);function y(){let{setTheme:e}=(0,N.D)();return(0,a.jsxs)(b.rI,{children:[(0,a.jsx)(b.ty,{asChild:!0,children:(0,a.jsxs)(f.$,{variant:"outline",size:"icon",children:[(0,a.jsx)(g.gLX,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(g.rRK,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(b.SQ,{align:"end",children:[(0,a.jsx)(b._2,{onClick:()=>e("light"),children:"Light"}),(0,a.jsx)(b._2,{onClick:()=>e("dark"),children:"Dark"}),(0,a.jsx)(b._2,{onClick:()=>e("system"),children:"System"})]})]})}let j={rsrp:{min:-140,max:-70},rsrq:{min:-20,max:-10},sinr:{min:0,max:20}},w=(e,t)=>{let r=j[e];return Math.min(Math.max(Math.round(10*((Math.max(Math.min(t,r.max),r.min)-r.min)/(r.max-r.min)*100))/10,0),100)},k=e=>{if(!e)return null;let t=e.map(Number).filter(e=>-32768!==e&&5!==e&&-140!==e);return 0===t.length?null:Math.round(t.reduce((e,t)=>e+t,0)/t.length)};function R(){var e,t,r;let[s,d]=(0,n.useState)({rsrp:null,rsrq:null,sinr:null,networkType:"",bands:null,networkName:""}),[x,N]=(0,n.useState)(!0),b=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=5"),t=await e.json();if(console.log(t),t){let e={rsrp:k(t[0].response.match(/-?\d+/g)),rsrq:k(t[1].response.match(/-?\d+/g)),sinr:k(t[2].response.match(/-?\d+/g)),networkType:"",bands:null,networkName:""};console.log(e);let r=t[3].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),a=null==r?void 0:r.some(e=>e.includes("LTE")),n=null==r?void 0:r.some(e=>e.includes("NR5G"));e.networkType=a&&n?"NR5G-NSA":a?"LTE":n?"NR5G-SA":"No Signal";let s=null==r?void 0:r.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0);e.bands=s?s.join(", "):"No Signal",e.networkName=t[4].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"No Signal",d(e),b.current=e}}catch(e){console.error("Error fetching stats:",e)}finally{x&&N(!1)}};e();let t=setInterval(e,2e3);return()=>clearInterval(t)},[x]);let j=[{activity:"rsrp",value:null!==s.rsrp?w("rsrp",s.rsrp):0,label:null!==s.rsrp?"".concat(s.rsrp.toFixed(1)," dBm"):"No Signal",fill:"hsl(var(--chart-1))"},{activity:"rsrq",value:null!==s.rsrq?w("rsrq",s.rsrq):0,label:null!==s.rsrq?"".concat(s.rsrq.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-2))"},{activity:"sinr",value:null!==s.sinr?w("sinr",s.sinr):0,label:null!==s.sinr?"".concat(s.sinr.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-3))"}];return(0,a.jsxs)(u.Zp,{className:"xl:max-w-xl xl:w-[800px] max-w-sm",children:[(0,a.jsx)(u.aR,{children:(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)(u.ZB,{children:"QuecManager Quick Stats"}),(0,a.jsx)(y,{})]})}),(0,a.jsxs)(u.Wu,{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-evenly items-center w-full p-2 border-t border-b",children:[x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.networkName}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.networkType}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.bands})]}),(0,a.jsx)("div",{className:"flex gap-4 xl:p-4 p-2 pb-2",children:x?(0,a.jsx)(m.E,{className:"h-[140px] w-full"}):(0,a.jsx)(h.at,{config:{sinr:{label:"sinr",color:"hsl(var(--chart-1))"},rsrp:{label:"rsrp",color:"hsl(var(--chart-2))"},rsrq:{label:"rsrq",color:"hsl(var(--chart-3))"}},className:"h-[140px] w-full",children:(0,a.jsxs)(c,{margin:{left:0,right:0,top:0,bottom:10},data:j,layout:"vertical",barSize:32,barGap:2,children:[(0,a.jsx)(o.W,{type:"number",dataKey:"value",hide:!0}),(0,a.jsx)(i.h,{dataKey:"activity",type:"category",tickLine:!1,tickMargin:4,axisLine:!1,className:"uppercase"}),(0,a.jsx)(l.y,{dataKey:"value",radius:5})]})})})]}),(0,a.jsxs)(u.wL,{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"flex flex-row border-t border-b xl:p-4 p-2 w-full",children:(0,a.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRP"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(e=s.rsrp)||void 0===e?void 0:e.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dBm"})]})]}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRQ"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(t=s.rsrq)||void 0===t?void 0:t.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"SINR"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(r=s.sinr)||void 0===r?void 0:r.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]})]})}),(0,a.jsx)(f.$,{asChild:!0,children:(0,a.jsxs)(p(),{href:"/login",children:["Login to QuecManager",(0,a.jsx)(g.flY,{className:"w-4 h-4"})]})})]})]})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var a=r(20475),n=r(20107),s=r(61837),l=r(29395),o=r(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:l,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:n,size:l,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>l,aR:()=>o,wL:()=>u});var a=r(20475),n=r(20107),s=r(22250);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});l.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},1307:(e,t,r)=>{"use strict";r.d(t,{II:()=>x,Nt:()=>p,at:()=>m});var a=r(20475),n=r(20107),s=r(81155),l=r(58601),o=r(58736),i=r(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,t)=>{let{id:r,className:l,children:o,config:d,...u}=e,m=n.useId(),x="chart-".concat(r||m.replace(/:/g,""));return(0,a.jsx)(c.Provider,{value:{config:d},children:(0,a.jsxs)("div",{"data-chart":x,ref:t,className:(0,i.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",l),...u,children:[(0,a.jsx)(f,{id:x,config:d}),(0,a.jsx)(s.u,{children:o})]})})});m.displayName="Chart";let f=e=>{let{id:t,config:r}=e,n=Object.entries(r).filter(e=>{let[t,r]=e;return r.theme||r.color});return n.length?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[r,a]=e;return"\n".concat(a," [data-chart=").concat(t,"] {\n").concat(n.map(e=>{var t;let[a,n]=e,s=(null===(t=n.theme)||void 0===t?void 0:t[r])||n.color;return s?" --color-".concat(a,": ").concat(s,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},x=l.m,p=n.forwardRef((e,t)=>{let{active:r,payload:s,className:l,indicator:o="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:f,labelClassName:x,formatter:p,color:v,nameKey:g,labelKey:N}=e,{config:b}=u(),y=n.useMemo(()=>{var e;if(d||!(null==s?void 0:s.length))return null;let[t]=s,r="".concat(N||t.dataKey||t.name||"value"),n=h(b,t,r),l=N||"string"!=typeof m?null==n?void 0:n.label:(null===(e=b[m])||void 0===e?void 0:e.label)||m;return f?(0,a.jsx)("div",{className:(0,i.cn)("font-medium",x),children:f(l,s)}):l?(0,a.jsx)("div",{className:(0,i.cn)("font-medium",x),children:l}):null},[m,f,s,d,x,b,N]);if(!r||!(null==s?void 0:s.length))return null;let j=1===s.length&&"dot"!==o;return(0,a.jsxs)("div",{ref:t,className:(0,i.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",l),children:[j?null:y,(0,a.jsx)("div",{className:"grid gap-1.5",children:s.map((e,t)=>{let r="".concat(g||e.name||e.dataKey||"value"),n=h(b,e,r),s=v||e.payload.fill||e.color;return(0,a.jsx)("div",{className:(0,i.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===o&&"items-center"),children:p&&(null==e?void 0:e.value)!==void 0&&e.name?p(e.value,e.name,e,t,e.payload):(0,a.jsxs)(a.Fragment,{children:[(null==n?void 0:n.icon)?(0,a.jsx)(n.icon,{}):!c&&(0,a.jsx)("div",{className:(0,i.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===o,"w-1":"line"===o,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===o,"my-0.5":j&&"dashed"===o}),style:{"--color-bg":s,"--color-border":s}}),(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-1 justify-between leading-none",j?"items-end":"items-center"),children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[j?y:null,(0,a.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,a.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function h(e,t,r){if("object"!=typeof t||null===t)return;let a="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,n=r;return r in t&&"string"==typeof t[r]?n=t[r]:a&&r in a&&"string"==typeof a[r]&&(n=a[r]),n in e?e[n]:e[r]}p.displayName="ChartTooltip",o.s,n.forwardRef((e,t)=>{let{className:r,hideIcon:n=!1,payload:s,verticalAlign:l="bottom",nameKey:o}=e,{config:d}=u();return(null==s?void 0:s.length)?(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center justify-center gap-4","top"===l?"pb-3":"pt-3",r),children:s.map(e=>{let t="".concat(o||e.dataKey||"value"),r=h(d,e,t);return(0,a.jsxs)("div",{className:(0,i.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!n?(0,a.jsx)(r.icon,{}):(0,a.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==r?void 0:r.label]},e.value)})}):null}).displayName="ChartLegend"},86118:(e,t,r)=>{"use strict";r.d(t,{SQ:()=>c,_2:()=>u,lp:()=>m,mB:()=>f,rI:()=>i,ty:()=>d});var a=r(20475),n=r(20107),s=r(77536),l=r(7197),o=r(22250);let i=s.bL,d=s.l9;s.YJ,s.ZL,s.Pb,s.z6,n.forwardRef((e,t)=>{let{className:r,inset:n,children:i,...d}=e;return(0,a.jsxs)(s.ZP,{ref:t,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",r),...d,children:[i,(0,a.jsx)(l.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=s.ZP.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.G5,{ref:t,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})}).displayName=s.G5.displayName;let c=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...l}=e;return(0,a.jsx)(s.ZL,{children:(0,a.jsx)(s.UC,{ref:t,sideOffset:n,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})})});c.displayName=s.UC.displayName;let u=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.q7,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",r),...l})});u.displayName=s.q7.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,checked:i,...d}=e;return(0,a.jsxs)(s.H_,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:i,...d,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})}),n]})}).displayName=s.H_.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,...i}=e;return(0,a.jsxs)(s.hN,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.RiX,{className:"h-4 w-4 fill-current"})})}),n]})}).displayName=s.hN.displayName;let m=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",r),...l})});m.displayName=s.JU.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...n})});f.displayName=s.wv.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var a=r(20475),n=r(20107),s=r(88853),l=r(22250);let o=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:o=!0,...i}=e;return(0,a.jsx)(s.b,{ref:t,decorative:o,orientation:n,className:(0,l.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=s.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>s});var a=r(20475),n=r(22250);function s(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>s});var a=r(64901),n=r(868);function s(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{C:()=>l});var a=r(20107),n=r(64236),s=r(54122),l=e=>{let{present:t,children:r}=e,l=function(e){var t,r;let[n,l]=a.useState(),i=a.useRef({}),d=a.useRef(e),c=a.useRef("none"),[u,m]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>{let a=r[e][t];return null!=a?a:e},t));return a.useEffect(()=>{let e=o(i.current);c.current="mounted"===u?e:"none"},[u]),(0,s.N)(()=>{let t=i.current,r=d.current;if(r!==e){let a=c.current,n=o(t);e?m("MOUNT"):"none"===n||(null==t?void 0:t.display)==="none"?m("UNMOUNT"):r&&a!==n?m("ANIMATION_OUT"):m("UNMOUNT"),d.current=e}},[e,m]),(0,s.N)(()=>{if(n){var e;let t;let r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,a=e=>{let a=o(i.current).includes(e.animationName);if(e.target===n&&a&&(m("ANIMATION_END"),!d.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},s=e=>{e.target===n&&(c.current=o(i.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",a),n.addEventListener("animationend",a),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",a)}}m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback(e=>{e&&(i.current=getComputedStyle(e)),l(e)},[])}}(t),i="function"==typeof r?r({present:l.isPresent}):a.Children.only(r),d=(0,n.s)(l.ref,function(e){var t,r;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?e.ref:(n=(a=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof r||l.isPresent?a.cloneElement(i,{ref:d}):null};function o(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(20107),n=r(34544),s=r(20475),l="horizontal",o=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=l,...i}=e,d=o.includes(a)?a:l;return(0,s.jsx)(n.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,3746,9464,9477,2682,1074,7536,191,6035,7358],()=>t(47143)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-7b1bd07ea9799734.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-7b1bd07ea9799734.js new file mode 100644 index 0000000..0720f6e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-7b1bd07ea9799734.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{47143:(e,t,r)=>{Promise.resolve().then(r.bind(r,69363))},69363:(e,t,r)=>{"use strict";r.d(t,{default:()=>R});var a=r(20475),n=r(20107),s=r(90805),l=r(17255),o=r(4538),i=r(41797),d=r(98456),c=(0,s.gu)({chartName:"BarChart",GraphicalChild:l.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:i.h}],formatAxisMap:d.pr}),u=r(72167),m=r(36760),f=r(42541),x=r(9477),p=r.n(x),h=r(1307),v=r(76554),g=r(7197),N=r(92159),b=r(86118);function y(){let{setTheme:e}=(0,N.D)();return(0,a.jsxs)(b.rI,{children:[(0,a.jsx)(b.ty,{asChild:!0,children:(0,a.jsxs)(f.$,{variant:"outline",size:"icon",children:[(0,a.jsx)(g.gLX,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(g.rRK,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(b.SQ,{align:"end",children:[(0,a.jsx)(b._2,{onClick:()=>e("light"),children:"Light"}),(0,a.jsx)(b._2,{onClick:()=>e("dark"),children:"Dark"}),(0,a.jsx)(b._2,{onClick:()=>e("system"),children:"System"})]})]})}let j={rsrp:{min:-140,max:-70},rsrq:{min:-20,max:-10},sinr:{min:0,max:20}},w=(e,t)=>{let r=j[e];return Math.min(Math.max(Math.round(10*((Math.max(Math.min(t,r.max),r.min)-r.min)/(r.max-r.min)*100))/10,0),100)},k=e=>{if(!e)return null;let t=e.map(Number).filter(e=>-32768!==e&&5!==e&&-140!==e);return 0===t.length?null:Math.round(t.reduce((e,t)=>e+t,0)/t.length)};function R(){var e,t,r;let[s,d]=(0,n.useState)({rsrp:null,rsrq:null,sinr:null,networkType:"",bands:null,networkName:""}),[x,N]=(0,n.useState)(!0),b=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=5"),t=await e.json();if(console.log(t),t){let e={rsrp:k(t[0].response.match(/-?\d+/g)),rsrq:k(t[1].response.match(/-?\d+/g)),sinr:k(t[2].response.match(/-?\d+/g)),networkType:"",bands:null,networkName:""};console.log(e);let r=t[3].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),a=null==r?void 0:r.some(e=>e.includes("LTE")),n=null==r?void 0:r.some(e=>e.includes("NR5G"));e.networkType=a&&n?"NR5G-NSA":a?"LTE":n?"NR5G-SA":"No Signal";let s=null==r?void 0:r.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0);e.bands=s?s.join(", "):"No Signal",e.networkName=t[4].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"No Signal",d(e),b.current=e}}catch(e){console.error("Error fetching stats:",e)}finally{x&&N(!1)}};e();let t=setInterval(e,2e3);return()=>clearInterval(t)},[x]);let j=[{activity:"rsrp",value:null!==s.rsrp?w("rsrp",s.rsrp):0,label:null!==s.rsrp?"".concat(s.rsrp.toFixed(1)," dBm"):"No Signal",fill:"hsl(var(--chart-1))"},{activity:"rsrq",value:null!==s.rsrq?w("rsrq",s.rsrq):0,label:null!==s.rsrq?"".concat(s.rsrq.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-2))"},{activity:"sinr",value:null!==s.sinr?w("sinr",s.sinr):0,label:null!==s.sinr?"".concat(s.sinr.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-3))"}];return(0,a.jsxs)(u.Zp,{className:"xl:max-w-xl xl:w-[800px] max-w-sm",children:[(0,a.jsx)(u.aR,{children:(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)(u.ZB,{children:"QuecManager Quick Stats"}),(0,a.jsx)(y,{})]})}),(0,a.jsxs)(u.Wu,{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-evenly items-center w-full p-2 border-t border-b",children:[x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.networkName}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.networkType}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.bands})]}),(0,a.jsx)("div",{className:"flex gap-4 xl:p-4 p-2 pb-2",children:x?(0,a.jsx)(m.E,{className:"h-[140px] w-full"}):(0,a.jsx)(h.at,{config:{sinr:{label:"sinr",color:"hsl(var(--chart-1))"},rsrp:{label:"rsrp",color:"hsl(var(--chart-2))"},rsrq:{label:"rsrq",color:"hsl(var(--chart-3))"}},className:"h-[140px] w-full",children:(0,a.jsxs)(c,{margin:{left:0,right:0,top:0,bottom:10},data:j,layout:"vertical",barSize:32,barGap:2,children:[(0,a.jsx)(o.W,{type:"number",dataKey:"value",hide:!0}),(0,a.jsx)(i.h,{dataKey:"activity",type:"category",tickLine:!1,tickMargin:4,axisLine:!1,className:"uppercase"}),(0,a.jsx)(l.y,{dataKey:"value",radius:5})]})})})]}),(0,a.jsxs)(u.wL,{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"flex flex-row border-t border-b xl:p-4 p-2 w-full",children:(0,a.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRP"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(e=s.rsrp)||void 0===e?void 0:e.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dBm"})]})]}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRQ"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(t=s.rsrq)||void 0===t?void 0:t.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"SINR"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(r=s.sinr)||void 0===r?void 0:r.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]})]})}),(0,a.jsx)(f.$,{asChild:!0,children:(0,a.jsxs)(p(),{href:"/login",children:["Login to QuecManager",(0,a.jsx)(g.flY,{className:"w-4 h-4"})]})})]})]})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var a=r(20475),n=r(20107),s=r(61837),l=r(29395),o=r(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:l,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:n,size:l,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>l,aR:()=>o,wL:()=>u});var a=r(20475),n=r(20107),s=r(22250);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});l.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},1307:(e,t,r)=>{"use strict";r.d(t,{II:()=>x,Nt:()=>p,at:()=>m});var a=r(20475),n=r(20107),s=r(81155),l=r(58601),o=r(58736),i=r(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,t)=>{let{id:r,className:l,children:o,config:d,...u}=e,m=n.useId(),x="chart-".concat(r||m.replace(/:/g,""));return(0,a.jsx)(c.Provider,{value:{config:d},children:(0,a.jsxs)("div",{"data-chart":x,ref:t,className:(0,i.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",l),...u,children:[(0,a.jsx)(f,{id:x,config:d}),(0,a.jsx)(s.u,{children:o})]})})});m.displayName="Chart";let f=e=>{let{id:t,config:r}=e,n=Object.entries(r).filter(e=>{let[t,r]=e;return r.theme||r.color});return n.length?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[r,a]=e;return"\n".concat(a," [data-chart=").concat(t,"] {\n").concat(n.map(e=>{var t;let[a,n]=e,s=(null===(t=n.theme)||void 0===t?void 0:t[r])||n.color;return s?" --color-".concat(a,": ").concat(s,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},x=l.m,p=n.forwardRef((e,t)=>{let{active:r,payload:s,className:l,indicator:o="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:f,labelClassName:x,formatter:p,color:v,nameKey:g,labelKey:N}=e,{config:b}=u(),y=n.useMemo(()=>{var e;if(d||!(null==s?void 0:s.length))return null;let[t]=s,r="".concat(N||t.dataKey||t.name||"value"),n=h(b,t,r),l=N||"string"!=typeof m?null==n?void 0:n.label:(null===(e=b[m])||void 0===e?void 0:e.label)||m;return f?(0,a.jsx)("div",{className:(0,i.cn)("font-medium",x),children:f(l,s)}):l?(0,a.jsx)("div",{className:(0,i.cn)("font-medium",x),children:l}):null},[m,f,s,d,x,b,N]);if(!r||!(null==s?void 0:s.length))return null;let j=1===s.length&&"dot"!==o;return(0,a.jsxs)("div",{ref:t,className:(0,i.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",l),children:[j?null:y,(0,a.jsx)("div",{className:"grid gap-1.5",children:s.map((e,t)=>{let r="".concat(g||e.name||e.dataKey||"value"),n=h(b,e,r),s=v||e.payload.fill||e.color;return(0,a.jsx)("div",{className:(0,i.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===o&&"items-center"),children:p&&(null==e?void 0:e.value)!==void 0&&e.name?p(e.value,e.name,e,t,e.payload):(0,a.jsxs)(a.Fragment,{children:[(null==n?void 0:n.icon)?(0,a.jsx)(n.icon,{}):!c&&(0,a.jsx)("div",{className:(0,i.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===o,"w-1":"line"===o,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===o,"my-0.5":j&&"dashed"===o}),style:{"--color-bg":s,"--color-border":s}}),(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-1 justify-between leading-none",j?"items-end":"items-center"),children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[j?y:null,(0,a.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,a.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function h(e,t,r){if("object"!=typeof t||null===t)return;let a="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,n=r;return r in t&&"string"==typeof t[r]?n=t[r]:a&&r in a&&"string"==typeof a[r]&&(n=a[r]),n in e?e[n]:e[r]}p.displayName="ChartTooltip",o.s,n.forwardRef((e,t)=>{let{className:r,hideIcon:n=!1,payload:s,verticalAlign:l="bottom",nameKey:o}=e,{config:d}=u();return(null==s?void 0:s.length)?(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center justify-center gap-4","top"===l?"pb-3":"pt-3",r),children:s.map(e=>{let t="".concat(o||e.dataKey||"value"),r=h(d,e,t);return(0,a.jsxs)("div",{className:(0,i.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!n?(0,a.jsx)(r.icon,{}):(0,a.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==r?void 0:r.label]},e.value)})}):null}).displayName="ChartLegend"},86118:(e,t,r)=>{"use strict";r.d(t,{SQ:()=>c,_2:()=>u,lp:()=>m,mB:()=>f,rI:()=>i,ty:()=>d});var a=r(20475),n=r(20107),s=r(77536),l=r(7197),o=r(22250);let i=s.bL,d=s.l9;s.YJ,s.ZL,s.Pb,s.z6,n.forwardRef((e,t)=>{let{className:r,inset:n,children:i,...d}=e;return(0,a.jsxs)(s.ZP,{ref:t,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",r),...d,children:[i,(0,a.jsx)(l.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=s.ZP.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.G5,{ref:t,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})}).displayName=s.G5.displayName;let c=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...l}=e;return(0,a.jsx)(s.ZL,{children:(0,a.jsx)(s.UC,{ref:t,sideOffset:n,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})})});c.displayName=s.UC.displayName;let u=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.q7,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",r),...l})});u.displayName=s.q7.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,checked:i,...d}=e;return(0,a.jsxs)(s.H_,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:i,...d,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})}),n]})}).displayName=s.H_.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,...i}=e;return(0,a.jsxs)(s.hN,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.RiX,{className:"h-4 w-4 fill-current"})})}),n]})}).displayName=s.hN.displayName;let m=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",r),...l})});m.displayName=s.JU.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...n})});f.displayName=s.wv.displayName},76554:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var a=r(20475),n=r(20107),s=r(88853),l=r(22250);let o=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:o=!0,...i}=e;return(0,a.jsx)(s.b,{ref:t,decorative:o,orientation:n,className:(0,l.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=s.b.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>s});var a=r(20475),n=r(22250);function s(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>s});var a=r(64901),n=r(868);function s(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{C:()=>l});var a=r(20107),n=r(64236),s=r(54122),l=e=>{let{present:t,children:r}=e,l=function(e){var t,r;let[n,l]=a.useState(),i=a.useRef({}),d=a.useRef(e),c=a.useRef("none"),[u,m]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>{let a=r[e][t];return null!=a?a:e},t));return a.useEffect(()=>{let e=o(i.current);c.current="mounted"===u?e:"none"},[u]),(0,s.N)(()=>{let t=i.current,r=d.current;if(r!==e){let a=c.current,n=o(t);e?m("MOUNT"):"none"===n||(null==t?void 0:t.display)==="none"?m("UNMOUNT"):r&&a!==n?m("ANIMATION_OUT"):m("UNMOUNT"),d.current=e}},[e,m]),(0,s.N)(()=>{if(n){var e;let t;let r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,a=e=>{let a=o(i.current).includes(e.animationName);if(e.target===n&&a&&(m("ANIMATION_END"),!d.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},s=e=>{e.target===n&&(c.current=o(i.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",a),n.addEventListener("animationend",a),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",a)}}m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback(e=>{e&&(i.current=getComputedStyle(e)),l(e)},[])}}(t),i="function"==typeof r?r({present:l.isPresent}):a.Children.only(r),d=(0,n.s)(l.ref,function(e){var t,r;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?e.ref:(n=(a=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof r||l.isPresent?a.cloneElement(i,{ref:d}):null};function o(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},88853:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(20107),n=r(34544),s=r(20475),l="horizontal",o=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=l,...i}=e,d=o.includes(a)?a:l;return(0,s.jsx)(n.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,9477,1074,7414,191,6035,7358],()=>t(47143)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-b8f75665cdb925c0.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-b8f75665cdb925c0.js deleted file mode 100644 index 730fba5..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-b8f75665cdb925c0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{50207:(e,t,r)=>{Promise.resolve().then(r.bind(r,4672))},4672:(e,t,r)=>{"use strict";r.d(t,{default:()=>C});var a=r(95155),n=r(12115),s=r(36561),l=r(87162),o=r(12800),i=r(66963),d=r(94430),c=(0,s.gu)({chartName:"BarChart",GraphicalChild:l.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:i.h}],formatAxisMap:d.pr}),u=r(35007),m=r(25488),f=r(14085),x=r(48173),p=r.n(x),h=r(30387),v=r(89282),g=r(87365),N=r(67113),y=r(20750);function b(){let{setTheme:e}=(0,N.D)();return(0,a.jsxs)(y.rI,{children:[(0,a.jsx)(y.ty,{asChild:!0,children:(0,a.jsxs)(f.$,{variant:"outline",size:"icon",children:[(0,a.jsx)(g.gLX,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(g.rRK,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(y.SQ,{align:"end",children:[(0,a.jsx)(y._2,{onClick:()=>e("light"),children:"Light"}),(0,a.jsx)(y._2,{onClick:()=>e("dark"),children:"Dark"}),(0,a.jsx)(y._2,{onClick:()=>e("system"),children:"System"})]})]})}let j={rsrp:{min:-140,max:-70},rsrq:{min:-20,max:-10},sinr:{min:0,max:20}},w=(e,t)=>{let r=j[e];return Math.min(Math.max(Math.round(10*((Math.max(Math.min(t,r.max),r.min)-r.min)/(r.max-r.min)*100))/10,0),100)};var k=r(99378),R=r(91724);let T=e=>{if(!e)return null;let t=e.map(Number).filter(e=>-32768!==e&&5!==e&&-140!==e);return 0===t.length?null:Math.round(t.reduce((e,t)=>e+t,0)/t.length)};function C(){var e,t,r;let[s,d]=(0,n.useState)({rsrp:null,rsrq:null,sinr:null,networkType:"",bands:null,networkName:""}),[x,N]=(0,n.useState)(!0),y=(0,n.useRef)(null),{logout:j}=(0,k.A)(),{isServerAlive:C}=(0,R.A)();(0,n.useEffect)(()=>{C||j();let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=5"),t=await e.json();if(console.log(t),t){let e={rsrp:T(t[0].response.match(/-?\d+/g)),rsrq:T(t[1].response.match(/-?\d+/g)),sinr:T(t[2].response.match(/-?\d+/g)),networkType:"",bands:null,networkName:""};console.log(e);let r=t[3].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),a=null==r?void 0:r.some(e=>e.includes("LTE")),n=null==r?void 0:r.some(e=>e.includes("NR5G"));e.networkType=a&&n?"NR5G-NSA":a?"LTE":n?"NR5G-SA":"No Signal";let s=null==r?void 0:r.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0);e.bands=s?s.join(", "):"No Signal",e.networkName=t[4].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"No Signal",d(e),y.current=e}}catch(e){console.error("Error fetching stats:",e)}finally{x&&N(!1)}};e();let t=setInterval(e,2e3);return()=>clearInterval(t)},[x,C,j]);let S=[{activity:"rsrp",value:null!==s.rsrp?w("rsrp",s.rsrp):0,label:null!==s.rsrp?"".concat(s.rsrp.toFixed(1)," dBm"):"No Signal",fill:"hsl(var(--chart-1))"},{activity:"rsrq",value:null!==s.rsrq?w("rsrq",s.rsrq):0,label:null!==s.rsrq?"".concat(s.rsrq.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-2))"},{activity:"sinr",value:null!==s.sinr?w("sinr",s.sinr):0,label:null!==s.sinr?"".concat(s.sinr.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-3))"}];return(0,a.jsxs)(u.Zp,{className:"xl:max-w-xl xl:w-[800px] max-w-sm",children:[(0,a.jsx)(u.aR,{children:(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)(u.ZB,{children:"QuecManager Quick Stats"}),(0,a.jsx)(b,{})]})}),(0,a.jsxs)(u.Wu,{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-evenly items-center w-full p-2 border-t border-b",children:[x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.networkName}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.networkType}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.bands})]}),(0,a.jsx)("div",{className:"flex gap-4 xl:p-4 p-2 pb-2",children:x?(0,a.jsx)(m.E,{className:"h-[140px] w-full"}):(0,a.jsx)(h.at,{config:{sinr:{label:"sinr",color:"hsl(var(--chart-1))"},rsrp:{label:"rsrp",color:"hsl(var(--chart-2))"},rsrq:{label:"rsrq",color:"hsl(var(--chart-3))"}},className:"h-[140px] w-full",children:(0,a.jsxs)(c,{margin:{left:0,right:0,top:0,bottom:10},data:S,layout:"vertical",barSize:32,barGap:2,children:[(0,a.jsx)(o.W,{type:"number",dataKey:"value",hide:!0}),(0,a.jsx)(i.h,{dataKey:"activity",type:"category",tickLine:!1,tickMargin:4,axisLine:!1,className:"uppercase"}),(0,a.jsx)(l.y,{dataKey:"value",radius:5})]})})})]}),(0,a.jsxs)(u.wL,{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"flex flex-row border-t border-b xl:p-4 p-2 w-full",children:(0,a.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRP"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(e=s.rsrp)||void 0===e?void 0:e.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dBm"})]})]}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRQ"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(t=s.rsrq)||void 0===t?void 0:t.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"SINR"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(r=s.sinr)||void 0===r?void 0:r.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]})]})}),(0,a.jsx)(f.$,{asChild:!0,children:(0,a.jsxs)(p(),{href:"/login",children:["Login to QuecManager",(0,a.jsx)(g.flY,{className:"w-4 h-4"})]})})]})]})}},14085:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var a=r(95155),n=r(12115),s=r(12317),l=r(31027),o=r(29602);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:l,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:n,size:l,className:r})),ref:t,...c})});d.displayName="Button"},35007:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>l,aR:()=>o,wL:()=>u});var a=r(95155),n=r(12115),s=r(29602);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});l.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},30387:(e,t,r)=>{"use strict";r.d(t,{II:()=>x,Nt:()=>p,at:()=>m});var a=r(95155),n=r(12115),s=r(58581),l=r(27112),o=r(86354),i=r(29602);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,t)=>{let{id:r,className:l,children:o,config:d,...u}=e,m=n.useId(),x="chart-".concat(r||m.replace(/:/g,""));return(0,a.jsx)(c.Provider,{value:{config:d},children:(0,a.jsxs)("div",{"data-chart":x,ref:t,className:(0,i.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",l),...u,children:[(0,a.jsx)(f,{id:x,config:d}),(0,a.jsx)(s.u,{children:o})]})})});m.displayName="Chart";let f=e=>{let{id:t,config:r}=e,n=Object.entries(r).filter(e=>{let[t,r]=e;return r.theme||r.color});return n.length?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[r,a]=e;return"\n".concat(a," [data-chart=").concat(t,"] {\n").concat(n.map(e=>{var t;let[a,n]=e,s=(null===(t=n.theme)||void 0===t?void 0:t[r])||n.color;return s?" --color-".concat(a,": ").concat(s,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},x=l.m,p=n.forwardRef((e,t)=>{let{active:r,payload:s,className:l,indicator:o="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:f,labelClassName:x,formatter:p,color:v,nameKey:g,labelKey:N}=e,{config:y}=u(),b=n.useMemo(()=>{var e;if(d||!(null==s?void 0:s.length))return null;let[t]=s,r="".concat(N||t.dataKey||t.name||"value"),n=h(y,t,r),l=N||"string"!=typeof m?null==n?void 0:n.label:(null===(e=y[m])||void 0===e?void 0:e.label)||m;return f?(0,a.jsx)("div",{className:(0,i.cn)("font-medium",x),children:f(l,s)}):l?(0,a.jsx)("div",{className:(0,i.cn)("font-medium",x),children:l}):null},[m,f,s,d,x,y,N]);if(!r||!(null==s?void 0:s.length))return null;let j=1===s.length&&"dot"!==o;return(0,a.jsxs)("div",{ref:t,className:(0,i.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",l),children:[j?null:b,(0,a.jsx)("div",{className:"grid gap-1.5",children:s.map((e,t)=>{let r="".concat(g||e.name||e.dataKey||"value"),n=h(y,e,r),s=v||e.payload.fill||e.color;return(0,a.jsx)("div",{className:(0,i.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===o&&"items-center"),children:p&&(null==e?void 0:e.value)!==void 0&&e.name?p(e.value,e.name,e,t,e.payload):(0,a.jsxs)(a.Fragment,{children:[(null==n?void 0:n.icon)?(0,a.jsx)(n.icon,{}):!c&&(0,a.jsx)("div",{className:(0,i.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===o,"w-1":"line"===o,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===o,"my-0.5":j&&"dashed"===o}),style:{"--color-bg":s,"--color-border":s}}),(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-1 justify-between leading-none",j?"items-end":"items-center"),children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[j?b:null,(0,a.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,a.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function h(e,t,r){if("object"!=typeof t||null===t)return;let a="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,n=r;return r in t&&"string"==typeof t[r]?n=t[r]:a&&r in a&&"string"==typeof a[r]&&(n=a[r]),n in e?e[n]:e[r]}p.displayName="ChartTooltip",o.s,n.forwardRef((e,t)=>{let{className:r,hideIcon:n=!1,payload:s,verticalAlign:l="bottom",nameKey:o}=e,{config:d}=u();return(null==s?void 0:s.length)?(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center justify-center gap-4","top"===l?"pb-3":"pt-3",r),children:s.map(e=>{let t="".concat(o||e.dataKey||"value"),r=h(d,e,t);return(0,a.jsxs)("div",{className:(0,i.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!n?(0,a.jsx)(r.icon,{}):(0,a.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==r?void 0:r.label]},e.value)})}):null}).displayName="ChartLegend"},20750:(e,t,r)=>{"use strict";r.d(t,{SQ:()=>c,_2:()=>u,lp:()=>m,mB:()=>f,rI:()=>i,ty:()=>d});var a=r(95155),n=r(12115),s=r(80937),l=r(87365),o=r(29602);let i=s.bL,d=s.l9;s.YJ,s.ZL,s.Pb,s.z6,n.forwardRef((e,t)=>{let{className:r,inset:n,children:i,...d}=e;return(0,a.jsxs)(s.ZP,{ref:t,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",r),...d,children:[i,(0,a.jsx)(l.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=s.ZP.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.G5,{ref:t,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})}).displayName=s.G5.displayName;let c=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...l}=e;return(0,a.jsx)(s.ZL,{children:(0,a.jsx)(s.UC,{ref:t,sideOffset:n,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})})});c.displayName=s.UC.displayName;let u=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.q7,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",r),...l})});u.displayName=s.q7.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,checked:i,...d}=e;return(0,a.jsxs)(s.H_,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:i,...d,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})}),n]})}).displayName=s.H_.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,...i}=e;return(0,a.jsxs)(s.hN,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.RiX,{className:"h-4 w-4 fill-current"})})}),n]})}).displayName=s.hN.displayName;let m=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",r),...l})});m.displayName=s.JU.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...n})});f.displayName=s.wv.displayName},89282:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var a=r(95155),n=r(12115),s=r(90434),l=r(29602);let o=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:o=!0,...i}=e;return(0,a.jsx)(s.b,{ref:t,decorative:o,orientation:n,className:(0,l.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=s.b.displayName},25488:(e,t,r)=>{"use strict";r.d(t,{E:()=>s});var a=r(95155),n=r(29602);function s(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},99378:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(12115),n=r(76046);function s(){let[e,t]=(0,a.useState)(!1),r=(0,n.useRouter)();function s(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}async function l(){localStorage.removeItem("session"),t(!1),fetch("/cgi-bin/quecmanager/logout.sh",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"".concat(localStorage.getItem("authToken"))}}),localStorage.removeItem("authToken"),r.push("/login")}function o(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(l(),!1):(t-e.lastActivity>3e5&&s(e.token),!0)}();return t(e),e}return(0,a.useEffect)(()=>{o()},[]),{isAuthenticated:e,login:async function(e){let a=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/quecmanager/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(a)}),n=await e.json();if(console.log(n),"success"!==n.state)return!1;{(null==n?void 0:n.token)&&localStorage.setItem("authToken",n.token);let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return s(e),t(!0),r.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:l,checkAuth:o}}},91724:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(12115),n=r(99378);let s=()=>{let[e,t]=(0,a.useState)(!0),{logout:r}=(0,n.A)();async function s(){try{let e=await fetch("/cgi-bin/quecmanager/heartbeat.sh",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!e.ok){l();return}(await e.json()).alive?t(!0):l()}catch(e){l()}}function l(){t(!1),r()}return(0,a.useEffect)(()=>{let e=setInterval(s,5e3);return()=>{clearInterval(e)}},[]),{isServerAlive:e}}},29602:(e,t,r)=>{"use strict";r.d(t,{cn:()=>s});var a=r(43463),n=r(69795);function s(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{C:()=>l});var a=r(12115),n=r(88068),s=r(46611),l=e=>{let{present:t,children:r}=e,l=function(e){var t,r;let[n,l]=a.useState(),i=a.useRef({}),d=a.useRef(e),c=a.useRef("none"),[u,m]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>{let a=r[e][t];return null!=a?a:e},t));return a.useEffect(()=>{let e=o(i.current);c.current="mounted"===u?e:"none"},[u]),(0,s.N)(()=>{let t=i.current,r=d.current;if(r!==e){let a=c.current,n=o(t);e?m("MOUNT"):"none"===n||(null==t?void 0:t.display)==="none"?m("UNMOUNT"):r&&a!==n?m("ANIMATION_OUT"):m("UNMOUNT"),d.current=e}},[e,m]),(0,s.N)(()=>{if(n){var e;let t;let r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,a=e=>{let a=o(i.current).includes(e.animationName);if(e.target===n&&a&&(m("ANIMATION_END"),!d.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},s=e=>{e.target===n&&(c.current=o(i.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",a),n.addEventListener("animationend",a),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",a)}}m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback(e=>{e&&(i.current=getComputedStyle(e)),l(e)},[])}}(t),i="function"==typeof r?r({present:l.isPresent}):a.Children.only(r),d=(0,n.s)(l.ref,function(e){var t,r;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?e.ref:(n=(a=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof r||l.isPresent?a.cloneElement(i,{ref:d}):null};function o(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},90434:(e,t,r)=>{"use strict";r.d(t,{b:()=>d});var a=r(12115),n=r(23360),s=r(95155),l="horizontal",o=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=l,...i}=e,d=o.includes(a)?a:l;return(0,s.jsx)(n.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},e=>{var t=t=>e(e.s=t);e.O(0,[5105,1365,7401,9895,2019,1028,4094,2049,8441,1517,7358],()=>t(50207)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-c30a75b57da5e6f9.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-c30a75b57da5e6f9.js new file mode 100644 index 0000000..c3545cc --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/page-c30a75b57da5e6f9.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{47143:(e,t,r)=>{Promise.resolve().then(r.bind(r,69363))},69363:(e,t,r)=>{"use strict";r.d(t,{default:()=>R});var a=r(20475),n=r(20107),s=r(90805),l=r(17255),o=r(4538),i=r(41797),d=r(98456),c=(0,s.gu)({chartName:"BarChart",GraphicalChild:l.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:i.h}],formatAxisMap:d.pr}),u=r(72167),m=r(36760),f=r(42541),x=r(9477),p=r.n(x),h=r(1307),v=r(50049),g=r(7197),N=r(92159),y=r(86118);function b(){let{setTheme:e}=(0,N.D)();return(0,a.jsxs)(y.rI,{children:[(0,a.jsx)(y.ty,{asChild:!0,children:(0,a.jsxs)(f.$,{variant:"outline",size:"icon",children:[(0,a.jsx)(g.gLX,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(g.rRK,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(y.SQ,{align:"end",children:[(0,a.jsx)(y._2,{onClick:()=>e("light"),children:"Light"}),(0,a.jsx)(y._2,{onClick:()=>e("dark"),children:"Dark"}),(0,a.jsx)(y._2,{onClick:()=>e("system"),children:"System"})]})]})}let j={rsrp:{min:-140,max:-70},rsrq:{min:-20,max:-10},sinr:{min:0,max:20}},w=(e,t)=>{let r=j[e];return Math.min(Math.max(Math.round(10*((Math.max(Math.min(t,r.max),r.min)-r.min)/(r.max-r.min)*100))/10,0),100)},k=e=>{if(!e)return null;let t=e.map(Number).filter(e=>-32768!==e&&5!==e&&-140!==e);return 0===t.length?null:Math.round(t.reduce((e,t)=>e+t,0)/t.length)};function R(){var e,t,r;let[s,d]=(0,n.useState)({rsrp:null,rsrq:null,sinr:null,networkType:"",bands:null,networkName:""}),[x,N]=(0,n.useState)(!0),y=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/quecmanager/at_cmd/fetch_data.sh?set=5"),t=await e.json();if(console.log(t),t){let e={rsrp:k(t[0].response.match(/-?\d+/g)),rsrq:k(t[1].response.match(/-?\d+/g)),sinr:k(t[2].response.match(/-?\d+/g)),networkType:"",bands:null,networkName:""};console.log(e);let r=t[3].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),a=null==r?void 0:r.some(e=>e.includes("LTE")),n=null==r?void 0:r.some(e=>e.includes("NR5G"));e.networkType=a&&n?"NR5G-NSA":a?"LTE":n?"NR5G-SA":"No Signal";let s=null==r?void 0:r.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0);e.bands=s?s.join(", "):"No Signal",e.networkName=t[4].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"No Signal",d(e),y.current=e}}catch(e){console.error("Error fetching stats:",e)}finally{x&&N(!1)}};e();let t=setInterval(e,2e3);return()=>clearInterval(t)},[x]);let j=[{activity:"rsrp",value:null!==s.rsrp?w("rsrp",s.rsrp):0,label:null!==s.rsrp?"".concat(s.rsrp.toFixed(1)," dBm"):"No Signal",fill:"hsl(var(--chart-1))"},{activity:"rsrq",value:null!==s.rsrq?w("rsrq",s.rsrq):0,label:null!==s.rsrq?"".concat(s.rsrq.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-2))"},{activity:"sinr",value:null!==s.sinr?w("sinr",s.sinr):0,label:null!==s.sinr?"".concat(s.sinr.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-3))"}];return(0,a.jsxs)(u.Zp,{className:"xl:max-w-xl xl:w-[800px] max-w-sm",children:[(0,a.jsx)(u.aR,{children:(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)(u.ZB,{children:"QuecManager Quick Stats"}),(0,a.jsx)(b,{})]})}),(0,a.jsxs)(u.Wu,{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-evenly items-center w-full p-2 border-t border-b",children:[x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.networkName}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.networkType}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:s.bands})]}),(0,a.jsx)("div",{className:"flex gap-4 xl:p-4 p-2 pb-2",children:x?(0,a.jsx)(m.E,{className:"h-[140px] w-full"}):(0,a.jsx)(h.at,{config:{sinr:{label:"sinr",color:"hsl(var(--chart-1))"},rsrp:{label:"rsrp",color:"hsl(var(--chart-2))"},rsrq:{label:"rsrq",color:"hsl(var(--chart-3))"}},className:"h-[140px] w-full",children:(0,a.jsxs)(c,{margin:{left:0,right:0,top:0,bottom:10},data:j,layout:"vertical",barSize:32,barGap:2,children:[(0,a.jsx)(o.W,{type:"number",dataKey:"value",hide:!0}),(0,a.jsx)(i.h,{dataKey:"activity",type:"category",tickLine:!1,tickMargin:4,axisLine:!1,className:"uppercase"}),(0,a.jsx)(l.y,{dataKey:"value",radius:5})]})})})]}),(0,a.jsxs)(u.wL,{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"flex flex-row border-t border-b xl:p-4 p-2 w-full",children:(0,a.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRP"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(e=s.rsrp)||void 0===e?void 0:e.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dBm"})]})]}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRQ"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(t=s.rsrq)||void 0===t?void 0:t.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]}),(0,a.jsx)(v.w,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"SINR"}),x?(0,a.jsx)(m.E,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(r=s.sinr)||void 0===r?void 0:r.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]})]})}),(0,a.jsx)(f.$,{asChild:!0,children:(0,a.jsxs)(p(),{href:"/login",children:["Login to QuecManager",(0,a.jsx)(g.flY,{className:"w-4 h-4"})]})})]})]})}},42541:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});var a=r(20475),n=r(20107),s=r(61837),l=r(29395),o=r(22250);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:l,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:n,size:l,className:r})),ref:t,...c})});d.displayName="Button"},72167:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>i,Zp:()=>l,aR:()=>o,wL:()=>u});var a=r(20475),n=r(20107),s=r(22250);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});l.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},1307:(e,t,r)=>{"use strict";r.d(t,{II:()=>x,Nt:()=>p,at:()=>m});var a=r(20475),n=r(20107),s=r(81155),l=r(58601),o=r(58736),i=r(22250);let d={light:"",dark:".dark"},c=n.createContext(null);function u(){let e=n.useContext(c);if(!e)throw Error("useChart must be used within a ");return e}let m=n.forwardRef((e,t)=>{let{id:r,className:l,children:o,config:d,...u}=e,m=n.useId(),x="chart-".concat(r||m.replace(/:/g,""));return(0,a.jsx)(c.Provider,{value:{config:d},children:(0,a.jsxs)("div",{"data-chart":x,ref:t,className:(0,i.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",l),...u,children:[(0,a.jsx)(f,{id:x,config:d}),(0,a.jsx)(s.u,{children:o})]})})});m.displayName="Chart";let f=e=>{let{id:t,config:r}=e,n=Object.entries(r).filter(e=>{let[t,r]=e;return r.theme||r.color});return n.length?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(d).map(e=>{let[r,a]=e;return"\n".concat(a," [data-chart=").concat(t,"] {\n").concat(n.map(e=>{var t;let[a,n]=e,s=(null===(t=n.theme)||void 0===t?void 0:t[r])||n.color;return s?" --color-".concat(a,": ").concat(s,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null},x=l.m,p=n.forwardRef((e,t)=>{let{active:r,payload:s,className:l,indicator:o="dot",hideLabel:d=!1,hideIndicator:c=!1,label:m,labelFormatter:f,labelClassName:x,formatter:p,color:v,nameKey:g,labelKey:N}=e,{config:y}=u(),b=n.useMemo(()=>{var e;if(d||!(null==s?void 0:s.length))return null;let[t]=s,r="".concat(N||t.dataKey||t.name||"value"),n=h(y,t,r),l=N||"string"!=typeof m?null==n?void 0:n.label:(null===(e=y[m])||void 0===e?void 0:e.label)||m;return f?(0,a.jsx)("div",{className:(0,i.cn)("font-medium",x),children:f(l,s)}):l?(0,a.jsx)("div",{className:(0,i.cn)("font-medium",x),children:l}):null},[m,f,s,d,x,y,N]);if(!r||!(null==s?void 0:s.length))return null;let j=1===s.length&&"dot"!==o;return(0,a.jsxs)("div",{ref:t,className:(0,i.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",l),children:[j?null:b,(0,a.jsx)("div",{className:"grid gap-1.5",children:s.map((e,t)=>{let r="".concat(g||e.name||e.dataKey||"value"),n=h(y,e,r),s=v||e.payload.fill||e.color;return(0,a.jsx)("div",{className:(0,i.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===o&&"items-center"),children:p&&(null==e?void 0:e.value)!==void 0&&e.name?p(e.value,e.name,e,t,e.payload):(0,a.jsxs)(a.Fragment,{children:[(null==n?void 0:n.icon)?(0,a.jsx)(n.icon,{}):!c&&(0,a.jsx)("div",{className:(0,i.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===o,"w-1":"line"===o,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===o,"my-0.5":j&&"dashed"===o}),style:{"--color-bg":s,"--color-border":s}}),(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-1 justify-between leading-none",j?"items-end":"items-center"),children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[j?b:null,(0,a.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,a.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})});function h(e,t,r){if("object"!=typeof t||null===t)return;let a="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,n=r;return r in t&&"string"==typeof t[r]?n=t[r]:a&&r in a&&"string"==typeof a[r]&&(n=a[r]),n in e?e[n]:e[r]}p.displayName="ChartTooltip",o.s,n.forwardRef((e,t)=>{let{className:r,hideIcon:n=!1,payload:s,verticalAlign:l="bottom",nameKey:o}=e,{config:d}=u();return(null==s?void 0:s.length)?(0,a.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center justify-center gap-4","top"===l?"pb-3":"pt-3",r),children:s.map(e=>{let t="".concat(o||e.dataKey||"value"),r=h(d,e,t);return(0,a.jsxs)("div",{className:(0,i.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!n?(0,a.jsx)(r.icon,{}):(0,a.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==r?void 0:r.label]},e.value)})}):null}).displayName="ChartLegend"},86118:(e,t,r)=>{"use strict";r.d(t,{SQ:()=>c,_2:()=>u,lp:()=>m,mB:()=>f,rI:()=>i,ty:()=>d});var a=r(20475),n=r(20107),s=r(77536),l=r(7197),o=r(22250);let i=s.bL,d=s.l9;s.YJ,s.ZL,s.Pb,s.z6,n.forwardRef((e,t)=>{let{className:r,inset:n,children:i,...d}=e;return(0,a.jsxs)(s.ZP,{ref:t,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",r),...d,children:[i,(0,a.jsx)(l.vKP,{className:"ml-auto h-4 w-4"})]})}).displayName=s.ZP.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.G5,{ref:t,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})}).displayName=s.G5.displayName;let c=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...l}=e;return(0,a.jsx)(s.ZL,{children:(0,a.jsx)(s.UC,{ref:t,sideOffset:n,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})})});c.displayName=s.UC.displayName;let u=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.q7,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",r),...l})});u.displayName=s.q7.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,checked:i,...d}=e;return(0,a.jsxs)(s.H_,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:i,...d,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.Srz,{className:"h-4 w-4"})})}),n]})}).displayName=s.H_.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,...i}=e;return(0,a.jsxs)(s.hN,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.RiX,{className:"h-4 w-4 fill-current"})})}),n]})}).displayName=s.hN.displayName;let m=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.JU,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",r),...l})});m.displayName=s.JU.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.wv,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...n})});f.displayName=s.wv.displayName},50049:(e,t,r)=>{"use strict";r.d(t,{w:()=>c});var a=r(20475),n=r(20107),s=r(34544),l="horizontal",o=["horizontal","vertical"],i=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=l,...i}=e,d=o.includes(n)?n:l;return(0,a.jsx)(s.sG.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=r(22250);let c=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:s=!0,...l}=e;return(0,a.jsx)(i,{ref:t,decorative:s,orientation:n,className:(0,d.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...l})});c.displayName=i.displayName},36760:(e,t,r)=>{"use strict";r.d(t,{E:()=>s});var a=r(20475),n=r(22250);function s(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},22250:(e,t,r)=>{"use strict";r.d(t,{cn:()=>s});var a=r(64901),n=r(868);function s(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{C:()=>l});var a=r(20107),n=r(64236),s=r(54122),l=e=>{let{present:t,children:r}=e,l=function(e){var t,r;let[n,l]=a.useState(),i=a.useRef({}),d=a.useRef(e),c=a.useRef("none"),[u,m]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>{let a=r[e][t];return null!=a?a:e},t));return a.useEffect(()=>{let e=o(i.current);c.current="mounted"===u?e:"none"},[u]),(0,s.N)(()=>{let t=i.current,r=d.current;if(r!==e){let a=c.current,n=o(t);e?m("MOUNT"):"none"===n||(null==t?void 0:t.display)==="none"?m("UNMOUNT"):r&&a!==n?m("ANIMATION_OUT"):m("UNMOUNT"),d.current=e}},[e,m]),(0,s.N)(()=>{if(n){var e;let t;let r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,a=e=>{let a=o(i.current).includes(e.animationName);if(e.target===n&&a&&(m("ANIMATION_END"),!d.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},s=e=>{e.target===n&&(c.current=o(i.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",a),n.addEventListener("animationend",a),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",a)}}m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback(e=>{e&&(i.current=getComputedStyle(e)),l(e)},[])}}(t),i="function"==typeof r?r({present:l.isPresent}):a.Children.only(r),d=(0,n.s)(l.ref,function(e){var t,r;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?e.ref:(n=(a=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof r||l.isPresent?a.cloneElement(i,{ref:d}):null};function o(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"}},e=>{var t=t=>e(e.s=t);e.O(0,[9980,7780,8885,7563,9464,9477,1074,7414,191,6035,7358],()=>t(47143)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-09d2072e268fa4c4.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-0d50a23651b89c67.js similarity index 94% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-09d2072e268fa4c4.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-0d50a23651b89c67.js index 0db634b..f8d26b2 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-09d2072e268fa4c4.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-0d50a23651b89c67.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5395],{58541:(e,r,t)=>{Promise.resolve().then(t.bind(t,84017))},84017:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var l=t(95155),n=t(12115);let a=[[[1,1,1,1]],[[1,1],[1,1]],[[1,1,1],[0,1,0]],[[1,1,1],[1,0,0]],[[1,1,1],[0,0,1]],[[1,1,0],[0,1,1]],[[0,1,1],[1,1,0]]],c=["#00f0f0","#f0f000","#a000f0","#f0a000","#0000f0","#00f000","#f00000"],s=()=>{let[e,r]=(0,n.useState)(()=>Array.from({length:20},()=>Array(10).fill(null))),[t,s]=(0,n.useState)([]),[u,f]=(0,n.useState)({x:0,y:0}),[i,o]=(0,n.useState)(""),[x,d]=(0,n.useState)(0),[h,y]=(0,n.useState)(0),[m,g]=(0,n.useState)(!1),[p,v]=(0,n.useState)(!1),b=(0,n.useRef)(u),k=(0,n.useRef)(t),w=(0,n.useRef)(e),C=(0,n.useRef)(i),S=(0,n.useRef)(p),j=(0,n.useCallback)(()=>Math.max(1e3-100*Math.floor(x/2e3),100),[x]);(0,n.useEffect)(()=>{b.current=u},[u]),(0,n.useEffect)(()=>{k.current=t},[t]),(0,n.useEffect)(()=>{w.current=e},[e]),(0,n.useEffect)(()=>{C.current=i},[i]),(0,n.useEffect)(()=>{S.current=p},[p]),(0,n.useEffect)(()=>{let e=localStorage.getItem("tetrisHighScore");e&&y(parseInt(e))},[]),(0,n.useEffect)(()=>{m&&x>h&&(y(x),localStorage.setItem("tetrisHighScore",x.toString()))},[m,x,h]);let E=(0,n.useCallback)(()=>{let e=Math.floor(Math.random()*a.length),r=a[e];s(r),o(c[e]),f({x:Math.floor(5-r[0].length/2),y:0}),v(!1)},[]),N=(0,n.useCallback)((e,r)=>{for(let t=0;t=10||n>=20||n>=0&&w.current[n][r])return!0}return!1},[]),R=(0,n.useCallback)(e=>{let r=e.filter(e=>e.some(e=>!e)),t=20-r.length;return t>0?(d(x+100*t),[...Array(t).fill(null).map(()=>Array(10).fill(null)),...r]):e},[x]),A=(0,n.useCallback)(()=>{if(S.current)return;let e=w.current.map(e=>[...e]),t=!1;if(b.current.y<=0&&N(b.current,k.current)){g(!0);return}for(let r=0;r{if(m||S.current)return;let e={x:b.current.x,y:b.current.y+1};if(N(e,k.current)){A();return}f(e)},[m,N,A]),_=(0,n.useCallback)(()=>{if(S.current)return;let e=k.current[0].map((e,r)=>k.current.map(e=>e[e.length-1-r]));for(let r of[{x:0,y:0},{x:-1,y:0},{x:1,y:0},{x:-2,y:0},{x:2,y:0}]){let t={x:b.current.x+r.x,y:b.current.y+r.y};if(!N(t,e)){f(t),s(e);return}}},[N]),D=(0,n.useCallback)(()=>{if(S.current)return;let e=b.current.y;for(;e<20&&!N({x:b.current.x,y:e+1},k.current);)e++;f({x:b.current.x,y:e}),setTimeout(()=>A(),0)},[N,A]),I=(0,n.useCallback)(()=>{r(Array.from({length:20},()=>Array(10).fill(null))),d(0),g(!1),v(!1),E()},[E]),H=(0,n.useCallback)(e=>{if("r"===e.key.toLowerCase()&&e.ctrlKey){e.preventDefault(),I();return}if(!m&&!S.current)switch(e.key){case"ArrowLeft":{let e={x:b.current.x-1,y:b.current.y};N(e,k.current)||f(e);break}case"ArrowRight":{let e={x:b.current.x+1,y:b.current.y};N(e,k.current)||f(e);break}case"ArrowDown":M();break;case"ArrowUp":_();break;case" ":e.preventDefault(),D()}},[m,N,M,_,D,I]);return(0,n.useEffect)(()=>{E()},[E]),(0,n.useEffect)(()=>{if(m)return;let e=setInterval(M,j());return()=>clearInterval(e)},[M,m,j]),(0,n.useEffect)(()=>(window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)),[H]),(0,l.jsxs)("div",{className:"min-h-screen bg-gray-900 flex flex-col items-center justify-center p-4",children:[(0,l.jsxs)("div",{className:"mb-4 space-y-2 text-center",children:[(0,l.jsxs)("div",{className:"text-2xl font-bold text-white",children:["Score: ",x]}),(0,l.jsxs)("div",{className:"text-xl font-bold text-yellow-500",children:["High Score: ",h]}),(0,l.jsxs)("div",{className:"text-sm text-gray-400",children:["Speed: ",Math.round(1e3/j()),"x"]})]}),(0,l.jsx)("div",{className:"bg-gray-800 p-2 rounded-lg shadow-lg",children:(0,l.jsx)("div",{className:"grid gap-px bg-gray-700",style:{gridTemplateRows:"repeat(".concat(20,", minmax(0, 1fr))"),gridTemplateColumns:"repeat(".concat(10,", minmax(0, 1fr))"),width:"".concat(240,"px"),height:"".concat(480,"px")},children:e.map((e,r)=>e.map((e,n)=>{var a,c;let s=r>=u.y&&r=u.x&&n{var r=r=>e(e.s=r);e.O(0,[8441,1517,7358],()=>r(58541)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5395],{86373:(e,r,t)=>{Promise.resolve().then(t.bind(t,55049))},55049:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var l=t(20475),n=t(20107);let a=[[[1,1,1,1]],[[1,1],[1,1]],[[1,1,1],[0,1,0]],[[1,1,1],[1,0,0]],[[1,1,1],[0,0,1]],[[1,1,0],[0,1,1]],[[0,1,1],[1,1,0]]],c=["#00f0f0","#f0f000","#a000f0","#f0a000","#0000f0","#00f000","#f00000"],s=()=>{let[e,r]=(0,n.useState)(()=>Array.from({length:20},()=>Array(10).fill(null))),[t,s]=(0,n.useState)([]),[u,f]=(0,n.useState)({x:0,y:0}),[i,o]=(0,n.useState)(""),[x,d]=(0,n.useState)(0),[h,y]=(0,n.useState)(0),[m,g]=(0,n.useState)(!1),[p,v]=(0,n.useState)(!1),b=(0,n.useRef)(u),k=(0,n.useRef)(t),w=(0,n.useRef)(e),C=(0,n.useRef)(i),S=(0,n.useRef)(p),j=(0,n.useCallback)(()=>Math.max(1e3-100*Math.floor(x/2e3),100),[x]);(0,n.useEffect)(()=>{b.current=u},[u]),(0,n.useEffect)(()=>{k.current=t},[t]),(0,n.useEffect)(()=>{w.current=e},[e]),(0,n.useEffect)(()=>{C.current=i},[i]),(0,n.useEffect)(()=>{S.current=p},[p]),(0,n.useEffect)(()=>{let e=localStorage.getItem("tetrisHighScore");e&&y(parseInt(e))},[]),(0,n.useEffect)(()=>{m&&x>h&&(y(x),localStorage.setItem("tetrisHighScore",x.toString()))},[m,x,h]);let E=(0,n.useCallback)(()=>{let e=Math.floor(Math.random()*a.length),r=a[e];s(r),o(c[e]),f({x:Math.floor(5-r[0].length/2),y:0}),v(!1)},[]),N=(0,n.useCallback)((e,r)=>{for(let t=0;t=10||n>=20||n>=0&&w.current[n][r])return!0}return!1},[]),R=(0,n.useCallback)(e=>{let r=e.filter(e=>e.some(e=>!e)),t=20-r.length;return t>0?(d(x+100*t),[...Array(t).fill(null).map(()=>Array(10).fill(null)),...r]):e},[x]),A=(0,n.useCallback)(()=>{if(S.current)return;let e=w.current.map(e=>[...e]),t=!1;if(b.current.y<=0&&N(b.current,k.current)){g(!0);return}for(let r=0;r{if(m||S.current)return;let e={x:b.current.x,y:b.current.y+1};if(N(e,k.current)){A();return}f(e)},[m,N,A]),_=(0,n.useCallback)(()=>{if(S.current)return;let e=k.current[0].map((e,r)=>k.current.map(e=>e[e.length-1-r]));for(let r of[{x:0,y:0},{x:-1,y:0},{x:1,y:0},{x:-2,y:0},{x:2,y:0}]){let t={x:b.current.x+r.x,y:b.current.y+r.y};if(!N(t,e)){f(t),s(e);return}}},[N]),D=(0,n.useCallback)(()=>{if(S.current)return;let e=b.current.y;for(;e<20&&!N({x:b.current.x,y:e+1},k.current);)e++;f({x:b.current.x,y:e}),setTimeout(()=>A(),0)},[N,A]),I=(0,n.useCallback)(()=>{r(Array.from({length:20},()=>Array(10).fill(null))),d(0),g(!1),v(!1),E()},[E]),H=(0,n.useCallback)(e=>{if("r"===e.key.toLowerCase()&&e.ctrlKey){e.preventDefault(),I();return}if(!m&&!S.current)switch(e.key){case"ArrowLeft":{let e={x:b.current.x-1,y:b.current.y};N(e,k.current)||f(e);break}case"ArrowRight":{let e={x:b.current.x+1,y:b.current.y};N(e,k.current)||f(e);break}case"ArrowDown":M();break;case"ArrowUp":_();break;case" ":e.preventDefault(),D()}},[m,N,M,_,D,I]);return(0,n.useEffect)(()=>{E()},[E]),(0,n.useEffect)(()=>{if(m)return;let e=setInterval(M,j());return()=>clearInterval(e)},[M,m,j]),(0,n.useEffect)(()=>(window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)),[H]),(0,l.jsxs)("div",{className:"min-h-screen bg-gray-900 flex flex-col items-center justify-center p-4",children:[(0,l.jsxs)("div",{className:"mb-4 space-y-2 text-center",children:[(0,l.jsxs)("div",{className:"text-2xl font-bold text-white",children:["Score: ",x]}),(0,l.jsxs)("div",{className:"text-xl font-bold text-yellow-500",children:["High Score: ",h]}),(0,l.jsxs)("div",{className:"text-sm text-gray-400",children:["Speed: ",Math.round(1e3/j()),"x"]})]}),(0,l.jsx)("div",{className:"bg-gray-800 p-2 rounded-lg shadow-lg",children:(0,l.jsx)("div",{className:"grid gap-px bg-gray-700",style:{gridTemplateRows:"repeat(".concat(20,", minmax(0, 1fr))"),gridTemplateColumns:"repeat(".concat(10,", minmax(0, 1fr))"),width:"".concat(240,"px"),height:"".concat(480,"px")},children:e.map((e,r)=>e.map((e,n)=>{var a,c;let s=r>=u.y&&r=u.x&&n{var r=r=>e(e.s=r);e.O(0,[191,6035,7358],()=>r(86373)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-9fb276f2e182b14f.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-9fb276f2e182b14f.js new file mode 100644 index 0000000..f8d26b2 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-9fb276f2e182b14f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5395],{86373:(e,r,t)=>{Promise.resolve().then(t.bind(t,55049))},55049:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var l=t(20475),n=t(20107);let a=[[[1,1,1,1]],[[1,1],[1,1]],[[1,1,1],[0,1,0]],[[1,1,1],[1,0,0]],[[1,1,1],[0,0,1]],[[1,1,0],[0,1,1]],[[0,1,1],[1,1,0]]],c=["#00f0f0","#f0f000","#a000f0","#f0a000","#0000f0","#00f000","#f00000"],s=()=>{let[e,r]=(0,n.useState)(()=>Array.from({length:20},()=>Array(10).fill(null))),[t,s]=(0,n.useState)([]),[u,f]=(0,n.useState)({x:0,y:0}),[i,o]=(0,n.useState)(""),[x,d]=(0,n.useState)(0),[h,y]=(0,n.useState)(0),[m,g]=(0,n.useState)(!1),[p,v]=(0,n.useState)(!1),b=(0,n.useRef)(u),k=(0,n.useRef)(t),w=(0,n.useRef)(e),C=(0,n.useRef)(i),S=(0,n.useRef)(p),j=(0,n.useCallback)(()=>Math.max(1e3-100*Math.floor(x/2e3),100),[x]);(0,n.useEffect)(()=>{b.current=u},[u]),(0,n.useEffect)(()=>{k.current=t},[t]),(0,n.useEffect)(()=>{w.current=e},[e]),(0,n.useEffect)(()=>{C.current=i},[i]),(0,n.useEffect)(()=>{S.current=p},[p]),(0,n.useEffect)(()=>{let e=localStorage.getItem("tetrisHighScore");e&&y(parseInt(e))},[]),(0,n.useEffect)(()=>{m&&x>h&&(y(x),localStorage.setItem("tetrisHighScore",x.toString()))},[m,x,h]);let E=(0,n.useCallback)(()=>{let e=Math.floor(Math.random()*a.length),r=a[e];s(r),o(c[e]),f({x:Math.floor(5-r[0].length/2),y:0}),v(!1)},[]),N=(0,n.useCallback)((e,r)=>{for(let t=0;t=10||n>=20||n>=0&&w.current[n][r])return!0}return!1},[]),R=(0,n.useCallback)(e=>{let r=e.filter(e=>e.some(e=>!e)),t=20-r.length;return t>0?(d(x+100*t),[...Array(t).fill(null).map(()=>Array(10).fill(null)),...r]):e},[x]),A=(0,n.useCallback)(()=>{if(S.current)return;let e=w.current.map(e=>[...e]),t=!1;if(b.current.y<=0&&N(b.current,k.current)){g(!0);return}for(let r=0;r{if(m||S.current)return;let e={x:b.current.x,y:b.current.y+1};if(N(e,k.current)){A();return}f(e)},[m,N,A]),_=(0,n.useCallback)(()=>{if(S.current)return;let e=k.current[0].map((e,r)=>k.current.map(e=>e[e.length-1-r]));for(let r of[{x:0,y:0},{x:-1,y:0},{x:1,y:0},{x:-2,y:0},{x:2,y:0}]){let t={x:b.current.x+r.x,y:b.current.y+r.y};if(!N(t,e)){f(t),s(e);return}}},[N]),D=(0,n.useCallback)(()=>{if(S.current)return;let e=b.current.y;for(;e<20&&!N({x:b.current.x,y:e+1},k.current);)e++;f({x:b.current.x,y:e}),setTimeout(()=>A(),0)},[N,A]),I=(0,n.useCallback)(()=>{r(Array.from({length:20},()=>Array(10).fill(null))),d(0),g(!1),v(!1),E()},[E]),H=(0,n.useCallback)(e=>{if("r"===e.key.toLowerCase()&&e.ctrlKey){e.preventDefault(),I();return}if(!m&&!S.current)switch(e.key){case"ArrowLeft":{let e={x:b.current.x-1,y:b.current.y};N(e,k.current)||f(e);break}case"ArrowRight":{let e={x:b.current.x+1,y:b.current.y};N(e,k.current)||f(e);break}case"ArrowDown":M();break;case"ArrowUp":_();break;case" ":e.preventDefault(),D()}},[m,N,M,_,D,I]);return(0,n.useEffect)(()=>{E()},[E]),(0,n.useEffect)(()=>{if(m)return;let e=setInterval(M,j());return()=>clearInterval(e)},[M,m,j]),(0,n.useEffect)(()=>(window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)),[H]),(0,l.jsxs)("div",{className:"min-h-screen bg-gray-900 flex flex-col items-center justify-center p-4",children:[(0,l.jsxs)("div",{className:"mb-4 space-y-2 text-center",children:[(0,l.jsxs)("div",{className:"text-2xl font-bold text-white",children:["Score: ",x]}),(0,l.jsxs)("div",{className:"text-xl font-bold text-yellow-500",children:["High Score: ",h]}),(0,l.jsxs)("div",{className:"text-sm text-gray-400",children:["Speed: ",Math.round(1e3/j()),"x"]})]}),(0,l.jsx)("div",{className:"bg-gray-800 p-2 rounded-lg shadow-lg",children:(0,l.jsx)("div",{className:"grid gap-px bg-gray-700",style:{gridTemplateRows:"repeat(".concat(20,", minmax(0, 1fr))"),gridTemplateColumns:"repeat(".concat(10,", minmax(0, 1fr))"),width:"".concat(240,"px"),height:"".concat(480,"px")},children:e.map((e,r)=>e.map((e,n)=>{var a,c;let s=r>=u.y&&r=u.x&&n{var r=r=>e(e.s=r);e.O(0,[191,6035,7358],()=>r(86373)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3d47b92a-446f204e6fed896c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/b1b46485-5c61721f784038c7.js similarity index 86% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3d47b92a-446f204e6fed896c.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/b1b46485-5c61721f784038c7.js index 24e6b82..2842373 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3d47b92a-446f204e6fed896c.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/b1b46485-5c61721f784038c7.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3873],{76084:(t,h,a)=>{a.d(h,{G7Q:()=>i,NJ4:()=>r,sRp:()=>n,z_q:()=>z,ztD:()=>c});var v=a(93435);function r(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3z"},child:[]}]})(t)}function i(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3zm4-3h2v8H7z"},child:[]}]})(t)}function c(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3zm4-3h2v8H7zm4-3h2v11h-2z"},child:[]}]})(t)}function n(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3zm4-3h2v8H7zm4-3h2v11h-2zm4-3h2v14h-2z"},child:[]}]})(t)}function z(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3zm4-3h2v8H7zm4-3h2v11h-2zm4-3h2v14h-2zm4-3h2v17h-2z"},child:[]}]})(t)}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2101],{38741:(t,h,a)=>{a.d(h,{G7Q:()=>i,NJ4:()=>r,sRp:()=>n,z_q:()=>z,ztD:()=>c});var v=a(45930);function r(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3z"},child:[]}]})(t)}function i(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3zm4-3h2v8H7z"},child:[]}]})(t)}function c(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3zm4-3h2v8H7zm4-3h2v11h-2z"},child:[]}]})(t)}function n(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3zm4-3h2v8H7zm4-3h2v11h-2zm4-3h2v14h-2z"},child:[]}]})(t)}function z(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 16h2v5H3zm4-3h2v8H7zm4-3h2v11h-2zm4-3h2v14h-2zm4-3h2v17h-2z"},child:[]}]})(t)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4bd1b696-d9f97cd790f489fc.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/b26ba64e-64bde820b76ccdd1.js similarity index 99% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4bd1b696-d9f97cd790f489fc.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/b26ba64e-64bde820b76ccdd1.js index c52d43d..d632842 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4bd1b696-d9f97cd790f489fc.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/b26ba64e-64bde820b76ccdd1.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8441],{59248:(e,n,t)=>{var r,l,a=t(2818),o=t(31507),i=t(12115),u=t(47650);function s(e){var n="https://react.dev/errors/"+e;if(1)":-1l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{M=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?O(t):""}function R(e){try{var n="";do n+=function(e){switch(e.tag){case 26:case 27:case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 15:return e=A(e.type,!1);case 11:return e=A(e.type.render,!1);case 1:return e=A(e.type,!0);default:return""}}(e),e=e.return;while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function I(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do 0!=(4098&(n=e).flags)&&(t=n.return),e=n.return;while(e)}return 3===n.tag?t:null}function U(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function V(e){if(I(e)!==e)throw Error(s(188))}var j=Array.isArray,B=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},$=[],W=-1;function H(e){return{current:e}}function q(e){0>W||(e.current=$[W],$[W]=null,W--)}function K(e,n){$[++W]=e.current,e.current=n}var Y=H(null),X=H(null),G=H(null),Z=H(null);function J(e,n){switch(K(G,n),K(X,e),K(Y,null),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?se(n):0;break;default:if(n=(e=8===e?n.parentNode:n).tagName,e=e.namespaceURI)n=sn(e=se(e),n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(Y),K(Y,n)}function ee(){q(Y),q(X),q(G)}function en(e){null!==e.memoizedState&&K(Z,e);var n=Y.current,t=sn(n,e.type);n!==t&&(K(X,e),K(Y,t))}function et(e){X.current===e&&(q(Y),q(X)),Z.current===e&&(q(Z),sj._currentValue=Q)}var er=Object.prototype.hasOwnProperty,el=o.unstable_scheduleCallback,ea=o.unstable_cancelCallback,eo=o.unstable_shouldYield,ei=o.unstable_requestPaint,eu=o.unstable_now,es=o.unstable_getCurrentPriorityLevel,ec=o.unstable_ImmediatePriority,ef=o.unstable_UserBlockingPriority,ed=o.unstable_NormalPriority,ep=o.unstable_LowPriority,em=o.unstable_IdlePriority,eh=o.log,eg=o.unstable_setDisableYieldValue,ey=null,ev=null;function eb(e){if("function"==typeof eh&&eg(e),ev&&"function"==typeof ev.setStrictMode)try{ev.setStrictMode(ey,e)}catch(e){}}var ek=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ew(e)/eS|0)|0},ew=Math.log,eS=Math.LN2,ex=128,eE=4194304;function eC(e){var n=42&e;if(0!==n)return n;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:return 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 4194176&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function ez(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,o=e.warmLanes;e=0!==e.finishedLanes;var i=0x7ffffff&t;return 0!==i?0!=(t=i&~l)?r=eC(t):0!=(a&=i)?r=eC(a):e||0!=(o=i&~o)&&(r=eC(o)):0!=(i=t&~l)?r=eC(i):0!==a?r=eC(a):e||0!=(o=t&~o)&&(r=eC(o)),0===r?0:0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(o=n&-n)||32===l&&0!=(4194176&o))?n:r}function eP(e,n){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function eN(){var e=ex;return 0==(4194176&(ex<<=1))&&(ex=128),e}function eL(){var e=eE;return 0==(0x3c00000&(eE<<=1))&&(eE=4194304),e}function eT(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function e_(e,n){e.pendingLanes|=n,0x10000000!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eF(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-ek(n);e.entangledLanes|=n,e.entanglements[r]=0x40000000|e.entanglements[r]|4194218&t}function eD(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-ek(t),l=1<=te),tr=!1;function tl(e,n){switch(e){case"keyup":return -1!==n9.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ta(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var to=!1,ti={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 tu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!ti[e.type]:"textarea"===n}function ts(e,n,t,r){nw?nS?nS.push(r):nS=[r]:nw=r,0<(n=uX(n,"onChange")).length&&(t=new nj("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var tc=null,tf=null;function td(e){uB(e,0)}function tp(e){if(nn(eK(e)))return e}function tm(e,n){if("change"===e)return n}var th=!1;if(e1){if(e1){var tg="oninput"in document;if(!tg){var ty=document.createElement("div");ty.setAttribute("oninput","return;"),tg="function"==typeof ty.oninput}r=tg}else r=!1;th=r&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tz(r)}}function tN(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var n=nt(e.document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=nt(e.document)}return n}function tL(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var tT=e1&&"documentMode"in document&&11>=document.documentMode,t_=null,tF=null,tD=null,tO=!1;function tM(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tO||null==t_||t_!==nt(r)||(r="selectionStart"in(r=t_)&&tL(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tD&&tC(tD,r)||(tD=r,0<(r=uX(tF,"onSelect")).length&&(n=new nj("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=t_)))}function tA(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var tR={animationend:tA("Animation","AnimationEnd"),animationiteration:tA("Animation","AnimationIteration"),animationstart:tA("Animation","AnimationStart"),transitionrun:tA("Transition","TransitionRun"),transitionstart:tA("Transition","TransitionStart"),transitioncancel:tA("Transition","TransitionCancel"),transitionend:tA("Transition","TransitionEnd")},tI={},tU={};function tV(e){if(tI[e])return tI[e];if(!tR[e])return e;var n,t=tR[e];for(n in t)if(t.hasOwnProperty(n)&&n in tU)return tI[e]=t[n];return e}e1&&(tU=document.createElement("div").style,"AnimationEvent"in window||(delete tR.animationend.animation,delete tR.animationiteration.animation,delete tR.animationstart.animation),"TransitionEvent"in window||delete tR.transitionend.transition);var tj=tV("animationend"),tB=tV("animationiteration"),tQ=tV("animationstart"),t$=tV("transitionrun"),tW=tV("transitionstart"),tH=tV("transitioncancel"),tq=tV("transitionend"),tK=new Map,tY="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function tX(e,n){tK.set(e,n),eJ(n,[e])}var tG=[],tZ=0,tJ=0;function t0(){for(var e=tZ,n=tJ=tZ=0;n>=o,l-=o,ro=1<<32-ek(n)+l|t<a?a:8;var o=F.T,i={};F.T=i,al(e,!1,n,t);try{var u=l(),s=F.S;if(null!==s&&s(i,u),null!==u&&"object"==typeof u&&"function"==typeof u.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},u.then(function(){f.status="fulfilled",f.value=r;for(var e=0;ed?(p=f,f=null):p=f.sibling;var m=g(l,f,i[d],u);if(null===m){null===f&&(f=p);break}e&&f&&null===m.alternate&&n(l,f),o=a(m,o,d),null===c?s=m:c.sibling=m,c=m,f=p}if(d===i.length)return t(l,f),rm&&ru(l,d),s;if(null===f){for(;dp?(m=d,d=null):m=d.sibling;var b=g(l,d,v.value,u);if(null===b){null===d&&(d=m);break}e&&d&&null===b.alternate&&n(l,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=m}if(v.done)return t(l,d),rm&&ru(l,p),c;if(null===d){for(;!v.done;p++,v=i.next())null!==(v=h(l,v.value,u))&&(o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return rm&&ru(l,p),c}for(d=r(d);!v.done;p++,v=i.next())null!==(v=y(d,l,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach(function(e){return n(l,e)}),rm&&ru(l,p),c}(u,c,f=k.call(f),v)}if("function"==typeof f.then)return i(u,c,am(f),v);if(f.$$typeof===b)return i(u,c,og(u,f),v);ag(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(t(u,c.sibling),(v=l(c,f)).return=u):(t(u,c),(v=iy(f,u.mode,v)).return=u),o(u=v)):t(u,c)}(i,u,c,f);return ad=null,v}catch(e){if(e===rE||e===rz)throw e;var k=is(29,e,null,i.mode);return k.lanes=f,k.return=i,k}finally{}}}var ab=av(!0),ak=av(!1),aw=H(null),aS=null;function ax(e){var n=e.alternate;K(aP,1&aP.current),K(aw,e),null===aS&&(null===n||null!==rW.current?aS=e:null!==n.memoizedState&&(aS=e))}function aE(e){if(22===e.tag){if(K(aP,aP.current),K(aw,e),null===aS){var n=e.alternate;null!==n&&null!==n.memoizedState&&(aS=e)}}else aC(e)}function aC(){K(aP,aP.current),K(aw,aw.current)}function az(e){q(aw),aS===e&&(aS=null),q(aP)}var aP=H(0);function aN(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||sf(t)))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function aL(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:D({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var aT={isMounted:function(e){return!!(e=e._reactInternals)&&I(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=i4(),l=ow(r);l.payload=n,null!=t&&(l.callback=t),null!==(n=oS(e,l,r))&&(i6(n,e,r),ox(n,e,r))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=i4(),l=ow(r);l.tag=1,l.payload=n,null!=t&&(l.callback=t),null!==(n=oS(e,l,r))&&(i6(n,e,r),ox(n,e,r))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=i4(),r=ow(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=oS(e,r,t))&&(i6(n,e,t),ox(n,e,t))}};function a_(e,n,t,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!n.prototype||!n.prototype.isPureReactComponent||!tC(t,r)||!tC(l,a)}function aF(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&aT.enqueueReplaceState(n,n.state,null)}function aD(e,n){var t=n;if("ref"in n)for(var r in t={},n)"ref"!==r&&(t[r]=n[r]);if(e=e.defaultProps)for(var l in t===n&&(t=D({},t)),e)void 0===t[l]&&(t[l]=e[l]);return t}var aO="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof a&&"function"==typeof a.emit){a.emit("uncaughtException",e);return}console.error(e)};function aM(e){aO(e)}function aA(e){console.error(e)}function aR(e){aO(e)}function aI(e,n){try{(0,e.onUncaughtError)(n.value,{componentStack:n.stack})}catch(e){setTimeout(function(){throw e})}}function aU(e,n,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function aV(e,n,t){return(t=ow(t)).tag=3,t.payload={element:null},t.callback=function(){aI(e,n)},t}function aj(e){return(e=ow(e)).tag=3,e}function aB(e,n,t,r){var l=t.type.getDerivedStateFromError;if("function"==typeof l){var a=r.value;e.payload=function(){return l(a)},e.callback=function(){aU(n,t,r)}}var o=t.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){aU(n,t,r),"function"!=typeof l&&(null===iY?iY=new Set([this]):iY.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var aQ=Error(s(461)),a$=!1;function aW(e,n,t,r){n.child=null===e?ak(n,null,t,r):ab(n,e.child,t,r)}function aH(e,n,t,r,l){t=t.render;var a=n.ref;if("ref"in r){var o={};for(var i in r)"ref"!==i&&(o[i]=r[i])}else o=r;return(om(n),r=ll(e,n,t,o,a,l),i=lu(),null===e||a$)?(rm&&i&&rc(n),n.flags|=1,aW(e,n,r,l),n.child):(ls(e,n,l),ot(e,n,l))}function aq(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||ic(a)||void 0!==a.defaultProps||null!==t.compare?((e=im(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,aK(e,n,a,r,l))}if(a=e.child,!or(e,l)){var o=a.memoizedProps;if((t=null!==(t=t.compare)?t:tC)(o,r)&&e.ref===n.ref)return ot(e,n,l)}return n.flags|=1,(e=id(a,r)).ref=n.ref,e.return=n,n.child=e}function aK(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(tC(a,r)&&e.ref===n.ref){if(a$=!1,n.pendingProps=r=a,!or(e,l))return n.lanes=e.lanes,ot(e,n,l);0!=(131072&e.flags)&&(a$=!0)}}return aZ(e,n,t,r,l)}function aY(e,n,t){var r=n.pendingProps,l=r.children,a=0!=(2&n.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(aG(e,n),"hidden"===r.mode||a){if(0!=(128&n.flags)){if(r=null!==o?o.baseLanes|t:t,null!==e){for(a=0,l=n.child=e.child;null!==l;)a=a|l.lanes|l.childLanes,l=l.sibling;n.childLanes=a&~r}else n.childLanes=0,n.child=null;return aX(e,n,r,t)}if(0==(0x20000000&t))return n.lanes=n.childLanes=0x20000000,aX(e,n,null!==o?o.baseLanes|t:t,t);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&rJ(n,null!==o?o.cachePool:null),null!==o?rq(n,o):rK(),aE(n)}else null!==o?(rJ(n,o.cachePool),rq(n,o),aC(n),n.memoizedState=null):(null!==e&&rJ(n,null),rK(),aC(n));return aW(e,n,l,t),n.child}function aX(e,n,t,r){var l=rZ();return l=null===l?null:{parent:rR._currentValue,pool:l},n.memoizedState={baseLanes:t,cachePool:l},null!==e&&rJ(n,null),rK(),aE(n),null!==e&&od(e,n,r,!0),null}function aG(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=2097664);else{if("function"!=typeof t&&"object"!=typeof t)throw Error(s(284));(null===e||e.ref!==t)&&(n.flags|=2097664)}}function aZ(e,n,t,r,l){return(om(n),t=ll(e,n,t,r,void 0,l),r=lu(),null===e||a$)?(rm&&r&&rc(n),n.flags|=1,aW(e,n,t,l),n.child):(ls(e,n,l),ot(e,n,l))}function aJ(e,n,t,r,l,a){return(om(n),n.updateQueue=null,t=lo(n,r,t,l),la(e),r=lu(),null===e||a$)?(rm&&r&&rc(n),n.flags|=1,aW(e,n,t,a),n.child):(ls(e,n,a),ot(e,n,a))}function a0(e,n,t,r,l){if(om(n),null===n.stateNode){var a=t8,o=t.contextType;"object"==typeof o&&null!==o&&(a=oh(o)),a=new t(r,a),n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=aT,n.stateNode=a,a._reactInternals=n,(a=n.stateNode).props=r,a.state=n.memoizedState,a.refs={},ob(n),o=t.contextType,a.context="object"==typeof o&&null!==o?oh(o):t8,a.state=n.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(aL(n,t,o,r),a.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&aT.enqueueReplaceState(a,a.state,null),oP(n,r,a,l),oz(),a.state=n.memoizedState),"function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!0}else if(null===e){a=n.stateNode;var i=n.memoizedProps,u=aD(t,i);a.props=u;var s=a.context,c=t.contextType;o=t8,"object"==typeof c&&null!==c&&(o=oh(c));var f=t.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate,i=n.pendingProps!==i,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i||s!==o)&&aF(n,a,r,o),ov=!1;var d=n.memoizedState;a.state=d,oP(n,r,a,l),oz(),s=n.memoizedState,i||d!==s||ov?("function"==typeof f&&(aL(n,t,f,r),s=n.memoizedState),(u=ov||a_(n,t,u,r,d,s,o))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(n.flags|=4194308)):("function"==typeof a.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),a.props=r,a.state=s,a.context=o,r=u):("function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!1)}else{a=n.stateNode,ok(e,n),c=aD(t,o=n.memoizedProps),a.props=c,f=n.pendingProps,d=a.context,s=t.contextType,u=t8,"object"==typeof s&&null!==s&&(u=oh(s)),(s="function"==typeof(i=t.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==f||d!==u)&&aF(n,a,r,u),ov=!1,d=n.memoizedState,a.state=d,oP(n,r,a,l),oz();var p=n.memoizedState;o!==f||d!==p||ov||null!==e&&null!==e.dependencies&&op(e.dependencies)?("function"==typeof i&&(aL(n,t,i,r),p=n.memoizedState),(c=ov||a_(n,t,c,r,d,p,u)||null!==e&&null!==e.dependencies&&op(e.dependencies))?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(n.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return a=r,aG(e,n),r=0!=(128&n.flags),a||r?(a=n.stateNode,t=r&&"function"!=typeof t.getDerivedStateFromError?null:a.render(),n.flags|=1,null!==e&&r?(n.child=ab(n,e.child,null,l),n.child=ab(n,null,t,l)):aW(e,n,t,l),n.memoizedState=a.state,e=n.child):e=ot(e,n,l),e}function a1(e,n,t,r){return rS(),n.flags|=256,aW(e,n,t,r),n.child}var a2={dehydrated:null,treeContext:null,retryLane:0};function a4(e){return{baseLanes:e,cachePool:r0()}}function a3(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=ij),e}function a6(e,n,t){var r,l=n.pendingProps,a=!1,o=0!=(128&n.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&aP.current)),r&&(a=!0,n.flags&=-129),r=0!=(32&n.flags),n.flags&=-33,null===e){if(rm){if(a?ax(n):aC(n),rm){var i,u=rp;if(i=u){t:{for(i=u,u=rg;8!==i.nodeType;)if(!u||null===(i=sd(i.nextSibling))){u=null;break t}u=i}null!==u?(n.memoizedState={dehydrated:u,treeContext:null!==ra?{id:ro,overflow:ri}:null,retryLane:0x20000000},(i=is(18,null,null,0)).stateNode=u,i.return=n,n.child=i,rd=n,rp=null,i=!0):i=!1}i||rv(n)}if(null!==(u=n.memoizedState)&&null!==(u=u.dehydrated))return sf(u)?n.lanes=16:n.lanes=0x20000000,null;az(n)}return(u=l.children,l=l.fallback,a)?(aC(n),u=a5({mode:"hidden",children:u},a=n.mode),l=ih(l,a,t,null),u.return=n,l.return=n,u.sibling=l,n.child=u,(a=n.child).memoizedState=a4(t),a.childLanes=a3(e,r,t),n.memoizedState=a2,l):(ax(n),a8(n,u))}if(null!==(i=e.memoizedState)&&null!==(u=i.dehydrated)){if(o)256&n.flags?(ax(n),n.flags&=-257,n=a9(e,n,t)):null!==n.memoizedState?(aC(n),n.child=e.child,n.flags|=128,n=null):(aC(n),a=l.fallback,u=n.mode,l=a5({mode:"visible",children:l.children},u),a=ih(a,u,t,null),a.flags|=2,l.return=n,a.return=n,l.sibling=a,n.child=l,ab(n,e.child,null,t),(l=n.child).memoizedState=a4(t),l.childLanes=a3(e,r,t),n.memoizedState=a2,n=a);else if(ax(n),sf(u)){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(l=Error(s(419))).stack="",l.digest=r,rx({value:l,source:null,stack:null}),n=a9(e,n,t)}else if(a$||od(e,n,t,!1),r=0!=(t&e.childLanes),a$||r){if(null!==(r=iN)){if(0!=(42&(l=t&-t)))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;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 0x1000000:case 0x2000000:l=64;break;case 0x10000000:l=0x8000000;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|t))?0:l)&&l!==i.retryLane)throw i.retryLane=l,t4(e,l),i6(r,e,l),aQ}"$?"===u.data||uo(),n=a9(e,n,t)}else"$?"===u.data?(n.flags|=192,n.child=e.child,n=null):(e=i.treeContext,rp=sd(u.nextSibling),rd=n,rm=!0,rh=null,rg=!1,null!==e&&(rr[rl++]=ro,rr[rl++]=ri,rr[rl++]=ra,ro=e.id,ri=e.overflow,ra=n),n=a8(n,l.children),n.flags|=4096);return n}return a?(aC(n),a=l.fallback,u=n.mode,c=(i=e.child).sibling,(l=id(i,{mode:"hidden",children:l.children})).subtreeFlags=0x1e00000&i.subtreeFlags,null!==c?a=id(c,a):(a=ih(a,u,t,null),a.flags|=2),a.return=n,l.return=n,l.sibling=a,n.child=l,l=a,a=n.child,null===(u=e.child.memoizedState)?u=a4(t):(null!==(i=u.cachePool)?(c=rR._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=r0(),u={baseLanes:u.baseLanes|t,cachePool:i}),a.memoizedState=u,a.childLanes=a3(e,r,t),n.memoizedState=a2,l):(ax(n),e=(t=e.child).sibling,(t=id(t,{mode:"visible",children:l.children})).return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t,n.memoizedState=null,t)}function a8(e,n){return(n=a5({mode:"visible",children:n},e.mode)).return=e,e.child=n}function a5(e,n){return ig(e,n,0,null)}function a9(e,n,t){return ab(n,e.child,null,t),e=a8(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function a7(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),oc(e.return,n,t)}function oe(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function on(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(aW(e,n,r.children,t),0!=(2&(r=aP.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&a7(e,t,n);else if(19===e.tag)a7(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(K(aP,r),l){case"forwards":for(l=null,t=n.child;null!==t;)null!==(e=t.alternate)&&null===aN(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),oe(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===aN(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}oe(n,!0,t,null,a);break;case"together":oe(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ot(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),iI|=n.lanes,0==(t&n.childLanes)&&(null===e||(od(e,n,t,!1),0==(t&n.childLanes))))return null;if(null!==e&&n.child!==e.child)throw Error(s(153));if(null!==n.child){for(t=id(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=id(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function or(e,n){return 0!=(e.lanes&n)||!!(null!==(e=e.dependencies)&&op(e))}function ol(e,n,t){if(null!==e){if(e.memoizedProps!==n.pendingProps)a$=!0;else{if(!or(e,t)&&0==(128&n.flags))return a$=!1,function(e,n,t){switch(n.tag){case 3:J(n,n.stateNode.containerInfo),ou(n,rR,e.memoizedState.cache),rS();break;case 27:case 5:en(n);break;case 4:J(n,n.stateNode.containerInfo);break;case 10:ou(n,n.type,n.memoizedProps.value);break;case 13:var r=n.memoizedState;if(null!==r){if(null!==r.dehydrated)return ax(n),n.flags|=128,null;if(0!=(t&n.child.childLanes))return a6(e,n,t);return ax(n),null!==(e=ot(e,n,t))?e.sibling:null}ax(n);break;case 19:var l=0!=(128&e.flags);if((r=0!=(t&n.childLanes))||(od(e,n,t,!1),r=0!=(t&n.childLanes)),l){if(r)return on(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),K(aP,aP.current),!r)return null;break;case 22:case 23:return n.lanes=0,aY(e,n,t);case 24:ou(n,rR,e.memoizedState.cache)}return ot(e,n,t)}(e,n,t);a$=0!=(131072&e.flags)}}else a$=!1,rm&&0!=(1048576&n.flags)&&rs(n,rt,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var r=n.elementType,l=r._init;if(r=l(r._payload),n.type=r,"function"==typeof r)ic(r)?(e=aD(r,e),n.tag=1,n=a0(null,n,r,e,t)):(n.tag=0,n=aZ(null,n,r,e,t));else{if(null!=r){if((l=r.$$typeof)===k){n.tag=11,n=aH(null,n,r,e,t);break e}if(l===x){n.tag=14,n=aq(null,n,r,e,t);break e}}throw Error(s(306,n=function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===_?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case m:return"Fragment";case p:return"Portal";case g:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case S:return"SuspenseList"}if("object"==typeof n)switch(n.$$typeof){case b:return(n.displayName||"Context")+".Provider";case v:return(n._context.displayName||"Context")+".Consumer";case k:var t=n.render;return(n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case x:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case E:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(r)||r,""))}}return n;case 0:return aZ(e,n,n.type,n.pendingProps,t);case 1:return l=aD(r=n.type,n.pendingProps),a0(e,n,r,l,t);case 3:e:{if(J(n,n.stateNode.containerInfo),null===e)throw Error(s(387));var a=n.pendingProps;r=(l=n.memoizedState).element,ok(e,n),oP(n,a,null,t);var o=n.memoizedState;if(ou(n,rR,a=o.cache),a!==l.cache&&of(n,[rR],t,!0),oz(),a=o.element,l.isDehydrated){if(l={element:a,isDehydrated:!1,cache:o.cache},n.updateQueue.baseState=l,n.memoizedState=l,256&n.flags){n=a1(e,n,a,t);break e}if(a!==r){rx(r=t9(Error(s(424)),n)),n=a1(e,n,a,t);break e}for(rp=sd(n.stateNode.containerInfo.firstChild),rd=n,rm=!0,rh=null,rg=!0,t=ak(n,null,a,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(rS(),a===r){n=ot(e,n,t);break e}aW(e,n,a,t)}n=n.child}return n;case 26:return aG(e,n),null===e?(t=sw(n.type,null,n.pendingProps,null))?n.memoizedState=t:rm||(t=n.type,e=n.pendingProps,(r=u7(G.current).createElement(t))[eR]=n,r[eI]=e,u8(r,t,e),eX(r),n.stateNode=r):n.memoizedState=sw(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return en(n),null===e&&rm&&(r=n.stateNode=sm(n.type,n.pendingProps,G.current),rd=n,rg=!0,rp=sd(r.firstChild)),r=n.pendingProps.children,null!==e||rm?aW(e,n,r,t):n.child=ab(n,null,r,t),aG(e,n),n.child;case 5:return null===e&&rm&&((l=r=rp)&&(null!==(r=function(e,n,t,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[e$])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(l=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||l!==t.rel||e.getAttribute("href")!==(null==t.href?null:t.href)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin)||e.getAttribute("title")!==(null==t.title?null:t.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((l=e.getAttribute("src"))!==(null==t.src?null:t.src)||e.getAttribute("type")!==(null==t.type?null:t.type)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;var l=null==t.name?null:""+t.name;if("hidden"===t.type&&e.getAttribute("name")===l)return e}if(null===(e=sd(e.nextSibling)))break}return null}(r,n.type,n.pendingProps,rg))?(n.stateNode=r,rd=n,rp=sd(r.firstChild),rg=!1,l=!0):l=!1),l||rv(n)),en(n),l=n.type,a=n.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,st(l,a)?r=null:null!==o&&st(l,o)&&(n.flags|=32),null!==n.memoizedState&&(l=ll(e,n,li,null,null,t),sj._currentValue=l),aG(e,n),aW(e,n,r,t),n.child;case 6:return null===e&&rm&&((e=t=rp)&&(null!==(t=function(e,n,t){if(""===n)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=sd(e.nextSibling)))return null;return e}(t,n.pendingProps,rg))?(n.stateNode=t,rd=n,rp=null,e=!0):e=!1),e||rv(n)),null;case 13:return a6(e,n,t);case 4:return J(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=ab(n,null,r,t):aW(e,n,r,t),n.child;case 11:return aH(e,n,n.type,n.pendingProps,t);case 7:return aW(e,n,n.pendingProps,t),n.child;case 8:case 12:return aW(e,n,n.pendingProps.children,t),n.child;case 10:return r=n.pendingProps,ou(n,n.type,r.value),aW(e,n,r.children,t),n.child;case 9:return l=n.type._context,r=n.pendingProps.children,om(n),r=r(l=oh(l)),n.flags|=1,aW(e,n,r,t),n.child;case 14:return aq(e,n,n.type,n.pendingProps,t);case 15:return aK(e,n,n.type,n.pendingProps,t);case 19:return on(e,n,t);case 22:return aY(e,n,t);case 24:return om(n),r=oh(rR),null===e?(null===(l=rZ())&&(l=iN,a=rI(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=t),l=a),n.memoizedState={parent:r,cache:l},ob(n),ou(n,rR,l)):(0!=(e.lanes&t)&&(ok(e,n),oP(n,null,null,t),oz()),l=e.memoizedState,a=n.memoizedState,l.parent!==r?(l={parent:r,cache:r},n.memoizedState=l,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=l),ou(n,rR,r)):(ou(n,rR,r=a.cache),r!==l.cache&&of(n,[rR],t,!0))),aW(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}var oa=H(null),oo=null,oi=null;function ou(e,n,t){K(oa,n._currentValue),n._currentValue=t}function os(e){e._currentValue=oa.current,q(oa)}function oc(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function of(e,n,t,r){var l=e.child;for(null!==l&&(l.return=e);null!==l;){var a=l.dependencies;if(null!==a){var o=l.child;a=a.firstContext;e:for(;null!==a;){var i=a;a=l;for(var u=0;u title"))),u8(a,r,t),a[eR]=e,eX(a),r=a;break e;case"link":var o=sF("link","href",l).get(r+(t.href||""));if(o){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(t,{is:r.is}):l.createElement(t)}}e[eR]=n,e[eI]=r;e:for(l=n.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n.stateNode=e,u8(e,t,r),t){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ib(n)}}return ix(n),n.flags&=-0x1000001,null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&ib(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(s(166));if(e=G.current,rw(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(l=rd))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eR]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||u2(e.nodeValue,t)))||rv(n)}else(e=u7(e).createTextNode(r))[eR]=n,n.stateNode=e}return ix(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rw(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(s(318));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(s(317));l[eR]=n}else rS(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;ix(n),l=!1}else null!==rh&&(i5(rh),rh=null),l=!0;if(!l){if(256&n.flags)return az(n),n;return az(n),null}}if(az(n),0!=(128&n.flags))return n.lanes=t,n;if(t=null!==r,e=null!==e&&null!==e.memoizedState,t){r=n.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return t!==e&&t&&(n.child.flags|=8192),iw(n,n.updateQueue),ix(n),null;case 4:return ee(),null===e&&uH(n.stateNode.containerInfo),ix(n),null;case 10:return os(n.type),ix(n),null;case 19:if(q(aP),null===(l=n.memoizedState))return ix(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering)){if(r)iS(l,!1);else{if(0!==iR||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=aN(e))){for(n.flags|=128,iS(l,!1),e=a.updateQueue,n.updateQueue=e,iw(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)ip(t,e),t=t.sibling;return K(aP,1&aP.current|2),n.child}e=e.sibling}null!==l.tail&&eu()>iq&&(n.flags|=128,r=!0,iS(l,!1),n.lanes=4194304)}}else{if(!r){if(null!==(e=aN(a))){if(n.flags|=128,r=!0,e=e.updateQueue,n.updateQueue=e,iw(n,e),iS(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!rm)return ix(n),null}else 2*eu()-l.renderingStartTime>iq&&0x20000000!==t&&(n.flags|=128,r=!0,iS(l,!1),n.lanes=4194304)}l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}if(null!==l.tail)return n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=eu(),n.sibling=null,e=aP.current,K(aP,r?1&e|2:1&e),n;return ix(n),null;case 22:case 23:return az(n),rY(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?0!=(0x20000000&t)&&0==(128&n.flags)&&(ix(n),6&n.subtreeFlags&&(n.flags|=8192)):ix(n),null!==(t=n.updateQueue)&&iw(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&q(rG),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),os(rR),ix(n),null;case 25:return null}throw Error(s(156,n.tag))}(n.alternate,n,iA);if(null!==t){iL=t;return}if(null!==(n=n.sibling)){iL=n;return}iL=n=e}while(null!==n);0===iR&&(iR=5)}function ud(e,n){do{var t=function(e,n){switch(rf(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return os(rR),ee(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return et(n),null;case 13:if(az(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(s(340));rS()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return q(aP),null;case 4:return ee(),null;case 10:return os(n.type),null;case 22:case 23:return az(n),rY(),null!==e&&q(rG),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return os(rR),null;default:return null}}(e.alternate,e);if(null!==t){t.flags&=32767,iL=t;return}if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling)){iL=e;return}iL=e=t}while(null!==e);iR=6,iL=null}function up(e,n,t,r,l,a,o,i,u,c,f){var d=F.T,p=B.p;try{B.p=2,F.T=null,function(e,n,t,r,l,a,o,i){do uh();while(null!==iG);if(0!=(6&iP))throw Error(s(327));var u,c=e.finishedWork;if(r=e.finishedLanes,null!==c){if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var f=c.lanes|c.childLanes;if(function(e,n,t,r,l,a){var o=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(t=o&~t;0r&&(l=r,r=a,a=l),l=tP(n,a);var o=tP(n,r);l&&o&&(1!==t.rangeCount||t.anchorNode!==l.node||t.anchorOffset!==l.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&((e=e.createRange()).setStart(l.node,l.offset),t.removeAllRanges(),a>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nt?32:t,F.T=null,null===iG)var a=!1;else{t=i0,i0=null;var o=iG,i=iZ;if(iG=null,iZ=0,0!=(6&iP))throw Error(s(331));var u=iP;if(iP|=4,io(o.current),o9(o,o.current,i,t),iP=u,uT(0,!1),ev&&"function"==typeof ev.onPostCommitFiberRoot)try{ev.onPostCommitFiberRoot(ey,o)}catch(e){}a=!0}return a}finally{B.p=l,F.T=r,um(e,n)}}return!1}function ug(e,n,t){n=t9(t,n),n=aV(e.stateNode,n,2),null!==(e=oS(e,n,2))&&(e_(e,2),uL(e))}function uy(e,n,t){if(3===e.tag)ug(e,e,t);else for(;null!==n;){if(3===n.tag){ug(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===iY||!iY.has(r))){e=t9(t,e),null!==(r=oS(n,t=aj(2),2))&&(aB(t,r,n,e),e_(r,2),uL(r));break}}n=n.return}}function uv(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new iz;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(iM=!0,l.add(t),e=ub.bind(null,e,n,t),n.then(e,e))}function ub(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,iN===e&&(iT&t)===t&&(4===iR||3===iR&&(0x3c00000&iT)===iT&&300>eu()-iH?0==(2&iP)&&ut(e,0):iV|=t,iB===iT&&(iB=0)),uL(e)}function uk(e,n){0===n&&(n=eL()),null!==(e=t4(e,n))&&(e_(e,n),uL(e))}function uw(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),uk(e,t)}function uS(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(n),uk(e,t)}var ux=null,uE=null,uC=!1,uz=!1,uP=!1,uN=0;function uL(e){var n;e!==uE&&null===e.next&&(null===uE?ux=uE=e:uE=uE.next=e),uz=!0,uC||(uC=!0,n=u_,si(function(){0!=(6&iP)?el(ec,n):n()}))}function uT(e,n){if(!uP&&uz){uP=!0;do for(var t=!1,r=ux;null!==r;){if(!n){if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000055&(a=(1<<31-ek(42|e)+1)-1&(l&~(o&~i)))?0xc000055&a|1:a?2|a:0}0!==a&&(t=!0,uO(r,a))}else a=iT,0==(3&(a=ez(r,r===iN?a:0)))||eP(r,a)||(t=!0,uO(r,a))}r=r.next}while(t);uP=!1}}function u_(){uz=uC=!1;var e,n=0;0!==uN&&(((e=window.event)&&"popstate"===e.type?e===sr||(sr=e,0):(sr=null,1))||(n=uN),uN=0);for(var t=eu(),r=null,l=ux;null!==l;){var a=l.next,o=uF(l,t);0===o?(l.next=null,null===r?ux=a:r.next=a,null===a&&(uE=r)):(r=l,(0!==n||0!=(3&o))&&(uz=!0)),l=a}uT(n,!1)}function uF(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function sO(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sM=null;function sA(){}function sR(){if(this.count--,0===this.count){if(this.stylesheets)sU(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sI=null;function sU(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sI=new Map,n.forEach(sV,e),sI=null,sR.call(e))}function sV(e,n){if(!(4&n.state.loading)){var t=sI.get(e);if(t)var r=t.get(null);else{t=new Map,sI.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r,l,a=t(86170),o=t(87803),i=t(20107),u=t(25642);function s(e){var n="https://react.dev/errors/"+e;if(1)":-1l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{M=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?O(t):""}function R(e){try{var n="";do n+=function(e){switch(e.tag){case 26:case 27:case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 15:return e=A(e.type,!1);case 11:return e=A(e.type.render,!1);case 1:return e=A(e.type,!0);default:return""}}(e),e=e.return;while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function I(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do 0!=(4098&(n=e).flags)&&(t=n.return),e=n.return;while(e)}return 3===n.tag?t:null}function U(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function V(e){if(I(e)!==e)throw Error(s(188))}var j=Array.isArray,B=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},$=[],W=-1;function H(e){return{current:e}}function q(e){0>W||(e.current=$[W],$[W]=null,W--)}function K(e,n){$[++W]=e.current,e.current=n}var Y=H(null),X=H(null),G=H(null),Z=H(null);function J(e,n){switch(K(G,n),K(X,e),K(Y,null),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?se(n):0;break;default:if(n=(e=8===e?n.parentNode:n).tagName,e=e.namespaceURI)n=sn(e=se(e),n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(Y),K(Y,n)}function ee(){q(Y),q(X),q(G)}function en(e){null!==e.memoizedState&&K(Z,e);var n=Y.current,t=sn(n,e.type);n!==t&&(K(X,e),K(Y,t))}function et(e){X.current===e&&(q(Y),q(X)),Z.current===e&&(q(Z),sj._currentValue=Q)}var er=Object.prototype.hasOwnProperty,el=o.unstable_scheduleCallback,ea=o.unstable_cancelCallback,eo=o.unstable_shouldYield,ei=o.unstable_requestPaint,eu=o.unstable_now,es=o.unstable_getCurrentPriorityLevel,ec=o.unstable_ImmediatePriority,ef=o.unstable_UserBlockingPriority,ed=o.unstable_NormalPriority,ep=o.unstable_LowPriority,em=o.unstable_IdlePriority,eh=o.log,eg=o.unstable_setDisableYieldValue,ey=null,ev=null;function eb(e){if("function"==typeof eh&&eg(e),ev&&"function"==typeof ev.setStrictMode)try{ev.setStrictMode(ey,e)}catch(e){}}var ek=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ew(e)/eS|0)|0},ew=Math.log,eS=Math.LN2,ex=128,eE=4194304;function eC(e){var n=42&e;if(0!==n)return n;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:return 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 4194176&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function ez(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,o=e.warmLanes;e=0!==e.finishedLanes;var i=0x7ffffff&t;return 0!==i?0!=(t=i&~l)?r=eC(t):0!=(a&=i)?r=eC(a):e||0!=(o=i&~o)&&(r=eC(o)):0!=(i=t&~l)?r=eC(i):0!==a?r=eC(a):e||0!=(o=t&~o)&&(r=eC(o)),0===r?0:0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(o=n&-n)||32===l&&0!=(4194176&o))?n:r}function eP(e,n){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function eN(){var e=ex;return 0==(4194176&(ex<<=1))&&(ex=128),e}function eL(){var e=eE;return 0==(0x3c00000&(eE<<=1))&&(eE=4194304),e}function eT(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function e_(e,n){e.pendingLanes|=n,0x10000000!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eF(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-ek(n);e.entangledLanes|=n,e.entanglements[r]=0x40000000|e.entanglements[r]|4194218&t}function eD(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-ek(t),l=1<=te),tr=!1;function tl(e,n){switch(e){case"keyup":return -1!==n9.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ta(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var to=!1,ti={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 tu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!ti[e.type]:"textarea"===n}function ts(e,n,t,r){nw?nS?nS.push(r):nS=[r]:nw=r,0<(n=uX(n,"onChange")).length&&(t=new nj("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var tc=null,tf=null;function td(e){uB(e,0)}function tp(e){if(nn(eK(e)))return e}function tm(e,n){if("change"===e)return n}var th=!1;if(e1){if(e1){var tg="oninput"in document;if(!tg){var ty=document.createElement("div");ty.setAttribute("oninput","return;"),tg="function"==typeof ty.oninput}r=tg}else r=!1;th=r&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tz(r)}}function tN(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var n=nt(e.document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=nt(e.document)}return n}function tL(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var tT=e1&&"documentMode"in document&&11>=document.documentMode,t_=null,tF=null,tD=null,tO=!1;function tM(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tO||null==t_||t_!==nt(r)||(r="selectionStart"in(r=t_)&&tL(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tD&&tC(tD,r)||(tD=r,0<(r=uX(tF,"onSelect")).length&&(n=new nj("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=t_)))}function tA(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var tR={animationend:tA("Animation","AnimationEnd"),animationiteration:tA("Animation","AnimationIteration"),animationstart:tA("Animation","AnimationStart"),transitionrun:tA("Transition","TransitionRun"),transitionstart:tA("Transition","TransitionStart"),transitioncancel:tA("Transition","TransitionCancel"),transitionend:tA("Transition","TransitionEnd")},tI={},tU={};function tV(e){if(tI[e])return tI[e];if(!tR[e])return e;var n,t=tR[e];for(n in t)if(t.hasOwnProperty(n)&&n in tU)return tI[e]=t[n];return e}e1&&(tU=document.createElement("div").style,"AnimationEvent"in window||(delete tR.animationend.animation,delete tR.animationiteration.animation,delete tR.animationstart.animation),"TransitionEvent"in window||delete tR.transitionend.transition);var tj=tV("animationend"),tB=tV("animationiteration"),tQ=tV("animationstart"),t$=tV("transitionrun"),tW=tV("transitionstart"),tH=tV("transitioncancel"),tq=tV("transitionend"),tK=new Map,tY="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function tX(e,n){tK.set(e,n),eJ(n,[e])}var tG=[],tZ=0,tJ=0;function t0(){for(var e=tZ,n=tJ=tZ=0;n>=o,l-=o,ro=1<<32-ek(n)+l|t<a?a:8;var o=F.T,i={};F.T=i,al(e,!1,n,t);try{var u=l(),s=F.S;if(null!==s&&s(i,u),null!==u&&"object"==typeof u&&"function"==typeof u.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},u.then(function(){f.status="fulfilled",f.value=r;for(var e=0;ed?(p=f,f=null):p=f.sibling;var m=g(l,f,i[d],u);if(null===m){null===f&&(f=p);break}e&&f&&null===m.alternate&&n(l,f),o=a(m,o,d),null===c?s=m:c.sibling=m,c=m,f=p}if(d===i.length)return t(l,f),rm&&ru(l,d),s;if(null===f){for(;dp?(m=d,d=null):m=d.sibling;var b=g(l,d,v.value,u);if(null===b){null===d&&(d=m);break}e&&d&&null===b.alternate&&n(l,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=m}if(v.done)return t(l,d),rm&&ru(l,p),c;if(null===d){for(;!v.done;p++,v=i.next())null!==(v=h(l,v.value,u))&&(o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return rm&&ru(l,p),c}for(d=r(d);!v.done;p++,v=i.next())null!==(v=y(d,l,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach(function(e){return n(l,e)}),rm&&ru(l,p),c}(u,c,f=k.call(f),v)}if("function"==typeof f.then)return i(u,c,am(f),v);if(f.$$typeof===b)return i(u,c,og(u,f),v);ag(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(t(u,c.sibling),(v=l(c,f)).return=u):(t(u,c),(v=iy(f,u.mode,v)).return=u),o(u=v)):t(u,c)}(i,u,c,f);return ad=null,v}catch(e){if(e===rE||e===rz)throw e;var k=is(29,e,null,i.mode);return k.lanes=f,k.return=i,k}finally{}}}var ab=av(!0),ak=av(!1),aw=H(null),aS=null;function ax(e){var n=e.alternate;K(aP,1&aP.current),K(aw,e),null===aS&&(null===n||null!==rW.current?aS=e:null!==n.memoizedState&&(aS=e))}function aE(e){if(22===e.tag){if(K(aP,aP.current),K(aw,e),null===aS){var n=e.alternate;null!==n&&null!==n.memoizedState&&(aS=e)}}else aC(e)}function aC(){K(aP,aP.current),K(aw,aw.current)}function az(e){q(aw),aS===e&&(aS=null),q(aP)}var aP=H(0);function aN(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||sf(t)))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function aL(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:D({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var aT={isMounted:function(e){return!!(e=e._reactInternals)&&I(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=i4(),l=ow(r);l.payload=n,null!=t&&(l.callback=t),null!==(n=oS(e,l,r))&&(i6(n,e,r),ox(n,e,r))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=i4(),l=ow(r);l.tag=1,l.payload=n,null!=t&&(l.callback=t),null!==(n=oS(e,l,r))&&(i6(n,e,r),ox(n,e,r))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=i4(),r=ow(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=oS(e,r,t))&&(i6(n,e,t),ox(n,e,t))}};function a_(e,n,t,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!n.prototype||!n.prototype.isPureReactComponent||!tC(t,r)||!tC(l,a)}function aF(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&aT.enqueueReplaceState(n,n.state,null)}function aD(e,n){var t=n;if("ref"in n)for(var r in t={},n)"ref"!==r&&(t[r]=n[r]);if(e=e.defaultProps)for(var l in t===n&&(t=D({},t)),e)void 0===t[l]&&(t[l]=e[l]);return t}var aO="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof a&&"function"==typeof a.emit){a.emit("uncaughtException",e);return}console.error(e)};function aM(e){aO(e)}function aA(e){console.error(e)}function aR(e){aO(e)}function aI(e,n){try{(0,e.onUncaughtError)(n.value,{componentStack:n.stack})}catch(e){setTimeout(function(){throw e})}}function aU(e,n,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function aV(e,n,t){return(t=ow(t)).tag=3,t.payload={element:null},t.callback=function(){aI(e,n)},t}function aj(e){return(e=ow(e)).tag=3,e}function aB(e,n,t,r){var l=t.type.getDerivedStateFromError;if("function"==typeof l){var a=r.value;e.payload=function(){return l(a)},e.callback=function(){aU(n,t,r)}}var o=t.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){aU(n,t,r),"function"!=typeof l&&(null===iY?iY=new Set([this]):iY.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var aQ=Error(s(461)),a$=!1;function aW(e,n,t,r){n.child=null===e?ak(n,null,t,r):ab(n,e.child,t,r)}function aH(e,n,t,r,l){t=t.render;var a=n.ref;if("ref"in r){var o={};for(var i in r)"ref"!==i&&(o[i]=r[i])}else o=r;return(om(n),r=ll(e,n,t,o,a,l),i=lu(),null===e||a$)?(rm&&i&&rc(n),n.flags|=1,aW(e,n,r,l),n.child):(ls(e,n,l),ot(e,n,l))}function aq(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||ic(a)||void 0!==a.defaultProps||null!==t.compare?((e=im(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,aK(e,n,a,r,l))}if(a=e.child,!or(e,l)){var o=a.memoizedProps;if((t=null!==(t=t.compare)?t:tC)(o,r)&&e.ref===n.ref)return ot(e,n,l)}return n.flags|=1,(e=id(a,r)).ref=n.ref,e.return=n,n.child=e}function aK(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(tC(a,r)&&e.ref===n.ref){if(a$=!1,n.pendingProps=r=a,!or(e,l))return n.lanes=e.lanes,ot(e,n,l);0!=(131072&e.flags)&&(a$=!0)}}return aZ(e,n,t,r,l)}function aY(e,n,t){var r=n.pendingProps,l=r.children,a=0!=(2&n.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(aG(e,n),"hidden"===r.mode||a){if(0!=(128&n.flags)){if(r=null!==o?o.baseLanes|t:t,null!==e){for(a=0,l=n.child=e.child;null!==l;)a=a|l.lanes|l.childLanes,l=l.sibling;n.childLanes=a&~r}else n.childLanes=0,n.child=null;return aX(e,n,r,t)}if(0==(0x20000000&t))return n.lanes=n.childLanes=0x20000000,aX(e,n,null!==o?o.baseLanes|t:t,t);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&rJ(n,null!==o?o.cachePool:null),null!==o?rq(n,o):rK(),aE(n)}else null!==o?(rJ(n,o.cachePool),rq(n,o),aC(n),n.memoizedState=null):(null!==e&&rJ(n,null),rK(),aC(n));return aW(e,n,l,t),n.child}function aX(e,n,t,r){var l=rZ();return l=null===l?null:{parent:rR._currentValue,pool:l},n.memoizedState={baseLanes:t,cachePool:l},null!==e&&rJ(n,null),rK(),aE(n),null!==e&&od(e,n,r,!0),null}function aG(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=2097664);else{if("function"!=typeof t&&"object"!=typeof t)throw Error(s(284));(null===e||e.ref!==t)&&(n.flags|=2097664)}}function aZ(e,n,t,r,l){return(om(n),t=ll(e,n,t,r,void 0,l),r=lu(),null===e||a$)?(rm&&r&&rc(n),n.flags|=1,aW(e,n,t,l),n.child):(ls(e,n,l),ot(e,n,l))}function aJ(e,n,t,r,l,a){return(om(n),n.updateQueue=null,t=lo(n,r,t,l),la(e),r=lu(),null===e||a$)?(rm&&r&&rc(n),n.flags|=1,aW(e,n,t,a),n.child):(ls(e,n,a),ot(e,n,a))}function a0(e,n,t,r,l){if(om(n),null===n.stateNode){var a=t8,o=t.contextType;"object"==typeof o&&null!==o&&(a=oh(o)),a=new t(r,a),n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=aT,n.stateNode=a,a._reactInternals=n,(a=n.stateNode).props=r,a.state=n.memoizedState,a.refs={},ob(n),o=t.contextType,a.context="object"==typeof o&&null!==o?oh(o):t8,a.state=n.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(aL(n,t,o,r),a.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&aT.enqueueReplaceState(a,a.state,null),oP(n,r,a,l),oz(),a.state=n.memoizedState),"function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!0}else if(null===e){a=n.stateNode;var i=n.memoizedProps,u=aD(t,i);a.props=u;var s=a.context,c=t.contextType;o=t8,"object"==typeof c&&null!==c&&(o=oh(c));var f=t.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate,i=n.pendingProps!==i,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i||s!==o)&&aF(n,a,r,o),ov=!1;var d=n.memoizedState;a.state=d,oP(n,r,a,l),oz(),s=n.memoizedState,i||d!==s||ov?("function"==typeof f&&(aL(n,t,f,r),s=n.memoizedState),(u=ov||a_(n,t,u,r,d,s,o))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(n.flags|=4194308)):("function"==typeof a.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),a.props=r,a.state=s,a.context=o,r=u):("function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!1)}else{a=n.stateNode,ok(e,n),c=aD(t,o=n.memoizedProps),a.props=c,f=n.pendingProps,d=a.context,s=t.contextType,u=t8,"object"==typeof s&&null!==s&&(u=oh(s)),(s="function"==typeof(i=t.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==f||d!==u)&&aF(n,a,r,u),ov=!1,d=n.memoizedState,a.state=d,oP(n,r,a,l),oz();var p=n.memoizedState;o!==f||d!==p||ov||null!==e&&null!==e.dependencies&&op(e.dependencies)?("function"==typeof i&&(aL(n,t,i,r),p=n.memoizedState),(c=ov||a_(n,t,c,r,d,p,u)||null!==e&&null!==e.dependencies&&op(e.dependencies))?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(n.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return a=r,aG(e,n),r=0!=(128&n.flags),a||r?(a=n.stateNode,t=r&&"function"!=typeof t.getDerivedStateFromError?null:a.render(),n.flags|=1,null!==e&&r?(n.child=ab(n,e.child,null,l),n.child=ab(n,null,t,l)):aW(e,n,t,l),n.memoizedState=a.state,e=n.child):e=ot(e,n,l),e}function a1(e,n,t,r){return rS(),n.flags|=256,aW(e,n,t,r),n.child}var a2={dehydrated:null,treeContext:null,retryLane:0};function a4(e){return{baseLanes:e,cachePool:r0()}}function a3(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=ij),e}function a6(e,n,t){var r,l=n.pendingProps,a=!1,o=0!=(128&n.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&aP.current)),r&&(a=!0,n.flags&=-129),r=0!=(32&n.flags),n.flags&=-33,null===e){if(rm){if(a?ax(n):aC(n),rm){var i,u=rp;if(i=u){t:{for(i=u,u=rg;8!==i.nodeType;)if(!u||null===(i=sd(i.nextSibling))){u=null;break t}u=i}null!==u?(n.memoizedState={dehydrated:u,treeContext:null!==ra?{id:ro,overflow:ri}:null,retryLane:0x20000000},(i=is(18,null,null,0)).stateNode=u,i.return=n,n.child=i,rd=n,rp=null,i=!0):i=!1}i||rv(n)}if(null!==(u=n.memoizedState)&&null!==(u=u.dehydrated))return sf(u)?n.lanes=16:n.lanes=0x20000000,null;az(n)}return(u=l.children,l=l.fallback,a)?(aC(n),u=a5({mode:"hidden",children:u},a=n.mode),l=ih(l,a,t,null),u.return=n,l.return=n,u.sibling=l,n.child=u,(a=n.child).memoizedState=a4(t),a.childLanes=a3(e,r,t),n.memoizedState=a2,l):(ax(n),a8(n,u))}if(null!==(i=e.memoizedState)&&null!==(u=i.dehydrated)){if(o)256&n.flags?(ax(n),n.flags&=-257,n=a9(e,n,t)):null!==n.memoizedState?(aC(n),n.child=e.child,n.flags|=128,n=null):(aC(n),a=l.fallback,u=n.mode,l=a5({mode:"visible",children:l.children},u),a=ih(a,u,t,null),a.flags|=2,l.return=n,a.return=n,l.sibling=a,n.child=l,ab(n,e.child,null,t),(l=n.child).memoizedState=a4(t),l.childLanes=a3(e,r,t),n.memoizedState=a2,n=a);else if(ax(n),sf(u)){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(l=Error(s(419))).stack="",l.digest=r,rx({value:l,source:null,stack:null}),n=a9(e,n,t)}else if(a$||od(e,n,t,!1),r=0!=(t&e.childLanes),a$||r){if(null!==(r=iN)){if(0!=(42&(l=t&-t)))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;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 0x1000000:case 0x2000000:l=64;break;case 0x10000000:l=0x8000000;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|t))?0:l)&&l!==i.retryLane)throw i.retryLane=l,t4(e,l),i6(r,e,l),aQ}"$?"===u.data||uo(),n=a9(e,n,t)}else"$?"===u.data?(n.flags|=192,n.child=e.child,n=null):(e=i.treeContext,rp=sd(u.nextSibling),rd=n,rm=!0,rh=null,rg=!1,null!==e&&(rr[rl++]=ro,rr[rl++]=ri,rr[rl++]=ra,ro=e.id,ri=e.overflow,ra=n),n=a8(n,l.children),n.flags|=4096);return n}return a?(aC(n),a=l.fallback,u=n.mode,c=(i=e.child).sibling,(l=id(i,{mode:"hidden",children:l.children})).subtreeFlags=0x1e00000&i.subtreeFlags,null!==c?a=id(c,a):(a=ih(a,u,t,null),a.flags|=2),a.return=n,l.return=n,l.sibling=a,n.child=l,l=a,a=n.child,null===(u=e.child.memoizedState)?u=a4(t):(null!==(i=u.cachePool)?(c=rR._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=r0(),u={baseLanes:u.baseLanes|t,cachePool:i}),a.memoizedState=u,a.childLanes=a3(e,r,t),n.memoizedState=a2,l):(ax(n),e=(t=e.child).sibling,(t=id(t,{mode:"visible",children:l.children})).return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t,n.memoizedState=null,t)}function a8(e,n){return(n=a5({mode:"visible",children:n},e.mode)).return=e,e.child=n}function a5(e,n){return ig(e,n,0,null)}function a9(e,n,t){return ab(n,e.child,null,t),e=a8(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function a7(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),oc(e.return,n,t)}function oe(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function on(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(aW(e,n,r.children,t),0!=(2&(r=aP.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&a7(e,t,n);else if(19===e.tag)a7(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(K(aP,r),l){case"forwards":for(l=null,t=n.child;null!==t;)null!==(e=t.alternate)&&null===aN(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),oe(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===aN(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}oe(n,!0,t,null,a);break;case"together":oe(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ot(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),iI|=n.lanes,0==(t&n.childLanes)&&(null===e||(od(e,n,t,!1),0==(t&n.childLanes))))return null;if(null!==e&&n.child!==e.child)throw Error(s(153));if(null!==n.child){for(t=id(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=id(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function or(e,n){return 0!=(e.lanes&n)||!!(null!==(e=e.dependencies)&&op(e))}function ol(e,n,t){if(null!==e){if(e.memoizedProps!==n.pendingProps)a$=!0;else{if(!or(e,t)&&0==(128&n.flags))return a$=!1,function(e,n,t){switch(n.tag){case 3:J(n,n.stateNode.containerInfo),ou(n,rR,e.memoizedState.cache),rS();break;case 27:case 5:en(n);break;case 4:J(n,n.stateNode.containerInfo);break;case 10:ou(n,n.type,n.memoizedProps.value);break;case 13:var r=n.memoizedState;if(null!==r){if(null!==r.dehydrated)return ax(n),n.flags|=128,null;if(0!=(t&n.child.childLanes))return a6(e,n,t);return ax(n),null!==(e=ot(e,n,t))?e.sibling:null}ax(n);break;case 19:var l=0!=(128&e.flags);if((r=0!=(t&n.childLanes))||(od(e,n,t,!1),r=0!=(t&n.childLanes)),l){if(r)return on(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),K(aP,aP.current),!r)return null;break;case 22:case 23:return n.lanes=0,aY(e,n,t);case 24:ou(n,rR,e.memoizedState.cache)}return ot(e,n,t)}(e,n,t);a$=0!=(131072&e.flags)}}else a$=!1,rm&&0!=(1048576&n.flags)&&rs(n,rt,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var r=n.elementType,l=r._init;if(r=l(r._payload),n.type=r,"function"==typeof r)ic(r)?(e=aD(r,e),n.tag=1,n=a0(null,n,r,e,t)):(n.tag=0,n=aZ(null,n,r,e,t));else{if(null!=r){if((l=r.$$typeof)===k){n.tag=11,n=aH(null,n,r,e,t);break e}if(l===x){n.tag=14,n=aq(null,n,r,e,t);break e}}throw Error(s(306,n=function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===_?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case m:return"Fragment";case p:return"Portal";case g:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case S:return"SuspenseList"}if("object"==typeof n)switch(n.$$typeof){case b:return(n.displayName||"Context")+".Provider";case v:return(n._context.displayName||"Context")+".Consumer";case k:var t=n.render;return(n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case x:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case E:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(r)||r,""))}}return n;case 0:return aZ(e,n,n.type,n.pendingProps,t);case 1:return l=aD(r=n.type,n.pendingProps),a0(e,n,r,l,t);case 3:e:{if(J(n,n.stateNode.containerInfo),null===e)throw Error(s(387));var a=n.pendingProps;r=(l=n.memoizedState).element,ok(e,n),oP(n,a,null,t);var o=n.memoizedState;if(ou(n,rR,a=o.cache),a!==l.cache&&of(n,[rR],t,!0),oz(),a=o.element,l.isDehydrated){if(l={element:a,isDehydrated:!1,cache:o.cache},n.updateQueue.baseState=l,n.memoizedState=l,256&n.flags){n=a1(e,n,a,t);break e}if(a!==r){rx(r=t9(Error(s(424)),n)),n=a1(e,n,a,t);break e}for(rp=sd(n.stateNode.containerInfo.firstChild),rd=n,rm=!0,rh=null,rg=!0,t=ak(n,null,a,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(rS(),a===r){n=ot(e,n,t);break e}aW(e,n,a,t)}n=n.child}return n;case 26:return aG(e,n),null===e?(t=sw(n.type,null,n.pendingProps,null))?n.memoizedState=t:rm||(t=n.type,e=n.pendingProps,(r=u7(G.current).createElement(t))[eR]=n,r[eI]=e,u8(r,t,e),eX(r),n.stateNode=r):n.memoizedState=sw(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return en(n),null===e&&rm&&(r=n.stateNode=sm(n.type,n.pendingProps,G.current),rd=n,rg=!0,rp=sd(r.firstChild)),r=n.pendingProps.children,null!==e||rm?aW(e,n,r,t):n.child=ab(n,null,r,t),aG(e,n),n.child;case 5:return null===e&&rm&&((l=r=rp)&&(null!==(r=function(e,n,t,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[e$])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(l=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||l!==t.rel||e.getAttribute("href")!==(null==t.href?null:t.href)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin)||e.getAttribute("title")!==(null==t.title?null:t.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((l=e.getAttribute("src"))!==(null==t.src?null:t.src)||e.getAttribute("type")!==(null==t.type?null:t.type)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;var l=null==t.name?null:""+t.name;if("hidden"===t.type&&e.getAttribute("name")===l)return e}if(null===(e=sd(e.nextSibling)))break}return null}(r,n.type,n.pendingProps,rg))?(n.stateNode=r,rd=n,rp=sd(r.firstChild),rg=!1,l=!0):l=!1),l||rv(n)),en(n),l=n.type,a=n.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,st(l,a)?r=null:null!==o&&st(l,o)&&(n.flags|=32),null!==n.memoizedState&&(l=ll(e,n,li,null,null,t),sj._currentValue=l),aG(e,n),aW(e,n,r,t),n.child;case 6:return null===e&&rm&&((e=t=rp)&&(null!==(t=function(e,n,t){if(""===n)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=sd(e.nextSibling)))return null;return e}(t,n.pendingProps,rg))?(n.stateNode=t,rd=n,rp=null,e=!0):e=!1),e||rv(n)),null;case 13:return a6(e,n,t);case 4:return J(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=ab(n,null,r,t):aW(e,n,r,t),n.child;case 11:return aH(e,n,n.type,n.pendingProps,t);case 7:return aW(e,n,n.pendingProps,t),n.child;case 8:case 12:return aW(e,n,n.pendingProps.children,t),n.child;case 10:return r=n.pendingProps,ou(n,n.type,r.value),aW(e,n,r.children,t),n.child;case 9:return l=n.type._context,r=n.pendingProps.children,om(n),r=r(l=oh(l)),n.flags|=1,aW(e,n,r,t),n.child;case 14:return aq(e,n,n.type,n.pendingProps,t);case 15:return aK(e,n,n.type,n.pendingProps,t);case 19:return on(e,n,t);case 22:return aY(e,n,t);case 24:return om(n),r=oh(rR),null===e?(null===(l=rZ())&&(l=iN,a=rI(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=t),l=a),n.memoizedState={parent:r,cache:l},ob(n),ou(n,rR,l)):(0!=(e.lanes&t)&&(ok(e,n),oP(n,null,null,t),oz()),l=e.memoizedState,a=n.memoizedState,l.parent!==r?(l={parent:r,cache:r},n.memoizedState=l,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=l),ou(n,rR,r)):(ou(n,rR,r=a.cache),r!==l.cache&&of(n,[rR],t,!0))),aW(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}var oa=H(null),oo=null,oi=null;function ou(e,n,t){K(oa,n._currentValue),n._currentValue=t}function os(e){e._currentValue=oa.current,q(oa)}function oc(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function of(e,n,t,r){var l=e.child;for(null!==l&&(l.return=e);null!==l;){var a=l.dependencies;if(null!==a){var o=l.child;a=a.firstContext;e:for(;null!==a;){var i=a;a=l;for(var u=0;u title"))),u8(a,r,t),a[eR]=e,eX(a),r=a;break e;case"link":var o=sF("link","href",l).get(r+(t.href||""));if(o){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(t,{is:r.is}):l.createElement(t)}}e[eR]=n,e[eI]=r;e:for(l=n.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n.stateNode=e,u8(e,t,r),t){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ib(n)}}return ix(n),n.flags&=-0x1000001,null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&ib(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(s(166));if(e=G.current,rw(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(l=rd))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eR]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||u2(e.nodeValue,t)))||rv(n)}else(e=u7(e).createTextNode(r))[eR]=n,n.stateNode=e}return ix(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rw(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(s(318));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(s(317));l[eR]=n}else rS(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;ix(n),l=!1}else null!==rh&&(i5(rh),rh=null),l=!0;if(!l){if(256&n.flags)return az(n),n;return az(n),null}}if(az(n),0!=(128&n.flags))return n.lanes=t,n;if(t=null!==r,e=null!==e&&null!==e.memoizedState,t){r=n.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return t!==e&&t&&(n.child.flags|=8192),iw(n,n.updateQueue),ix(n),null;case 4:return ee(),null===e&&uH(n.stateNode.containerInfo),ix(n),null;case 10:return os(n.type),ix(n),null;case 19:if(q(aP),null===(l=n.memoizedState))return ix(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering)){if(r)iS(l,!1);else{if(0!==iR||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=aN(e))){for(n.flags|=128,iS(l,!1),e=a.updateQueue,n.updateQueue=e,iw(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)ip(t,e),t=t.sibling;return K(aP,1&aP.current|2),n.child}e=e.sibling}null!==l.tail&&eu()>iq&&(n.flags|=128,r=!0,iS(l,!1),n.lanes=4194304)}}else{if(!r){if(null!==(e=aN(a))){if(n.flags|=128,r=!0,e=e.updateQueue,n.updateQueue=e,iw(n,e),iS(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!rm)return ix(n),null}else 2*eu()-l.renderingStartTime>iq&&0x20000000!==t&&(n.flags|=128,r=!0,iS(l,!1),n.lanes=4194304)}l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}if(null!==l.tail)return n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=eu(),n.sibling=null,e=aP.current,K(aP,r?1&e|2:1&e),n;return ix(n),null;case 22:case 23:return az(n),rY(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?0!=(0x20000000&t)&&0==(128&n.flags)&&(ix(n),6&n.subtreeFlags&&(n.flags|=8192)):ix(n),null!==(t=n.updateQueue)&&iw(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&q(rG),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),os(rR),ix(n),null;case 25:return null}throw Error(s(156,n.tag))}(n.alternate,n,iA);if(null!==t){iL=t;return}if(null!==(n=n.sibling)){iL=n;return}iL=n=e}while(null!==n);0===iR&&(iR=5)}function ud(e,n){do{var t=function(e,n){switch(rf(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return os(rR),ee(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return et(n),null;case 13:if(az(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(s(340));rS()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return q(aP),null;case 4:return ee(),null;case 10:return os(n.type),null;case 22:case 23:return az(n),rY(),null!==e&&q(rG),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return os(rR),null;default:return null}}(e.alternate,e);if(null!==t){t.flags&=32767,iL=t;return}if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling)){iL=e;return}iL=e=t}while(null!==e);iR=6,iL=null}function up(e,n,t,r,l,a,o,i,u,c,f){var d=F.T,p=B.p;try{B.p=2,F.T=null,function(e,n,t,r,l,a,o,i){do uh();while(null!==iG);if(0!=(6&iP))throw Error(s(327));var u,c=e.finishedWork;if(r=e.finishedLanes,null!==c){if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var f=c.lanes|c.childLanes;if(function(e,n,t,r,l,a){var o=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(t=o&~t;0r&&(l=r,r=a,a=l),l=tP(n,a);var o=tP(n,r);l&&o&&(1!==t.rangeCount||t.anchorNode!==l.node||t.anchorOffset!==l.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&((e=e.createRange()).setStart(l.node,l.offset),t.removeAllRanges(),a>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nt?32:t,F.T=null,null===iG)var a=!1;else{t=i0,i0=null;var o=iG,i=iZ;if(iG=null,iZ=0,0!=(6&iP))throw Error(s(331));var u=iP;if(iP|=4,io(o.current),o9(o,o.current,i,t),iP=u,uT(0,!1),ev&&"function"==typeof ev.onPostCommitFiberRoot)try{ev.onPostCommitFiberRoot(ey,o)}catch(e){}a=!0}return a}finally{B.p=l,F.T=r,um(e,n)}}return!1}function ug(e,n,t){n=t9(t,n),n=aV(e.stateNode,n,2),null!==(e=oS(e,n,2))&&(e_(e,2),uL(e))}function uy(e,n,t){if(3===e.tag)ug(e,e,t);else for(;null!==n;){if(3===n.tag){ug(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===iY||!iY.has(r))){e=t9(t,e),null!==(r=oS(n,t=aj(2),2))&&(aB(t,r,n,e),e_(r,2),uL(r));break}}n=n.return}}function uv(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new iz;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(iM=!0,l.add(t),e=ub.bind(null,e,n,t),n.then(e,e))}function ub(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,iN===e&&(iT&t)===t&&(4===iR||3===iR&&(0x3c00000&iT)===iT&&300>eu()-iH?0==(2&iP)&&ut(e,0):iV|=t,iB===iT&&(iB=0)),uL(e)}function uk(e,n){0===n&&(n=eL()),null!==(e=t4(e,n))&&(e_(e,n),uL(e))}function uw(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),uk(e,t)}function uS(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(n),uk(e,t)}var ux=null,uE=null,uC=!1,uz=!1,uP=!1,uN=0;function uL(e){var n;e!==uE&&null===e.next&&(null===uE?ux=uE=e:uE=uE.next=e),uz=!0,uC||(uC=!0,n=u_,si(function(){0!=(6&iP)?el(ec,n):n()}))}function uT(e,n){if(!uP&&uz){uP=!0;do for(var t=!1,r=ux;null!==r;){if(!n){if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000055&(a=(1<<31-ek(42|e)+1)-1&(l&~(o&~i)))?0xc000055&a|1:a?2|a:0}0!==a&&(t=!0,uO(r,a))}else a=iT,0==(3&(a=ez(r,r===iN?a:0)))||eP(r,a)||(t=!0,uO(r,a))}r=r.next}while(t);uP=!1}}function u_(){uz=uC=!1;var e,n=0;0!==uN&&(((e=window.event)&&"popstate"===e.type?e===sr||(sr=e,0):(sr=null,1))||(n=uN),uN=0);for(var t=eu(),r=null,l=ux;null!==l;){var a=l.next,o=uF(l,t);0===o?(l.next=null,null===r?ux=a:r.next=a,null===a&&(uE=r)):(r=l,(0!==n||0!=(3&o))&&(uz=!0)),l=a}uT(n,!1)}function uF(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function sO(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sM=null;function sA(){}function sR(){if(this.count--,0===this.count){if(this.stylesheets)sU(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sI=null;function sU(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sI=new Map,n.forEach(sV,e),sI=null,sR.call(e))}function sV(e,n){if(!(4&n.state.loading)){var t=sI.get(e);if(t)var r=t.get(null);else{t=new Map,sI.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r,l,a=t(86170),o=t(87803),i=t(20107),u=t(25642);function s(e){var n="https://react.dev/errors/"+e;if(1)":-1l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{M=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?O(t):""}function R(e){try{var n="";do n+=function(e){switch(e.tag){case 26:case 27:case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 15:return e=A(e.type,!1);case 11:return e=A(e.type.render,!1);case 1:return e=A(e.type,!0);default:return""}}(e),e=e.return;while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function I(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do 0!=(4098&(n=e).flags)&&(t=n.return),e=n.return;while(e)}return 3===n.tag?t:null}function U(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function V(e){if(I(e)!==e)throw Error(s(188))}var j=Array.isArray,B=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},$=[],W=-1;function H(e){return{current:e}}function q(e){0>W||(e.current=$[W],$[W]=null,W--)}function K(e,n){$[++W]=e.current,e.current=n}var Y=H(null),X=H(null),G=H(null),Z=H(null);function J(e,n){switch(K(G,n),K(X,e),K(Y,null),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?se(n):0;break;default:if(n=(e=8===e?n.parentNode:n).tagName,e=e.namespaceURI)n=sn(e=se(e),n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(Y),K(Y,n)}function ee(){q(Y),q(X),q(G)}function en(e){null!==e.memoizedState&&K(Z,e);var n=Y.current,t=sn(n,e.type);n!==t&&(K(X,e),K(Y,t))}function et(e){X.current===e&&(q(Y),q(X)),Z.current===e&&(q(Z),sj._currentValue=Q)}var er=Object.prototype.hasOwnProperty,el=o.unstable_scheduleCallback,ea=o.unstable_cancelCallback,eo=o.unstable_shouldYield,ei=o.unstable_requestPaint,eu=o.unstable_now,es=o.unstable_getCurrentPriorityLevel,ec=o.unstable_ImmediatePriority,ef=o.unstable_UserBlockingPriority,ed=o.unstable_NormalPriority,ep=o.unstable_LowPriority,em=o.unstable_IdlePriority,eh=o.log,eg=o.unstable_setDisableYieldValue,ey=null,ev=null;function eb(e){if("function"==typeof eh&&eg(e),ev&&"function"==typeof ev.setStrictMode)try{ev.setStrictMode(ey,e)}catch(e){}}var ek=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ew(e)/eS|0)|0},ew=Math.log,eS=Math.LN2,ex=128,eE=4194304;function eC(e){var n=42&e;if(0!==n)return n;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:return 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 4194176&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function ez(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,o=e.warmLanes;e=0!==e.finishedLanes;var i=0x7ffffff&t;return 0!==i?0!=(t=i&~l)?r=eC(t):0!=(a&=i)?r=eC(a):e||0!=(o=i&~o)&&(r=eC(o)):0!=(i=t&~l)?r=eC(i):0!==a?r=eC(a):e||0!=(o=t&~o)&&(r=eC(o)),0===r?0:0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(o=n&-n)||32===l&&0!=(4194176&o))?n:r}function eP(e,n){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function eN(){var e=ex;return 0==(4194176&(ex<<=1))&&(ex=128),e}function eL(){var e=eE;return 0==(0x3c00000&(eE<<=1))&&(eE=4194304),e}function eT(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function e_(e,n){e.pendingLanes|=n,0x10000000!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eF(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-ek(n);e.entangledLanes|=n,e.entanglements[r]=0x40000000|e.entanglements[r]|4194218&t}function eD(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-ek(t),l=1<=te),tr=!1;function tl(e,n){switch(e){case"keyup":return -1!==n9.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ta(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var to=!1,ti={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 tu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!ti[e.type]:"textarea"===n}function ts(e,n,t,r){nw?nS?nS.push(r):nS=[r]:nw=r,0<(n=uX(n,"onChange")).length&&(t=new nj("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var tc=null,tf=null;function td(e){uB(e,0)}function tp(e){if(nn(eK(e)))return e}function tm(e,n){if("change"===e)return n}var th=!1;if(e1){if(e1){var tg="oninput"in document;if(!tg){var ty=document.createElement("div");ty.setAttribute("oninput","return;"),tg="function"==typeof ty.oninput}r=tg}else r=!1;th=r&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tz(r)}}function tN(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var n=nt(e.document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=nt(e.document)}return n}function tL(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var tT=e1&&"documentMode"in document&&11>=document.documentMode,t_=null,tF=null,tD=null,tO=!1;function tM(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tO||null==t_||t_!==nt(r)||(r="selectionStart"in(r=t_)&&tL(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tD&&tC(tD,r)||(tD=r,0<(r=uX(tF,"onSelect")).length&&(n=new nj("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=t_)))}function tA(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var tR={animationend:tA("Animation","AnimationEnd"),animationiteration:tA("Animation","AnimationIteration"),animationstart:tA("Animation","AnimationStart"),transitionrun:tA("Transition","TransitionRun"),transitionstart:tA("Transition","TransitionStart"),transitioncancel:tA("Transition","TransitionCancel"),transitionend:tA("Transition","TransitionEnd")},tI={},tU={};function tV(e){if(tI[e])return tI[e];if(!tR[e])return e;var n,t=tR[e];for(n in t)if(t.hasOwnProperty(n)&&n in tU)return tI[e]=t[n];return e}e1&&(tU=document.createElement("div").style,"AnimationEvent"in window||(delete tR.animationend.animation,delete tR.animationiteration.animation,delete tR.animationstart.animation),"TransitionEvent"in window||delete tR.transitionend.transition);var tj=tV("animationend"),tB=tV("animationiteration"),tQ=tV("animationstart"),t$=tV("transitionrun"),tW=tV("transitionstart"),tH=tV("transitioncancel"),tq=tV("transitionend"),tK=new Map,tY="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function tX(e,n){tK.set(e,n),eJ(n,[e])}var tG=[],tZ=0,tJ=0;function t0(){for(var e=tZ,n=tJ=tZ=0;n>=o,l-=o,ro=1<<32-ek(n)+l|t<a?a:8;var o=F.T,i={};F.T=i,al(e,!1,n,t);try{var u=l(),s=F.S;if(null!==s&&s(i,u),null!==u&&"object"==typeof u&&"function"==typeof u.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},u.then(function(){f.status="fulfilled",f.value=r;for(var e=0;ed?(p=f,f=null):p=f.sibling;var m=g(l,f,i[d],u);if(null===m){null===f&&(f=p);break}e&&f&&null===m.alternate&&n(l,f),o=a(m,o,d),null===c?s=m:c.sibling=m,c=m,f=p}if(d===i.length)return t(l,f),rm&&ru(l,d),s;if(null===f){for(;dp?(m=d,d=null):m=d.sibling;var b=g(l,d,v.value,u);if(null===b){null===d&&(d=m);break}e&&d&&null===b.alternate&&n(l,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=m}if(v.done)return t(l,d),rm&&ru(l,p),c;if(null===d){for(;!v.done;p++,v=i.next())null!==(v=h(l,v.value,u))&&(o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return rm&&ru(l,p),c}for(d=r(d);!v.done;p++,v=i.next())null!==(v=y(d,l,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach(function(e){return n(l,e)}),rm&&ru(l,p),c}(u,c,f=k.call(f),v)}if("function"==typeof f.then)return i(u,c,am(f),v);if(f.$$typeof===b)return i(u,c,og(u,f),v);ag(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(t(u,c.sibling),(v=l(c,f)).return=u):(t(u,c),(v=iy(f,u.mode,v)).return=u),o(u=v)):t(u,c)}(i,u,c,f);return ad=null,v}catch(e){if(e===rE||e===rz)throw e;var k=is(29,e,null,i.mode);return k.lanes=f,k.return=i,k}finally{}}}var ab=av(!0),ak=av(!1),aw=H(null),aS=null;function ax(e){var n=e.alternate;K(aP,1&aP.current),K(aw,e),null===aS&&(null===n||null!==rW.current?aS=e:null!==n.memoizedState&&(aS=e))}function aE(e){if(22===e.tag){if(K(aP,aP.current),K(aw,e),null===aS){var n=e.alternate;null!==n&&null!==n.memoizedState&&(aS=e)}}else aC(e)}function aC(){K(aP,aP.current),K(aw,aw.current)}function az(e){q(aw),aS===e&&(aS=null),q(aP)}var aP=H(0);function aN(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||sf(t)))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function aL(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:D({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var aT={isMounted:function(e){return!!(e=e._reactInternals)&&I(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=i4(),l=ow(r);l.payload=n,null!=t&&(l.callback=t),null!==(n=oS(e,l,r))&&(i6(n,e,r),ox(n,e,r))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=i4(),l=ow(r);l.tag=1,l.payload=n,null!=t&&(l.callback=t),null!==(n=oS(e,l,r))&&(i6(n,e,r),ox(n,e,r))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=i4(),r=ow(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=oS(e,r,t))&&(i6(n,e,t),ox(n,e,t))}};function a_(e,n,t,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!n.prototype||!n.prototype.isPureReactComponent||!tC(t,r)||!tC(l,a)}function aF(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&aT.enqueueReplaceState(n,n.state,null)}function aD(e,n){var t=n;if("ref"in n)for(var r in t={},n)"ref"!==r&&(t[r]=n[r]);if(e=e.defaultProps)for(var l in t===n&&(t=D({},t)),e)void 0===t[l]&&(t[l]=e[l]);return t}var aO="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof a&&"function"==typeof a.emit){a.emit("uncaughtException",e);return}console.error(e)};function aM(e){aO(e)}function aA(e){console.error(e)}function aR(e){aO(e)}function aI(e,n){try{(0,e.onUncaughtError)(n.value,{componentStack:n.stack})}catch(e){setTimeout(function(){throw e})}}function aU(e,n,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function aV(e,n,t){return(t=ow(t)).tag=3,t.payload={element:null},t.callback=function(){aI(e,n)},t}function aj(e){return(e=ow(e)).tag=3,e}function aB(e,n,t,r){var l=t.type.getDerivedStateFromError;if("function"==typeof l){var a=r.value;e.payload=function(){return l(a)},e.callback=function(){aU(n,t,r)}}var o=t.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){aU(n,t,r),"function"!=typeof l&&(null===iY?iY=new Set([this]):iY.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var aQ=Error(s(461)),a$=!1;function aW(e,n,t,r){n.child=null===e?ak(n,null,t,r):ab(n,e.child,t,r)}function aH(e,n,t,r,l){t=t.render;var a=n.ref;if("ref"in r){var o={};for(var i in r)"ref"!==i&&(o[i]=r[i])}else o=r;return(om(n),r=ll(e,n,t,o,a,l),i=lu(),null===e||a$)?(rm&&i&&rc(n),n.flags|=1,aW(e,n,r,l),n.child):(ls(e,n,l),ot(e,n,l))}function aq(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||ic(a)||void 0!==a.defaultProps||null!==t.compare?((e=im(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,aK(e,n,a,r,l))}if(a=e.child,!or(e,l)){var o=a.memoizedProps;if((t=null!==(t=t.compare)?t:tC)(o,r)&&e.ref===n.ref)return ot(e,n,l)}return n.flags|=1,(e=id(a,r)).ref=n.ref,e.return=n,n.child=e}function aK(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(tC(a,r)&&e.ref===n.ref){if(a$=!1,n.pendingProps=r=a,!or(e,l))return n.lanes=e.lanes,ot(e,n,l);0!=(131072&e.flags)&&(a$=!0)}}return aZ(e,n,t,r,l)}function aY(e,n,t){var r=n.pendingProps,l=r.children,a=0!=(2&n.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(aG(e,n),"hidden"===r.mode||a){if(0!=(128&n.flags)){if(r=null!==o?o.baseLanes|t:t,null!==e){for(a=0,l=n.child=e.child;null!==l;)a=a|l.lanes|l.childLanes,l=l.sibling;n.childLanes=a&~r}else n.childLanes=0,n.child=null;return aX(e,n,r,t)}if(0==(0x20000000&t))return n.lanes=n.childLanes=0x20000000,aX(e,n,null!==o?o.baseLanes|t:t,t);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&rJ(n,null!==o?o.cachePool:null),null!==o?rq(n,o):rK(),aE(n)}else null!==o?(rJ(n,o.cachePool),rq(n,o),aC(n),n.memoizedState=null):(null!==e&&rJ(n,null),rK(),aC(n));return aW(e,n,l,t),n.child}function aX(e,n,t,r){var l=rZ();return l=null===l?null:{parent:rR._currentValue,pool:l},n.memoizedState={baseLanes:t,cachePool:l},null!==e&&rJ(n,null),rK(),aE(n),null!==e&&od(e,n,r,!0),null}function aG(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=2097664);else{if("function"!=typeof t&&"object"!=typeof t)throw Error(s(284));(null===e||e.ref!==t)&&(n.flags|=2097664)}}function aZ(e,n,t,r,l){return(om(n),t=ll(e,n,t,r,void 0,l),r=lu(),null===e||a$)?(rm&&r&&rc(n),n.flags|=1,aW(e,n,t,l),n.child):(ls(e,n,l),ot(e,n,l))}function aJ(e,n,t,r,l,a){return(om(n),n.updateQueue=null,t=lo(n,r,t,l),la(e),r=lu(),null===e||a$)?(rm&&r&&rc(n),n.flags|=1,aW(e,n,t,a),n.child):(ls(e,n,a),ot(e,n,a))}function a0(e,n,t,r,l){if(om(n),null===n.stateNode){var a=t8,o=t.contextType;"object"==typeof o&&null!==o&&(a=oh(o)),a=new t(r,a),n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=aT,n.stateNode=a,a._reactInternals=n,(a=n.stateNode).props=r,a.state=n.memoizedState,a.refs={},ob(n),o=t.contextType,a.context="object"==typeof o&&null!==o?oh(o):t8,a.state=n.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(aL(n,t,o,r),a.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&aT.enqueueReplaceState(a,a.state,null),oP(n,r,a,l),oz(),a.state=n.memoizedState),"function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!0}else if(null===e){a=n.stateNode;var i=n.memoizedProps,u=aD(t,i);a.props=u;var s=a.context,c=t.contextType;o=t8,"object"==typeof c&&null!==c&&(o=oh(c));var f=t.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate,i=n.pendingProps!==i,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i||s!==o)&&aF(n,a,r,o),ov=!1;var d=n.memoizedState;a.state=d,oP(n,r,a,l),oz(),s=n.memoizedState,i||d!==s||ov?("function"==typeof f&&(aL(n,t,f,r),s=n.memoizedState),(u=ov||a_(n,t,u,r,d,s,o))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(n.flags|=4194308)):("function"==typeof a.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),a.props=r,a.state=s,a.context=o,r=u):("function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!1)}else{a=n.stateNode,ok(e,n),c=aD(t,o=n.memoizedProps),a.props=c,f=n.pendingProps,d=a.context,s=t.contextType,u=t8,"object"==typeof s&&null!==s&&(u=oh(s)),(s="function"==typeof(i=t.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==f||d!==u)&&aF(n,a,r,u),ov=!1,d=n.memoizedState,a.state=d,oP(n,r,a,l),oz();var p=n.memoizedState;o!==f||d!==p||ov||null!==e&&null!==e.dependencies&&op(e.dependencies)?("function"==typeof i&&(aL(n,t,i,r),p=n.memoizedState),(c=ov||a_(n,t,c,r,d,p,u)||null!==e&&null!==e.dependencies&&op(e.dependencies))?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(n.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return a=r,aG(e,n),r=0!=(128&n.flags),a||r?(a=n.stateNode,t=r&&"function"!=typeof t.getDerivedStateFromError?null:a.render(),n.flags|=1,null!==e&&r?(n.child=ab(n,e.child,null,l),n.child=ab(n,null,t,l)):aW(e,n,t,l),n.memoizedState=a.state,e=n.child):e=ot(e,n,l),e}function a1(e,n,t,r){return rS(),n.flags|=256,aW(e,n,t,r),n.child}var a2={dehydrated:null,treeContext:null,retryLane:0};function a4(e){return{baseLanes:e,cachePool:r0()}}function a3(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=ij),e}function a6(e,n,t){var r,l=n.pendingProps,a=!1,o=0!=(128&n.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&aP.current)),r&&(a=!0,n.flags&=-129),r=0!=(32&n.flags),n.flags&=-33,null===e){if(rm){if(a?ax(n):aC(n),rm){var i,u=rp;if(i=u){t:{for(i=u,u=rg;8!==i.nodeType;)if(!u||null===(i=sd(i.nextSibling))){u=null;break t}u=i}null!==u?(n.memoizedState={dehydrated:u,treeContext:null!==ra?{id:ro,overflow:ri}:null,retryLane:0x20000000},(i=is(18,null,null,0)).stateNode=u,i.return=n,n.child=i,rd=n,rp=null,i=!0):i=!1}i||rv(n)}if(null!==(u=n.memoizedState)&&null!==(u=u.dehydrated))return sf(u)?n.lanes=16:n.lanes=0x20000000,null;az(n)}return(u=l.children,l=l.fallback,a)?(aC(n),u=a5({mode:"hidden",children:u},a=n.mode),l=ih(l,a,t,null),u.return=n,l.return=n,u.sibling=l,n.child=u,(a=n.child).memoizedState=a4(t),a.childLanes=a3(e,r,t),n.memoizedState=a2,l):(ax(n),a8(n,u))}if(null!==(i=e.memoizedState)&&null!==(u=i.dehydrated)){if(o)256&n.flags?(ax(n),n.flags&=-257,n=a9(e,n,t)):null!==n.memoizedState?(aC(n),n.child=e.child,n.flags|=128,n=null):(aC(n),a=l.fallback,u=n.mode,l=a5({mode:"visible",children:l.children},u),a=ih(a,u,t,null),a.flags|=2,l.return=n,a.return=n,l.sibling=a,n.child=l,ab(n,e.child,null,t),(l=n.child).memoizedState=a4(t),l.childLanes=a3(e,r,t),n.memoizedState=a2,n=a);else if(ax(n),sf(u)){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(l=Error(s(419))).stack="",l.digest=r,rx({value:l,source:null,stack:null}),n=a9(e,n,t)}else if(a$||od(e,n,t,!1),r=0!=(t&e.childLanes),a$||r){if(null!==(r=iN)){if(0!=(42&(l=t&-t)))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;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 0x1000000:case 0x2000000:l=64;break;case 0x10000000:l=0x8000000;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|t))?0:l)&&l!==i.retryLane)throw i.retryLane=l,t4(e,l),i6(r,e,l),aQ}"$?"===u.data||uo(),n=a9(e,n,t)}else"$?"===u.data?(n.flags|=192,n.child=e.child,n=null):(e=i.treeContext,rp=sd(u.nextSibling),rd=n,rm=!0,rh=null,rg=!1,null!==e&&(rr[rl++]=ro,rr[rl++]=ri,rr[rl++]=ra,ro=e.id,ri=e.overflow,ra=n),n=a8(n,l.children),n.flags|=4096);return n}return a?(aC(n),a=l.fallback,u=n.mode,c=(i=e.child).sibling,(l=id(i,{mode:"hidden",children:l.children})).subtreeFlags=0x1e00000&i.subtreeFlags,null!==c?a=id(c,a):(a=ih(a,u,t,null),a.flags|=2),a.return=n,l.return=n,l.sibling=a,n.child=l,l=a,a=n.child,null===(u=e.child.memoizedState)?u=a4(t):(null!==(i=u.cachePool)?(c=rR._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=r0(),u={baseLanes:u.baseLanes|t,cachePool:i}),a.memoizedState=u,a.childLanes=a3(e,r,t),n.memoizedState=a2,l):(ax(n),e=(t=e.child).sibling,(t=id(t,{mode:"visible",children:l.children})).return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t,n.memoizedState=null,t)}function a8(e,n){return(n=a5({mode:"visible",children:n},e.mode)).return=e,e.child=n}function a5(e,n){return ig(e,n,0,null)}function a9(e,n,t){return ab(n,e.child,null,t),e=a8(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function a7(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),oc(e.return,n,t)}function oe(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function on(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(aW(e,n,r.children,t),0!=(2&(r=aP.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&a7(e,t,n);else if(19===e.tag)a7(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(K(aP,r),l){case"forwards":for(l=null,t=n.child;null!==t;)null!==(e=t.alternate)&&null===aN(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),oe(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===aN(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}oe(n,!0,t,null,a);break;case"together":oe(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ot(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),iI|=n.lanes,0==(t&n.childLanes)&&(null===e||(od(e,n,t,!1),0==(t&n.childLanes))))return null;if(null!==e&&n.child!==e.child)throw Error(s(153));if(null!==n.child){for(t=id(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=id(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function or(e,n){return 0!=(e.lanes&n)||!!(null!==(e=e.dependencies)&&op(e))}function ol(e,n,t){if(null!==e){if(e.memoizedProps!==n.pendingProps)a$=!0;else{if(!or(e,t)&&0==(128&n.flags))return a$=!1,function(e,n,t){switch(n.tag){case 3:J(n,n.stateNode.containerInfo),ou(n,rR,e.memoizedState.cache),rS();break;case 27:case 5:en(n);break;case 4:J(n,n.stateNode.containerInfo);break;case 10:ou(n,n.type,n.memoizedProps.value);break;case 13:var r=n.memoizedState;if(null!==r){if(null!==r.dehydrated)return ax(n),n.flags|=128,null;if(0!=(t&n.child.childLanes))return a6(e,n,t);return ax(n),null!==(e=ot(e,n,t))?e.sibling:null}ax(n);break;case 19:var l=0!=(128&e.flags);if((r=0!=(t&n.childLanes))||(od(e,n,t,!1),r=0!=(t&n.childLanes)),l){if(r)return on(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),K(aP,aP.current),!r)return null;break;case 22:case 23:return n.lanes=0,aY(e,n,t);case 24:ou(n,rR,e.memoizedState.cache)}return ot(e,n,t)}(e,n,t);a$=0!=(131072&e.flags)}}else a$=!1,rm&&0!=(1048576&n.flags)&&rs(n,rt,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var r=n.elementType,l=r._init;if(r=l(r._payload),n.type=r,"function"==typeof r)ic(r)?(e=aD(r,e),n.tag=1,n=a0(null,n,r,e,t)):(n.tag=0,n=aZ(null,n,r,e,t));else{if(null!=r){if((l=r.$$typeof)===k){n.tag=11,n=aH(null,n,r,e,t);break e}if(l===x){n.tag=14,n=aq(null,n,r,e,t);break e}}throw Error(s(306,n=function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===_?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case m:return"Fragment";case p:return"Portal";case g:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case S:return"SuspenseList"}if("object"==typeof n)switch(n.$$typeof){case b:return(n.displayName||"Context")+".Provider";case v:return(n._context.displayName||"Context")+".Consumer";case k:var t=n.render;return(n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case x:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case E:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(r)||r,""))}}return n;case 0:return aZ(e,n,n.type,n.pendingProps,t);case 1:return l=aD(r=n.type,n.pendingProps),a0(e,n,r,l,t);case 3:e:{if(J(n,n.stateNode.containerInfo),null===e)throw Error(s(387));var a=n.pendingProps;r=(l=n.memoizedState).element,ok(e,n),oP(n,a,null,t);var o=n.memoizedState;if(ou(n,rR,a=o.cache),a!==l.cache&&of(n,[rR],t,!0),oz(),a=o.element,l.isDehydrated){if(l={element:a,isDehydrated:!1,cache:o.cache},n.updateQueue.baseState=l,n.memoizedState=l,256&n.flags){n=a1(e,n,a,t);break e}if(a!==r){rx(r=t9(Error(s(424)),n)),n=a1(e,n,a,t);break e}for(rp=sd(n.stateNode.containerInfo.firstChild),rd=n,rm=!0,rh=null,rg=!0,t=ak(n,null,a,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(rS(),a===r){n=ot(e,n,t);break e}aW(e,n,a,t)}n=n.child}return n;case 26:return aG(e,n),null===e?(t=sw(n.type,null,n.pendingProps,null))?n.memoizedState=t:rm||(t=n.type,e=n.pendingProps,(r=u7(G.current).createElement(t))[eR]=n,r[eI]=e,u8(r,t,e),eX(r),n.stateNode=r):n.memoizedState=sw(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return en(n),null===e&&rm&&(r=n.stateNode=sm(n.type,n.pendingProps,G.current),rd=n,rg=!0,rp=sd(r.firstChild)),r=n.pendingProps.children,null!==e||rm?aW(e,n,r,t):n.child=ab(n,null,r,t),aG(e,n),n.child;case 5:return null===e&&rm&&((l=r=rp)&&(null!==(r=function(e,n,t,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[e$])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(l=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||l!==t.rel||e.getAttribute("href")!==(null==t.href?null:t.href)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin)||e.getAttribute("title")!==(null==t.title?null:t.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((l=e.getAttribute("src"))!==(null==t.src?null:t.src)||e.getAttribute("type")!==(null==t.type?null:t.type)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;var l=null==t.name?null:""+t.name;if("hidden"===t.type&&e.getAttribute("name")===l)return e}if(null===(e=sd(e.nextSibling)))break}return null}(r,n.type,n.pendingProps,rg))?(n.stateNode=r,rd=n,rp=sd(r.firstChild),rg=!1,l=!0):l=!1),l||rv(n)),en(n),l=n.type,a=n.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,st(l,a)?r=null:null!==o&&st(l,o)&&(n.flags|=32),null!==n.memoizedState&&(l=ll(e,n,li,null,null,t),sj._currentValue=l),aG(e,n),aW(e,n,r,t),n.child;case 6:return null===e&&rm&&((e=t=rp)&&(null!==(t=function(e,n,t){if(""===n)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=sd(e.nextSibling)))return null;return e}(t,n.pendingProps,rg))?(n.stateNode=t,rd=n,rp=null,e=!0):e=!1),e||rv(n)),null;case 13:return a6(e,n,t);case 4:return J(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=ab(n,null,r,t):aW(e,n,r,t),n.child;case 11:return aH(e,n,n.type,n.pendingProps,t);case 7:return aW(e,n,n.pendingProps,t),n.child;case 8:case 12:return aW(e,n,n.pendingProps.children,t),n.child;case 10:return r=n.pendingProps,ou(n,n.type,r.value),aW(e,n,r.children,t),n.child;case 9:return l=n.type._context,r=n.pendingProps.children,om(n),r=r(l=oh(l)),n.flags|=1,aW(e,n,r,t),n.child;case 14:return aq(e,n,n.type,n.pendingProps,t);case 15:return aK(e,n,n.type,n.pendingProps,t);case 19:return on(e,n,t);case 22:return aY(e,n,t);case 24:return om(n),r=oh(rR),null===e?(null===(l=rZ())&&(l=iN,a=rI(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=t),l=a),n.memoizedState={parent:r,cache:l},ob(n),ou(n,rR,l)):(0!=(e.lanes&t)&&(ok(e,n),oP(n,null,null,t),oz()),l=e.memoizedState,a=n.memoizedState,l.parent!==r?(l={parent:r,cache:r},n.memoizedState=l,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=l),ou(n,rR,r)):(ou(n,rR,r=a.cache),r!==l.cache&&of(n,[rR],t,!0))),aW(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}var oa=H(null),oo=null,oi=null;function ou(e,n,t){K(oa,n._currentValue),n._currentValue=t}function os(e){e._currentValue=oa.current,q(oa)}function oc(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function of(e,n,t,r){var l=e.child;for(null!==l&&(l.return=e);null!==l;){var a=l.dependencies;if(null!==a){var o=l.child;a=a.firstContext;e:for(;null!==a;){var i=a;a=l;for(var u=0;u title"))),u8(a,r,t),a[eR]=e,eX(a),r=a;break e;case"link":var o=sF("link","href",l).get(r+(t.href||""));if(o){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(t,{is:r.is}):l.createElement(t)}}e[eR]=n,e[eI]=r;e:for(l=n.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n.stateNode=e,u8(e,t,r),t){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ib(n)}}return ix(n),n.flags&=-0x1000001,null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&ib(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(s(166));if(e=G.current,rw(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(l=rd))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eR]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||u2(e.nodeValue,t)))||rv(n)}else(e=u7(e).createTextNode(r))[eR]=n,n.stateNode=e}return ix(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rw(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(s(318));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(s(317));l[eR]=n}else rS(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;ix(n),l=!1}else null!==rh&&(i5(rh),rh=null),l=!0;if(!l){if(256&n.flags)return az(n),n;return az(n),null}}if(az(n),0!=(128&n.flags))return n.lanes=t,n;if(t=null!==r,e=null!==e&&null!==e.memoizedState,t){r=n.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return t!==e&&t&&(n.child.flags|=8192),iw(n,n.updateQueue),ix(n),null;case 4:return ee(),null===e&&uH(n.stateNode.containerInfo),ix(n),null;case 10:return os(n.type),ix(n),null;case 19:if(q(aP),null===(l=n.memoizedState))return ix(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering)){if(r)iS(l,!1);else{if(0!==iR||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=aN(e))){for(n.flags|=128,iS(l,!1),e=a.updateQueue,n.updateQueue=e,iw(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)ip(t,e),t=t.sibling;return K(aP,1&aP.current|2),n.child}e=e.sibling}null!==l.tail&&eu()>iq&&(n.flags|=128,r=!0,iS(l,!1),n.lanes=4194304)}}else{if(!r){if(null!==(e=aN(a))){if(n.flags|=128,r=!0,e=e.updateQueue,n.updateQueue=e,iw(n,e),iS(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!rm)return ix(n),null}else 2*eu()-l.renderingStartTime>iq&&0x20000000!==t&&(n.flags|=128,r=!0,iS(l,!1),n.lanes=4194304)}l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}if(null!==l.tail)return n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=eu(),n.sibling=null,e=aP.current,K(aP,r?1&e|2:1&e),n;return ix(n),null;case 22:case 23:return az(n),rY(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?0!=(0x20000000&t)&&0==(128&n.flags)&&(ix(n),6&n.subtreeFlags&&(n.flags|=8192)):ix(n),null!==(t=n.updateQueue)&&iw(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&q(rG),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),os(rR),ix(n),null;case 25:return null}throw Error(s(156,n.tag))}(n.alternate,n,iA);if(null!==t){iL=t;return}if(null!==(n=n.sibling)){iL=n;return}iL=n=e}while(null!==n);0===iR&&(iR=5)}function ud(e,n){do{var t=function(e,n){switch(rf(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return os(rR),ee(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return et(n),null;case 13:if(az(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(s(340));rS()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return q(aP),null;case 4:return ee(),null;case 10:return os(n.type),null;case 22:case 23:return az(n),rY(),null!==e&&q(rG),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return os(rR),null;default:return null}}(e.alternate,e);if(null!==t){t.flags&=32767,iL=t;return}if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling)){iL=e;return}iL=e=t}while(null!==e);iR=6,iL=null}function up(e,n,t,r,l,a,o,i,u,c,f){var d=F.T,p=B.p;try{B.p=2,F.T=null,function(e,n,t,r,l,a,o,i){do uh();while(null!==iG);if(0!=(6&iP))throw Error(s(327));var u,c=e.finishedWork;if(r=e.finishedLanes,null!==c){if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var f=c.lanes|c.childLanes;if(function(e,n,t,r,l,a){var o=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(t=o&~t;0r&&(l=r,r=a,a=l),l=tP(n,a);var o=tP(n,r);l&&o&&(1!==t.rangeCount||t.anchorNode!==l.node||t.anchorOffset!==l.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&((e=e.createRange()).setStart(l.node,l.offset),t.removeAllRanges(),a>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nt?32:t,F.T=null,null===iG)var a=!1;else{t=i0,i0=null;var o=iG,i=iZ;if(iG=null,iZ=0,0!=(6&iP))throw Error(s(331));var u=iP;if(iP|=4,io(o.current),o9(o,o.current,i,t),iP=u,uT(0,!1),ev&&"function"==typeof ev.onPostCommitFiberRoot)try{ev.onPostCommitFiberRoot(ey,o)}catch(e){}a=!0}return a}finally{B.p=l,F.T=r,um(e,n)}}return!1}function ug(e,n,t){n=t9(t,n),n=aV(e.stateNode,n,2),null!==(e=oS(e,n,2))&&(e_(e,2),uL(e))}function uy(e,n,t){if(3===e.tag)ug(e,e,t);else for(;null!==n;){if(3===n.tag){ug(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===iY||!iY.has(r))){e=t9(t,e),null!==(r=oS(n,t=aj(2),2))&&(aB(t,r,n,e),e_(r,2),uL(r));break}}n=n.return}}function uv(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new iz;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(iM=!0,l.add(t),e=ub.bind(null,e,n,t),n.then(e,e))}function ub(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,iN===e&&(iT&t)===t&&(4===iR||3===iR&&(0x3c00000&iT)===iT&&300>eu()-iH?0==(2&iP)&&ut(e,0):iV|=t,iB===iT&&(iB=0)),uL(e)}function uk(e,n){0===n&&(n=eL()),null!==(e=t4(e,n))&&(e_(e,n),uL(e))}function uw(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),uk(e,t)}function uS(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(n),uk(e,t)}var ux=null,uE=null,uC=!1,uz=!1,uP=!1,uN=0;function uL(e){var n;e!==uE&&null===e.next&&(null===uE?ux=uE=e:uE=uE.next=e),uz=!0,uC||(uC=!0,n=u_,si(function(){0!=(6&iP)?el(ec,n):n()}))}function uT(e,n){if(!uP&&uz){uP=!0;do for(var t=!1,r=ux;null!==r;){if(!n){if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000055&(a=(1<<31-ek(42|e)+1)-1&(l&~(o&~i)))?0xc000055&a|1:a?2|a:0}0!==a&&(t=!0,uO(r,a))}else a=iT,0==(3&(a=ez(r,r===iN?a:0)))||eP(r,a)||(t=!0,uO(r,a))}r=r.next}while(t);uP=!1}}function u_(){uz=uC=!1;var e,n=0;0!==uN&&(((e=window.event)&&"popstate"===e.type?e===sr||(sr=e,0):(sr=null,1))||(n=uN),uN=0);for(var t=eu(),r=null,l=ux;null!==l;){var a=l.next,o=uF(l,t);0===o?(l.next=null,null===r?ux=a:r.next=a,null===a&&(uE=r)):(r=l,(0!==n||0!=(3&o))&&(uz=!0)),l=a}uT(n,!1)}function uF(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function sO(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sM=null;function sA(){}function sR(){if(this.count--,0===this.count){if(this.stylesheets)sU(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sI=null;function sU(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sI=new Map,n.forEach(sV,e),sI=null,sR.call(e))}function sV(e,n){if(!(4&n.state.loading)){var t=sI.get(e);if(t)var r=t.get(null);else{t=new Map,sI.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r,l,a=n(77836),o=n(69982),i=n(96540),u=n(40961);function s(e){var t="https://react.dev/errors/"+e;if(1)":-1l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?A(n):""}function M(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function I(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function U(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function j(e){if(I(e)!==e)throw Error(s(188))}var H=Array.isArray,$=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},B=[],W=-1;function Q(e){return{current:e}}function q(e){0>W||(e.current=B[W],B[W]=null,W--)}function K(e,t){B[++W]=e.current,e.current=t}var Y=Q(null),G=Q(null),X=Q(null),Z=Q(null);function J(e,t){switch(K(X,t),K(G,e),K(Y,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?u5(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=u9(e=u5(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(Y),K(Y,t)}function ee(){q(Y),q(G),q(X)}function et(e){null!==e.memoizedState&&K(Z,e);var t=Y.current,n=u9(t,e.type);t!==n&&(K(G,e),K(Y,n))}function en(e){G.current===e&&(q(Y),q(G)),Z.current===e&&(q(Z),sM._currentValue=V)}var er=Object.prototype.hasOwnProperty,el=o.unstable_scheduleCallback,ea=o.unstable_cancelCallback,eo=o.unstable_shouldYield,ei=o.unstable_requestPaint,eu=o.unstable_now,es=o.unstable_getCurrentPriorityLevel,ec=o.unstable_ImmediatePriority,ef=o.unstable_UserBlockingPriority,ed=o.unstable_NormalPriority,ep=o.unstable_LowPriority,em=o.unstable_IdlePriority,eh=o.log,eg=o.unstable_setDisableYieldValue,ey=null,ev=null;function eb(e){if("function"==typeof eh&&eg(e),ev&&"function"==typeof ev.setStrictMode)try{ev.setStrictMode(ey,e)}catch(e){}}var ek=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ew(e)/eS|0)|0},ew=Math.log,eS=Math.LN2,ex=128,eE=4194304;function eC(e){var t=42&e;if(0!==t)return t;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:return 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 4194176&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function e_(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,o=e.warmLanes;e=0!==e.finishedLanes;var i=0x7ffffff&n;return 0!==i?0!=(n=i&~l)?r=eC(n):0!=(a&=i)?r=eC(a):e||0!=(o=i&~o)&&(r=eC(o)):0!=(i=n&~l)?r=eC(i):0!==a?r=eC(a):e||0!=(o=n&~o)&&(r=eC(o)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(o=t&-t)||32===l&&0!=(4194176&o))?t:r}function eP(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ez(){var e=ex;return 0==(4194176&(ex<<=1))&&(ex=128),e}function eN(){var e=eE;return 0==(0x3c00000&(eE<<=1))&&(eE=4194304),e}function eT(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eL(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eO(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ek(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|4194218&n}function eR(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ek(n),l=1<=ne),nr=!1;function nl(e,t){switch(e){case"keyup":return -1!==t9.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function na(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var no=!1,ni={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 nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ni[e.type]:"textarea"===t}function ns(e,t,n,r){tw?tS?tS.push(r):tS=[r]:tw=r,0<(t=uq(t,"onChange")).length&&(n=new tH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nc=null,nf=null;function nd(e){uU(e,0)}function np(e){if(tt(eK(e)))return e}function nm(e,t){if("change"===e)return t}var nh=!1;if(e1){if(e1){var ng="oninput"in document;if(!ng){var ny=document.createElement("div");ny.setAttribute("oninput","return;"),ng="function"==typeof ny.oninput}r=ng}else r=!1;nh=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=n_(r)}}function nz(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=tn(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=tn(e.document)}return t}function nN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nT=e1&&"documentMode"in document&&11>=document.documentMode,nL=null,nO=null,nR=null,nA=!1;function nF(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nA||null==nL||nL!==tn(r)||(r="selectionStart"in(r=nL)&&nN(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nR&&nC(nR,r)||(nR=r,0<(r=uq(nO,"onSelect")).length&&(t=new tH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nL)))}function nD(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nM={animationend:nD("Animation","AnimationEnd"),animationiteration:nD("Animation","AnimationIteration"),animationstart:nD("Animation","AnimationStart"),transitionrun:nD("Transition","TransitionRun"),transitionstart:nD("Transition","TransitionStart"),transitioncancel:nD("Transition","TransitionCancel"),transitionend:nD("Transition","TransitionEnd")},nI={},nU={};function nj(e){if(nI[e])return nI[e];if(!nM[e])return e;var t,n=nM[e];for(t in n)if(n.hasOwnProperty(t)&&t in nU)return nI[e]=n[t];return e}e1&&(nU=document.createElement("div").style,"AnimationEvent"in window||(delete nM.animationend.animation,delete nM.animationiteration.animation,delete nM.animationstart.animation),"TransitionEvent"in window||delete nM.transitionend.transition);var nH=nj("animationend"),n$=nj("animationiteration"),nV=nj("animationstart"),nB=nj("transitionrun"),nW=nj("transitionstart"),nQ=nj("transitioncancel"),nq=nj("transitionend"),nK=new Map,nY="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function nG(e,t){nK.set(e,t),eJ(t,[e])}var nX=[],nZ=0,nJ=0;function n0(){for(var e=nZ,t=nJ=nZ=0;t>=o,l-=o,ro=1<<32-ek(t)+l|n<d?(p=f,f=null):p=f.sibling;var m=g(l,f,i[d],u);if(null===m){null===f&&(f=p);break}e&&f&&null===m.alternate&&t(l,f),o=a(m,o,d),null===c?s=m:c.sibling=m,c=m,f=p}if(d===i.length)return n(l,f),rm&&ru(l,d),s;if(null===f){for(;dp?(m=d,d=null):m=d.sibling;var b=g(l,d,v.value,u);if(null===b){null===d&&(d=m);break}e&&d&&null===b.alternate&&t(l,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=m}if(v.done)return n(l,d),rm&&ru(l,p),c;if(null===d){for(;!v.done;p++,v=i.next())null!==(v=h(l,v.value,u))&&(o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return rm&&ru(l,p),c}for(d=r(d);!v.done;p++,v=i.next())null!==(v=y(d,l,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach(function(e){return t(l,e)}),rm&&ru(l,p),c}(u,c,f=k.call(f),v)}if("function"==typeof f.then)return i(u,c,rA(f),v);if(f.$$typeof===b)return i(u,c,op(u,f),v);rD(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(u,c.sibling),(v=l(c,f)).return=u):(n(u,c),(v=im(f,u.mode,v)).return=u),o(u=v)):n(u,c)}(i,u,c,f);return rO=null,v}catch(e){if(e===rE)throw e;var k=io(29,e,null,i.mode);return k.lanes=f,k.return=i,k}finally{}}}var rU=rI(!0),rj=rI(!1),rH=Q(null),r$=Q(0);function rV(e,t){K(r$,e=iR),K(rH,t),iR=e|t.baseLanes}function rB(){K(r$,iR),K(rH,rH.current)}function rW(){iR=r$.current,q(rH),q(r$)}var rQ=Q(null),rq=null;function rK(e){var t=e.alternate;K(rZ,1&rZ.current),K(rQ,e),null===rq&&(null===t||null!==rH.current?rq=e:null!==t.memoizedState&&(rq=e))}function rY(e){if(22===e.tag){if(K(rZ,rZ.current),K(rQ,e),null===rq){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rq=e)}}else rG(e)}function rG(){K(rZ,rZ.current),K(rQ,rQ.current)}function rX(e){q(rQ),rq===e&&(rq=null),q(rZ)}var rZ=Q(0);function rJ(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var r0="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},r1=o.unstable_scheduleCallback,r2=o.unstable_NormalPriority,r3={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function r4(){return{controller:new r0,data:new Map,refCount:0}}function r6(e){e.refCount--,0===e.refCount&&r1(r2,function(){e.controller.abort()})}var r8=null,r5=0,r9=0,r7=null;function le(){if(0==--r5&&null!==r8){null!==r7&&(r7.status="fulfilled");var e=r8;r8=null,r9=0,r7=null;for(var t=0;ta?a:8;var o=O.T,i={};O.T=i,av(e,!1,t,n);try{var u=l(),s=O.S;if(null!==s&&s(i,u),null!==u&&"object"==typeof u&&"function"==typeof u.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},u.then(function(){f.status="fulfilled",f.value=r;for(var e=0;e title"))),u3(a,r,n),a[eM]=e,eG(a),r=a;break e;case"link":var o=sz("link","href",l).get(r+(n.href||""));if(o){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eM]=t,e[eI]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,u3(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ig(t)}}return ik(t),t.flags&=-0x1000001,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ig(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=X.current,rw(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(l=rd))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eM]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||uJ(e.nodeValue,n)))||rv(t)}else(e=u8(e).createTextNode(r))[eM]=t,t.stateNode=e}return ik(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rw(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(s(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(s(317));l[eM]=t}else rS(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ik(t),l=!1}else null!==rh&&(i4(rh),rh=null),l=!0;if(!l){if(256&t.flags)return rX(t),t;return rX(t),null}}if(rX(t),0!=(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),iv(t,t.updateQueue),ik(t),null;case 4:return ee(),null===e&&uV(t.stateNode.containerInfo),ik(t),null;case 10:return oo(t.type),ik(t),null;case 19:if(q(rZ),null===(l=t.memoizedState))return ik(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)ib(l,!1);else{if(0!==iA||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=rJ(e))){for(t.flags|=128,ib(l,!1),e=a.updateQueue,t.updateQueue=e,iv(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)is(n,e),n=n.sibling;return K(rZ,1&rZ.current|2),t.child}e=e.sibling}null!==l.tail&&eu()>iB&&(t.flags|=128,r=!0,ib(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=rJ(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,iv(t,e),ib(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!rm)return ik(t),null}else 2*eu()-l.renderingStartTime>iB&&0x20000000!==n&&(t.flags|=128,r=!0,ib(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=eu(),t.sibling=null,e=rZ.current,K(rZ,r?1&e|2:1&e),t;return ik(t),null;case 22:case 23:return rX(t),rW(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(ik(t),6&t.subtreeFlags&&(t.flags|=8192)):ik(t),null!==(n=t.updateQueue)&&iv(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&q(ln),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),oo(r3),ik(t),null;case 25:return null}throw Error(s(156,t.tag))}(t.alternate,t,iR);if(null!==n){i_=n;return}if(null!==(t=t.sibling)){i_=t;return}i_=t=e}while(null!==t);0===iA&&(iA=5)}function us(e,t){do{var n=function(e,t){switch(rf(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oo(r3),ee(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return en(t),null;case 13:if(rX(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));rS()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return q(rZ),null;case 4:return ee(),null;case 10:return oo(t.type),null;case 22:case 23:return rX(t),rW(),null!==e&&q(ln),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return oo(r3),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,i_=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){i_=e;return}i_=e=n}while(null!==e);iA=6,i_=null}function uc(e,t,n,r,l,a,o,i,u,c){var f=O.T,d=$.p;try{$.p=2,O.T=null,function(e,t,n,r,l,a,o,i){do ud();while(null!==iK);if(0!=(6&iE))throw Error(s(327));var u,c=e.finishedWork;if(r=e.finishedLanes,null!==c){if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var f=c.lanes|c.childLanes;if(function(e,t,n,r,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0r&&(l=r,r=a,a=l),l=nP(t,a);var o=nP(t,r);l&&o&&(1!==n.rangeCount||n.anchorNode!==l.node||n.anchorOffset!==l.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&((e=e.createRange()).setStart(l.node,l.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;tn?32:n,O.T=null,null===iK)var a=!1;else{n=iX,iX=null;var o=iK,i=iY;if(iK=null,iY=0,0!=(6&iE))throw Error(s(331));var u=iE;if(iE|=4,ir(o.current),o6(o,o.current,i,n),iE=u,uP(0,!1),ev&&"function"==typeof ev.onPostCommitFiberRoot)try{ev.onPostCommitFiberRoot(ey,o)}catch(e){}a=!0}return a}finally{$.p=l,O.T=r,uf(e,t)}}return!1}function up(e,t,n){t=n9(n,t),t=aM(e.stateNode,t,2),null!==(e=ob(e,t,2))&&(eL(e,2),u_(e))}function um(e,t,n){if(3===e.tag)up(e,e,n);else for(;null!==t;){if(3===t.tag){up(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===iQ||!iQ.has(r))){e=n9(n,e),null!==(r=ob(t,n=aI(2),2))&&(aU(n,r,t,e),eL(r,2),u_(r));break}}t=t.return}}function uh(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ix;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(iO=!0,l.add(n),e=ug.bind(null,e,t,n),t.then(e,e))}function ug(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,iC===e&&(iP&n)===n&&(4===iA||3===iA&&(0x3c00000&iP)===iP&&300>eu()-iV?0==(2&iE)&&i7(e,0):iM|=n,iU===iP&&(iU=0)),u_(e)}function uy(e,t){0===t&&(t=eN()),null!==(e=n3(e,t))&&(eL(e,t),u_(e))}function uv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),uy(e,n)}function ub(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),uy(e,n)}var uk=null,uw=null,uS=!1,ux=!1,uE=!1,uC=0;function u_(e){var t;e!==uw&&null===e.next&&(null===uw?uk=uw=e:uw=uw.next=e),ux=!0,uS||(uS=!0,t=uz,sl(function(){0!=(6&iE)?el(ec,t):t()}))}function uP(e,t){if(!uE&&ux){uE=!0;do for(var n=!1,r=uk;null!==r;){if(!t){if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000055&(a=(1<<31-ek(42|e)+1)-1&(l&~(o&~i)))?0xc000055&a|1:a?2|a:0}0!==a&&(n=!0,uL(r,a))}else a=iP,0==(3&(a=e_(r,r===iC?a:0)))||eP(r,a)||(n=!0,uL(r,a))}r=r.next}while(n);uE=!1}}function uz(){ux=uS=!1;var e,t=0;0!==uC&&(((e=window.event)&&"popstate"===e.type?e===se||(se=e,0):(se=null,1))||(t=uC),uC=0);for(var n=eu(),r=null,l=uk;null!==l;){var a=l.next,o=uN(l,n);0===o?(l.next=null,null===r?uk=a:r.next=a,null===a&&(uw=r)):(r=l,(0!==t||0!=(3&o))&&(ux=!0)),l=a}uP(t,!1)}function uN(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function sT(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sL=null;function sO(){}function sR(){if(this.count--,0===this.count){if(this.stylesheets)sF(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sA=null;function sF(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sA=new Map,t.forEach(sD,e),sA=null,sR.call(e))}function sD(e,t){if(!(4&t.state.loading)){var n=sA.get(e);if(n)var r=n.get(null);else{n=new Map,sA.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r=n(96540);function l(e){var t="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(31247)},40961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},29698:(e,t)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(e,t,r){var l=null;if(void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return{$$typeof:n,type:e,key:l,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=r,t.jsx=l,t.jsxs=l},29869:(e,t,n)=>{var r=n(77836),l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function k(){}function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=b.prototype;var S=w.prototype=new k;S.constructor=w,y(S,b.prototype),S.isPureReactComponent=!0;var x=Array.isArray,E={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function _(e,t,n,r,a,o){return{$$typeof:l,type:e,key:t,ref:void 0!==(n=o.ref)?n:null,props:o}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var z=/\/+/g;function N(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(){}function L(e,t,n){if(null==e)return e;var r=[],o=0;return!function e(t,n,r,o,i){var u,s,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case l:case a:d=!0;break;case m:return e((d=t._init)(t._payload),n,r,o,i)}}if(d)return i=i(t),d=""===o?"."+N(t,0):o,x(i)?(r="",null!=d&&(r=d.replace(z,"$&/")+"/"),e(i,n,r,"",function(e){return e})):null!=i&&(P(i)&&(u=i,s=r+(null==i.key||t&&t.key===i.key?"":(""+i.key).replace(z,"$&/")+"/")+d,i=_(u.type,s,void 0,void 0,void 0,u.props)),n.push(i)),1;d=0;var p=""===o?".":o+":";if(x(t))for(var g=0;g{e.exports=n(29869)},74848:(e,t,n)=>{e.exports=n(29698)},4477:(e,t)=>{function n(e,t){var n=e.length;for(e.push(t);0>>1,l=e[r];if(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[i]=n,r=i);else if(sa(c,n))e[r]=c,e[s]=n,r=s;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o,i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,k="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(f);null!==t;){if(null===t.callback)l(f);else if(t.startTime<=e)l(f),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(f)}}function S(e){if(y=!1,w(e),!g){if(null!==r(c))g=!0,L();else{var t=r(f);null!==t&&O(S,t.startTime-e)}}}var x=!1,E=-1,C=5,_=-1;function P(){return!(t.unstable_now()-_e&&P());){var i=p.callback;if("function"==typeof i){p.callback=null,m=p.priorityLevel;var u=i(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof u){p.callback=u,w(e),n=!0;break t}p===r(c)&&l(c),w(e)}else l(c);p=r(c)}if(null!==p)n=!0;else{var s=r(f);null!==s&&O(S,s.startTime-e),n=!1}}break e}finally{p=null,m=a,h=!1}n=void 0}}finally{n?o():x=!1}}}if("function"==typeof k)o=function(){k(z)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,T=N.port2;N.port1.onmessage=z,o=function(){T.postMessage(null)}}else o=function(){v(z,0)};function L(){x||(x=!0,o())}function O(e,n){E=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,L())},t.unstable_forceFrameRate=function(e){0>e||125o?(e.sortIndex=a,n(f,e),null===r(c)&&e===r(f)&&(y?(b(E),E=-1):y=!0,O(S,a-o))):(e.sortIndex=i,n(c,e),g||h||(g=!0,L())),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=m;return function(){var n=m;m=t;try{return e.apply(this,arguments)}finally{m=n}}}},69982:(e,t,n)=>{e.exports=n(4477)}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6593],{21727:(e,t,n)=>{var r,l,a=n(85318),o=n(23556),i=n(58101),u=n(96049);function s(e){var t="https://react.dev/errors/"+e;if(1)":-1l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?A(n):""}function M(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function I(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function U(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function j(e){if(I(e)!==e)throw Error(s(188))}var H=Array.isArray,$=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},B=[],W=-1;function Q(e){return{current:e}}function q(e){0>W||(e.current=B[W],B[W]=null,W--)}function K(e,t){B[++W]=e.current,e.current=t}var Y=Q(null),G=Q(null),X=Q(null),Z=Q(null);function J(e,t){switch(K(X,t),K(G,e),K(Y,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?u8(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=u9(e=u8(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(Y),K(Y,t)}function ee(){q(Y),q(G),q(X)}function et(e){null!==e.memoizedState&&K(Z,e);var t=Y.current,n=u9(t,e.type);t!==n&&(K(G,e),K(Y,n))}function en(e){G.current===e&&(q(Y),q(G)),Z.current===e&&(q(Z),sM._currentValue=V)}var er=Object.prototype.hasOwnProperty,el=o.unstable_scheduleCallback,ea=o.unstable_cancelCallback,eo=o.unstable_shouldYield,ei=o.unstable_requestPaint,eu=o.unstable_now,es=o.unstable_getCurrentPriorityLevel,ec=o.unstable_ImmediatePriority,ef=o.unstable_UserBlockingPriority,ed=o.unstable_NormalPriority,ep=o.unstable_LowPriority,em=o.unstable_IdlePriority,eh=o.log,eg=o.unstable_setDisableYieldValue,ey=null,ev=null;function eb(e){if("function"==typeof eh&&eg(e),ev&&"function"==typeof ev.setStrictMode)try{ev.setStrictMode(ey,e)}catch(e){}}var ek=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ew(e)/eS|0)|0},ew=Math.log,eS=Math.LN2,ex=128,eE=4194304;function eC(e){var t=42&e;if(0!==t)return t;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:return 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 4194176&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function e_(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,o=e.warmLanes;e=0!==e.finishedLanes;var i=0x7ffffff&n;return 0!==i?0!=(n=i&~l)?r=eC(n):0!=(a&=i)?r=eC(a):e||0!=(o=i&~o)&&(r=eC(o)):0!=(i=n&~l)?r=eC(i):0!==a?r=eC(a):e||0!=(o=n&~o)&&(r=eC(o)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(o=t&-t)||32===l&&0!=(4194176&o))?t:r}function eP(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ez(){var e=ex;return 0==(4194176&(ex<<=1))&&(ex=128),e}function eN(){var e=eE;return 0==(0x3c00000&(eE<<=1))&&(eE=4194304),e}function eT(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eL(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eO(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ek(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|4194218&n}function eR(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ek(n),l=1<=ne),nr=!1;function nl(e,t){switch(e){case"keyup":return -1!==t9.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function na(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var no=!1,ni={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 nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ni[e.type]:"textarea"===t}function ns(e,t,n,r){tw?tS?tS.push(r):tS=[r]:tw=r,0<(t=uq(t,"onChange")).length&&(n=new tH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nc=null,nf=null;function nd(e){uU(e,0)}function np(e){if(tt(eK(e)))return e}function nm(e,t){if("change"===e)return t}var nh=!1;if(e1){if(e1){var ng="oninput"in document;if(!ng){var ny=document.createElement("div");ny.setAttribute("oninput","return;"),ng="function"==typeof ny.oninput}r=ng}else r=!1;nh=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=n_(r)}}function nz(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=tn(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=tn(e.document)}return t}function nN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nT=e1&&"documentMode"in document&&11>=document.documentMode,nL=null,nO=null,nR=null,nA=!1;function nF(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nA||null==nL||nL!==tn(r)||(r="selectionStart"in(r=nL)&&nN(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nR&&nC(nR,r)||(nR=r,0<(r=uq(nO,"onSelect")).length&&(t=new tH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nL)))}function nD(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nM={animationend:nD("Animation","AnimationEnd"),animationiteration:nD("Animation","AnimationIteration"),animationstart:nD("Animation","AnimationStart"),transitionrun:nD("Transition","TransitionRun"),transitionstart:nD("Transition","TransitionStart"),transitioncancel:nD("Transition","TransitionCancel"),transitionend:nD("Transition","TransitionEnd")},nI={},nU={};function nj(e){if(nI[e])return nI[e];if(!nM[e])return e;var t,n=nM[e];for(t in n)if(n.hasOwnProperty(t)&&t in nU)return nI[e]=n[t];return e}e1&&(nU=document.createElement("div").style,"AnimationEvent"in window||(delete nM.animationend.animation,delete nM.animationiteration.animation,delete nM.animationstart.animation),"TransitionEvent"in window||delete nM.transitionend.transition);var nH=nj("animationend"),n$=nj("animationiteration"),nV=nj("animationstart"),nB=nj("transitionrun"),nW=nj("transitionstart"),nQ=nj("transitioncancel"),nq=nj("transitionend"),nK=new Map,nY="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function nG(e,t){nK.set(e,t),eJ(t,[e])}var nX=[],nZ=0,nJ=0;function n0(){for(var e=nZ,t=nJ=nZ=0;t>=o,l-=o,ro=1<<32-ek(t)+l|n<d?(p=f,f=null):p=f.sibling;var m=g(l,f,i[d],u);if(null===m){null===f&&(f=p);break}e&&f&&null===m.alternate&&t(l,f),o=a(m,o,d),null===c?s=m:c.sibling=m,c=m,f=p}if(d===i.length)return n(l,f),rm&&ru(l,d),s;if(null===f){for(;dp?(m=d,d=null):m=d.sibling;var b=g(l,d,v.value,u);if(null===b){null===d&&(d=m);break}e&&d&&null===b.alternate&&t(l,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=m}if(v.done)return n(l,d),rm&&ru(l,p),c;if(null===d){for(;!v.done;p++,v=i.next())null!==(v=h(l,v.value,u))&&(o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return rm&&ru(l,p),c}for(d=r(d);!v.done;p++,v=i.next())null!==(v=y(d,l,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach(function(e){return t(l,e)}),rm&&ru(l,p),c}(u,c,f=k.call(f),v)}if("function"==typeof f.then)return i(u,c,rA(f),v);if(f.$$typeof===b)return i(u,c,op(u,f),v);rD(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(u,c.sibling),(v=l(c,f)).return=u):(n(u,c),(v=im(f,u.mode,v)).return=u),o(u=v)):n(u,c)}(i,u,c,f);return rO=null,v}catch(e){if(e===rE)throw e;var k=io(29,e,null,i.mode);return k.lanes=f,k.return=i,k}finally{}}}var rU=rI(!0),rj=rI(!1),rH=Q(null),r$=Q(0);function rV(e,t){K(r$,e=iR),K(rH,t),iR=e|t.baseLanes}function rB(){K(r$,iR),K(rH,rH.current)}function rW(){iR=r$.current,q(rH),q(r$)}var rQ=Q(null),rq=null;function rK(e){var t=e.alternate;K(rZ,1&rZ.current),K(rQ,e),null===rq&&(null===t||null!==rH.current?rq=e:null!==t.memoizedState&&(rq=e))}function rY(e){if(22===e.tag){if(K(rZ,rZ.current),K(rQ,e),null===rq){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rq=e)}}else rG(e)}function rG(){K(rZ,rZ.current),K(rQ,rQ.current)}function rX(e){q(rQ),rq===e&&(rq=null),q(rZ)}var rZ=Q(0);function rJ(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var r0="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},r1=o.unstable_scheduleCallback,r2=o.unstable_NormalPriority,r3={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function r4(){return{controller:new r0,data:new Map,refCount:0}}function r6(e){e.refCount--,0===e.refCount&&r1(r2,function(){e.controller.abort()})}var r5=null,r8=0,r9=0,r7=null;function le(){if(0==--r8&&null!==r5){null!==r7&&(r7.status="fulfilled");var e=r5;r5=null,r9=0,r7=null;for(var t=0;ta?a:8;var o=O.T,i={};O.T=i,av(e,!1,t,n);try{var u=l(),s=O.S;if(null!==s&&s(i,u),null!==u&&"object"==typeof u&&"function"==typeof u.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},u.then(function(){f.status="fulfilled",f.value=r;for(var e=0;e title"))),u3(a,r,n),a[eM]=e,eG(a),r=a;break e;case"link":var o=sz("link","href",l).get(r+(n.href||""));if(o){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eM]=t,e[eI]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,u3(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ig(t)}}return ik(t),t.flags&=-0x1000001,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ig(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=X.current,rw(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(l=rd))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eM]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||uJ(e.nodeValue,n)))||rv(t)}else(e=u5(e).createTextNode(r))[eM]=t,t.stateNode=e}return ik(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rw(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(s(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(s(317));l[eM]=t}else rS(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ik(t),l=!1}else null!==rh&&(i4(rh),rh=null),l=!0;if(!l){if(256&t.flags)return rX(t),t;return rX(t),null}}if(rX(t),0!=(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),iv(t,t.updateQueue),ik(t),null;case 4:return ee(),null===e&&uV(t.stateNode.containerInfo),ik(t),null;case 10:return oo(t.type),ik(t),null;case 19:if(q(rZ),null===(l=t.memoizedState))return ik(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)ib(l,!1);else{if(0!==iA||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=rJ(e))){for(t.flags|=128,ib(l,!1),e=a.updateQueue,t.updateQueue=e,iv(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)is(n,e),n=n.sibling;return K(rZ,1&rZ.current|2),t.child}e=e.sibling}null!==l.tail&&eu()>iB&&(t.flags|=128,r=!0,ib(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=rJ(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,iv(t,e),ib(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!rm)return ik(t),null}else 2*eu()-l.renderingStartTime>iB&&0x20000000!==n&&(t.flags|=128,r=!0,ib(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=eu(),t.sibling=null,e=rZ.current,K(rZ,r?1&e|2:1&e),t;return ik(t),null;case 22:case 23:return rX(t),rW(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(ik(t),6&t.subtreeFlags&&(t.flags|=8192)):ik(t),null!==(n=t.updateQueue)&&iv(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&q(ln),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),oo(r3),ik(t),null;case 25:return null}throw Error(s(156,t.tag))}(t.alternate,t,iR);if(null!==n){i_=n;return}if(null!==(t=t.sibling)){i_=t;return}i_=t=e}while(null!==t);0===iA&&(iA=5)}function us(e,t){do{var n=function(e,t){switch(rf(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oo(r3),ee(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return en(t),null;case 13:if(rX(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));rS()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return q(rZ),null;case 4:return ee(),null;case 10:return oo(t.type),null;case 22:case 23:return rX(t),rW(),null!==e&&q(ln),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return oo(r3),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,i_=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){i_=e;return}i_=e=n}while(null!==e);iA=6,i_=null}function uc(e,t,n,r,l,a,o,i,u,c){var f=O.T,d=$.p;try{$.p=2,O.T=null,function(e,t,n,r,l,a,o,i){do ud();while(null!==iK);if(0!=(6&iE))throw Error(s(327));var u,c=e.finishedWork;if(r=e.finishedLanes,null!==c){if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var f=c.lanes|c.childLanes;if(function(e,t,n,r,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0r&&(l=r,r=a,a=l),l=nP(t,a);var o=nP(t,r);l&&o&&(1!==n.rangeCount||n.anchorNode!==l.node||n.anchorOffset!==l.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&((e=e.createRange()).setStart(l.node,l.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;tn?32:n,O.T=null,null===iK)var a=!1;else{n=iX,iX=null;var o=iK,i=iY;if(iK=null,iY=0,0!=(6&iE))throw Error(s(331));var u=iE;if(iE|=4,ir(o.current),o6(o,o.current,i,n),iE=u,uP(0,!1),ev&&"function"==typeof ev.onPostCommitFiberRoot)try{ev.onPostCommitFiberRoot(ey,o)}catch(e){}a=!0}return a}finally{$.p=l,O.T=r,uf(e,t)}}return!1}function up(e,t,n){t=n9(n,t),t=aM(e.stateNode,t,2),null!==(e=ob(e,t,2))&&(eL(e,2),u_(e))}function um(e,t,n){if(3===e.tag)up(e,e,n);else for(;null!==t;){if(3===t.tag){up(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===iQ||!iQ.has(r))){e=n9(n,e),null!==(r=ob(t,n=aI(2),2))&&(aU(n,r,t,e),eL(r,2),u_(r));break}}t=t.return}}function uh(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ix;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(iO=!0,l.add(n),e=ug.bind(null,e,t,n),t.then(e,e))}function ug(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,iC===e&&(iP&n)===n&&(4===iA||3===iA&&(0x3c00000&iP)===iP&&300>eu()-iV?0==(2&iE)&&i7(e,0):iM|=n,iU===iP&&(iU=0)),u_(e)}function uy(e,t){0===t&&(t=eN()),null!==(e=n3(e,t))&&(eL(e,t),u_(e))}function uv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),uy(e,n)}function ub(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),uy(e,n)}var uk=null,uw=null,uS=!1,ux=!1,uE=!1,uC=0;function u_(e){var t;e!==uw&&null===e.next&&(null===uw?uk=uw=e:uw=uw.next=e),ux=!0,uS||(uS=!0,t=uz,sl(function(){0!=(6&iE)?el(ec,t):t()}))}function uP(e,t){if(!uE&&ux){uE=!0;do for(var n=!1,r=uk;null!==r;){if(!t){if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000055&(a=(1<<31-ek(42|e)+1)-1&(l&~(o&~i)))?0xc000055&a|1:a?2|a:0}0!==a&&(n=!0,uL(r,a))}else a=iP,0==(3&(a=e_(r,r===iC?a:0)))||eP(r,a)||(n=!0,uL(r,a))}r=r.next}while(n);uE=!1}}function uz(){ux=uS=!1;var e,t=0;0!==uC&&(((e=window.event)&&"popstate"===e.type?e===se||(se=e,0):(se=null,1))||(t=uC),uC=0);for(var n=eu(),r=null,l=uk;null!==l;){var a=l.next,o=uN(l,n);0===o?(l.next=null,null===r?uk=a:r.next=a,null===a&&(uw=r)):(r=l,(0!==t||0!=(3&o))&&(ux=!0)),l=a}uP(t,!1)}function uN(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function sT(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sL=null;function sO(){}function sR(){if(this.count--,0===this.count){if(this.stylesheets)sF(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sA=null;function sF(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sA=new Map,t.forEach(sD,e),sA=null,sR.call(e))}function sD(e,t){if(!(4&t.state.loading)){var n=sA.get(e);if(n)var r=n.get(null);else{n=new Map,sA.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r=n(58101);function l(e){var t="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(21727)},96049:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(30077)},65649:(e,t)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(e,t,r){var l=null;if(void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return{$$typeof:n,type:e,key:l,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=r,t.jsx=l,t.jsxs=l},39882:(e,t,n)=>{var r=n(85318),l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function k(){}function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=b.prototype;var S=w.prototype=new k;S.constructor=w,y(S,b.prototype),S.isPureReactComponent=!0;var x=Array.isArray,E={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function _(e,t,n,r,a,o){return{$$typeof:l,type:e,key:t,ref:void 0!==(n=o.ref)?n:null,props:o}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var z=/\/+/g;function N(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(){}function L(e,t,n){if(null==e)return e;var r=[],o=0;return!function e(t,n,r,o,i){var u,s,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case l:case a:d=!0;break;case m:return e((d=t._init)(t._payload),n,r,o,i)}}if(d)return i=i(t),d=""===o?"."+N(t,0):o,x(i)?(r="",null!=d&&(r=d.replace(z,"$&/")+"/"),e(i,n,r,"",function(e){return e})):null!=i&&(P(i)&&(u=i,s=r+(null==i.key||t&&t.key===i.key?"":(""+i.key).replace(z,"$&/")+"/")+d,i=_(u.type,s,void 0,void 0,void 0,u.props)),n.push(i)),1;d=0;var p=""===o?".":o+":";if(x(t))for(var g=0;g{e.exports=n(39882)},25105:(e,t,n)=>{e.exports=n(65649)},42231:(e,t)=>{function n(e,t){var n=e.length;for(e.push(t);0>>1,l=e[r];if(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[i]=n,r=i);else if(sa(c,n))e[r]=c,e[s]=n,r=s;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o,i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,k="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(f);null!==t;){if(null===t.callback)l(f);else if(t.startTime<=e)l(f),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(f)}}function S(e){if(y=!1,w(e),!g){if(null!==r(c))g=!0,L();else{var t=r(f);null!==t&&O(S,t.startTime-e)}}}var x=!1,E=-1,C=5,_=-1;function P(){return!(t.unstable_now()-_e&&P());){var i=p.callback;if("function"==typeof i){p.callback=null,m=p.priorityLevel;var u=i(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof u){p.callback=u,w(e),n=!0;break t}p===r(c)&&l(c),w(e)}else l(c);p=r(c)}if(null!==p)n=!0;else{var s=r(f);null!==s&&O(S,s.startTime-e),n=!1}}break e}finally{p=null,m=a,h=!1}n=void 0}}finally{n?o():x=!1}}}if("function"==typeof k)o=function(){k(z)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,T=N.port2;N.port1.onmessage=z,o=function(){T.postMessage(null)}}else o=function(){v(z,0)};function L(){x||(x=!0,o())}function O(e,n){E=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,L())},t.unstable_forceFrameRate=function(e){0>e||125o?(e.sortIndex=a,n(f,e),null===r(c)&&e===r(f)&&(y?(b(E),E=-1):y=!0,O(S,a-o))):(e.sortIndex=i,n(c,e),g||h||(g=!0,L())),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=m;return function(){var n=m;m=t;try{return e.apply(this,arguments)}finally{m=n}}}},23556:(e,t,n)=>{e.exports=n(42231)}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-040e2a0a6a39067a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-040e2a0a6a39067a.js new file mode 100644 index 0000000..888d504 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-040e2a0a6a39067a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8792],{76067:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},97977:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},85318:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(43777)},71317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(20124),o=r(99784);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(99784);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return s},getAccessFallbackHTTPStatus:function(){return i},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function i(e){return Number(e.digest.split(";")[1])}function s(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(13904),o=r(17958);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSocketUrl",{enumerable:!0,get:function(){return o}});let n=r(20809);function o(e){let t=(0,n.normalizedAssetPrefix)(e),r=function(e){let t=window.location.protocol;try{t=new URL(e).protocol}catch(e){}return"http:"===t?"ws:":"wss:"}(e||"");if(URL.canParse(t))return t.replace(/^http/,"ws");let{hostname:o,port:a}=window.location;return r+"//"+o+(a?":"+a:"")+t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getReactStitchedError",{enumerable:!0,get:function(){return l}});let n=r(20173),o=n._(r(58101)),a=n._(r(30036)),i="react-stack-bottom-frame",s=RegExp("(at "+i+" )|("+i+"\\@)"),u=o.default.captureOwnerStack?o.default.captureOwnerStack:()=>"";function l(e){if("function"!=typeof o.default.captureOwnerStack)return e;let t=(0,a.default)(e),r=t&&e.stack||"",n=t?e.message:"",i=r.split("\n"),l=i.findIndex(e=>s.test(e)),c=l>=0?i.slice(0,l).join("\n"):r,f=Error(n);return Object.assign(f,e),f.stack=c,function(e){let t=e.stack||"",r=u();r&&!1===t.endsWith(r)&&(t+=r,e.stack=t)}(f),f}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15910:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addMessageListener:function(){return s},connectHMR:function(){return d},sendMessage:function(){return u}});let o=r(86675),a=r(68036),i=[];function s(e){i.push(e)}function u(e){if(n&&n.readyState===n.OPEN)return n.send(e)}let l=0,c=!1,f=null;function d(e){!function t(){let r;function s(){if(n.onerror=null,n.onclose=null,n.close(),++l>25){c=!0,window.location.reload();return}clearTimeout(r),r=setTimeout(t,l>5?5e3:1e3)}n&&n.close();let u=(0,a.getSocketUrl)(e.assetPrefix);(n=new window.WebSocket(""+u+e.path)).onopen=function(){l=0,window.console.log("[HMR] connected")},n.onerror=s,n.onclose=s,n.onmessage=function(e){if(c)return;let t=JSON.parse(e.data);if("action"in t&&t.action===o.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED){if(null!==f&&f!==t.data.sessionId){window.location.reload(),c=!0;return}f=t.data.sessionId}for(let e of i)e(t)}}()}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return i}});let n=r(92684),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function i(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,i=t.slice(2,-2).join(";"),s=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof i&&!isNaN(s)&&s in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(79885);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26242:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return i},isEqualNode:function(){return a}});let o=r(6634);function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,o="";if(r){let{children:e}=r.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let r=document.querySelector("head");if(!r)return;let n=new Set(r.querySelectorAll(""+e+"[data-next-head]"));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&n.add(e)}let i=[];for(let e=0;e{"use strict";let n,o,a,i,s,u,l,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return G},hydrate:function(){return el},initialize:function(){return z},router:function(){return n},version:function(){return W}});let _=r(20173),m=r(25105);r(97977);let g=_._(r(58101)),y=_._(r(55562)),P=r(67366),b=_._(r(44486)),E=r(82565),v=r(85381),S=r(97962),R=r(74745),O=r(72208),T=r(59975),j=r(97311),A=_._(r(26242)),w=_._(r(29113)),I=r(3339),C=r(21003),M=r(30036),N=r(10288),x=r(23204),L=r(65822),D=r(12415),U=r(57036),F=r(42874),k=r(53096),B=_._(r(55748)),H=_._(r(31907));r(14158);let W="15.1.2",G=(0,b.default)(),X=e=>[].slice.call(e),q=!1;class V extends g.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,S.isDynamicRoute)(n.pathname)||location.search||q)||o.props&&o.props.__N_SSG&&(location.search||q))&&n.replace(n.pathname+"?"+String((0,R.assign)((0,R.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!q}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function z(e){void 0===e&&(e={}),B.default.onSpanEnd(H.default),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,O.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,T.getURL)(),(0,L.hasBasePath)(a)&&(a=(0,x.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(74357);e(o.scriptLoader)}i=new w.default(o.buildId,t);let l=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>l(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=l,(u=(0,A.default)()).getIsSsr=()=>n.isSsr,s=document.getElementById("__next"),{assetPrefix:t}}function Y(e,t){return(0,m.jsx)(e,{...t})}function K(e){var t;let{children:r}=e,o=g.default.useMemo(()=>(0,U.adaptForAppRouterInstance)(n),[]);return(0,m.jsx)(V,{fn:e=>Q({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,m.jsx)(D.AppRouterContext.Provider,{value:o,children:(0,m.jsx)(F.SearchParamsContext.Provider,{value:(0,U.adaptForSearchParams)(n),children:(0,m.jsx)(U.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,m.jsx)(F.PathParamsContext.Provider,{value:(0,U.adaptForPathParams)(n),children:(0,m.jsx)(E.RouterContext.Provider,{value:(0,C.makePublicRouterInstance)(n),children:(0,m.jsx)(P.HeadManagerContext.Provider,{value:u,children:(0,m.jsx)(N.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0},children:r})})})})})})})})}let $=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,m.jsx)(K,{children:Y(e,r)})};function Q(e){let{App:t,err:s}=e;return console.error(s),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==l?void 0:l.Component)===o?r.e(4840).then(r.t.bind(r,24840,23)).then(n=>r.e(3993).then(r.t.bind(r,73993,23)).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:u,styleSheets:l}=r,c=$(t),f={Component:u,AppTree:c,router:n,ctx:{err:s,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,T.loadGetInitialProps)(t,f)).then(t=>es({...e,err:s,Component:u,styleSheets:l,props:t}))})}function J(e){let{callback:t}=e;return g.default.useLayoutEffect(()=>t(),[t]),null}let Z={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},ee={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},et=null,er=!0;function en(){[Z.beforeRender,Z.afterHydrate,Z.afterRender,Z.routeChange].forEach(e=>performance.clearMarks(e))}function eo(){T.ST&&(performance.mark(Z.afterHydrate),performance.getEntriesByName(Z.beforeRender,"mark").length&&(performance.measure(ee.beforeHydration,Z.navigationStart,Z.beforeRender),performance.measure(ee.hydration,Z.beforeRender,Z.afterHydrate)),d&&performance.getEntriesByName(ee.hydration).forEach(d),en())}function ea(){if(!T.ST)return;performance.mark(Z.afterRender);let e=performance.getEntriesByName(Z.routeChange,"mark");e.length&&(performance.getEntriesByName(Z.beforeRender,"mark").length&&(performance.measure(ee.routeChangeToRender,e[0].name,Z.beforeRender),performance.measure(ee.render,Z.beforeRender,Z.afterRender),d&&(performance.getEntriesByName(ee.render).forEach(d),performance.getEntriesByName(ee.routeChangeToRender).forEach(d))),en(),[ee.routeChangeToRender,ee.render].forEach(e=>performance.clearMeasures(e)))}function ei(e){let{callbacks:t,children:r}=e;return g.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,u="initial"in e?void 0:e.styleSheets;o=o||l.Component;let f={...a=a||l.props,Component:o,err:i,router:n};l=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!u)return;let e=new Set(X(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");u.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let _=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(J,{callback:function(){if(u&&!d){let e=new Set(u.map(e=>e.href)),t=X(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),X(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,v.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,m.jsxs)(K,{children:[Y(r,f),(0,m.jsx)(j.Portal,{type:"next-route-announcer",children:(0,m.jsx)(I.RouteAnnouncer,{})})]})]});return!function(e,t){T.ST&&performance.mark(Z.beforeRender);let r=t(er?eo:ea);et?(0,g.default.startTransition)(()=>{et.render(r)}):(et=y.default.hydrateRoot(e,r,{onRecoverableError:k.onRecoverableError}),er=!1)}(s,e=>(0,m.jsx)(ei,{callbacks:[e,h],children:_})),p}async function eu(e){if(e.err&&(void 0===e.Component||!e.isHydratePass)){await Q(e);return}try{await es(e)}catch(r){let t=(0,M.getProperError)(r);if(t.cancelled)throw t;await Q({...e,err:t})}}async function el(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:s,entryType:u,entries:l,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);l&&l.length&&(t=l[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?s:i,label:"mark"===u||"measure"===u?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,M.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,C.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:$,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>eu(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),q=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),eu(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45871:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(62827);let n=r(80400);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99784:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(89963),o=r(4219),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,n.removeTrailingSlash)(t)+r+a:t.endsWith("/")?""+t+r+a:t+"/"+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(20173),o=r(71317),a=r(41856),i=n._(r(23282)),s=r(42246),u=r(97962),l=r(41720),c=r(89963),f=r(77993);r(71127);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,l.parseRelativeUrl)(r),{pathname:h}=(0,l.parseRelativeUrl)(t),_=(0,c.removeTrailingSlash)(f);if("/"!==_[0])throw Error('Route name should start with a "/", got "'+_+'"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,s.addLocale)(e,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,u.isDynamicRoute)(_)?(0,a.interpolateAs)(f,h,d).result:_)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(58101),o=r(96049),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{window.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"onRecoverableError",{enumerable:!0,get:function(){return u}});let n=r(20173),o=r(83586),a=r(12172),i=r(91457),s=n._(r(30036)),u=(e,t)=>{let r=(0,s.default)(e)&&"cause"in e?e.cause:e,n=(0,i.getReactStitchedError)(r);(0,o.isBailoutToCSRError)(r)||(0,a.reportGlobalError)(n)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23204:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(65822),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14581:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(4219),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(74745),o=r(14033),a=r(1443),i=r(59975),s=r(99784),u=r(94504),l=r(85736),c=r(41856);function f(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,l.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,s)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return u},default:function(){return l}});let n=r(20173),o=r(25105),a=n._(r(58101)),i=r(21003),s={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},u=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:s,children:t})},l=u;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return h},isAssetError:function(){return c},markAssetError:function(){return l}}),r(20173),r(23282);let n=r(13919),o=r(27622),a=r(76067),i=r(95161);function s(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,u,{})}function c(e){return e&&u in e}let f=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function p(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function h(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):p(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function _(e,t){return h().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+(0,i.encodeURIPath)(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+d()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function i(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function u(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>s(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return s(r,a,()=>{let o;return p(_(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(i)),Promise.all(o.map(u))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(f?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return _},default:function(){return p},makePublicRouterInstance:function(){return m},useRouter:function(){return h},withRouter:function(){return u.default}});let n=r(20173),o=n._(r(58101)),a=n._(r(5053)),i=r(82565),s=n._(r(30036)),u=n._(r(5250)),l={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!l.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return l.router}Object.defineProperty(l,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(l,e,{get:()=>d()[e]})}),f.forEach(e=>{l[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{l.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),l.readyCallbacks=[],l.router}function m(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return m}});let n=r(20173),o=r(13232),a=r(25105),i=n._(r(96049)),s=o._(r(58101)),u=r(67366),l=r(6634),c=r(27622),f=new Map,d=new Set,p=e=>{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:s="afterInteractive",onError:u,stylesheets:c}=e,h=r||t;if(h&&d.has(h))return;if(f.has(t)){d.add(h),f.get(t).then(n,u);return}let _=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});a?(m.innerHTML=a.__html||"",_()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(m.src=t,f.set(t,g)),(0,l.setAttributesFromProps)(m,e),"worker"===s&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",s),c&&p(c),document.body.appendChild(m)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:l="afterInteractive",onError:f,stylesheets:p,..._}=e,{updateScripts:m,scripts:g,getIsSsr:y,appDir:P,nonce:b}=(0,s.useContext)(u.HeadManagerContext),E=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;E.current||(o&&e&&d.has(e)&&o(),E.current=!0)},[o,t,r]);let v=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{!v.current&&("afterInteractive"===l?h(e):"lazyOnload"===l&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))})),v.current=!0)},[e,l]),("beforeInteractive"===l||"worker"===l)&&(m?(g[l]=(g[l]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,..._}]),m(g)):y&&y()?d.add(t||r):y&&!y()&&h(e)),P){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===l)return r?(i.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:b,crossOrigin:_.crossOrigin}:{as:"script",nonce:b,crossOrigin:_.crossOrigin}),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{..._,id:t}])+")"}})):(_.dangerouslySetInnerHTML&&(_.children=_.dangerouslySetInnerHTML.__html,delete _.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{..._,id:t}])+")"}}));"afterInteractive"===l&&r&&i.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:b,crossOrigin:_.crossOrigin}:{as:"script",nonce:b,crossOrigin:_.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(e){return["async","defer","noModule"].includes(e)}function a(e,t){for(let[a,i]of Object.entries(t)){if(!t.hasOwnProperty(a)||n.includes(a)||void 0===i)continue;let s=r[a]||a.toLowerCase();"SCRIPT"===e.tagName&&o(s)?e[s]=!!i:e.setAttribute(s,String(i)),(!1===i||"SCRIPT"===e.tagName&&o(s)&&(!i||"false"===i))&&(e.setAttribute(s,""),e.removeAttribute(s))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(15910);function o(e){if("ended"!==e.state.state)throw Error("Expected span to be ended");(0,n.sendMessage)(JSON.stringify({event:"span-end",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(20173)._(r(44486));class o{end(e){if("ended"===this.state.state)throw Error("Span has already ended");this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13919:(e,t)=>{"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(76067),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(20173);let n=r(25105);r(58101);let o=r(21003);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return u},TemplateContext:function(){return s}});let n=r(20173)._(r(58101)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),s=n.default.createContext(null),u=n.default.createContext(new Set)},8256:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},71127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return P},APP_CLIENT_INTERNALS:function(){return Q},APP_PATHS_MANIFEST:function(){return m},APP_PATH_ROUTES_MANIFEST:function(){return g},BARREL_OPTIMIZATION_PREFIX:function(){return W},BLOCKED_PAGES:function(){return U},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_REFERENCE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_PATH:function(){return k},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return K},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return $},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return et},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return er},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return J},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ee},COMPILER_INDEXES:function(){return a},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return L},DEFAULT_RUNTIME_WEBPACK:function(){return en},DEFAULT_SANS_SERIF_FONT:function(){return eu},DEFAULT_SERIF_FONT:function(){return es},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return M},DEV_CLIENT_PAGES_MANIFEST:function(){return w},DYNAMIC_CSS_MANIFEST:function(){return Y},EDGE_RUNTIME_WEBPACK:function(){return eo},EDGE_UNSUPPORTED_NODE_APIS:function(){return ep},EXPORT_DETAIL:function(){return R},EXPORT_MARKER:function(){return S},FUNCTIONS_CONFIG_MANIFEST:function(){return b},IMAGES_MANIFEST:function(){return j},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return z},MIDDLEWARE_BUILD_MANIFEST:function(){return q},MIDDLEWARE_MANIFEST:function(){return I},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return H},NEXT_FONT_MANIFEST:function(){return v},PAGES_MANIFEST:function(){return h},PHASE_DEVELOPMENT_SERVER:function(){return f},PHASE_EXPORT:function(){return u},PHASE_INFO:function(){return p},PHASE_PRODUCTION_BUILD:function(){return l},PHASE_PRODUCTION_SERVER:function(){return c},PHASE_TEST:function(){return d},PRERENDER_MANIFEST:function(){return O},REACT_LOADABLE_MANIFEST:function(){return N},ROUTES_MANIFEST:function(){return T},RSC_MODULE_TYPES:function(){return ed},SERVER_DIRECTORY:function(){return x},SERVER_FILES_MANIFEST:function(){return A},SERVER_PROPS_ID:function(){return ei},SERVER_REFERENCE_MANIFEST:function(){return X},STATIC_PROPS_ID:function(){return ea},STATIC_STATUS_PAGES:function(){return el},STRING_LITERAL_DROP_BUNDLE:function(){return B},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return E},SYSTEM_ENTRYPOINTS:function(){return eh},TRACE_OUTPUT_VERSION:function(){return ec},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return C},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ef},UNDERSCORE_NOT_FOUND_ROUTE:function(){return i},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return s},WEBPACK_STATS:function(){return _}});let n=r(20173)._(r(86235)),o={client:"client",server:"server",edgeServer:"edge-server"},a={[o.client]:0,[o.server]:1,[o.edgeServer]:2},i="/_not-found",s=""+i+"/page",u="phase-export",l="phase-production-build",c="phase-production-server",f="phase-development-server",d="phase-test",p="phase-info",h="pages-manifest.json",_="webpack-stats.json",m="app-paths-manifest.json",g="app-path-routes-manifest.json",y="build-manifest.json",P="app-build-manifest.json",b="functions-config-manifest.json",E="subresource-integrity-manifest",v="next-font-manifest",S="export-marker.json",R="export-detail.json",O="prerender-manifest.json",T="routes-manifest.json",j="images-manifest.json",A="required-server-files.json",w="_devPagesManifest.json",I="middleware-manifest.json",C="_clientMiddlewareManifest.json",M="_devMiddlewareManifest.json",N="react-loadable-manifest.json",x="server",L=["next.config.js","next.config.mjs","next.config.ts"],D="BUILD_ID",U=["/_document","/_app","/_error"],F="public",k="static",B="__NEXT_DROP_CLIENT_FILE__",H="__NEXT_BUILTIN_DOCUMENT__",W="__barrel_optimize__",G="client-reference-manifest",X="server-reference-manifest",q="middleware-build-manifest",V="middleware-react-loadable-manifest",z="interception-route-rewrite-manifest",Y="dynamic-css-manifest",K="main",$=""+K+"-app",Q="app-pages-internals",J="react-refresh",Z="amp",ee="webpack",et="polyfills",er=Symbol(et),en="webpack-runtime",eo="edge-runtime-webpack",ea="__N_SSG",ei="__N_SSP",es={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},eu={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},el=["/500"],ec=1,ef=6e3,ed={client:"client",server:"server"},ep=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eh=new Set([K,J,Z,$]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95161:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},64461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},67366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(20173)._(r(58101)).default.createContext({})},42874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(58101),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},7467:(e,t)=>{"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},10288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(20173)._(r(58101)),o=r(626),a=n.default.createContext(o.imageConfigDefault)},626:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},98129:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},83586:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},44486:(e,t)=>{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},86235:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},20809:(e,t)=>{"use strict";function r(e){let t=(null==e?void 0:e.replace(/^\/+|\/+$/g,""))||!1;if(!t)return"";if(URL.canParse(t)){let e=new URL(t).toString();return e.endsWith("/")?e.slice(0,-1):e}return"/"+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizedAssetPrefix",{enumerable:!0,get:function(){return r}})},66842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(85736),o=r(9834);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},3623:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},9834:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},82565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(20173)._(r(58101)).default.createContext(null)},57036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(13232),o=r(25105),a=n._(r(58101)),i=r(42874),s=r(85736),u=r(336),l=r(79267);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,u.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,l.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,u=(0,a.useRef)(n.isAutoExport),l=(0,a.useMemo)(()=>{let e;let t=u.current;if(t&&(u.current=!1),(0,s.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:l,children:t})}},5053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return X},default:function(){return z},matchesMiddleware:function(){return D}});let n=r(20173),o=r(13232),a=r(89963),i=r(77993),s=r(74357),u=o._(r(30036)),l=r(66842),c=r(7467),f=n._(r(44486)),d=r(59975),p=r(97962),h=r(41720);r(4220);let _=r(23734),m=r(79267),g=r(14033);r(48697);let y=r(4219),P=r(42246),b=r(14581),E=r(23204),v=r(71317),S=r(65822),R=r(31636),O=r(43558),T=r(49670),j=r(47005),A=r(9758),w=r(94504),I=r(49558),C=r(1443),M=r(41856),N=r(85381),x=r(17606);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,o=(0,v.addBasePath)((0,P.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function U(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function F(e,t,r){let[n,o]=(0,R.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),s=o&&o.startsWith(a);n=U(n),o=o?U(o):o;let u=i?n:(0,v.addBasePath)(n),l=r?U((0,R.resolveHref)(e,r)):o||n;return{url:u,as:s?l:(0,v.addBasePath)(l)}}function k(e,t){let r=(0,a.removeTrailingSlash)((0,l.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,m.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!0},o=t.headers.get("x-nextjs-rewrite"),s=o||t.headers.get("x-nextjs-matched-path"),u=t.headers.get(x.MATCHED_PATH_HEADER);if(!u||s||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(s=u),s){if(s.startsWith("/")){let t=(0,h.parseRelativeUrl)(s),u=(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),l=(0,a.removeTrailingSlash)(u.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:s}]=a,f=(0,P.addLocale)(u.pathname,u.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,E.removeBasePath)(f),r.router.locales).pathname)){let r=(0,T.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});f=(0,v.addBasePath)(r.pathname),t.pathname=f}if(!i.includes(l)){let e=k(l,i);e!==l&&(l=e)}let d=i.includes(l)?l:k((0,c.normalizeLocalePath)((0,E.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,_.getRouteMatcher)((0,m.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let l=t.headers.get("x-nextjs-redirect");if(l){if(l.startsWith("/")){let e=(0,y.parsePath)(l),t=(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:l})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let H=Symbol("SSG_DATA_NOT_FOUND");function W(e){try{return JSON.parse(e)}catch(e){return null}}function G(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:s,persistCache:u,isBackground:l,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var l;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{}),method:null!=(l=null==e?void 0:e.method)?l:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=W(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:H},response:r,text:e,cacheKey:f}}let s=Error("Failed to load static props");throw a||(0,i.markAssetError)(s),s}return{dataHref:t,json:s?W(e):null,response:r,text:e,cacheKey:f}})).then(e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw c||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e})};return c&&u?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[f]=Promise.resolve(e)),e)):void 0!==r[f]?r[f]:r[f]=d(l?{method:"HEAD"}:{})}function X(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:r}=e;if(t===(0,v.addBasePath)((0,P.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let V=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class z{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,o){{if(!this._bfl_s&&!this._bfl_d){let t,a;let{BloomFilter:s}=r(8256);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,i.getClientBuildManifest)())}catch(t){if(console.error(t),o)return!0;return q({url:(0,v.addBasePath)((0,P.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new s(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new s(a.numItems,a.errorRate),this._bfl_d.import(a))}let c=!1,f=!1;for(let{as:r,allowMatchCurrent:i}of[{as:e},{as:t}])if(r){let t=(0,a.removeTrailingSlash)(new URL(r,"http://n").pathname),d=(0,v.addBasePath)((0,P.addLocale)(t,n||this.locale));if(i||t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var s,u,l;for(let e of(c=c||!!(null==(s=this._bfl_s)?void 0:s.contains(t))||!!(null==(u=this._bfl_s)?void 0:u.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!f&&e{})}}}}return!1}async change(e,t,r,n,o){var l,c,f,R,O,T,j,I,N;let x,U;if(!(0,w.isLocalURL)(t))return q({url:t,router:this}),!1;let B=1===n._h;B||n.shallow||await this._bfl(r,void 0,n.locale);let W=B||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,G={...this.state},X=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let Y=G.locale;d.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:$=!0}=n,Q={shallow:K};this._inFlightRoute&&this.clc&&(V||z.events.emit("routeChangeError",L(),this._inFlightRoute,Q),this.clc(),this.clc=null),r=(0,v.addBasePath)((0,P.addLocale)((0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,n.locale,this.defaultLocale));let J=(0,b.removeLocale)((0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,G.locale);this._inFlightRoute=r;let Z=Y!==G.locale;if(!B&&this.onlyAHashChange(J)&&!Z){G.asPath=J,z.events.emit("hashChangeStart",r,Q),this.changeState(e,t,r,{...n,scroll:!1}),$&&this.scrollToHash(J);try{await this.set(G,this.components[G.route],null)}catch(e){throw(0,u.default)(e)&&e.cancelled&&z.events.emit("routeChangeError",e,J,Q),e}return z.events.emit("hashChangeComplete",r,Q),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[x,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:r,router:this}),!1}this.urlIsNew(J)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,E.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(l=this.components[et])?void 0:l.__appRouter)return q({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,_.getRouteMatcher)((0,m.getRouteRegex)(eo))(ea))),es=!n.shallow&&await D({asPath:r,locale:G.locale,router:this});if(B&&es&&(W=!1),W&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=k(et,x),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,v.addBasePath)(et),es||(t=(0,g.formatWithValidation)(ee)))),!(0,w.isLocalURL)(r))return q({url:r,router:this}),!1;en=(0,b.removeLocale)((0,E.removeBasePath)(en),G.locale),eo=(0,a.removeTrailingSlash)(et);let eu=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,m.getRouteRegex)(eo);eu=(0,_.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,M.interpolateAs)(eo,n,er):{};if(eu&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,C.omit)(er,i.params)})):Object.assign(er,eu);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!es)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}B||z.events.emit("routeChangeStart",r,Q);let el="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:Q,locale:G.locale,isPreview:G.isPreview,hasMiddleware:es,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:ei});if(B||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,G.locale),"route"in a&&es){eo=et=a.route||eo,Q.shallow||(er=Object.assign({},a.query||{},er));let e=(0,S.hasBasePath)(ee.pathname)?(0,E.removeBasePath)(ee.pathname):ee.pathname;if(eu&&et!==e&&Object.keys(eu).forEach(e=>{eu&&er[e]===eu[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!Q.shallow&&a.resolvedAs?a.resolvedAs:(0,v.addBasePath)((0,P.addLocale)(new URL(r,location.href).pathname,G.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,E.removeBasePath)(e));let t=(0,m.getRouteRegex)(et),n=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return q({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,s.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=k(r.pathname,x);let{url:o,as:a}=F(this,t,t);return this.change(e,o,a,n)}return q({url:t,router:this}),new Promise(()=>{})}if(G.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:G.locale,isPreview:G.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}B&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(R=a.props)?void 0:R.pageProps)&&(a.props.pageProps.statusCode=500);let l=n.shallow&&G.route===(null!=(O=a.route)?O:eo),d=null!=(T=n.scroll)?T:!B&&!l,g=null!=o?o:d?{x:0,y:0}:null,y={...G,route:eo,pathname:et,query:er,asPath:J,isFallback:!1};if(B&&el){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:G.locale,isPreview:G.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(I=self.__NEXT_DATA__.props)?void 0:null==(j=I.pageProps)?void 0:j.statusCode)===500&&(null==(N=a.props)?void 0:N.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,g)}catch(e){throw(0,u.default)(e)&&e.cancelled&&z.events.emit("routeChangeError",e,J,Q),e}return!0}if(z.events.emit("beforeHistoryChange",r,Q),this.changeState(e,t,r,n),!(B&&!g&&!X&&!Z&&(0,A.compareRouterStates)(y,this.state))){try{await this.set(y,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw B||z.events.emit("routeChangeError",a.error,J,Q),a.error;B||z.events.emit("routeChangeComplete",r,Q),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,u.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:X()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw z.events.emit("routeChangeError",e,n,o),q({url:n,router:this}),L();console.error(e);try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,u.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:s,locale:l,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:_,isNotFound:m}=e,y=t;try{var P,b,v,S;let e=this.components[y];if(s.shallow&&e&&this.route===y)return e;let t=V({route:y,router:this});f&&(e=void 0);let u=!e||"initial"in e?void 0:e,R={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:m?"/404":i,locale:l}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},T=h&&!_?null:await B({fetchData:()=>G(R),asPath:m?"/404":i,locale:l,router:this}).catch(e=>{if(h)return null;throw e});if(T&&("/_error"===r||"/404"===r)&&(T.effect=void 0),h&&(T?T.json=self.__NEXT_DATA__.props:T={json:self.__NEXT_DATA__.props}),t(),(null==T?void 0:null==(P=T.effect)?void 0:P.type)==="redirect-internal"||(null==T?void 0:null==(b=T.effect)?void 0:b.type)==="redirect-external")return T.effect;if((null==T?void 0:null==(v=T.effect)?void 0:v.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(T.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(y=t,r=T.effect.resolvedHref,n={...n,...T.effect.parsedAs.query},i=(0,E.removeBasePath)((0,c.normalizeLocalePath)(T.effect.parsedAs.pathname,this.locales).pathname),e=this.components[y],s.shallow&&e&&this.route===y&&!f))return{...e,route:y}}if((0,O.isAPIRoute)(y))return q({url:o,router:this}),new Promise(()=>{});let j=u||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),A=null==T?void 0:null==(S=T.response)?void 0:S.headers.get("x-middleware-skip"),w=j.__N_SSG||j.__N_SSP;A&&(null==T?void 0:T.dataHref)&&delete this.sdc[T.dataHref];let{props:I,cacheKey:C}=await this._getData(async()=>{if(w){if((null==T?void 0:T.json)&&!A)return{cacheKey:T.cacheKey,props:T.json};let e=(null==T?void 0:T.dataHref)?T.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:l}),t=await G({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:A?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&R.dataHref&&C&&delete this.sdc[C],this.isPreview||!j.__N_SSG||h||G(Object.assign({},R,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),I.pageProps=Object.assign({},I.pageProps),j.props=I,j.route=y,j.query=n,j.resolvedAs=i,this.components[y]=j,j}catch(e){return this.handleRouteInfoError((0,u.getProperError)(e),r,n,o,s)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,N.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,I.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:s}=n,u=i,l=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await D({asPath:t,locale:f,router:this});n.pathname=k(n.pathname,l),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(s,(0,_.getRouteMatcher)((0,m.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let P=await B({fetchData:()=>G({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:u,query:s}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==P?void 0:P.effect.type)==="rewrite"&&(n.pathname=P.effect.resolvedHref,i=P.effect.resolvedHref,s={...s,...P.effect.parsedAs.query},c=P.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==P?void 0:P.effect.type)==="redirect-external")return;let b=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(b).then(t=>!!t&&G({dataHref:(null==P?void 0:P.json)?null==P?void 0:P.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](b)])}async fetchComponent(e){let t=V({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:o,App:i,wrapApp:s,Component:u,err:l,subscription:c,isFallback:f,locale:_,locales:m,defaultLocale:y,domainLocales:P,isPreview:b}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=X(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:s}=n;this._key=s;let{pathname:u}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,v.addBasePath)(this.asPath)||u!==(0,v.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let E=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[E]={Component:u,initial:!0,props:n,err:l,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=z.events,this.pageLoader=o;let S=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!S&&!self.location.search),this.state={route:E,pathname:e,query:t,asPath:S?e:r,isPreview:!!b,locale:void 0,isFallback:f},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:_,asPath:o}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),o,n),a))}window.addEventListener("popstate",this.onPopState)}}z.events=(0,f.default)()},57374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(20124),o=r(79885);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},20124:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(4219);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},60417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(4219);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},62278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(3623),o=r(92855);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},336:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},9758:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},47005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=r(89963),o=r(20124),a=r(60417),i=r(57374);function s(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},14033:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return i}});let n=r(13232)._(r(74745)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(n.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==l?(l="//"+(l||""),i&&"/"!==i[0]&&(i="/"+i)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+a+l+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return a(e)}},23282:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},49670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(7467),o=r(23741),a=r(79885);function i(e,t){var r,i;let{basePath:s,i18n:u,trailingSlash:l}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):l};s&&(0,a.pathHasPrefix)(c.pathname,s)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,s),c.basePath=s);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];c.buildId=r,f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(u){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,u.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,u.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},85381:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},85736:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(40334),o=r(97962)},41856:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(23734),o=r(79267);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),s=i.groups,u=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let l=Object.keys(s);return l.every(e=>{let t=u[e]||"",{repeat:r,optional:n}=s[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:l,result:a}}},49558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}});let r=/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i;function n(e){return r.test(e)}},97962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(35610),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},94504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(59975),o=r(65822);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},1443:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},4219:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},41720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(59975),o=r(74745);function a(e,t,r){void 0===r&&(r=!0);let a=new URL((0,n.getLocationOrigin)()),i=t?new URL(t,a):e.startsWith(".")?new URL(window.location.href):a,{pathname:s,searchParams:u,search:l,hash:c,href:f,origin:d}=new URL(e,i);if(d!==a.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:s,query:r?(0,o.searchParamsToUrlQuery)(u):void 0,search:l,hash:c,href:f.slice(d.length)}}},79885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(4219);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},74745:(e,t)=>{"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},23741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(79885);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},89963:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},23734:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(59975);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},79267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return _},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return f},parseParameter:function(){return u}});let n=r(17606),o=r(35610),a=r(64461),i=r(89963),s=/\[((?:\[.*\])|.+)\]/;function u(e){let t=e.match(s);return t?l(t[1]):l(e)}function l(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function c(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map(e=>{let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(s);if(t&&i){let{key:e,optional:o,repeat:s}=l(i[1]);return r[e]={pos:n++,repeat:s,optional:o},"/"+(0,a.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,a.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:o}=l(i[1]);return r[e]={pos:n++,repeat:t,optional:o},t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function f(e){let{parameterizedRoute:t,groups:r}=c(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function d(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:o,keyPrefix:i}=e,{key:s,optional:u,repeat:c}=l(n),f=s.replace(/\W/g,"");i&&(f=""+i+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),i?o[f]=""+i+s:o[f]=s;let p=t?(0,a.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function p(e,t){let r;let s=(0,i.removeTrailingSlash)(e).slice(1).split("/"),u=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:s.map(e=>{let r=o.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&i){let[r]=e.split(i[0]);return d({getSafeRouteKey:u,interceptionMarker:r,segment:i[1],routeKeys:l,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return i?d({getSafeRouteKey:u,segment:i[1],routeKeys:l,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,a.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function h(e,t){let r=p(e,t);return{...f(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function _(e,t){let{parameterizedRoute:r}=c(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=p(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},40334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("…"))throw Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?");if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},o=[];for(let n=0;ne[r[t]])}},72208:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},92855:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",i="__DEFAULT__"},59975:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return _},PageNotFoundError:function(){return m},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return u},getLocationOrigin:function(){return i},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return l},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return P}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=i();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&l(r))return n;if(!n)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class _ extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},43777:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var u=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?u=n.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(n=u,u=[];++c1)for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return f},APP_DIR_ALIAS:function(){return M},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return I},ESLINT_DEFAULT_DIRS:function(){return Q},GSP_NO_RETURNED_VALUE:function(){return q},GSSP_COMPONENT_MEMBER_ERROR:function(){return Y},GSSP_NO_RETURNED_VALUE:function(){return V},INFINITE_CACHE:function(){return O},INSTRUMENTATION_HOOK_FILENAME:function(){return A},MATCHED_PATH_HEADER:function(){return o},MIDDLEWARE_FILENAME:function(){return T},MIDDLEWARE_LOCATION_REGEXP:function(){return j},NEXT_BODY_SUFFIX:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return S},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return g},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return y},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return m},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return v},NEXT_CACHE_TAGS_HEADER:function(){return _},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return E},NEXT_DATA_SUFFIX:function(){return d},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return p},NEXT_QUERY_PARAM_PREFIX:function(){return r},NEXT_RESUME_HEADER:function(){return P},NON_STANDARD_NODE_ENV:function(){return K},PAGES_DIR_ALIAS:function(){return w},PRERENDER_REVALIDATE_HEADER:function(){return a},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return i},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return k},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return F},RSC_ACTION_ENCRYPTION_ALIAS:function(){return U},RSC_ACTION_PROXY_ALIAS:function(){return L},RSC_ACTION_VALIDATE_ALIAS:function(){return x},RSC_CACHE_WRAPPER_ALIAS:function(){return D},RSC_MOD_REF_PROXY_ALIAS:function(){return N},RSC_PREFETCH_SUFFIX:function(){return s},RSC_SEGMENTS_DIR_SUFFIX:function(){return u},RSC_SEGMENT_SUFFIX:function(){return l},RSC_SUFFIX:function(){return c},SERVER_PROPS_EXPORT_ERROR:function(){return X},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return H},SERVER_PROPS_SSG_CONFLICT:function(){return W},SERVER_RUNTIME:function(){return J},SSG_FALLBACK_EXPORT_ERROR:function(){return $},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return B},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return G},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return z},WEBPACK_LAYERS:function(){return ee},WEBPACK_RESOURCE_QUERIES:function(){return et}});let r="nxtP",n="nxtI",o="x-matched-path",a="x-prerender-revalidate",i="x-prerender-revalidate-if-generated",s=".prefetch.rsc",u=".segments",l=".segment.rsc",c=".rsc",f=".action",d=".json",p=".meta",h=".body",_="x-next-cache-tags",m="x-next-cache-soft-tags",g="x-next-revalidated-tags",y="x-next-revalidate-tag-token",P="next-resume",b=128,E=256,v=1024,S="_N_T_",R=31536e3,O=0xfffffffe,T="middleware",j=`(?:src/)?${T}`,A="instrumentation",w="private-next-pages",I="private-dot-next",C="private-next-root-dir",M="private-next-app-dir",N="private-next-rsc-mod-ref-proxy",x="private-next-rsc-action-validate",L="private-next-rsc-server-reference",D="private-next-rsc-cache-wrapper",U="private-next-rsc-action-encryption",F="private-next-rsc-action-client-wrapper",k="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",B="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",H="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",W="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",G="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",X="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",q="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",V="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",z="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Y="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",K='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',$="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Q=["app","pages","components","lib","src"],J={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Z={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser"},ee={...Z,GROUP:{builtinReact:[Z.reactServerComponents,Z.actionBrowser],serverOnly:[Z.reactServerComponents,Z.actionBrowser,Z.instrument,Z.middleware],neutralTarget:[Z.api],clientOnly:[Z.serverSideRendering,Z.appPagesBrowser],bundled:[Z.reactServerComponents,Z.actionBrowser,Z.serverSideRendering,Z.appPagesBrowser,Z.shared,Z.instrument],appPages:[Z.reactServerComponents,Z.serverSideRendering,Z.appPagesBrowser,Z.actionBrowser]}},et={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},43558:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},30036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(98129);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+"")}},86675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return r}});var r=function(e){return e.ADDED_PAGE="addedPage",e.REMOVED_PAGE="removedPage",e.RELOAD_PAGE="reloadPage",e.SERVER_COMPONENT_CHANGES="serverComponentChanges",e.MIDDLEWARE_CHANGES="middlewareChanges",e.CLIENT_CHANGES="clientChanges",e.SERVER_ONLY_CHANGES="serverOnlyChanges",e.SYNC="sync",e.BUILT="built",e.BUILDING="building",e.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",e.TURBOPACK_MESSAGE="turbopack-message",e.SERVER_ERROR="serverError",e.TURBOPACK_CONNECTED="turbopack-connected",e.APP_ISR_MANIFEST="appIsrManifest",e}({})},35610:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(62278),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},4220:()=>{},20173:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},13232:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})}},e=>{var t=t=>e(e.s=t);e.O(0,[6593],()=>t(45871)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-afbf0345c59af025.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-afbf0345c59af025.js deleted file mode 100644 index c658faa..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-afbf0345c59af025.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8792],{28925:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},44599:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},77836:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(85307)},75371:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(84782),o=r(26094);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(26094);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return s},getAccessFallbackHTTPStatus:function(){return i},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function i(e){return Number(e.digest.split(";")[1])}function s(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97092:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(72746),o=r(56700);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSocketUrl",{enumerable:!0,get:function(){return o}});let n=r(78487);function o(e){let t=(0,n.normalizedAssetPrefix)(e),r=function(e){let t=window.location.protocol;try{t=new URL(e).protocol}catch(e){}return"http:"===t?"ws:":"wss:"}(e||"");if(URL.canParse(t))return t.replace(/^http/,"ws");let{hostname:o,port:a}=window.location;return r+"//"+o+(a?":"+a:"")+t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getReactStitchedError",{enumerable:!0,get:function(){return l}});let n=r(87677),o=n._(r(96540)),a=n._(r(83382)),i="react-stack-bottom-frame",s=RegExp("(at "+i+" )|("+i+"\\@)"),u=o.default.captureOwnerStack?o.default.captureOwnerStack:()=>"";function l(e){if("function"!=typeof o.default.captureOwnerStack)return e;let t=(0,a.default)(e),r=t&&e.stack||"",n=t?e.message:"",i=r.split("\n"),l=i.findIndex(e=>s.test(e)),c=l>=0?i.slice(0,l).join("\n"):r,f=Error(n);return Object.assign(f,e),f.stack=c,function(e){let t=e.stack||"",r=u();r&&!1===t.endsWith(r)&&(t+=r,e.stack=t)}(f),f}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42924:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addMessageListener:function(){return s},connectHMR:function(){return d},sendMessage:function(){return u}});let o=r(30365),a=r(33290),i=[];function s(e){i.push(e)}function u(e){if(n&&n.readyState===n.OPEN)return n.send(e)}let l=0,c=!1,f=null;function d(e){!function t(){let r;function s(){if(n.onerror=null,n.onclose=null,n.close(),++l>25){c=!0,window.location.reload();return}clearTimeout(r),r=setTimeout(t,l>5?5e3:1e3)}n&&n.close();let u=(0,a.getSocketUrl)(e.assetPrefix);(n=new window.WebSocket(""+u+e.path)).onopen=function(){l=0,window.console.log("[HMR] connected")},n.onerror=s,n.onclose=s,n.onmessage=function(e){if(c)return;let t=JSON.parse(e.data);if("action"in t&&t.action===o.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED){if(null!==f&&f!==t.data.sessionId){window.location.reload(),c=!0;return}f=t.data.sessionId}for(let e of i)e(t)}}()}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56700:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return i}});let n=r(84618),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function i(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,i=t.slice(2,-2).join(";"),s=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof i&&!isNaN(s)&&s in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(89211);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24264:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return i},isEqualNode:function(){return a}});let o=r(19592);function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,o="";if(r){let{children:e}=r.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let r=document.querySelector("head");if(!r)return;let n=new Set(r.querySelectorAll(""+e+"[data-next-head]"));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&n.add(e)}let i=[];for(let e=0;e{"use strict";let n,o,a,i,s,u,l,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return G},hydrate:function(){return el},initialize:function(){return z},router:function(){return n},version:function(){return W}});let _=r(87677),m=r(74848);r(44599);let g=_._(r(96540)),y=_._(r(5338)),P=r(27592),b=_._(r(28840)),E=r(34671),v=r(4203),S=r(34220),R=r(92319),O=r(2438),T=r(4881),j=r(13097),A=_._(r(24264)),w=_._(r(86363)),I=r(51497),C=r(74009),M=r(83382),N=r(72454),x=r(2922),L=r(39568),D=r(63489),U=r(91138),F=r(84168),k=r(75294),B=_._(r(62862)),H=_._(r(26353));r(97092);let W="15.1.2",G=(0,b.default)(),X=e=>[].slice.call(e),q=!1;class V extends g.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,S.isDynamicRoute)(n.pathname)||location.search||q)||o.props&&o.props.__N_SSG&&(location.search||q))&&n.replace(n.pathname+"?"+String((0,R.assign)((0,R.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!q}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function z(e){void 0===e&&(e={}),B.default.onSpanEnd(H.default),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,O.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,T.getURL)(),(0,L.hasBasePath)(a)&&(a=(0,x.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(44811);e(o.scriptLoader)}i=new w.default(o.buildId,t);let l=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>l(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=l,(u=(0,A.default)()).getIsSsr=()=>n.isSsr,s=document.getElementById("__next"),{assetPrefix:t}}function Y(e,t){return(0,m.jsx)(e,{...t})}function K(e){var t;let{children:r}=e,o=g.default.useMemo(()=>(0,U.adaptForAppRouterInstance)(n),[]);return(0,m.jsx)(V,{fn:e=>Q({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,m.jsx)(D.AppRouterContext.Provider,{value:o,children:(0,m.jsx)(F.SearchParamsContext.Provider,{value:(0,U.adaptForSearchParams)(n),children:(0,m.jsx)(U.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,m.jsx)(F.PathParamsContext.Provider,{value:(0,U.adaptForPathParams)(n),children:(0,m.jsx)(E.RouterContext.Provider,{value:(0,C.makePublicRouterInstance)(n),children:(0,m.jsx)(P.HeadManagerContext.Provider,{value:u,children:(0,m.jsx)(N.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0},children:r})})})})})})})})}let $=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,m.jsx)(K,{children:Y(e,r)})};function Q(e){let{App:t,err:s}=e;return console.error(s),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==l?void 0:l.Component)===o?r.e(6218).then(r.t.bind(r,86218,23)).then(n=>r.e(5203).then(r.t.bind(r,35203,23)).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:u,styleSheets:l}=r,c=$(t),f={Component:u,AppTree:c,router:n,ctx:{err:s,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,T.loadGetInitialProps)(t,f)).then(t=>es({...e,err:s,Component:u,styleSheets:l,props:t}))})}function J(e){let{callback:t}=e;return g.default.useLayoutEffect(()=>t(),[t]),null}let Z={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},ee={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},et=null,er=!0;function en(){[Z.beforeRender,Z.afterHydrate,Z.afterRender,Z.routeChange].forEach(e=>performance.clearMarks(e))}function eo(){T.ST&&(performance.mark(Z.afterHydrate),performance.getEntriesByName(Z.beforeRender,"mark").length&&(performance.measure(ee.beforeHydration,Z.navigationStart,Z.beforeRender),performance.measure(ee.hydration,Z.beforeRender,Z.afterHydrate)),d&&performance.getEntriesByName(ee.hydration).forEach(d),en())}function ea(){if(!T.ST)return;performance.mark(Z.afterRender);let e=performance.getEntriesByName(Z.routeChange,"mark");e.length&&(performance.getEntriesByName(Z.beforeRender,"mark").length&&(performance.measure(ee.routeChangeToRender,e[0].name,Z.beforeRender),performance.measure(ee.render,Z.beforeRender,Z.afterRender),d&&(performance.getEntriesByName(ee.render).forEach(d),performance.getEntriesByName(ee.routeChangeToRender).forEach(d))),en(),[ee.routeChangeToRender,ee.render].forEach(e=>performance.clearMeasures(e)))}function ei(e){let{callbacks:t,children:r}=e;return g.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,u="initial"in e?void 0:e.styleSheets;o=o||l.Component;let f={...a=a||l.props,Component:o,err:i,router:n};l=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!u)return;let e=new Set(X(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");u.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let _=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(J,{callback:function(){if(u&&!d){let e=new Set(u.map(e=>e.href)),t=X(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),X(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,v.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,m.jsxs)(K,{children:[Y(r,f),(0,m.jsx)(j.Portal,{type:"next-route-announcer",children:(0,m.jsx)(I.RouteAnnouncer,{})})]})]});return!function(e,t){T.ST&&performance.mark(Z.beforeRender);let r=t(er?eo:ea);et?(0,g.default.startTransition)(()=>{et.render(r)}):(et=y.default.hydrateRoot(e,r,{onRecoverableError:k.onRecoverableError}),er=!1)}(s,e=>(0,m.jsx)(ei,{callbacks:[e,h],children:_})),p}async function eu(e){if(e.err&&(void 0===e.Component||!e.isHydratePass)){await Q(e);return}try{await es(e)}catch(r){let t=(0,M.getProperError)(r);if(t.cancelled)throw t;await Q({...e,err:t})}}async function el(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:s,entryType:u,entries:l,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);l&&l.length&&(t=l[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?s:i,label:"mark"===u||"measure"===u?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,M.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,C.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:$,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>eu(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),q=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),eu(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(33185);let n=r(19402);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(76053),o=r(10281),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,n.removeTrailingSlash)(t)+r+a:t.endsWith("/")?""+t+r+a:t+"/"+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86363:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(87677),o=r(75371),a=r(21198),i=n._(r(65060)),s=r(83912),u=r(34220),l=r(31242),c=r(76053),f=r(23931);r(5661);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,l.parseRelativeUrl)(r),{pathname:h}=(0,l.parseRelativeUrl)(t),_=(0,c.removeTrailingSlash)(f);if("/"!==_[0])throw Error('Route name should start with a "/", got "'+_+'"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,s.addLocale)(e,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,u.isDynamicRoute)(_)?(0,a.interpolateAs)(f,h,d).result:_)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(96540),o=r(40961),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{window.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"onRecoverableError",{enumerable:!0,get:function(){return u}});let n=r(87677),o=r(78216),a=r(48142),i=r(25711),s=n._(r(83382)),u=(e,t)=>{let r=(0,s.default)(e)&&"cause"in e?e.cause:e,n=(0,i.getReactStitchedError)(r);(0,o.isBailoutToCSRError)(r)||(0,a.reportGlobalError)(n)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2922:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(39568),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38695:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(10281),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(92319),o=r(15543),a=r(78445),i=r(4881),s=r(26094),u=r(67262),l=r(40574),c=r(21198);function f(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,l.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,s)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return u},default:function(){return l}});let n=r(87677),o=r(74848),a=n._(r(96540)),i=r(74009),s={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},u=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:s,children:t})},l=u;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return h},isAssetError:function(){return c},markAssetError:function(){return l}}),r(87677),r(65060);let n=r(73465),o=r(89820),a=r(28925),i=r(90503);function s(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,u,{})}function c(e){return e&&u in e}let f=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function p(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function h(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):p(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function _(e,t){return h().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+(0,i.encodeURIPath)(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+d()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function i(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function u(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>s(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return s(r,a,()=>{let o;return p(_(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(i)),Promise.all(o.map(u))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(f?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return _},default:function(){return p},makePublicRouterInstance:function(){return m},useRouter:function(){return h},withRouter:function(){return u.default}});let n=r(87677),o=n._(r(96540)),a=n._(r(18151)),i=r(34671),s=n._(r(83382)),u=n._(r(74e3)),l={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!l.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return l.router}Object.defineProperty(l,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(l,e,{get:()=>d()[e]})}),f.forEach(e=>{l[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{l.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),l.readyCallbacks=[],l.router}function m(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return m}});let n=r(87677),o=r(40544),a=r(74848),i=n._(r(40961)),s=o._(r(96540)),u=r(27592),l=r(19592),c=r(89820),f=new Map,d=new Set,p=e=>{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:s="afterInteractive",onError:u,stylesheets:c}=e,h=r||t;if(h&&d.has(h))return;if(f.has(t)){d.add(h),f.get(t).then(n,u);return}let _=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});a?(m.innerHTML=a.__html||"",_()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(m.src=t,f.set(t,g)),(0,l.setAttributesFromProps)(m,e),"worker"===s&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",s),c&&p(c),document.body.appendChild(m)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:l="afterInteractive",onError:f,stylesheets:p,..._}=e,{updateScripts:m,scripts:g,getIsSsr:y,appDir:P,nonce:b}=(0,s.useContext)(u.HeadManagerContext),E=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;E.current||(o&&e&&d.has(e)&&o(),E.current=!0)},[o,t,r]);let v=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{!v.current&&("afterInteractive"===l?h(e):"lazyOnload"===l&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))})),v.current=!0)},[e,l]),("beforeInteractive"===l||"worker"===l)&&(m?(g[l]=(g[l]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,..._}]),m(g)):y&&y()?d.add(t||r):y&&!y()&&h(e)),P){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===l)return r?(i.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:b,crossOrigin:_.crossOrigin}:{as:"script",nonce:b,crossOrigin:_.crossOrigin}),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{..._,id:t}])+")"}})):(_.dangerouslySetInnerHTML&&(_.children=_.dangerouslySetInnerHTML.__html,delete _.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{..._,id:t}])+")"}}));"afterInteractive"===l&&r&&i.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:b,crossOrigin:_.crossOrigin}:{as:"script",nonce:b,crossOrigin:_.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19592:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(e){return["async","defer","noModule"].includes(e)}function a(e,t){for(let[a,i]of Object.entries(t)){if(!t.hasOwnProperty(a)||n.includes(a)||void 0===i)continue;let s=r[a]||a.toLowerCase();"SCRIPT"===e.tagName&&o(s)?e[s]=!!i:e.setAttribute(s,String(i)),(!1===i||"SCRIPT"===e.tagName&&o(s)&&(!i||"false"===i))&&(e.setAttribute(s,""),e.removeAttribute(s))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26353:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(42924);function o(e){if("ended"!==e.state.state)throw Error("Expected span to be ended");(0,n.sendMessage)(JSON.stringify({event:"span-end",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(87677)._(r(28840));class o{end(e){if("ended"===this.state.state)throw Error("Span has already ended");this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73465:(e,t)=>{"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(28925),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(87677);let n=r(74848);r(96540);let o=r(74009);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return u},TemplateContext:function(){return s}});let n=r(87677)._(r(96540)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),s=n.default.createContext(null),u=n.default.createContext(new Set)},79038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},5661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return P},APP_CLIENT_INTERNALS:function(){return Q},APP_PATHS_MANIFEST:function(){return m},APP_PATH_ROUTES_MANIFEST:function(){return g},BARREL_OPTIMIZATION_PREFIX:function(){return W},BLOCKED_PAGES:function(){return U},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_REFERENCE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_PATH:function(){return k},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return K},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return $},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return et},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return er},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return J},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ee},COMPILER_INDEXES:function(){return a},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return L},DEFAULT_RUNTIME_WEBPACK:function(){return en},DEFAULT_SANS_SERIF_FONT:function(){return eu},DEFAULT_SERIF_FONT:function(){return es},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return M},DEV_CLIENT_PAGES_MANIFEST:function(){return w},DYNAMIC_CSS_MANIFEST:function(){return Y},EDGE_RUNTIME_WEBPACK:function(){return eo},EDGE_UNSUPPORTED_NODE_APIS:function(){return ep},EXPORT_DETAIL:function(){return R},EXPORT_MARKER:function(){return S},FUNCTIONS_CONFIG_MANIFEST:function(){return b},IMAGES_MANIFEST:function(){return j},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return z},MIDDLEWARE_BUILD_MANIFEST:function(){return q},MIDDLEWARE_MANIFEST:function(){return I},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return H},NEXT_FONT_MANIFEST:function(){return v},PAGES_MANIFEST:function(){return h},PHASE_DEVELOPMENT_SERVER:function(){return f},PHASE_EXPORT:function(){return u},PHASE_INFO:function(){return p},PHASE_PRODUCTION_BUILD:function(){return l},PHASE_PRODUCTION_SERVER:function(){return c},PHASE_TEST:function(){return d},PRERENDER_MANIFEST:function(){return O},REACT_LOADABLE_MANIFEST:function(){return N},ROUTES_MANIFEST:function(){return T},RSC_MODULE_TYPES:function(){return ed},SERVER_DIRECTORY:function(){return x},SERVER_FILES_MANIFEST:function(){return A},SERVER_PROPS_ID:function(){return ei},SERVER_REFERENCE_MANIFEST:function(){return X},STATIC_PROPS_ID:function(){return ea},STATIC_STATUS_PAGES:function(){return el},STRING_LITERAL_DROP_BUNDLE:function(){return B},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return E},SYSTEM_ENTRYPOINTS:function(){return eh},TRACE_OUTPUT_VERSION:function(){return ec},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return C},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ef},UNDERSCORE_NOT_FOUND_ROUTE:function(){return i},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return s},WEBPACK_STATS:function(){return _}});let n=r(87677)._(r(45929)),o={client:"client",server:"server",edgeServer:"edge-server"},a={[o.client]:0,[o.server]:1,[o.edgeServer]:2},i="/_not-found",s=""+i+"/page",u="phase-export",l="phase-production-build",c="phase-production-server",f="phase-development-server",d="phase-test",p="phase-info",h="pages-manifest.json",_="webpack-stats.json",m="app-paths-manifest.json",g="app-path-routes-manifest.json",y="build-manifest.json",P="app-build-manifest.json",b="functions-config-manifest.json",E="subresource-integrity-manifest",v="next-font-manifest",S="export-marker.json",R="export-detail.json",O="prerender-manifest.json",T="routes-manifest.json",j="images-manifest.json",A="required-server-files.json",w="_devPagesManifest.json",I="middleware-manifest.json",C="_clientMiddlewareManifest.json",M="_devMiddlewareManifest.json",N="react-loadable-manifest.json",x="server",L=["next.config.js","next.config.mjs","next.config.ts"],D="BUILD_ID",U=["/_document","/_app","/_error"],F="public",k="static",B="__NEXT_DROP_CLIENT_FILE__",H="__NEXT_BUILTIN_DOCUMENT__",W="__barrel_optimize__",G="client-reference-manifest",X="server-reference-manifest",q="middleware-build-manifest",V="middleware-react-loadable-manifest",z="interception-route-rewrite-manifest",Y="dynamic-css-manifest",K="main",$=""+K+"-app",Q="app-pages-internals",J="react-refresh",Z="amp",ee="webpack",et="polyfills",er=Symbol(et),en="webpack-runtime",eo="edge-runtime-webpack",ea="__N_SSG",ei="__N_SSP",es={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},eu={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},el=["/500"],ec=1,ef=6e3,ed={client:"client",server:"server"},ep=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eh=new Set([K,J,Z,$]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90503:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},12147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},27592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(87677)._(r(96540)).default.createContext({})},84168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(96540),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},541:(e,t)=>{"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},72454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(87677)._(r(96540)),o=r(83436),a=n.default.createContext(o.imageConfigDefault)},83436:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},51775:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},78216:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},28840:(e,t)=>{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},45929:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},78487:(e,t)=>{"use strict";function r(e){let t=(null==e?void 0:e.replace(/^\/+|\/+$/g,""))||!1;if(!t)return"";if(URL.canParse(t)){let e=new URL(t).toString();return e.endsWith("/")?e.slice(0,-1):e}return"/"+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizedAssetPrefix",{enumerable:!0,get:function(){return r}})},19220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(40574),o=r(42760);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},1173:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},42760:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},34671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(87677)._(r(96540)).default.createContext(null)},91138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(40544),o=r(74848),a=n._(r(96540)),i=r(84168),s=r(40574),u=r(77554),l=r(71037);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,u.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,l.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,u=(0,a.useRef)(n.isAutoExport),l=(0,a.useMemo)(()=>{let e;let t=u.current;if(t&&(u.current=!1),(0,s.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:l,children:t})}},18151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return X},default:function(){return z},matchesMiddleware:function(){return D}});let n=r(87677),o=r(40544),a=r(76053),i=r(23931),s=r(44811),u=o._(r(83382)),l=r(19220),c=r(541),f=n._(r(28840)),d=r(4881),p=r(34220),h=r(31242);r(41226);let _=r(70144),m=r(71037),g=r(15543);r(96023);let y=r(10281),P=r(83912),b=r(38695),E=r(2922),v=r(75371),S=r(39568),R=r(86846),O=r(2976),T=r(44556),j=r(79015),A=r(33888),w=r(67262),I=r(99432),C=r(78445),M=r(21198),N=r(4203),x=r(36192);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,o=(0,v.addBasePath)((0,P.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function U(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function F(e,t,r){let[n,o]=(0,R.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),s=o&&o.startsWith(a);n=U(n),o=o?U(o):o;let u=i?n:(0,v.addBasePath)(n),l=r?U((0,R.resolveHref)(e,r)):o||n;return{url:u,as:s?l:(0,v.addBasePath)(l)}}function k(e,t){let r=(0,a.removeTrailingSlash)((0,l.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,m.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!0},o=t.headers.get("x-nextjs-rewrite"),s=o||t.headers.get("x-nextjs-matched-path"),u=t.headers.get(x.MATCHED_PATH_HEADER);if(!u||s||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(s=u),s){if(s.startsWith("/")){let t=(0,h.parseRelativeUrl)(s),u=(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),l=(0,a.removeTrailingSlash)(u.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:s}]=a,f=(0,P.addLocale)(u.pathname,u.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,E.removeBasePath)(f),r.router.locales).pathname)){let r=(0,T.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});f=(0,v.addBasePath)(r.pathname),t.pathname=f}if(!i.includes(l)){let e=k(l,i);e!==l&&(l=e)}let d=i.includes(l)?l:k((0,c.normalizeLocalePath)((0,E.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,_.getRouteMatcher)((0,m.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let l=t.headers.get("x-nextjs-redirect");if(l){if(l.startsWith("/")){let e=(0,y.parsePath)(l),t=(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:l})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let H=Symbol("SSG_DATA_NOT_FOUND");function W(e){try{return JSON.parse(e)}catch(e){return null}}function G(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:s,persistCache:u,isBackground:l,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var l;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{}),method:null!=(l=null==e?void 0:e.method)?l:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=W(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:H},response:r,text:e,cacheKey:f}}let s=Error("Failed to load static props");throw a||(0,i.markAssetError)(s),s}return{dataHref:t,json:s?W(e):null,response:r,text:e,cacheKey:f}})).then(e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw c||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e})};return c&&u?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[f]=Promise.resolve(e)),e)):void 0!==r[f]?r[f]:r[f]=d(l?{method:"HEAD"}:{})}function X(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:r}=e;if(t===(0,v.addBasePath)((0,P.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let V=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class z{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,o){{if(!this._bfl_s&&!this._bfl_d){let t,a;let{BloomFilter:s}=r(79038);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,i.getClientBuildManifest)())}catch(t){if(console.error(t),o)return!0;return q({url:(0,v.addBasePath)((0,P.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new s(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new s(a.numItems,a.errorRate),this._bfl_d.import(a))}let c=!1,f=!1;for(let{as:r,allowMatchCurrent:i}of[{as:e},{as:t}])if(r){let t=(0,a.removeTrailingSlash)(new URL(r,"http://n").pathname),d=(0,v.addBasePath)((0,P.addLocale)(t,n||this.locale));if(i||t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var s,u,l;for(let e of(c=c||!!(null==(s=this._bfl_s)?void 0:s.contains(t))||!!(null==(u=this._bfl_s)?void 0:u.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!f&&e{})}}}}return!1}async change(e,t,r,n,o){var l,c,f,R,O,T,j,I,N;let x,U;if(!(0,w.isLocalURL)(t))return q({url:t,router:this}),!1;let B=1===n._h;B||n.shallow||await this._bfl(r,void 0,n.locale);let W=B||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,G={...this.state},X=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let Y=G.locale;d.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:$=!0}=n,Q={shallow:K};this._inFlightRoute&&this.clc&&(V||z.events.emit("routeChangeError",L(),this._inFlightRoute,Q),this.clc(),this.clc=null),r=(0,v.addBasePath)((0,P.addLocale)((0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,n.locale,this.defaultLocale));let J=(0,b.removeLocale)((0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,G.locale);this._inFlightRoute=r;let Z=Y!==G.locale;if(!B&&this.onlyAHashChange(J)&&!Z){G.asPath=J,z.events.emit("hashChangeStart",r,Q),this.changeState(e,t,r,{...n,scroll:!1}),$&&this.scrollToHash(J);try{await this.set(G,this.components[G.route],null)}catch(e){throw(0,u.default)(e)&&e.cancelled&&z.events.emit("routeChangeError",e,J,Q),e}return z.events.emit("hashChangeComplete",r,Q),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[x,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:r,router:this}),!1}this.urlIsNew(J)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,E.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(l=this.components[et])?void 0:l.__appRouter)return q({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,_.getRouteMatcher)((0,m.getRouteRegex)(eo))(ea))),es=!n.shallow&&await D({asPath:r,locale:G.locale,router:this});if(B&&es&&(W=!1),W&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=k(et,x),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,v.addBasePath)(et),es||(t=(0,g.formatWithValidation)(ee)))),!(0,w.isLocalURL)(r))return q({url:r,router:this}),!1;en=(0,b.removeLocale)((0,E.removeBasePath)(en),G.locale),eo=(0,a.removeTrailingSlash)(et);let eu=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,m.getRouteRegex)(eo);eu=(0,_.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,M.interpolateAs)(eo,n,er):{};if(eu&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,C.omit)(er,i.params)})):Object.assign(er,eu);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!es)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}B||z.events.emit("routeChangeStart",r,Q);let el="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:Q,locale:G.locale,isPreview:G.isPreview,hasMiddleware:es,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:ei});if(B||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,G.locale),"route"in a&&es){eo=et=a.route||eo,Q.shallow||(er=Object.assign({},a.query||{},er));let e=(0,S.hasBasePath)(ee.pathname)?(0,E.removeBasePath)(ee.pathname):ee.pathname;if(eu&&et!==e&&Object.keys(eu).forEach(e=>{eu&&er[e]===eu[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!Q.shallow&&a.resolvedAs?a.resolvedAs:(0,v.addBasePath)((0,P.addLocale)(new URL(r,location.href).pathname,G.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,E.removeBasePath)(e));let t=(0,m.getRouteRegex)(et),n=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return q({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,s.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=k(r.pathname,x);let{url:o,as:a}=F(this,t,t);return this.change(e,o,a,n)}return q({url:t,router:this}),new Promise(()=>{})}if(G.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:G.locale,isPreview:G.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}B&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(R=a.props)?void 0:R.pageProps)&&(a.props.pageProps.statusCode=500);let l=n.shallow&&G.route===(null!=(O=a.route)?O:eo),d=null!=(T=n.scroll)?T:!B&&!l,g=null!=o?o:d?{x:0,y:0}:null,y={...G,route:eo,pathname:et,query:er,asPath:J,isFallback:!1};if(B&&el){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:G.locale,isPreview:G.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(I=self.__NEXT_DATA__.props)?void 0:null==(j=I.pageProps)?void 0:j.statusCode)===500&&(null==(N=a.props)?void 0:N.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,g)}catch(e){throw(0,u.default)(e)&&e.cancelled&&z.events.emit("routeChangeError",e,J,Q),e}return!0}if(z.events.emit("beforeHistoryChange",r,Q),this.changeState(e,t,r,n),!(B&&!g&&!X&&!Z&&(0,A.compareRouterStates)(y,this.state))){try{await this.set(y,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw B||z.events.emit("routeChangeError",a.error,J,Q),a.error;B||z.events.emit("routeChangeComplete",r,Q),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,u.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:X()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw z.events.emit("routeChangeError",e,n,o),q({url:n,router:this}),L();console.error(e);try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,u.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:s,locale:l,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:_,isNotFound:m}=e,y=t;try{var P,b,v,S;let e=this.components[y];if(s.shallow&&e&&this.route===y)return e;let t=V({route:y,router:this});f&&(e=void 0);let u=!e||"initial"in e?void 0:e,R={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:m?"/404":i,locale:l}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},T=h&&!_?null:await B({fetchData:()=>G(R),asPath:m?"/404":i,locale:l,router:this}).catch(e=>{if(h)return null;throw e});if(T&&("/_error"===r||"/404"===r)&&(T.effect=void 0),h&&(T?T.json=self.__NEXT_DATA__.props:T={json:self.__NEXT_DATA__.props}),t(),(null==T?void 0:null==(P=T.effect)?void 0:P.type)==="redirect-internal"||(null==T?void 0:null==(b=T.effect)?void 0:b.type)==="redirect-external")return T.effect;if((null==T?void 0:null==(v=T.effect)?void 0:v.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(T.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(y=t,r=T.effect.resolvedHref,n={...n,...T.effect.parsedAs.query},i=(0,E.removeBasePath)((0,c.normalizeLocalePath)(T.effect.parsedAs.pathname,this.locales).pathname),e=this.components[y],s.shallow&&e&&this.route===y&&!f))return{...e,route:y}}if((0,O.isAPIRoute)(y))return q({url:o,router:this}),new Promise(()=>{});let j=u||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),A=null==T?void 0:null==(S=T.response)?void 0:S.headers.get("x-middleware-skip"),w=j.__N_SSG||j.__N_SSP;A&&(null==T?void 0:T.dataHref)&&delete this.sdc[T.dataHref];let{props:I,cacheKey:C}=await this._getData(async()=>{if(w){if((null==T?void 0:T.json)&&!A)return{cacheKey:T.cacheKey,props:T.json};let e=(null==T?void 0:T.dataHref)?T.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:l}),t=await G({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:A?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&R.dataHref&&C&&delete this.sdc[C],this.isPreview||!j.__N_SSG||h||G(Object.assign({},R,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),I.pageProps=Object.assign({},I.pageProps),j.props=I,j.route=y,j.query=n,j.resolvedAs=i,this.components[y]=j,j}catch(e){return this.handleRouteInfoError((0,u.getProperError)(e),r,n,o,s)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,N.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,I.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:s}=n,u=i,l=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await D({asPath:t,locale:f,router:this});n.pathname=k(n.pathname,l),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(s,(0,_.getRouteMatcher)((0,m.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let P=await B({fetchData:()=>G({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:u,query:s}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==P?void 0:P.effect.type)==="rewrite"&&(n.pathname=P.effect.resolvedHref,i=P.effect.resolvedHref,s={...s,...P.effect.parsedAs.query},c=P.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==P?void 0:P.effect.type)==="redirect-external")return;let b=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(b).then(t=>!!t&&G({dataHref:(null==P?void 0:P.json)?null==P?void 0:P.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](b)])}async fetchComponent(e){let t=V({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:o,App:i,wrapApp:s,Component:u,err:l,subscription:c,isFallback:f,locale:_,locales:m,defaultLocale:y,domainLocales:P,isPreview:b}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=X(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:s}=n;this._key=s;let{pathname:u}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,v.addBasePath)(this.asPath)||u!==(0,v.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let E=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[E]={Component:u,initial:!0,props:n,err:l,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=z.events,this.pageLoader=o;let S=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!S&&!self.location.search),this.state={route:E,pathname:e,query:t,asPath:S?e:r,isPreview:!!b,locale:void 0,isFallback:f},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:_,asPath:o}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),o,n),a))}window.addEventListener("popstate",this.onPopState)}}z.events=(0,f.default)()},64980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(84782),o=r(89211);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},84782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(10281);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},5375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(10281);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},63756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(1173),o=r(80609);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},77554:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},33888:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},79015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=r(76053),o=r(84782),a=r(5375),i=r(64980);function s(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},15543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return i}});let n=r(40544)._(r(92319)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(n.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==l?(l="//"+(l||""),i&&"/"!==i[0]&&(i="/"+i)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+a+l+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return a(e)}},65060:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},44556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(541),o=r(44111),a=r(89211);function i(e,t){var r,i;let{basePath:s,i18n:u,trailingSlash:l}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):l};s&&(0,a.pathHasPrefix)(c.pathname,s)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,s),c.basePath=s);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];c.buildId=r,f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(u){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,u.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,u.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},4203:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},40574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(38e3),o=r(34220)},21198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(70144),o=r(71037);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),s=i.groups,u=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let l=Object.keys(s);return l.every(e=>{let t=u[e]||"",{repeat:r,optional:n}=s[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:l,result:a}}},99432:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}});let r=/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i;function n(e){return r.test(e)}},34220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(91900),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},67262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(4881),o=r(39568);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},78445:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},10281:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},31242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(4881),o=r(92319);function a(e,t,r){void 0===r&&(r=!0);let a=new URL((0,n.getLocationOrigin)()),i=t?new URL(t,a):e.startsWith(".")?new URL(window.location.href):a,{pathname:s,searchParams:u,search:l,hash:c,href:f,origin:d}=new URL(e,i);if(d!==a.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:s,query:r?(0,o.searchParamsToUrlQuery)(u):void 0,search:l,hash:c,href:f.slice(d.length)}}},89211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(10281);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},92319:(e,t)=>{"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},44111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(89211);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},76053:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},70144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(4881);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},71037:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return _},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return f},parseParameter:function(){return u}});let n=r(36192),o=r(91900),a=r(12147),i=r(76053),s=/\[((?:\[.*\])|.+)\]/;function u(e){let t=e.match(s);return t?l(t[1]):l(e)}function l(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function c(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map(e=>{let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(s);if(t&&i){let{key:e,optional:o,repeat:s}=l(i[1]);return r[e]={pos:n++,repeat:s,optional:o},"/"+(0,a.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,a.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:o}=l(i[1]);return r[e]={pos:n++,repeat:t,optional:o},t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function f(e){let{parameterizedRoute:t,groups:r}=c(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function d(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:o,keyPrefix:i}=e,{key:s,optional:u,repeat:c}=l(n),f=s.replace(/\W/g,"");i&&(f=""+i+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),i?o[f]=""+i+s:o[f]=s;let p=t?(0,a.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function p(e,t){let r;let s=(0,i.removeTrailingSlash)(e).slice(1).split("/"),u=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:s.map(e=>{let r=o.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&i){let[r]=e.split(i[0]);return d({getSafeRouteKey:u,interceptionMarker:r,segment:i[1],routeKeys:l,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return i?d({getSafeRouteKey:u,segment:i[1],routeKeys:l,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,a.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function h(e,t){let r=p(e,t);return{...f(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function _(e,t){let{parameterizedRoute:r}=c(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=p(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},38e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("…"))throw Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?");if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},o=[];for(let n=0;ne[r[t]])}},2438:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},80609:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",i="__DEFAULT__"},4881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return _},PageNotFoundError:function(){return m},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return u},getLocationOrigin:function(){return i},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return l},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return P}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=i();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&l(r))return n;if(!n)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class _ extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},85307:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var u=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?u=n.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(n=u,u=[];++c1)for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return f},APP_DIR_ALIAS:function(){return M},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return I},ESLINT_DEFAULT_DIRS:function(){return Q},GSP_NO_RETURNED_VALUE:function(){return q},GSSP_COMPONENT_MEMBER_ERROR:function(){return Y},GSSP_NO_RETURNED_VALUE:function(){return V},INFINITE_CACHE:function(){return O},INSTRUMENTATION_HOOK_FILENAME:function(){return A},MATCHED_PATH_HEADER:function(){return o},MIDDLEWARE_FILENAME:function(){return T},MIDDLEWARE_LOCATION_REGEXP:function(){return j},NEXT_BODY_SUFFIX:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return S},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return g},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return y},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return m},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return v},NEXT_CACHE_TAGS_HEADER:function(){return _},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return E},NEXT_DATA_SUFFIX:function(){return d},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return p},NEXT_QUERY_PARAM_PREFIX:function(){return r},NEXT_RESUME_HEADER:function(){return P},NON_STANDARD_NODE_ENV:function(){return K},PAGES_DIR_ALIAS:function(){return w},PRERENDER_REVALIDATE_HEADER:function(){return a},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return i},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return k},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return F},RSC_ACTION_ENCRYPTION_ALIAS:function(){return U},RSC_ACTION_PROXY_ALIAS:function(){return L},RSC_ACTION_VALIDATE_ALIAS:function(){return x},RSC_CACHE_WRAPPER_ALIAS:function(){return D},RSC_MOD_REF_PROXY_ALIAS:function(){return N},RSC_PREFETCH_SUFFIX:function(){return s},RSC_SEGMENTS_DIR_SUFFIX:function(){return u},RSC_SEGMENT_SUFFIX:function(){return l},RSC_SUFFIX:function(){return c},SERVER_PROPS_EXPORT_ERROR:function(){return X},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return H},SERVER_PROPS_SSG_CONFLICT:function(){return W},SERVER_RUNTIME:function(){return J},SSG_FALLBACK_EXPORT_ERROR:function(){return $},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return B},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return G},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return z},WEBPACK_LAYERS:function(){return ee},WEBPACK_RESOURCE_QUERIES:function(){return et}});let r="nxtP",n="nxtI",o="x-matched-path",a="x-prerender-revalidate",i="x-prerender-revalidate-if-generated",s=".prefetch.rsc",u=".segments",l=".segment.rsc",c=".rsc",f=".action",d=".json",p=".meta",h=".body",_="x-next-cache-tags",m="x-next-cache-soft-tags",g="x-next-revalidated-tags",y="x-next-revalidate-tag-token",P="next-resume",b=128,E=256,v=1024,S="_N_T_",R=31536e3,O=0xfffffffe,T="middleware",j=`(?:src/)?${T}`,A="instrumentation",w="private-next-pages",I="private-dot-next",C="private-next-root-dir",M="private-next-app-dir",N="private-next-rsc-mod-ref-proxy",x="private-next-rsc-action-validate",L="private-next-rsc-server-reference",D="private-next-rsc-cache-wrapper",U="private-next-rsc-action-encryption",F="private-next-rsc-action-client-wrapper",k="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",B="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",H="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",W="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",G="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",X="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",q="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",V="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",z="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Y="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",K='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',$="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Q=["app","pages","components","lib","src"],J={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Z={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser"},ee={...Z,GROUP:{builtinReact:[Z.reactServerComponents,Z.actionBrowser],serverOnly:[Z.reactServerComponents,Z.actionBrowser,Z.instrument,Z.middleware],neutralTarget:[Z.api],clientOnly:[Z.serverSideRendering,Z.appPagesBrowser],bundled:[Z.reactServerComponents,Z.actionBrowser,Z.serverSideRendering,Z.appPagesBrowser,Z.shared,Z.instrument],appPages:[Z.reactServerComponents,Z.serverSideRendering,Z.appPagesBrowser,Z.actionBrowser]}},et={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},2976:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},83382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(51775);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+"")}},30365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return r}});var r=function(e){return e.ADDED_PAGE="addedPage",e.REMOVED_PAGE="removedPage",e.RELOAD_PAGE="reloadPage",e.SERVER_COMPONENT_CHANGES="serverComponentChanges",e.MIDDLEWARE_CHANGES="middlewareChanges",e.CLIENT_CHANGES="clientChanges",e.SERVER_ONLY_CHANGES="serverOnlyChanges",e.SYNC="sync",e.BUILT="built",e.BUILDING="building",e.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",e.TURBOPACK_MESSAGE="turbopack-message",e.SERVER_ERROR="serverError",e.TURBOPACK_CONNECTED="turbopack-connected",e.APP_ISR_MANIFEST="appIsrManifest",e}({})},91900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(63756),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},41226:()=>{},87677:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},40544:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})}},e=>{var t=t=>e(e.s=t);e.O(0,[6593],()=>t(67693)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-app-6158bebee258e4c6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-app-6158bebee258e4c6.js deleted file mode 100644 index 69b246e..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-app-6158bebee258e4c6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{99076:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,57033,23)),Promise.resolve().then(n.t.bind(n,14547,23)),Promise.resolve().then(n.t.bind(n,34835,23)),Promise.resolve().then(n.t.bind(n,52328,23)),Promise.resolve().then(n.t.bind(n,15244,23)),Promise.resolve().then(n.t.bind(n,43866,23)),Promise.resolve().then(n.t.bind(n,86213,23))}},e=>{var s=s=>e(e.s=s);e.O(0,[8441,1517],()=>(s(97200),s(99076))),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-app-efcadbb0ab02e7db.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-app-efcadbb0ab02e7db.js new file mode 100644 index 0000000..37ca02f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/main-app-efcadbb0ab02e7db.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{80751:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,5329,23)),Promise.resolve().then(n.t.bind(n,92907,23)),Promise.resolve().then(n.t.bind(n,25339,23)),Promise.resolve().then(n.t.bind(n,30896,23)),Promise.resolve().then(n.t.bind(n,24900,23)),Promise.resolve().then(n.t.bind(n,81570,23)),Promise.resolve().then(n.t.bind(n,99165,23))}},e=>{var s=s=>e(e.s=s);e.O(0,[191,6035],()=>(s(31336),s(80751))),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_app-4768ec4baedb3106.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_app-4768ec4baedb3106.js new file mode 100644 index 0000000..b81a38f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_app-4768ec4baedb3106.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636,3993],{69138:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(73993)}])},73993:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let u=n(20173),l=n(25105),a=u._(n(58101)),o=n(59975);async function r(e){let{Component:t,ctx:n}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,n)}}class s extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,l.jsx)(e,{...t})}}s.origGetInitialProps=r,s.getInitialProps=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(69138),t(21003))),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_app-bfa3536d2730ca09.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_app-bfa3536d2730ca09.js deleted file mode 100644 index 416bcbc..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_app-bfa3536d2730ca09.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636,5203],{1788:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(35203)}])},35203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let u=n(87677),l=n(74848),a=u._(n(96540)),o=n(4881);async function r(e){let{Component:t,ctx:n}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,n)}}class s extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,l.jsx)(e,{...t})}}s.origGetInitialProps=r,s.getInitialProps=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(1788),t(74009))),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_error-cb90f27adf2fb914.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_error-cb90f27adf2fb914.js deleted file mode 100644 index c17e27b..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_error-cb90f27adf2fb914.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2731,6218],{56194:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return n(86218)}])},86218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(87677),o=n(74848),l=r._(n(96540)),i=r._(n(23248)),a={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){let{res:t,err:n}=e;return{statusCode:t&&t.statusCode?t.statusCode:n?n.statusCode:404}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class u extends l.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||a[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+n:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?n:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}u.displayName="ErrorPage",u.getInitialProps=d,u.origGetInitialProps=d,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(87677)._(n(96540)).default.createContext({})},42452:(e,t)=>{"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},23248:(e,t,n)=>{"use strict";var r=n(77836);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return _},defaultHead:function(){return f}});let o=n(87677),l=n(40544),i=n(74848),a=l._(n(96540)),d=o._(n(2495)),s=n(51432),u=n(27592),c=n(42452);function f(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(84636);let h=["name","httpEquiv","charSet","itemProp"];function y(e,t){let{inAmpMode:n}=t;return e.reduce(p,[]).reverse().concat(f(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let l=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?l=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let o=e.key||t;if(r.env.__NEXT_OPTIMIZE_FONTS&&!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:o})})}let _=function(e){let{children:t}=e,n=(0,a.useContext)(s.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return(0,i.jsx)(d.default,{reduceComponentsToState:y,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(96540),o=r.useLayoutEffect,l=r.useEffect;function i(e){let{headManager:t,reduceComponentsToState:n}=e;function i(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},84636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(56194)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_error-f347b70a71a8047b.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_error-f347b70a71a8047b.js new file mode 100644 index 0000000..dc0b176 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/pages/_error-f347b70a71a8047b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2731,4840],{7976:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return n(24840)}])},24840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(20173),o=n(25105),l=r._(n(58101)),i=r._(n(66134)),a={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){let{res:t,err:n}=e;return{statusCode:t&&t.statusCode?t.statusCode:n?n.statusCode:404}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class u extends l.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||a[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+n:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?n:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}u.displayName="ErrorPage",u.getInitialProps=d,u.origGetInitialProps=d,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95510:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(20173)._(n(58101)).default.createContext({})},44878:(e,t)=>{"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},66134:(e,t,n)=>{"use strict";var r=n(85318);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return _},defaultHead:function(){return f}});let o=n(20173),l=n(13232),i=n(25105),a=l._(n(58101)),d=o._(n(5393)),s=n(95510),u=n(67366),c=n(44878);function f(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(5606);let h=["name","httpEquiv","charSet","itemProp"];function y(e,t){let{inAmpMode:n}=t;return e.reduce(p,[]).reverse().concat(f(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let l=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?l=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let o=e.key||t;if(r.env.__NEXT_OPTIMIZE_FONTS&&!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:o})})}let _=function(e){let{children:t}=e,n=(0,a.useContext)(s.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return(0,i.jsx)(d.default,{reduceComponentsToState:y,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(58101),o=r.useLayoutEffect,l=r.useEffect;function i(e){let{headManager:t,reduceComponentsToState:n}=e;function i(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(7976)),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/webpack-40da663fe1ade319.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/webpack-25974a52f21a47fa.js similarity index 94% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/webpack-40da663fe1ade319.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/webpack-25974a52f21a47fa.js index 2265dca..eddcfc2 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/webpack-40da663fe1ade319.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/webpack-25974a52f21a47fa.js @@ -1 +1 @@ -(()=>{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={id:o,loaded:!1,exports:{}},i=!0;try{e[o].call(a.exports,a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.loaded=!0,a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var l=1/0,i=0;i=a)&&Object.keys(r.O).every(e=>r.O[e](o[d]))?o.splice(d--,1):(u=!1,a{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>"static/chunks/"+e+"."+({5203:"7c54c202406d4620",6218:"2a359a0f55d6ba39"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o]){e[o].push(n);return}if(void 0!==a)for(var l,u,d=document.getElementsByTagName("script"),c=0;c{l.onerror=l.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),u&&document.head.appendChild(l)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="/_next/",(()=>{var e={8068:0,5686:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n){if(n)o.push(n[2]);else if(/^(5686|8068)$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),l=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}},"chunk-"+t,t)}}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,l,u]=o,d=0;if(i.some(t=>0!==e[t])){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(u)var c=u(r)}for(t&&t(o);d{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={id:o,loaded:!1,exports:{}},i=!0;try{e[o].call(a.exports,a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.loaded=!0,a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var l=1/0,i=0;i=a)&&Object.keys(r.O).every(e=>r.O[e](o[d]))?o.splice(d--,1):(u=!1,a{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>"static/chunks/"+e+"."+({3993:"84dc2c07c5289739",4840:"58ad85f7ae0b4d74"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o]){e[o].push(n);return}if(void 0!==a)for(var l,u,d=document.getElementsByTagName("script"),c=0;c{l.onerror=l.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),u&&document.head.appendChild(l)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="/_next/",(()=>{var e={8068:0,3752:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n){if(n)o.push(n[2]);else if(/^(3752|8068)$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),l=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}},"chunk-"+t,t)}}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,l,u]=o,d=0;if(i.some(t=>0!==e[t])){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(u)var c=u(r)}for(t&&t(o);d:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-e-lg{border-start-end-radius:var(--radius);border-end-end-radius:var(--radius)}.rounded-e-none{border-start-end-radius:0;border-end-end-radius:0}.rounded-s-lg{border-start-start-radius:var(--radius);border-end-start-radius:var(--radius)}.rounded-s-none{border-start-start-radius:0;border-end-start-radius:0}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity))}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-foreground\/20{background-color:hsl(var(--foreground)/.2)}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-600:hover{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary\/80:hover{color:hsl(var(--primary)/.8)}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[800px\]{max-width:800px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-16{width:4rem;height:4rem}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:p-6{padding:1.5rem}.lg\:px-4{padding-left:1rem;padding-right:1rem}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-y-10{row-gap:2.5rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:size-full svg{width:100%;height:100%}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/2adbd6ec1a3f6224.css b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/2adbd6ec1a3f6224.css new file mode 100644 index 0000000..bdae879 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/2adbd6ec1a3f6224.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-left-8{left:-2rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-8{grid-column:span 8/span 8}.row-start-2{grid-row-start:2}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-16{width:4rem;height:4rem}.size-32{width:8rem;height:8rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[140px\]{height:140px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[250px\]{height:250px}.h-\[400px\]{height:400px}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-screen{max-height:100vh}.min-h-\[300px\]{min-height:300px}.min-h-\[60px\]{min-height:60px}.min-h-\[calc\(100vh_-_theme\(spacing\.16\)\)\]{min-height:calc(100vh - 4rem)}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[350px\]{width:350px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-10{max-width:2.5rem}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-6{max-width:1.5rem}.max-w-6xl{max-width:72rem}.max-w-\[180px\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\[20px_1fr_20px\]{grid-template-rows:20px 1fr 20px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-6{gap:1.5rem}.xl\:gap-y-12{row-gap:3rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/36ec25274907c1e6.css b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/36ec25274907c1e6.css new file mode 100644 index 0000000..82f5e92 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/36ec25274907c1e6.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-left-8{left:-2rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-8{grid-column:span 8/span 8}.row-start-2{grid-row-start:2}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-4{margin-left:-1rem}.-mr-2{margin-right:-.5rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-16{width:4rem;height:4rem}.size-32{width:8rem;height:8rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[140px\]{height:140px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[250px\]{height:250px}.h-\[400px\]{height:400px}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-screen{max-height:100vh}.min-h-\[300px\]{min-height:300px}.min-h-\[60px\]{min-height:60px}.min-h-\[calc\(100vh_-_theme\(spacing\.16\)\)\]{min-height:calc(100vh - 4rem)}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[300px\]{width:300px}.w-\[350px\]{width:350px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-10{max-width:2.5rem}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-6{max-width:1.5rem}.max-w-6xl{max-width:72rem}.max-w-\[180px\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\[20px_1fr_20px\]{grid-template-rows:20px 1fr 20px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-1{column-gap:.25rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-e-lg{border-start-end-radius:var(--radius);border-end-end-radius:var(--radius)}.rounded-e-none{border-start-end-radius:0;border-end-end-radius:0}.rounded-s-lg{border-start-start-radius:var(--radius);border-end-start-radius:var(--radius)}.rounded-s-none{border-start-start-radius:0;border-end-start-radius:0}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity))}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-foreground\/20{background-color:hsl(var(--foreground)/.2)}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-600:hover{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary\/80:hover{color:hsl(var(--primary)/.8)}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[800px\]{max-width:800px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-16{width:4rem;height:4rem}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-y-10{row-gap:2.5rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:size-full svg{width:100%;height:100%}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/842751e375a96633.css b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/842751e375a96633.css deleted file mode 100644 index c268c8a..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/842751e375a96633.css +++ /dev/null @@ -1,3 +0,0 @@ -*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* -! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com -*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-left-8{left:-2rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-8{grid-column:span 8/span 8}.row-start-2{grid-row-start:2}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-4{margin-left:-1rem}.-mr-2{margin-right:-.5rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-16{width:4rem;height:4rem}.size-32{width:8rem;height:8rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[140px\]{height:140px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[250px\]{height:250px}.h-\[400px\]{height:400px}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-screen{max-height:100vh}.min-h-\[300px\]{min-height:300px}.min-h-\[60px\]{min-height:60px}.min-h-\[calc\(100vh_-_theme\(spacing\.16\)\)\]{min-height:calc(100vh - 4rem)}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[300px\]{width:300px}.w-\[350px\]{width:350px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-10{max-width:2.5rem}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-6{max-width:1.5rem}.max-w-6xl{max-width:72rem}.max-w-\[180px\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\[20px_1fr_20px\]{grid-template-rows:20px 1fr 20px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-1{column-gap:.25rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-e-lg{border-start-end-radius:var(--radius);border-end-end-radius:var(--radius)}.rounded-e-none{border-start-end-radius:0;border-end-end-radius:0}.rounded-s-lg{border-start-start-radius:var(--radius);border-end-start-radius:var(--radius)}.rounded-s-none{border-start-start-radius:0;border-end-start-radius:0}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity,1))}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity,1))}.bg-foreground\/20{background-color:hsl(var(--foreground)/.2)}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity,1))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity,1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity,1))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity,1))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity,1))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity,1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity,1))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity,1))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity,1))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-600:hover{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity,1))}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity,1))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity,1))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary\/80:hover{color:hsl(var(--primary)/.8)}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity,1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity,1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[800px\]{max-width:800px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-16{width:4rem;height:4rem}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:p-6{padding:1.5rem}.lg\:px-4{padding-left:1rem;padding-right:1rem}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-y-10{row-gap:2.5rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:size-full svg{width:100%;height:100%}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/892e517d745330fe.css b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/892e517d745330fe.css new file mode 100644 index 0000000..43c88f7 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/892e517d745330fe.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-left-8{left:-2rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-8{grid-column:span 8/span 8}.row-start-2{grid-row-start:2}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-16{width:4rem;height:4rem}.size-32{width:8rem;height:8rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[140px\]{height:140px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[250px\]{height:250px}.h-\[400px\]{height:400px}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-screen{max-height:100vh}.min-h-\[300px\]{min-height:300px}.min-h-\[60px\]{min-height:60px}.min-h-\[calc\(100vh_-_theme\(spacing\.16\)\)\]{min-height:calc(100vh - 4rem)}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[350px\]{width:350px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-10{max-width:2.5rem}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-6{max-width:1.5rem}.max-w-6xl{max-width:72rem}.max-w-\[180px\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\[20px_1fr_20px\]{grid-template-rows:20px 1fr 20px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-1{column-gap:.25rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity))}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-600:hover{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[800px\]{max-width:800px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-16{width:4rem;height:4rem}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-6{gap:1.5rem}.xl\:gap-y-12{row-gap:3rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/ad2fb857a6697fa7.css b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/ad2fb857a6697fa7.css new file mode 100644 index 0000000..b915dc6 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/ad2fb857a6697fa7.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-left-8{left:-2rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-8{grid-column:span 8/span 8}.row-start-2{grid-row-start:2}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-16{width:4rem;height:4rem}.size-32{width:8rem;height:8rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[140px\]{height:140px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[250px\]{height:250px}.h-\[400px\]{height:400px}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-screen{max-height:100vh}.min-h-\[300px\]{min-height:300px}.min-h-\[60px\]{min-height:60px}.min-h-\[calc\(100vh_-_theme\(spacing\.16\)\)\]{min-height:calc(100vh - 4rem)}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[350px\]{width:350px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-10{max-width:2.5rem}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-6{max-width:1.5rem}.max-w-6xl{max-width:72rem}.max-w-\[180px\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\[20px_1fr_20px\]{grid-template-rows:20px 1fr 20px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-6{gap:1.5rem}.xl\:gap-y-12{row-gap:3rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/c435edae13d59b7f.css b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/c435edae13d59b7f.css new file mode 100644 index 0000000..04b1567 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/c435edae13d59b7f.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-left-8{left:-2rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-8{grid-column:span 8/span 8}.row-start-2{grid-row-start:2}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-16{width:4rem;height:4rem}.size-32{width:8rem;height:8rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[140px\]{height:140px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[250px\]{height:250px}.h-\[400px\]{height:400px}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-screen{max-height:100vh}.min-h-\[300px\]{min-height:300px}.min-h-\[60px\]{min-height:60px}.min-h-\[calc\(100vh_-_theme\(spacing\.16\)\)\]{min-height:calc(100vh - 4rem)}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[350px\]{width:350px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-10{max-width:2.5rem}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-6{max-width:1.5rem}.max-w-6xl{max-width:72rem}.max-w-\[180px\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\[20px_1fr_20px\]{grid-template-rows:20px 1fr 20px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity))}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-6{gap:1.5rem}.xl\:gap-y-12{row-gap:3rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/cc1199d1641b7c0d.css b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/cc1199d1641b7c0d.css new file mode 100644 index 0000000..a98487f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/cc1199d1641b7c0d.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-left-8{left:-2rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-8{grid-column:span 8/span 8}.row-start-2{grid-row-start:2}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-16{width:4rem;height:4rem}.size-32{width:8rem;height:8rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[140px\]{height:140px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[250px\]{height:250px}.h-\[400px\]{height:400px}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-screen{max-height:100vh}.min-h-\[300px\]{min-height:300px}.min-h-\[60px\]{min-height:60px}.min-h-\[calc\(100vh_-_theme\(spacing\.16\)\)\]{min-height:calc(100vh - 4rem)}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[350px\]{width:350px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-10{max-width:2.5rem}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-6{max-width:1.5rem}.max-w-6xl{max-width:72rem}.max-w-\[180px\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\[20px_1fr_20px\]{grid-template-rows:20px 1fr 20px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-1{column-gap:.25rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity))}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-6{gap:1.5rem}.xl\:gap-y-12{row-gap:3rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/f350552ef57e81db.css b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/f350552ef57e81db.css new file mode 100644 index 0000000..12db2fd --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/css/f350552ef57e81db.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:224 71.4% 4.1%;--card:0 0% 100%;--card-foreground:224 71.4% 4.1%;--popover:0 0% 100%;--popover-foreground:224 71.4% 4.1%;--primary:262.1 83.3% 57.8%;--primary-foreground:210 20% 98%;--secondary:220 14.3% 95.9%;--secondary-foreground:220.9 39.3% 11%;--muted:220 14.3% 95.9%;--muted-foreground:220 8.9% 46.1%;--accent:220 14.3% 95.9%;--accent-foreground:220.9 39.3% 11%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 20% 98%;--border:220 13% 91%;--input:220 13% 91%;--ring:262.1 83.3% 57.8%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:224 71.4% 4.1%;--foreground:210 20% 98%;--card:224 71.4% 4.1%;--card-foreground:210 20% 98%;--popover:224 71.4% 4.1%;--popover-foreground:210 20% 98%;--primary:263.4 70% 50.4%;--primary-foreground:210 20% 98%;--secondary:215 27.9% 16.9%;--secondary-foreground:210 20% 98%;--muted:215 27.9% 16.9%;--muted-foreground:217.9 10.6% 64.9%;--accent:215 27.9% 16.9%;--accent-foreground:210 20% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 20% 98%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--ring:263.4 70% 50.4%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-left-8{left:-2rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-8{grid-column:span 8/span 8}.row-start-2{grid-row-start:2}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-16{width:4rem;height:4rem}.size-32{width:8rem;height:8rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[140px\]{height:140px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[250px\]{height:250px}.h-\[400px\]{height:400px}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-screen{max-height:100vh}.min-h-\[300px\]{min-height:300px}.min-h-\[60px\]{min-height:60px}.min-h-\[calc\(100vh_-_theme\(spacing\.16\)\)\]{min-height:calc(100vh - 4rem)}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[350px\]{width:350px}.w-\[40\%\]{width:40%}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-10{max-width:2.5rem}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-6{max-width:1.5rem}.max-w-6xl{max-width:72rem}.max-w-\[180px\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\[20px_1fr_20px\]{grid-template-rows:20px 1fr 20px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-1{column-gap:.25rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity))}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-muted\/40{background-color:hsl(var(--muted)/.4)}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[3rem\]{font-size:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-violet-500{--tw-text-opacity:1;color:rgb(139 92 246/var(--tw-text-opacity))}.text-violet-600{--tw-text-opacity:1;color:rgb(124 58 237/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.text-balance{text-wrap:balance}.\[appearance\:textfield\]{appearance:textfield}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:border-t-0:first-child{border-top-width:0}.first\:pt-0:first-child{padding-top:0}.even\:border-l:nth-child(2n){border-left-width:1px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-emerald-800:hover{--tw-bg-opacity:1;background-color:rgb(6 95 70/var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-orange-600:hover{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.hover\:bg-orange-800:hover{--tw-bg-opacity:1;background-color:rgb(154 52 18/var(--tw-bg-opacity))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-rose-800:hover{--tw-bg-opacity:1;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary\/80:hover{color:hsl(var(--primary)/.8)}.hover\:text-purple-300:hover{--tw-text-opacity:1;color:rgb(216 180 254/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\=true\]\:bg-muted\/50[data-active=true]{background-color:hsl(var(--muted)/.5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[800px\]{max-width:800px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-initial{flex:0 1 auto}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:p-20{padding:5rem}.sm\:p-6{padding:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mr-8{margin-right:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-12{width:3rem;height:3rem}.md\:max-w-\[420px\]{max-width:420px}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:max-w-md{max-width:28rem}.md\:basis-1\/2{flex-basis:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-\[180px_1fr\]{grid-template-columns:180px 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-5{gap:1.25rem}.md\:gap-8{gap:2rem}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:size-16{width:4rem;height:4rem}.lg\:size-48{width:12rem;height:12rem}.lg\:size-6{width:1.5rem;height:1.5rem}.lg\:h-10{height:2.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:max-w-full{max-width:100%}.lg\:basis-1\/3{flex-basis:33.333333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[250px_1fr\]{grid-template-columns:250px 1fr}.lg\:items-center{align-items:center}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-y-0{row-gap:0}.lg\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\:text-\[4rem\]{font-size:4rem}}@media (min-width:1280px){.xl\:size-14{width:3.5rem;height:3.5rem}.xl\:size-6{width:1.5rem;height:1.5rem}.xl\:min-h-\[800px\]{min-height:800px}.xl\:w-\[800px\]{width:800px}.xl\:max-w-xl{max-width:36rem}.xl\:gap-y-10{row-gap:2.5rem}.xl\:p-4{padding:1rem}.xl\:text-2xl{font-size:1.5rem;line-height:2rem}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1536px){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}@font-face{font-family:euclid;src:url(/_next/static/media/72399823edb708a6-s.p.woff2) format("woff2");font-display:swap;font-weight:300;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/a41b42e1a9703195-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/243b6dfb2e48e7ed-s.p.woff2) format("woff2");font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/70a526c127b6fc39-s.p.woff2) format("woff2");font-display:swap;font-weight:600;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/0aa2ebf4cf06f243-s.p.woff2) format("woff2");font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:euclid;src:url(/_next/static/media/cf37f781bdc22339-s.p.woff2) format("woff2");font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:euclid Fallback;src:local("Arial");ascent-override:93.47%;descent-override:25.05%;line-gap-override:0.00%;size-adjust:106.98%}.__className_9dae3d{font-family:euclid,euclid Fallback} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/foihjw1GfMc3_Q4UifuMf/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/foihjw1GfMc3_Q4UifuMf/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/foihjw1GfMc3_Q4UifuMf/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/foihjw1GfMc3_Q4UifuMf/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/foihjw1GfMc3_Q4UifuMf/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/foihjw1GfMc3_Q4UifuMf/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/frO0ttafWiV6D7wDli3QE/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/frO0ttafWiV6D7wDli3QE/_buildManifest.js new file mode 100644 index 0000000..d866089 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/frO0ttafWiV6D7wDli3QE/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:22,errorRate:1e-4,numBits:422,numHashes:14,bitArray:[0,0,0,1,1,1,e,e,r,r,r,r,e,e,r,e,r,r,r,r,e,e,r,r,e,e,e,r,e,r,r,r,r,e,e,r,e,r,e,r,e,e,e,e,e,e,r,e,e,r,r,e,r,e,r,r,r,e,r,r,r,r,e,r,r,r,e,r,r,e,r,r,e,r,e,e,e,e,e,e,e,e,e,r,e,r,e,e,r,r,r,r,r,r,r,r,r,r,e,e,e,r,r,e,e,r,r,r,r,r,e,e,e,e,r,e,r,e,r,e,e,e,r,r,e,r,r,e,e,e,e,e,e,r,r,e,e,e,e,e,r,e,e,r,r,e,r,e,e,e,e,r,r,e,e,e,r,e,e,r,r,r,r,r,e,r,r,e,e,e,e,r,r,r,r,r,r,r,e,e,e,r,r,r,e,r,e,e,r,r,r,r,r,r,r,r,e,e,r,e,r,r,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,r,e,r,e,r,r,e,e,r,e,r,e,e,e,e,r,r,r,r,e,e,r,e,e,e,e,r,r,e,e,e,r,e,e,e,r,r,r,r,r,r,e,r,r,e,r,e,r,r,e,e,e,e,r,r,r,r,e,r,r,e,e,r,e,r,e,e,r,e,e,e,e,e,e,e,r,e,r,r,r,e,r,e,e,r,e,e,e,e,e,r,e,e,r,e,e,r,e,r,e,e,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,e,r,e,e,r,r,e,e,r,r,r,e,e,e,e,e,r,e,r,e,e,r,r,r,r,r,e,r,e,r,e,e,r,e,e,e,e,r,r,r,r,e,r,r,r,r,r,e,r,r,e,r,r,e,r,r,r,r,r,e,r,r,r,r,e,r,e,e,r,e,e,r,e,r,r,r,r,e,r,e,e,e,e,r,e,e,r,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/frO0ttafWiV6D7wDli3QE/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/frO0ttafWiV6D7wDli3QE/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/frO0ttafWiV6D7wDli3QE/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/mbguaWesdL7rDrYOklhNk/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/mbguaWesdL7rDrYOklhNk/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/mbguaWesdL7rDrYOklhNk/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/mbguaWesdL7rDrYOklhNk/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/mbguaWesdL7rDrYOklhNk/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/mbguaWesdL7rDrYOklhNk/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/nSSY82E15mY7-fVwPtOqk/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/nSSY82E15mY7-fVwPtOqk/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/nSSY82E15mY7-fVwPtOqk/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/nSSY82E15mY7-fVwPtOqk/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/nSSY82E15mY7-fVwPtOqk/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/nSSY82E15mY7-fVwPtOqk/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/pWQhJlQuhV__YIe6iMkuR/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/pWQhJlQuhV__YIe6iMkuR/_buildManifest.js new file mode 100644 index 0000000..64643be --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/pWQhJlQuhV__YIe6iMkuR/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:26,errorRate:1e-4,numBits:499,numHashes:14,bitArray:[1,0,1,1,r,r,r,0,r,r,r,0,r,e,r,e,r,r,e,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,r,r,r,r,e,r,r,e,r,r,e,e,r,r,r,e,r,e,r,r,r,r,e,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,r,e,e,e,e,e,r,e,e,r,r,e,e,e,r,r,r,e,r,e,r,e,r,e,r,r,e,r,e,r,r,e,r,r,r,e,e,r,e,r,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,e,r,r,e,r,e,e,e,e,e,e,r,e,e,e,e,r,r,r,r,r,r,e,e,e,e,r,r,r,e,e,e,e,e,r,e,e,r,e,r,e,e,e,r,e,e,r,e,e,r,e,r,r,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,e,e,r,r,r,e,r,e,r,r,r,r,r,r,r,e,e,r,e,e,r,e,r,r,r,r,e,r,r,r,r,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,e,r,r,e,e,r,e,r,r,r,r,r,r,e,e,r,e,r,r,e,r,r,e,r,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,e,r,e,e,r,r,r,r,r,r,r,e,r,r,r,e,e,e,e,e,e,r,e,e,e,e,e,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,r,r,r,e,r,r,e,e,r,r,r,e,r,r,e,e,e,r,r,r,e,e,r,r,r,r,r,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,e,e,r,r,e,e,e,e,e,e,r,e,r,r,e,r,e,r,e,e,r,r,r,r,r,e,e,r,e,e,r,e,r,r,e,r,r,e,e,r,e,e,e,r,r,e,r,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/pWQhJlQuhV__YIe6iMkuR/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/pWQhJlQuhV__YIe6iMkuR/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/pWQhJlQuhV__YIe6iMkuR/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/xeZlQ8jLyR2FPwewgDcLc/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/xeZlQ8jLyR2FPwewgDcLc/_buildManifest.js new file mode 100644 index 0000000..23e62ef --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/xeZlQ8jLyR2FPwewgDcLc/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:22,errorRate:1e-4,numBits:422,numHashes:14,bitArray:[0,0,0,e,1,1,e,e,1,r,r,r,e,e,e,e,r,r,r,r,e,e,r,r,e,e,e,r,e,r,r,r,r,e,e,r,e,r,e,r,e,e,e,e,e,e,r,e,e,r,r,e,r,e,r,r,r,e,r,r,r,r,e,r,r,r,e,r,r,r,r,r,e,r,e,e,e,e,e,e,e,e,e,r,e,r,e,e,r,r,r,r,r,r,r,r,r,r,e,e,e,r,r,e,e,r,r,r,r,r,e,e,e,e,r,e,r,e,r,e,e,e,r,r,e,r,r,e,e,e,e,r,e,r,r,e,e,e,e,e,r,e,r,r,r,e,r,e,e,e,e,r,r,e,e,e,r,e,e,r,r,r,r,r,e,r,r,e,e,e,e,r,r,r,r,r,r,r,e,e,e,r,r,r,e,r,e,e,r,r,r,r,r,r,r,r,e,e,r,e,r,r,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,r,e,r,e,r,r,e,e,r,e,r,e,e,e,e,r,r,r,r,e,e,r,e,e,e,e,r,r,e,e,e,r,e,e,e,r,r,r,r,r,r,r,r,r,e,r,e,r,r,e,e,e,e,r,r,r,r,e,r,r,e,e,r,e,r,e,e,r,r,e,e,e,e,e,e,e,e,r,r,r,e,r,e,e,r,e,e,e,e,e,r,e,e,r,e,e,r,e,r,e,e,r,e,e,e,r,e,e,r,r,r,e,e,e,r,r,r,e,r,e,e,r,r,e,e,r,r,r,e,e,e,e,e,r,e,r,e,e,r,r,r,r,r,e,r,e,e,e,e,r,e,e,e,e,r,e,r,r,e,r,r,r,r,r,e,r,r,e,r,r,e,r,r,r,r,r,e,r,r,r,r,e,r,e,e,r,e,e,r,e,r,r,r,e,e,r,e,e,e,e,r,e,e,r,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-f347b70a71a8047b.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/xeZlQ8jLyR2FPwewgDcLc/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/xeZlQ8jLyR2FPwewgDcLc/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/xeZlQ8jLyR2FPwewgDcLc/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/at_cmd/at_queue_client.sh b/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/at_cmd/at_queue_client.sh index bcd7c77..139190b 100755 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/at_cmd/at_queue_client.sh +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/at_cmd/at_queue_client.sh @@ -2,7 +2,6 @@ # AT Queue Client for OpenWRT # Located in /www/cgi-bin/services/at_queue_client -AUTH_FILE="/tmp/auth_success" QUEUE_DIR="/tmp/at_queue" RESULTS_DIR="$QUEUE_DIR/results" QUEUE_MANAGER="/www/cgi-bin/services/at_queue_manager.sh" @@ -185,35 +184,10 @@ if [ "${SCRIPT_NAME}" != "" ]; then # Output headers only once at the beginning echo "Content-Type: application/json" echo "" - # Get Token from Authorization Header - TOKEN="${HTTP_AUTHORIZATION}" - if [ ! -f $AUTH_FILE ]; then - output_json "{\"error\":\"Unauthenticated Request\"}" "0" - exit 1 - fi - - if [ -z "$TOKEN" ] || "${TOKEN}" = "" || [ $(grep "${TOKEN}" "${AUTH_FILE}" | wc -l) -eq 0 ]; then - output_json "{\"error\":\"Not Authorized\"}" "0" - exit 1 - fi - - # Check if token is within 2 hours - TOKEN_LINE=$(grep "${TOKEN}" "${AUTH_FILE}") - TOKEN_DATE=$(echo "$TOKEN_LINE" | awk '{print $1}' | sed 's/T/ /') - TOKEN_TIME=$(date -d "$TOKEN_DATE" +%s 2>/dev/null) - NOW_TIME=$(date +%s) - MAX_AGE=$((2 * 3600)) # 2 hours in seconds - - if [ -z "$TOKEN_TIME" ] || [ $((NOW_TIME - TOKEN_TIME)) -gt $MAX_AGE ]; then - output_json "{\"error\":\"Token expired\"}" "0" - # Cleanup/Remove token from file - sed -i -e "s/.*${TOKEN}.*//g" /tmp/auth_success 2>/dev/null - exit 1 - fi - + # Parse query string eval $(echo "$QUERY_STRING" | sed 's/&/;/g') - + # Handle different actions if [ -n "$command_id" ]; then # Get result for specific command ID @@ -222,13 +196,13 @@ if [ "${SCRIPT_NAME}" != "" ]; then # URL decode and normalize the command command=$(urldecode "$command") command=$(normalize_at_command "$command") - + # Check if it's a valid AT command if echo "$command" | grep -qi "^AT"; then # Submit command and get response response=$(submit_command "$command") cmd_id=$(get_command_id "$response") - + if [ "$wait" = "1" ]; then if [ -n "$cmd_id" ]; then wait_for_completion "$cmd_id" "${timeout:-180}" "0" # Don't show headers diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/auth.sh b/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/auth.sh index 949c83e..dc53c38 100755 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/auth.sh +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/auth.sh @@ -9,7 +9,7 @@ read -r POST_DATA # Debug log for generated hash DEBUG_LOG="/tmp/auth.log" -AUTH_FILE="/tmp/auth_success" + # Extract the password from POST data (URL encoded) USER="root" INPUT_PASSWORD=$(echo "$POST_DATA" | grep -o 'password=[^&]*' | cut -d= -f2-) @@ -56,34 +56,7 @@ printf "Generated hash: %s\n" "$GENERATED_HASH" >> "$DEBUG_LOG" # Compare the generated hash with the one in the shadow file if [ "$GENERATED_HASH" = "$USER_HASH" ]; then - TOKEN=$(head -c 16 /dev/urandom | hexdump -v -e '/1 "%02x"') - CREATED_DATE=$(date +"%Y-%m-%dT%H:%M:%S") - touch ${AUTH_FILE} - echo "${CREATED_DATE} ${TOKEN}" >> ${AUTH_FILE} - echo "" >> ${AUTH_FILE} - echo "{\"state\":\"success\",\"token\":\"${TOKEN}\"}" + echo '{"state":"success"}' else - # Remove token from file - if [ -n ${TOKEN} ]; then - sed -i -e "s/.*${TOKEN}.*//g" ${AUTH_FILE} 2>/dev/null - fi echo '{"state":"failed", "message":"Authentication failed"}' -fi - -# AUTH_FILE cleanup process, Remove any token lines older than 2 hours from AUTH_FILE -MAX_AGE=$((2 * 3600)) # 2 hours in seconds -NOW_TIME=$(date +%s) -TMP_FILE=$(mktemp) -while read -r line; do - if [ -n "$(echo "$line" | tr -d '[:space:]')" ]; then - # Extract the date from the line and convert it to a timestamp - TOKEN_DATE=$(echo "$line" | awk '{print $1}' | sed 's/T/ /') - TOKEN_TIME=$(date -d "$TOKEN_DATE" +%s 2>/dev/null) - # If date is valid and not older than MAX_AGE, keep the line - if [ -n "$TOKEN_TIME" ] && [ $((NOW_TIME - TOKEN_TIME)) -le $MAX_AGE ]; then - echo "$line" >> "$TMP_FILE" - fi - fi -done < "$AUTH_FILE" - -mv "$TMP_FILE" "$AUTH_FILE" \ No newline at end of file +fi \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/experimental/cell_scanner/clear_scan.sh b/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/experimental/cell_scanner/clear_scan.sh deleted file mode 100644 index 72ebc64..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/experimental/cell_scanner/clear_scan.sh +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/sh - -# Set content type to JSON -echo "Content-type: application/json" -echo "" - -# Configuration -QUEUE_DIR="/tmp/at_queue" -RESULTS_DIR="$QUEUE_DIR/results" -RESULT_FILE="/tmp/qscan_result.json" -PID_FILE="/tmp/cell_scan.pid" -TOKEN_FILE="$QUEUE_DIR/token" - -# Function to log messages -log_message() { - local level="${2:-info}" - logger -t at_queue -p "daemon.$level" "check_scan: $1" -} - -# Function to output JSON response -output_json() { - local status="$1" - local message="$2" - - if [ "$status" = "success" ] && [ -f "$RESULT_FILE" ]; then - # Return the contents of the result file - cat "$RESULT_FILE" - else - printf '{"status":"%s","message":"%s","timestamp":"","output":""}\n' "$status" "$message" - fi -} - -# Check for scan token holder -check_token_holder() { - if [ -f "$TOKEN_FILE" ]; then - local current_holder=$(cat "$TOKEN_FILE" | jsonfilter -e '@.id' 2>/dev/null) - if [ -n "$current_holder" ] && echo "$current_holder" | grep -q "CELL_SCAN"; then - log_message "Cell scan token is active: $current_holder" "debug" - return 0 - fi - fi - return 1 -} - -# Check if a scan is already in progress -check_scan_progress() { - # First check PID file - if [ -f "$PID_FILE" ]; then - pid=$(cat "$PID_FILE") - if kill -0 "$pid" 2>/dev/null; then - log_message "Scan in progress (PID: $pid)" "info" - output_json "running" "Scan in progress" - exit 0 - else - log_message "Removing stale PID file" "warn" - rm -f "$PID_FILE" - fi - fi - - # Also check token holder - if check_token_holder; then - log_message "Scan in progress (Token active)" "info" - output_json "running" "Scan in progress (Token active)" - exit 0 - fi -} - -# Check for existing results -check_results() { - if [ -f "$RESULT_FILE" ]; then - rm -f "$RESULT_FILE" # Remove the result file if it exists - log_message "Result file removed" "info" - output_json "success" "Scan results removed" - exit 0 - else - log_message "No result file found to clear" "info" - output_json "success" "No result file to clear" - exit 0 - fi -} - -# Main execution -{ - # First check if a scan is in progress - check_scan_progress - - # Then check for existing results - check_results - - # If no results and no running scan, indicate idle state - log_message "No active scan or recent results" "info" - output_json "success" "No active scan" - exit 0 -} || { - # Error handler - log_message "Failed to remove scan results" "error" - output_json "error" "Failed to remove scan results" - exit 1 -} \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/logout.sh b/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/logout.sh deleted file mode 100644 index ad4e041..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/logout.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -# Get token from Request Header Authorization -USER_TOKEN="${HTTP_AUTHORIZATION}" -# Remove token from file -sed -i -e "s/.*${USER_TOKEN}.*//g" /tmp/auth_success 2>/dev/null - -echo "Content-Type: application/json" -echo "Cache-Control: no-cache, no-store, must-revalidate" -echo "Pragma: no-cache" -echo "Expires: 0" -echo "" - - - -echo '{"state":"success", "message":"Logged out successfully"}' \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/about/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/about/index.html index 873bbb9..3487ad6 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/about/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/about/index.html @@ -1 +1 @@ -QuecManager
            \ No newline at end of file +QuecManager
              \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/about/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/about/index.txt index 4f21538..a0e36d5 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/about/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/about/index.txt @@ -1,19 +1,19 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[57033,[],"ClientPageRoot"] -b:I[27548,["1365","static/chunks/1365-cc796f60bf34651a.js","3188","static/chunks/3188-db9106725bf61f37.js","6655","static/chunks/app/dashboard/about/page-3389922e77238235.js"],"default"] -e:I[86213,[],"OutletBoundary"] -10:I[86213,[],"MetadataBoundary"] -12:I[86213,[],"ViewportBoundary"] -14:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","about",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["about",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["about",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","about","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$La",null,{"Component":"$b","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@c","$@d"]}],null,["$","$Le",null,{"children":"$Lf"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","xyjFIfqgVDZ5lZyMJwzuT",{"children":[["$","$L10",null,{"children":"$L11"}],["$","$L12",null,{"children":"$L13"}],null]}]]}],false]],"m":"$undefined","G":["$14","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[5329,[],"ClientPageRoot"] +b:I[51228,["7780","static/chunks/7780-f325b2d7864a75f9.js","9679","static/chunks/9679-2e6404ffd44175ca.js","6655","static/chunks/app/dashboard/about/page-9a36e9af0364bb3a.js"],"default"] +e:I[99165,[],"OutletBoundary"] +10:I[99165,[],"MetadataBoundary"] +12:I[99165,[],"ViewportBoundary"] +14:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","about",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["about",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["about",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","about","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$La",null,{"Component":"$b","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@c","$@d"]}],null,["$","$Le",null,{"children":"$Lf"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","dPXCFq7xoyml9KsFS7paP",{"children":[["$","$L10",null,{"children":"$L11"}],["$","$L12",null,{"children":"$L13"}],null]}]]}],false]],"m":"$undefined","G":["$14","$undefined"],"s":false,"S":true} 9:{} c:{} d:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/at-terminal/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/at-terminal/index.html index 4918d96..98dc059 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/at-terminal/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/at-terminal/index.html @@ -1 +1 @@ -QuecManager
                \ No newline at end of file +QuecManager
                  \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/at-terminal/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/at-terminal/index.txt index 82e55c2..9ae0d2d 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/at-terminal/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/at-terminal/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[22235,["1028","static/chunks/1028-d49624a1d63e734e.js","4277","static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[5319,["1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","3188","static/chunks/3188-db9106725bf61f37.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","8757","static/chunks/app/dashboard/advanced-settings/at-terminal/page-0961218bcd404d9f.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","advanced-settings","at-terminal",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["at-terminal",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["at-terminal",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children","at-terminal","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","poSmAF5tpJyI_6DA1cjyY",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[74627,["9477","static/chunks/9477-4478381adb29cdff.js","4277","static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[30233,["7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","9464","static/chunks/9464-54895f8e78c474f0.js","9679","static/chunks/9679-2e6404ffd44175ca.js","564","static/chunks/564-bce78b0f1af68d0a.js","8757","static/chunks/app/dashboard/advanced-settings/at-terminal/page-983e4f09917b607b.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","advanced-settings","at-terminal",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["at-terminal",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["at-terminal",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children","at-terminal","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","ZUSnZvYxikS8Dl3TKWpk2",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/connectivity/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/connectivity/index.html index 2cf4528..61369a2 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/connectivity/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/connectivity/index.html @@ -1 +1 @@ -QuecManager
                    \ No newline at end of file +QuecManager
                      \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/connectivity/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/connectivity/index.txt index 2510947..cd85d52 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/connectivity/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/connectivity/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[22235,["1028","static/chunks/1028-d49624a1d63e734e.js","4277","static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[93914,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9975","static/chunks/9975-17560cd1b51ce160.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","3914","static/chunks/3914-7ed615bd3fa6fffd.js","9548","static/chunks/app/dashboard/advanced-settings/connectivity/page-5c3c7375e5a7c972.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","advanced-settings","connectivity",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["connectivity",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["connectivity",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children","connectivity","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","wAZPKsw5juYXDxQqgDDGD",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[74627,["9477","static/chunks/9477-4478381adb29cdff.js","4277","static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[76592,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3494","static/chunks/3494-d763154adf622bee.js","564","static/chunks/564-bce78b0f1af68d0a.js","6592","static/chunks/6592-64b46edd0220361b.js","9548","static/chunks/app/dashboard/advanced-settings/connectivity/page-3e4d65d2e857a322.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","advanced-settings","connectivity",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["connectivity",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["connectivity",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children","connectivity","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","V9ElePi4cLLmlsGqhRgUQ",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/index.html index 3deb449..8db0092 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/index.html @@ -1 +1 @@ -QuecManager
                        \ No newline at end of file +QuecManager
                          \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/index.txt index 1476b1c..c9bf290 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/index.txt @@ -1,19 +1,19 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[22235,["1028","static/chunks/1028-d49624a1d63e734e.js","4277","static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js"],"default"] -c:I[93914,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9975","static/chunks/9975-17560cd1b51ce160.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","3914","static/chunks/3914-7ed615bd3fa6fffd.js","5226","static/chunks/app/dashboard/advanced-settings/page-b8b0ebf6236e4c8d.js"],"default"] -d:I[86213,[],"OutletBoundary"] -f:I[86213,[],"MetadataBoundary"] -11:I[86213,[],"ViewportBoundary"] -13:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","advanced-settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{}],null,["$","$Ld",null,{"children":"$Le"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","veM6Mwm6bTif6P0e5XZ3A",{"children":[["$","$Lf",null,{"children":"$L10"}],["$","$L11",null,{"children":"$L12"}],null]}]]}],false]],"m":"$undefined","G":["$13","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[74627,["9477","static/chunks/9477-4478381adb29cdff.js","4277","static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js"],"default"] +c:I[76592,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3494","static/chunks/3494-d763154adf622bee.js","564","static/chunks/564-bce78b0f1af68d0a.js","6592","static/chunks/6592-64b46edd0220361b.js","5226","static/chunks/app/dashboard/advanced-settings/page-c2009dd8dd08fa16.js"],"default"] +d:I[99165,[],"OutletBoundary"] +f:I[99165,[],"MetadataBoundary"] +11:I[99165,[],"ViewportBoundary"] +13:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","advanced-settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{}],null,["$","$Ld",null,{"children":"$Le"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","cfxo5zAnwYQHEqYZzDDft",{"children":[["$","$Lf",null,{"children":"$L10"}],["$","$L11",null,{"children":"$L12"}],null]}]]}],false]],"m":"$undefined","G":["$13","$undefined"],"s":false,"S":true} 9:{} b:{} 12:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/mtu/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/mtu/index.html index 1475b6b..bd6b3af 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/mtu/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/mtu/index.html @@ -1 +1 @@ -QuecManager
                            \ No newline at end of file +QuecManager
                              \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/mtu/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/mtu/index.txt index dc1dc44..20acca0 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/mtu/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/mtu/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[22235,["1028","static/chunks/1028-d49624a1d63e734e.js","4277","static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[99019,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","3669","static/chunks/app/dashboard/advanced-settings/mtu/page-68c4182f81b42ce6.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","advanced-settings","mtu",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["mtu",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["mtu",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children","mtu","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","CA1jAcnaQjv3X9f7arKK9",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[74627,["9477","static/chunks/9477-4478381adb29cdff.js","4277","static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[34819,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","3669","static/chunks/app/dashboard/advanced-settings/mtu/page-d29a62373689eade.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","advanced-settings","mtu",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["mtu",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["mtu",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children","mtu","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","O4xSrzCW3EV5h_9KKmMtI",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/ttl-settings/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/ttl-settings/index.html index ac61e69..d47fad5 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/ttl-settings/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/ttl-settings/index.html @@ -1 +1 @@ -QuecManager
                                \ No newline at end of file +QuecManager
                                  \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/ttl-settings/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/ttl-settings/index.txt index 140dece..4478842 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/ttl-settings/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/advanced-settings/ttl-settings/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[22235,["1028","static/chunks/1028-d49624a1d63e734e.js","4277","static/chunks/app/dashboard/advanced-settings/layout-18f2f11ad6e5add3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[48655,["1365","static/chunks/1365-cc796f60bf34651a.js","4481","static/chunks/app/dashboard/advanced-settings/ttl-settings/page-69b6ab273a4e5892.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","advanced-settings","ttl-settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["ttl-settings",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["ttl-settings",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children","ttl-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","DjSNd_q2ja9mIHbP_MmIm",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[74627,["9477","static/chunks/9477-4478381adb29cdff.js","4277","static/chunks/app/dashboard/advanced-settings/layout-1f0d7c2c8452d57c.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[83143,["7780","static/chunks/7780-f325b2d7864a75f9.js","1630","static/chunks/1630-ef39e3282b1968a7.js","4481","static/chunks/app/dashboard/advanced-settings/ttl-settings/page-2fa21ee6005dc743.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","advanced-settings","ttl-settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["advanced-settings",{"children":["ttl-settings",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["advanced-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["ttl-settings",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","advanced-settings","children","ttl-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","e1Mp0EmtpVIIGsRxTIY8u",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/band-locking/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/band-locking/index.html index 4db039c..f3bb8d5 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/band-locking/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/band-locking/index.html @@ -1 +1 @@ -QuecManager
                                    \ No newline at end of file +QuecManager
                                      \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/band-locking/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/band-locking/index.txt index 689700c..ed16231 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/band-locking/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/band-locking/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[31345,["1028","static/chunks/1028-d49624a1d63e734e.js","347","static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[70792,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","6281","static/chunks/6281-72961a4c8126fa1a.js","1942","static/chunks/app/dashboard/cell-settings/band-locking/page-2c5cd6ec32a5aed7.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","cell-settings","band-locking",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["band-locking",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["band-locking",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","band-locking","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","De29a6NQ-IIhpf5qtADpg",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[83593,["9477","static/chunks/9477-4478381adb29cdff.js","347","static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[75808,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","2494","static/chunks/2494-1b55b4db233d7e31.js","1942","static/chunks/app/dashboard/cell-settings/band-locking/page-756ab588a4b45ef7.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","cell-settings","band-locking",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["band-locking",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["band-locking",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","band-locking","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","nMsm0d_74vQ7B4mHVWYth",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/basic-settings/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/basic-settings/index.html index 0eafe69..5f752c1 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/basic-settings/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/basic-settings/index.html @@ -1 +1 @@ -QuecManager
                                        \ No newline at end of file +QuecManager
                                          \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/basic-settings/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/basic-settings/index.txt index 89dd03c..1c9e4a6 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/basic-settings/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/basic-settings/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[31345,["1028","static/chunks/1028-d49624a1d63e734e.js","347","static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[49575,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9975","static/chunks/9975-17560cd1b51ce160.js","9710","static/chunks/9710-a27eac95e49499fd.js","2545","static/chunks/app/dashboard/cell-settings/basic-settings/page-8d2e397d59545406.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","cell-settings","basic-settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["basic-settings",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["basic-settings",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","basic-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","u4QaWtWpSC0ET9dZas8Us",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[83593,["9477","static/chunks/9477-4478381adb29cdff.js","347","static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[15469,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3494","static/chunks/3494-d763154adf622bee.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2545","static/chunks/app/dashboard/cell-settings/basic-settings/page-1ccd86184fde8732.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","cell-settings","basic-settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["basic-settings",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["basic-settings",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","basic-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","qf1t2AM6O2uYZWxNH-kib",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/cell-locking/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/cell-locking/index.html index 1921d7d..5a130fc 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/cell-locking/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/cell-locking/index.html @@ -1 +1 @@ -QuecManager
                                            \ No newline at end of file +QuecManager
                                              \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/cell-locking/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/cell-locking/index.txt index 3f91f9c..364f877 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/cell-locking/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/cell-locking/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[31345,["1028","static/chunks/1028-d49624a1d63e734e.js","347","static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[68373,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9975","static/chunks/9975-17560cd1b51ce160.js","6586","static/chunks/6586-9aecbb20af42bc47.js","3838","static/chunks/3838-5ba37d257cf1cf08.js","5665","static/chunks/app/dashboard/cell-settings/cell-locking/page-c29bc828653b6a24.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","cell-settings","cell-locking",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["cell-locking",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["cell-locking",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","cell-locking","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","hYSKUzEqAbca7SmoixOCC",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[83593,["9477","static/chunks/9477-4478381adb29cdff.js","347","static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[87133,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3494","static/chunks/3494-d763154adf622bee.js","2487","static/chunks/2487-1232e926f8daa8b5.js","1209","static/chunks/1209-e502eb4151bc1e9a.js","5665","static/chunks/app/dashboard/cell-settings/cell-locking/page-b4fce1314caa0d3f.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","cell-settings","cell-locking",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["cell-locking",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["cell-locking",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","cell-locking","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","WJzqskdij_jc9uJoOfA-V",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/imei-mangling/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/imei-mangling/index.html index 2204409..0671dc3 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/imei-mangling/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/imei-mangling/index.html @@ -1 +1 @@ -QuecManager
                                                \ No newline at end of file +QuecManager
                                                  \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/imei-mangling/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/imei-mangling/index.txt index 3b9e988..b375dd7 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/imei-mangling/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/imei-mangling/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[31345,["1028","static/chunks/1028-d49624a1d63e734e.js","347","static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[15151,["1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","9065","static/chunks/app/dashboard/cell-settings/imei-mangling/page-812b4a781a9c8d64.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","cell-settings","imei-mangling",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["imei-mangling",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["imei-mangling",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","imei-mangling","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","xcH2X1KbB8vkQnaEXEyOu",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[83593,["9477","static/chunks/9477-4478381adb29cdff.js","347","static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[70231,["7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","8112","static/chunks/8112-8c3d22fe142f8630.js","9065","static/chunks/app/dashboard/cell-settings/imei-mangling/page-5ee4a3e3cfdef0c5.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","cell-settings","imei-mangling",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["imei-mangling",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["imei-mangling",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","imei-mangling","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","p8T2hgLW80OvrCgjvjlM0",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/index.html index 1d1d407..b501f12 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/index.html @@ -1 +1 @@ -QuecManager
                                                    \ No newline at end of file +QuecManager
                                                      \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/index.txt index 04777ec..b2f78c5 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/index.txt @@ -1,19 +1,19 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[31345,["1028","static/chunks/1028-d49624a1d63e734e.js","347","static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js"],"default"] -c:I[68373,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9975","static/chunks/9975-17560cd1b51ce160.js","6586","static/chunks/6586-9aecbb20af42bc47.js","3838","static/chunks/3838-5ba37d257cf1cf08.js","4808","static/chunks/app/dashboard/cell-settings/page-a868a91a4ba4734d.js"],"default"] -d:I[86213,[],"OutletBoundary"] -f:I[86213,[],"MetadataBoundary"] -11:I[86213,[],"ViewportBoundary"] -13:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","cell-settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{}],null,["$","$Ld",null,{"children":"$Le"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","xv1gQqRV3fKbQiEh_rT_3",{"children":[["$","$Lf",null,{"children":"$L10"}],["$","$L11",null,{"children":"$L12"}],null]}]]}],false]],"m":"$undefined","G":["$13","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[83593,["9477","static/chunks/9477-4478381adb29cdff.js","347","static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js"],"default"] +c:I[87133,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3494","static/chunks/3494-d763154adf622bee.js","2487","static/chunks/2487-1232e926f8daa8b5.js","1209","static/chunks/1209-e502eb4151bc1e9a.js","4808","static/chunks/app/dashboard/cell-settings/page-0de39fdeb0f89b69.js"],"default"] +d:I[99165,[],"OutletBoundary"] +f:I[99165,[],"MetadataBoundary"] +11:I[99165,[],"ViewportBoundary"] +13:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","cell-settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{}],null,["$","$Ld",null,{"children":"$Le"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","Hh6oRIuc5Yohl3r2AdvPn",{"children":[["$","$Lf",null,{"children":"$L10"}],["$","$L11",null,{"children":"$L12"}],null]}]]}],false]],"m":"$undefined","G":["$13","$undefined"],"s":false,"S":true} 9:{} b:{} 12:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/sms/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/sms/index.html index 4af737a..3ff2145 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/sms/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/sms/index.html @@ -1 +1 @@ -QuecManager
                                                        \ No newline at end of file +QuecManager
                                                          \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/sms/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/sms/index.txt index ea2e583..0226820 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/sms/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/cell-settings/sms/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[31345,["1028","static/chunks/1028-d49624a1d63e734e.js","347","static/chunks/app/dashboard/cell-settings/layout-812d37cd9b7702e3.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[8083,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","8465","static/chunks/f4898fe8-d8671d2103ca807a.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","3188","static/chunks/3188-db9106725bf61f37.js","4346","static/chunks/4346-63dd0cdf0b379621.js","5509","static/chunks/5509-b63c60a753b70e7c.js","3358","static/chunks/app/dashboard/cell-settings/sms/page-4d83fdaecde7cace.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","cell-settings","sms",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["sms",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["sms",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","sms","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","lKRjXEgcIVZ4NESQcvv06",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[83593,["9477","static/chunks/9477-4478381adb29cdff.js","347","static/chunks/app/dashboard/cell-settings/layout-f26afaa8b880d2b0.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[91557,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","1217","static/chunks/0d696766-f8433f3082fb824f.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9679","static/chunks/9679-2e6404ffd44175ca.js","7510","static/chunks/7510-b5c5a53e21a04c67.js","9951","static/chunks/9951-3ddc36507bfb3179.js","3358","static/chunks/app/dashboard/cell-settings/sms/page-653c20c7989a9d8c.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","cell-settings","sms",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["cell-settings",{"children":["sms",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["cell-settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["sms",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","cell-settings","children","sms","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","DB3R0mYq09xTJ9X-ePbM_",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/cell-scanner/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/cell-scanner/index.html index 7731f59..273fc2f 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/cell-scanner/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/cell-scanner/index.html @@ -1 +1 @@ -QuecManager
                                                            \ No newline at end of file +QuecManager
                                                              \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/cell-scanner/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/cell-scanner/index.txt index bd74696..6cabb39 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/cell-scanner/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/cell-scanner/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[76641,["1028","static/chunks/1028-d49624a1d63e734e.js","3075","static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[27018,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","3873","static/chunks/3d47b92a-446f204e6fed896c.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","3188","static/chunks/3188-db9106725bf61f37.js","3740","static/chunks/3740-cc1b7d8d60f56d79.js","3944","static/chunks/3944-ffb1c1d96801233d.js","5014","static/chunks/app/dashboard/experimental/cell-scanner/page-a05961e226ae9f47.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","experimental","cell-scanner",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["cell-scanner",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["cell-scanner",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","cell-scanner","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","Zr4jjI_YIRbW3R_bQ_AZ3",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[31753,["9477","static/chunks/9477-4478381adb29cdff.js","3075","static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[88388,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","2101","static/chunks/b1b46485-5c61721f784038c7.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","9679","static/chunks/9679-2e6404ffd44175ca.js","3095","static/chunks/3095-9b41897dca47b121.js","3453","static/chunks/3453-1e7922659f5b386a.js","5668","static/chunks/5668-55d6f43ee8c71ac2.js","5014","static/chunks/app/dashboard/experimental/cell-scanner/page-d1a137fe638995d6.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","experimental","cell-scanner",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["cell-scanner",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["cell-scanner",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","cell-scanner","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","xQ0mSQ2s9uan9-mJr5qdw",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/freq-calculator/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/freq-calculator/index.html index e89284c..8863de6 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/freq-calculator/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/freq-calculator/index.html @@ -1 +1 @@ -QuecManager
                                                                \ No newline at end of file +QuecManager
                                                                  \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/freq-calculator/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/freq-calculator/index.txt index 3ac8df4..2b0fb99 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/freq-calculator/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/freq-calculator/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[76641,["1028","static/chunks/1028-d49624a1d63e734e.js","3075","static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[88596,["1365","static/chunks/1365-cc796f60bf34651a.js","3740","static/chunks/3740-cc1b7d8d60f56d79.js","666","static/chunks/app/dashboard/experimental/freq-calculator/page-b1970f3a251dc10f.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","experimental","freq-calculator",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["freq-calculator",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["freq-calculator",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","freq-calculator","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","FEP3f6Ng0mpfzEjZIECk1",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[31753,["9477","static/chunks/9477-4478381adb29cdff.js","3075","static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[14332,["7780","static/chunks/7780-f325b2d7864a75f9.js","3453","static/chunks/3453-1e7922659f5b386a.js","5755","static/chunks/5755-a5bfdac2a1c07373.js","666","static/chunks/app/dashboard/experimental/freq-calculator/page-f544f8ea6da96f62.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","experimental","freq-calculator",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["freq-calculator",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["freq-calculator",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","freq-calculator","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","BLOkw7SKuEsLJpXNR40as",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/index.html index 6faacab..8d24960 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/index.html @@ -1 +1 @@ -QuecManager
                                                                    \ No newline at end of file +QuecManager
                                                                      \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/index.txt index 988c629..ea0023b 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/index.txt @@ -1,19 +1,19 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[76641,["1028","static/chunks/1028-d49624a1d63e734e.js","3075","static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js"],"default"] -c:I[37123,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9975","static/chunks/9975-17560cd1b51ce160.js","9710","static/chunks/9710-a27eac95e49499fd.js","7123","static/chunks/7123-5ee642dc1491326b.js","7040","static/chunks/app/dashboard/experimental/page-a92b6b304ef59e93.js"],"default"] -d:I[86213,[],"OutletBoundary"] -f:I[86213,[],"MetadataBoundary"] -11:I[86213,[],"ViewportBoundary"] -13:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","experimental",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{}],null,["$","$Ld",null,{"children":"$Le"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","geBDnBqpd5FxtWvBkmrHy",{"children":[["$","$Lf",null,{"children":"$L10"}],["$","$L11",null,{"children":"$L12"}],null]}]]}],false]],"m":"$undefined","G":["$13","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[31753,["9477","static/chunks/9477-4478381adb29cdff.js","3075","static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js"],"default"] +c:I[79824,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3494","static/chunks/3494-d763154adf622bee.js","3048","static/chunks/3048-9766c902a7fac6d2.js","9824","static/chunks/9824-36f7c2c056010bce.js","7040","static/chunks/app/dashboard/experimental/page-d9c08fdd6716e62a.js"],"default"] +d:I[99165,[],"OutletBoundary"] +f:I[99165,[],"MetadataBoundary"] +11:I[99165,[],"ViewportBoundary"] +13:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","experimental",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{}],null,["$","$Ld",null,{"children":"$Le"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","7VM92Vq5ZXPt5ZmHj-Wob",{"children":[["$","$Lf",null,{"children":"$L10"}],["$","$L11",null,{"children":"$L12"}],null]}]]}],false]],"m":"$undefined","G":["$13","$undefined"],"s":false,"S":true} 9:{} b:{} 12:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/keep-alive/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/keep-alive/index.html index a01c208..ef64738 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/keep-alive/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/keep-alive/index.html @@ -1 +1 @@ -QuecManager
                                                                        \ No newline at end of file +QuecManager
                                                                          \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/keep-alive/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/keep-alive/index.txt index e710ea2..4754548 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/keep-alive/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/keep-alive/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[76641,["1028","static/chunks/1028-d49624a1d63e734e.js","3075","static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[96543,["1365","static/chunks/1365-cc796f60bf34651a.js","3376","static/chunks/app/dashboard/experimental/keep-alive/page-612392d5cbe5676d.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","experimental","keep-alive",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["keep-alive",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["keep-alive",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","keep-alive","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","-M0353Sv1YdiaZ3S56Pi6",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[31753,["9477","static/chunks/9477-4478381adb29cdff.js","3075","static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[53302,["7780","static/chunks/7780-f325b2d7864a75f9.js","3376","static/chunks/app/dashboard/experimental/keep-alive/page-5758af6e2129c2c3.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","experimental","keep-alive",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["keep-alive",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["keep-alive",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","keep-alive","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","01GEzXMaJwvES0CSX9GcI",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecprofiles/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecprofiles/index.html index f87de8a..e0bdbd5 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecprofiles/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecprofiles/index.html @@ -1 +1 @@ -QuecManager
                                                                            \ No newline at end of file +QuecManager
                                                                              \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecprofiles/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecprofiles/index.txt index fd284f5..8d60fec 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecprofiles/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecprofiles/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[76641,["1028","static/chunks/1028-d49624a1d63e734e.js","3075","static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[4161,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9975","static/chunks/9975-17560cd1b51ce160.js","4346","static/chunks/4346-63dd0cdf0b379621.js","6586","static/chunks/6586-9aecbb20af42bc47.js","9473","static/chunks/app/dashboard/experimental/quecprofiles/page-297321f02a1d8550.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","experimental","quecprofiles",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["quecprofiles",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["quecprofiles",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","quecprofiles","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","yFLeifo41eGHS5Og0DPLQ",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[31753,["9477","static/chunks/9477-4478381adb29cdff.js","3075","static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[33990,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3494","static/chunks/3494-d763154adf622bee.js","7510","static/chunks/7510-b5c5a53e21a04c67.js","2487","static/chunks/2487-1232e926f8daa8b5.js","9473","static/chunks/app/dashboard/experimental/quecprofiles/page-56d0dff104c9b5a6.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","experimental","quecprofiles",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["quecprofiles",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["quecprofiles",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","quecprofiles","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","vXLxQdNczqJq7d9ftR18J",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecwatch/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecwatch/index.html index b90ab84..8879133 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecwatch/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecwatch/index.html @@ -1 +1 @@ -QuecManager
                                                                                \ No newline at end of file +QuecManager
                                                                                  \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecwatch/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecwatch/index.txt index 746c91e..aaf6a82 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecwatch/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/experimental/quecwatch/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[76641,["1028","static/chunks/1028-d49624a1d63e734e.js","3075","static/chunks/app/dashboard/experimental/layout-52a07b448b671e38.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[37123,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9975","static/chunks/9975-17560cd1b51ce160.js","9710","static/chunks/9710-a27eac95e49499fd.js","7123","static/chunks/7123-5ee642dc1491326b.js","6010","static/chunks/app/dashboard/experimental/quecwatch/page-c8fec59c49351f2d.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","experimental","quecwatch",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["quecwatch",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["quecwatch",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","quecwatch","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","M5fl4lx6-9SrfbtYuEYfy",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[31753,["9477","static/chunks/9477-4478381adb29cdff.js","3075","static/chunks/app/dashboard/experimental/layout-08630c8d28f03f51.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[79824,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3494","static/chunks/3494-d763154adf622bee.js","3048","static/chunks/3048-9766c902a7fac6d2.js","9824","static/chunks/9824-36f7c2c056010bce.js","6010","static/chunks/app/dashboard/experimental/quecwatch/page-2778658dc79ef969.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","experimental","quecwatch",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["experimental",{"children":["quecwatch",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["experimental",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["quecwatch",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","experimental","children","quecwatch","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","4-evxwd7l0Wf4GOwgLxJb",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/home/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/home/index.html index 442865b..e27214c 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/home/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/home/index.html @@ -1 +1 @@ -QuecManager
                                                                                    \ No newline at end of file +QuecManager
                                                                                      \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/home/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/home/index.txt index 4779f7e..a9e8401 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/home/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/home/index.txt @@ -1,19 +1,19 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[57033,[],"ClientPageRoot"] -b:I[55885,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","8087","static/chunks/0e762574-49b5b66e2a33644a.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","9710","static/chunks/9710-a27eac95e49499fd.js","4094","static/chunks/4094-7a548ce559af5ece.js","1554","static/chunks/1554-2ea0a7d1aa4bef3e.js","6665","static/chunks/app/dashboard/home/page-968670dca7ea8ab7.js"],"default"] -e:I[86213,[],"OutletBoundary"] -10:I[86213,[],"MetadataBoundary"] -12:I[86213,[],"ViewportBoundary"] -14:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","home",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["home",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["home",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","home","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$La",null,{"Component":"$b","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@c","$@d"]}],null,["$","$Le",null,{"children":"$Lf"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","bdU0Uwnn-0f9qLddBF6l3",{"children":[["$","$L10",null,{"children":"$L11"}],["$","$L12",null,{"children":"$L13"}],null]}]]}],false]],"m":"$undefined","G":["$14","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[5329,[],"ClientPageRoot"] +b:I[42988,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","9649","static/chunks/47820753-41ce4d8e11c7c32d.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","3048","static/chunks/3048-9766c902a7fac6d2.js","1074","static/chunks/1074-d79f1d7c29de56fa.js","3095","static/chunks/3095-9b41897dca47b121.js","9563","static/chunks/9563-6d9d0f6708af335e.js","6665","static/chunks/app/dashboard/home/page-baeed177eb178aed.js"],"default"] +e:I[99165,[],"OutletBoundary"] +10:I[99165,[],"MetadataBoundary"] +12:I[99165,[],"ViewportBoundary"] +14:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","home",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["home",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["home",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","home","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$La",null,{"Component":"$b","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@c","$@d"]}],null,["$","$Le",null,{"children":"$Lf"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","mKKpS9VpWjtGjvm4Y-IFo",{"children":[["$","$L10",null,{"children":"$L11"}],["$","$L12",null,{"children":"$L13"}],null]}]]}],false]],"m":"$undefined","G":["$14","$undefined"],"s":false,"S":true} 9:{} c:{} d:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/games/tetris/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/games/tetris/index.html index 6aec8a5..36b88a8 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/games/tetris/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/games/tetris/index.html @@ -1 +1 @@ -QuecManager
                                                                                      Score: 0
                                                                                      High Score: 0
                                                                                      Speed: 1x

                                                                                      Controls:

                                                                                      ← → : Move

                                                                                      ↑ : Rotate

                                                                                      ↓ : Soft Drop

                                                                                      Space : Hard Drop

                                                                                      Ctrl+R : Restart

                                                                                        \ No newline at end of file +QuecManager
                                                                                          \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/games/tetris/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/games/tetris/index.txt index bdcf003..9918175 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/games/tetris/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/games/tetris/index.txt @@ -1,19 +1,24 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[57033,[],"ClientPageRoot"] -8:I[84017,["5395","static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-09d2072e268fa4c4.js"],"default"] -b:I[86213,[],"OutletBoundary"] -d:I[86213,[],"MetadataBoundary"] -f:I[86213,[],"ViewportBoundary"] -11:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","utils","dsMDh6647ZGkOLyv60QE","OGwW8ufEw6nWPQSaliNX","games","tetris",""],"i":false,"f":[[["",{"children":["utils",{"children":["dsMDh6647ZGkOLyv60QE",{"children":["OGwW8ufEw6nWPQSaliNX",{"children":["games",{"children":["tetris",{"children":["__PAGE__",{}]}]}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["utils",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["dsMDh6647ZGkOLyv60QE",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["OGwW8ufEw6nWPQSaliNX",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["games",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children","games","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["tetris",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children","games","children","tetris","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":"$Lc"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","FPcXXhDFWvMISRKCyYFRR",{"children":[["$","$Ld",null,{"children":"$Le"}],["$","$Lf",null,{"children":"$L10"}],null]}]]}],false]],"m":"$undefined","G":["$11","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-aa73cc75e53c5793.js","7780","static/chunks/7780-d44d1f6d676771d4.js","8885","static/chunks/8885-1b9ab3cbb10cf437.js","7563","static/chunks/7563-33b7de2a93dcbe27.js","3048","static/chunks/3048-a6b509fac24a1f29.js","7177","static/chunks/app/layout-a9c4b7ff6cae263b.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-aa73cc75e53c5793.js","7780","static/chunks/7780-d44d1f6d676771d4.js","8885","static/chunks/8885-1b9ab3cbb10cf437.js","7563","static/chunks/7563-33b7de2a93dcbe27.js","3048","static/chunks/3048-a6b509fac24a1f29.js","7177","static/chunks/app/layout-a9c4b7ff6cae263b.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-aa73cc75e53c5793.js","7780","static/chunks/7780-d44d1f6d676771d4.js","8885","static/chunks/8885-1b9ab3cbb10cf437.js","7563","static/chunks/7563-33b7de2a93dcbe27.js","3048","static/chunks/3048-a6b509fac24a1f29.js","7177","static/chunks/app/layout-a9c4b7ff6cae263b.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[96609,["9980","static/chunks/7b0cf0b7-aa73cc75e53c5793.js","7780","static/chunks/7780-d44d1f6d676771d4.js","8885","static/chunks/8885-1b9ab3cbb10cf437.js","7563","static/chunks/7563-33b7de2a93dcbe27.js","9464","static/chunks/9464-f5c3c85ad60907ac.js","9477","static/chunks/9477-215fa25b7251af44.js","6357","static/chunks/6357-9bebe3918fcef1e5.js","7414","static/chunks/7414-d6480d4dfb8a2ef8.js","4767","static/chunks/4767-88886265e4e59e78.js","1954","static/chunks/app/dashboard/layout-5311362b3a63fe81.js"],"default"] +a:I[36994,["9477","static/chunks/9477-215fa25b7251af44.js","5680","static/chunks/app/dashboard/settings/layout-2429ae4d71080a23.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[69835,["5293","static/chunks/app/dashboard/settings/games/tetris/page-e289ae715e0fba88.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/ad2fb857a6697fa7.css","style"] +0:{"P":null,"b":"J58vdXeOQEeiysj3vCOsG","p":"","c":["","dashboard","settings","games","tetris",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["settings",{"children":["games",{"children":["tetris",{"children":["__PAGE__",{}]}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ad2fb857a6697fa7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["games",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children","games","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["tetris",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children","games","children","tetris","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","OfUE42Gv0BTDVq4MW3U-p",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} -a:{} -10:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -e:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"QuecManager"}],["$","meta","2",{"name":"description","content":"Simpleadmin but better!"}],["$","link","3",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] -c:null +b:{} +e:{} +f:{} +15:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +13:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"QuecManager"}],["$","meta","2",{"name":"description","content":"Simpleadmin but better!"}],["$","link","3",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] +11:null diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/index.html index 3ee1a51..6cce1e0 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/index.html @@ -1 +1 @@ -QuecManager
                                                                                            \ No newline at end of file +QuecManager
                                                                                              \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/index.txt index 94750a2..ba89c56 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/index.txt @@ -1,19 +1,19 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[58762,["1028","static/chunks/1028-d49624a1d63e734e.js","5680","static/chunks/app/dashboard/settings/layout-e237bc8b568ccf8e.js"],"default"] -c:I[53068,["1365","static/chunks/1365-cc796f60bf34651a.js","4631","static/chunks/app/dashboard/settings/page-f4993a729574dbc7.js"],"default"] -d:I[86213,[],"OutletBoundary"] -f:I[86213,[],"MetadataBoundary"] -11:I[86213,[],"ViewportBoundary"] -13:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{}],null,["$","$Ld",null,{"children":"$Le"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","Ggk-oVnUdbJLBo6Cw76zY",{"children":[["$","$Lf",null,{"children":"$L10"}],["$","$L11",null,{"children":"$L12"}],null]}]]}],false]],"m":"$undefined","G":["$13","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[36994,["9477","static/chunks/9477-4478381adb29cdff.js","5680","static/chunks/app/dashboard/settings/layout-cc9df1509c43fede.js"],"default"] +c:I[16212,["7780","static/chunks/7780-f325b2d7864a75f9.js","4631","static/chunks/app/dashboard/settings/page-affb4fb4f2f57790.js"],"default"] +d:I[99165,[],"OutletBoundary"] +f:I[99165,[],"MetadataBoundary"] +11:I[99165,[],"ViewportBoundary"] +13:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","settings",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{}],null,["$","$Ld",null,{"children":"$Le"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","FiOvYCgLtTkE53OR0Rx00",{"children":[["$","$Lf",null,{"children":"$L10"}],["$","$L11",null,{"children":"$L12"}],null]}]]}],false]],"m":"$undefined","G":["$13","$undefined"],"s":false,"S":true} 9:{} b:{} 12:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/security/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/security/index.html index 4d34506..42ce241 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/security/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/security/index.html @@ -1 +1 @@ -QuecManager
                                                                                                \ No newline at end of file +QuecManager
                                                                                                  \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/security/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/security/index.txt index 449ee73..6daf229 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/security/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/dashboard/settings/security/index.txt @@ -1,20 +1,20 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[14547,[],"ClientSegmentRoot"] -8:I[84641,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","3572","static/chunks/3572-2b8db37d34ea53e3.js","2049","static/chunks/2049-6657120fa99a42e1.js","1954","static/chunks/app/dashboard/layout-8d0cc3852d1f490b.js"],"default"] -a:I[58762,["1028","static/chunks/1028-d49624a1d63e734e.js","5680","static/chunks/app/dashboard/settings/layout-e237bc8b568ccf8e.js"],"default"] -c:I[57033,[],"ClientPageRoot"] -d:I[53068,["1365","static/chunks/1365-cc796f60bf34651a.js","2162","static/chunks/app/dashboard/settings/security/page-ee2b13d3a197a5cf.js"],"default"] -10:I[86213,[],"OutletBoundary"] -12:I[86213,[],"MetadataBoundary"] -14:I[86213,[],"ViewportBoundary"] -16:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","dashboard","settings","security",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["settings",{"children":["security",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["security",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children","security","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","ukCaG3ujPqtnKeDgT6yK4",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[92907,[],"ClientSegmentRoot"] +8:I[89868,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","564","static/chunks/564-bce78b0f1af68d0a.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7536","static/chunks/7536-99552f97cdce7493.js","1954","static/chunks/app/dashboard/layout-02fe1192f54f04cf.js"],"default"] +a:I[36994,["9477","static/chunks/9477-4478381adb29cdff.js","5680","static/chunks/app/dashboard/settings/layout-cc9df1509c43fede.js"],"default"] +c:I[5329,[],"ClientPageRoot"] +d:I[16212,["7780","static/chunks/7780-f325b2d7864a75f9.js","2162","static/chunks/app/dashboard/settings/security/page-37b3ba8d799a9134.js"],"default"] +10:I[99165,[],"OutletBoundary"] +12:I[99165,[],"MetadataBoundary"] +14:I[99165,[],"ViewportBoundary"] +16:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","dashboard","settings","security",""],"i":false,"f":[[["",{"children":["dashboard",{"children":["settings",{"children":["security",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$8","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@9"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L7",null,{"Component":"$a","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promise":"$@b"}]]}],{"children":["security",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children","settings","children","security","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":"$0:f:0:1:2:children:1:props:children:1:props:params","promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":"$L11"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","W_jpy0tgIBW4B_mIJOeRo",{"children":[["$","$L12",null,{"children":"$L13"}],["$","$L14",null,{"children":"$L15"}],null]}]]}],false]],"m":"$undefined","G":["$16","$undefined"],"s":false,"S":true} 9:{} b:{} e:{} diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/index.html deleted file mode 100644 index 546d61f..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/index.html +++ /dev/null @@ -1 +0,0 @@ -QuecManager

                                                                                                  QuecManager Quick Stats

                                                                                                    \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/index.txt index 1a8c1ce..e063420 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/index.txt @@ -1,16 +1,16 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[4672,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","2019","static/chunks/2019-b7704dcdb000b7ea.js","1028","static/chunks/1028-d49624a1d63e734e.js","4094","static/chunks/4094-7a548ce559af5ece.js","2049","static/chunks/2049-6657120fa99a42e1.js","8974","static/chunks/app/page-b8f75665cdb925c0.js"],"default"] -8:I[86213,[],"OutletBoundary"] -a:I[86213,[],"MetadataBoundary"] -c:I[86213,[],"ViewportBoundary"] -e:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"className":"grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20","children":["$","main",null,{"className":"flex flex-col gap-8 row-start-2 items-center sm:items-start","children":["$","$L7",null,{}]}]}],null,["$","$L8",null,{"children":"$L9"}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","QrHH3RQGhmiivVBcFTbQO",{"children":[["$","$La",null,{"children":"$Lb"}],["$","$Lc",null,{"children":"$Ld"}],null]}]]}],false]],"m":"$undefined","G":["$e","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[69363,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","9464","static/chunks/9464-54895f8e78c474f0.js","9477","static/chunks/9477-4478381adb29cdff.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","1074","static/chunks/1074-d79f1d7c29de56fa.js","7536","static/chunks/7536-99552f97cdce7493.js","8974","static/chunks/app/page-10e0ca37ba458321.js"],"default"] +8:I[99165,[],"OutletBoundary"] +a:I[99165,[],"MetadataBoundary"] +c:I[99165,[],"ViewportBoundary"] +e:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"className":"grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20","children":["$","main",null,{"className":"flex flex-col gap-8 row-start-2 items-center sm:items-start","children":["$","$L7",null,{}]}]}],null,["$","$L8",null,{"children":"$L9"}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","XEY2MFgRZt1PBE24SZ_X-",{"children":[["$","$La",null,{"children":"$Lb"}],["$","$Lc",null,{"children":"$Ld"}],null]}]]}],false]],"m":"$undefined","G":["$e","$undefined"],"s":false,"S":true} d:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] b:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"QuecManager"}],["$","meta","2",{"name":"description","content":"Simpleadmin but better!"}],["$","link","3",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 9:null diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/login.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/login.html new file mode 100644 index 0000000..3be6345 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/login.html @@ -0,0 +1 @@ +QuecManager

                                                                                                    QuecManager Quick Stats

                                                                                                      \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/login/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/login/index.html index b23dcda..a946350 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/login/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/login/index.html @@ -1 +1 @@ -QuecManager

                                                                                                      Login to QuecManager

                                                                                                      Enter your password to login

                                                                                                        \ No newline at end of file +QuecManager

                                                                                                        Login to QuecManager

                                                                                                        Enter your password to login

                                                                                                          \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/login/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/login/index.txt index c6b2735..31dddb6 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/login/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/login/index.txt @@ -1,17 +1,17 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[57033,[],"ClientPageRoot"] -8:I[42386,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","1048","static/chunks/1048-02abb75f177dd0fa.js","4520","static/chunks/app/login/page-eedf1e77aa500881.js"],"default"] -b:I[86213,[],"OutletBoundary"] -d:I[86213,[],"MetadataBoundary"] -f:I[86213,[],"ViewportBoundary"] -11:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","login",""],"i":false,"f":[[["",{"children":["login",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["login",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","login","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":"$Lc"}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","aShrdVZ8OGtrjWsQPCrq3",{"children":[["$","$Ld",null,{"children":"$Le"}],["$","$Lf",null,{"children":"$L10"}],null]}]]}],false]],"m":"$undefined","G":["$11","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[5329,[],"ClientPageRoot"] +8:I[25274,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","6765","static/chunks/6765-07b8009bcdc5965b.js","4520","static/chunks/app/login/page-aba8e30780334055.js"],"default"] +b:I[99165,[],"OutletBoundary"] +d:I[99165,[],"MetadataBoundary"] +f:I[99165,[],"ViewportBoundary"] +11:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","login",""],"i":false,"f":[[["",{"children":["login",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["login",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","login","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":"$Lc"}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","dX69blbfnoGN94N4vBvdQ",{"children":[["$","$Ld",null,{"children":"$Le"}],["$","$Lf",null,{"children":"$L10"}],null]}]]}],false]],"m":"$undefined","G":["$11","$undefined"],"s":false,"S":true} 9:{} a:{} 10:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/index.html index 6aec8a5..e91f79e 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/index.html @@ -1 +1 @@ -QuecManager
                                                                                                          Score: 0
                                                                                                          High Score: 0
                                                                                                          Speed: 1x

                                                                                                          Controls:

                                                                                                          ← → : Move

                                                                                                          ↑ : Rotate

                                                                                                          ↓ : Soft Drop

                                                                                                          Space : Hard Drop

                                                                                                          Ctrl+R : Restart

                                                                                                            \ No newline at end of file +QuecManager
                                                                                                            Score: 0
                                                                                                            High Score: 0
                                                                                                            Speed: 1x

                                                                                                            Controls:

                                                                                                            ← → : Move

                                                                                                            ↑ : Rotate

                                                                                                            ↓ : Soft Drop

                                                                                                            Space : Hard Drop

                                                                                                            Ctrl+R : Restart

                                                                                                              \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/index.txt b/ipk-source/sdxpinn-quecmanager-beta/root/www/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/index.txt index bdcf003..8522ebd 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/index.txt +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/index.txt @@ -1,17 +1,17 @@ 1:"$Sreact.fragment" -2:I[14627,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"ThemeProvider"] -3:I[9246,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"TooltipProvider"] -4:I[15244,[],""] -5:I[43866,[],""] -6:I[86321,["5105","static/chunks/0e5ce63c-2ce3ef687d86baae.js","1365","static/chunks/1365-cc796f60bf34651a.js","7401","static/chunks/7401-f818b07f5ea91edc.js","9895","static/chunks/9895-60e84ac7e5963a2e.js","9710","static/chunks/9710-a27eac95e49499fd.js","7177","static/chunks/app/layout-c8966be7ba6bca0c.js"],"Toaster"] -7:I[57033,[],"ClientPageRoot"] -8:I[84017,["5395","static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-09d2072e268fa4c4.js"],"default"] -b:I[86213,[],"OutletBoundary"] -d:I[86213,[],"MetadataBoundary"] -f:I[86213,[],"ViewportBoundary"] -11:I[34835,[],""] -:HL["/_next/static/css/842751e375a96633.css","style"] -0:{"P":null,"b":"yuHNjFIc5H-qyPn3szdc-","p":"","c":["","utils","dsMDh6647ZGkOLyv60QE","OGwW8ufEw6nWPQSaliNX","games","tetris",""],"i":false,"f":[[["",{"children":["utils",{"children":["dsMDh6647ZGkOLyv60QE",{"children":["OGwW8ufEw6nWPQSaliNX",{"children":["games",{"children":["tetris",{"children":["__PAGE__",{}]}]}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/842751e375a96633.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["utils",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["dsMDh6647ZGkOLyv60QE",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["OGwW8ufEw6nWPQSaliNX",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["games",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children","games","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["tetris",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children","games","children","tetris","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":"$Lc"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","FPcXXhDFWvMISRKCyYFRR",{"children":[["$","$Ld",null,{"children":"$Le"}],["$","$Lf",null,{"children":"$L10"}],null]}]]}],false]],"m":"$undefined","G":["$11","$undefined"],"s":false,"S":true} +2:I[74347,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"ThemeProvider"] +3:I[85014,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"TooltipProvider"] +4:I[24900,[],""] +5:I[81570,[],""] +6:I[62825,["9980","static/chunks/7b0cf0b7-d2ef6403b3e42593.js","7780","static/chunks/7780-f325b2d7864a75f9.js","8885","static/chunks/8885-ae45735eaa57e8dd.js","3746","static/chunks/3746-654c7d406af2e140.js","3048","static/chunks/3048-9766c902a7fac6d2.js","2682","static/chunks/2682-7f9e5e2a8bb2f859.js","7177","static/chunks/app/layout-d2d09d351eda8964.js"],"Toaster"] +7:I[5329,[],"ClientPageRoot"] +8:I[55049,["5395","static/chunks/app/utils/dsMDh6647ZGkOLyv60QE/OGwW8ufEw6nWPQSaliNX/games/tetris/page-0d50a23651b89c67.js"],"default"] +b:I[99165,[],"OutletBoundary"] +d:I[99165,[],"MetadataBoundary"] +f:I[99165,[],"ViewportBoundary"] +11:I[25339,[],""] +:HL["/_next/static/css/16045df73d62562f.css","style"] +0:{"P":null,"b":"nSSY82E15mY7-fVwPtOqk","p":"","c":["","utils","dsMDh6647ZGkOLyv60QE","OGwW8ufEw6nWPQSaliNX","games","tetris",""],"i":false,"f":[[["",{"children":["utils",{"children":["dsMDh6647ZGkOLyv60QE",{"children":["OGwW8ufEw6nWPQSaliNX",{"children":["games",{"children":["tetris",{"children":["__PAGE__",{}]}]}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/16045df73d62562f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"antialiased __className_9dae3d","children":[["$","$L2",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":["utils",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["dsMDh6647ZGkOLyv60QE",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["OGwW8ufEw6nWPQSaliNX",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["games",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children","games","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["tetris",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","utils","children","dsMDh6647ZGkOLyv60QE","children","OGwW8ufEw6nWPQSaliNX","children","games","children","tetris","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":"$Lc"}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","4MDUTgDWgf3L5wBvIeTzo",{"children":[["$","$Ld",null,{"children":"$Le"}],["$","$Lf",null,{"children":"$L10"}],null]}]]}],false]],"m":"$undefined","G":["$11","$undefined"],"s":false,"S":true} 9:{} a:{} 10:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]